/* 智慧校园后勤管理平台 - 若依风格 PC 端原型 */
:root {
  --primary: #409eff;
  --primary-dark: #1890ff;
  --sidebar-bg: #001529;
  --sidebar-active: #1890ff;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #303133;
  --text-secondary: #606266;
  --text-muted: #909399;
  --border: #e8e8e8;
  --success: #67c23a;
  --warning: #e6a23c;
  --danger: #f56c6c;
  --header-h: 50px;
  --sidebar-w: 200px;
}

.proto-entry {
  position: fixed;
  top: 12px;
  right: 12px;
  background: #3B82F6;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 8000;
  text-decoration: none;
  opacity: 0.92;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.proto-entry:hover {
  opacity: 1;
  color: #fff;
}


body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

.app { display: flex; height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-logo {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-menu { padding: 8px 0; flex: 1; }

.menu-item {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 40px;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
  border-left: 3px solid transparent;
}

.menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }

.menu-item.active {
  color: #fff;
  background: var(--sidebar-active);
  border-left-color: #fff;
}

.menu-item .icon { width: 18px; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-item .icon .icon-img,
.menu-group-title .icon .icon-img { display: block; vertical-align: middle; }

/* 本地 SVG 图标 */
.icon-img { display: inline-block; vertical-align: middle; object-fit: contain; }
.sidebar .sidebar-icon { filter: brightness(0) invert(1); opacity: .75; }
.menu-item.active .sidebar-icon,
.menu-group.has-active > .menu-group-title .sidebar-icon { opacity: 1; }
.header-bell { opacity: .85; }
.btn .btn-icon { margin-right: 4px; vertical-align: -2px; }
.group-arrow { display: inline-flex; align-items: center; margin-left: auto; }
.group-arrow-icon { display: block; opacity: .65; }

/* 主区域 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.header {
  height: var(--header-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.breadcrumb { color: var(--text-secondary); font-size: 13px; }
.breadcrumb span { color: var(--text-muted); margin: 0 6px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.badge {
  position: relative;
  cursor: pointer;
}

.badge::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.user-info { cursor: pointer; display: flex; align-items: center; gap: 6px; }

.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* 统计卡片 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--card);
  border-radius: 4px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.danger { color: var(--danger); }

/* 主卡片 */
.main-card {
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.card-title { font-size: 16px; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #66b1ff; }
.btn-primary:disabled, .btn-default:disabled { opacity: .6; cursor: not-allowed; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-default { background: #fff; color: var(--text); border-color: #dcdfe6; }
.btn-default:hover { color: var(--primary); border-color: #c6e2ff; background: #ecf5ff; }
.btn-text { background: none; border: none; color: var(--primary); padding: 0 6px; height: auto; }
.btn-text:hover { color: #66b1ff; }
.btn-text.danger { color: var(--danger); }

.btn-group { display: flex; gap: 8px; }

/* Tab */
.tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  margin-top: 12px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
  user-select: none;
}

.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.filter-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.filter-item > label { white-space: nowrap; flex-shrink: 0; }

.filter-item input,
.filter-item select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  background-color: #fff;
  width: 140px;
  min-width: 120px;
  max-width: 180px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.filter-item select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
  background-image: url("../icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.filter-item input:focus,
.filter-item select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-item input#searchInput {
  width: 200px;
  max-width: 240px;
  flex: 0 0 200px;
}

.filter-item input[type="date"] {
  width: 130px;
  max-width: 140px;
  flex: 0 0 130px;
}

/* 表格 */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  background: #f5f7fa;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

tbody tr { transition: background .15s; }
tbody tr:hover { background: #f5f7fa; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:nth-child(even):hover { background: #f0f2f5; }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.primary { background: var(--primary); }
.status-dot.success { background: var(--success); }
.status-dot.warning { background: var(--warning); }
.status-dot.danger { background: var(--danger); }
.status-dot.info { background: var(--text-muted); }

.actions { display: flex; gap: 2px; flex-wrap: wrap; }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-btn {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.page-btn:hover { color: var(--primary); border-color: #c6e2ff; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}

.drawer-mask.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--card);
  box-shadow: -4px 0 16px rgba(0,0,0,.12);
  z-index: 1001;
  transition: right .3s;
  display: flex;
  flex-direction: column;
}

.drawer.open { right: 0; }

.drawer-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title { font-size: 18px; font-weight: 700; }

.drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 4px;
}

.drawer-close:hover { background: #f5f7fa; color: var(--text); }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.detail-id { font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 16px; }

.timeline-box {
  background: #f5f7fa;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.timeline-title { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; }

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-item.done { color: var(--text); }
.timeline-item.current { color: var(--primary); font-weight: 500; }
.timeline-item.pending { color: var(--text-muted); }

.timeline-icon { width: 16px; text-align: center; flex-shrink: 0; }

.detail-fields { font-size: 13px; line-height: 2; color: var(--text-secondary); margin-bottom: 20px; }
.detail-fields strong { color: var(--text); font-weight: 500; }

.photo-area {
  background: #f5f7fa;
  border-radius: 4px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-mask.open { display: flex; }

.modal {
  background: var(--card);
  border-radius: 4px;
  width: 640px;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  overflow: hidden;
}

.modal-body {
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
}

.form-tip {
  background: #fdf6ec;
  border-left: 3px solid var(--warning);
  padding: 10px 12px;
  font-size: 12px;
  color: #e6a23c;
  margin-bottom: 16px;
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.form-row.required label::before {
  content: '*';
  color: var(--danger);
  margin-right: 4px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-section {
  margin-top: 16px;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

table.mini-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

table.mini-table th,
table.mini-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
}

table.mini-table th {
  background: #f5f7fa;
  font-weight: 600;
}

table.mini-table tr.row-highlight-static td {
  background: #ecf5ff;
  color: var(--primary);
  font-weight: 500;
}

table.mini-table.full td {
  white-space: nowrap;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafafa;
}

.match-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.5;
}

.match-option input { margin-top: 3px; }

.filter-item .search-select,
.filter-item .dict-search-select {
  position: relative;
  width: 140px;
  min-width: 120px;
  max-width: 180px;
  flex: 0 0 140px;
}

.filter-item .search-select-input,
.filter-item .dict-search-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 32px;
  padding: 0 28px 0 10px;
}

.form-row .search-select-input,
.form-row .dict-search-input {
  min-height: 36px;
}

.form-row .search-select,
.form-row .dict-search-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.search-select,
.dict-search-select {
  position: relative;
  width: 100%;
}

.search-select::after,
.dict-search-select::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: url("../icons/chevron-down.svg") no-repeat center;
  pointer-events: none;
  z-index: 1;
}

.dict-search-select .dict-search-input,
.search-select .search-select-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 32px;
}

.dict-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  max-height: 180px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dict-search-dropdown li {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.dict-search-dropdown li:hover {
  background: #f5f7fa;
}

.dict-search-dropdown li.empty-item {
  color: var(--text-muted);
  cursor: default;
}

.dict-search-dropdown li.empty-item:hover {
  background: transparent;
}

.plan-points-box {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  background: #fafafa;
}

.plan-points-auto {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-points-auto.empty {
  color: var(--warning);
}

.plan-points-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.plan-manual-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  cursor: pointer;
}

.plan-points-manual select {
  width: 100%;
}

.checkbox-group.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkbox-group.inline label { margin-bottom: 0; }

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
  max-width: 100%;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  cursor: pointer;
  background: #fff url("../icons/chevron-down.svg") no-repeat right 10px center;
}

.form-row .time-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.form-row .time-range input {
  flex: 1;
  width: auto;
  min-width: 0;
}

.form-row .time-range-sep {
  flex-shrink: 0;
  color: var(--text-muted);
  line-height: 1;
}

.form-row textarea { height: 80px; resize: vertical; }

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-size: 13px;
  z-index: 3000;
  transition: transform .3s;
  border-left: 4px solid var(--primary);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }

.stars { color: #f7ba2a; letter-spacing: 2px; }

/* ========== 若依原生 - 侧边栏分组 ========== */
.menu-group { margin-bottom: 2px; }

.menu-group-title {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 40px;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}

.menu-group-title:hover { color: #fff; background: rgba(255,255,255,.04); }
.menu-group.has-active > .menu-group-title { color: #fff; }

.group-arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  opacity: .65;
}

.menu-group-title .icon {
  width: 18px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-group-children.collapsed { display: none; }

.menu-item.sub {
  padding-left: 36px;
  height: 36px;
  font-size: 12px;
}

/* ========== 若依原生 - 系统管理页面 ========== */
.sys-card .card-header { padding-bottom: 0; }

.sys-page { padding: 0; }

.sys-filter {
  background: #fff;
  border-bottom: none;
  padding: 16px 20px 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.toolbar.compact { padding: 8px 0; }

.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #f78989; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }

.empty-cell { text-align: center; color: var(--text-muted); padding: 40px !important; }

/* 用户管理 - 部门树布局 */
.split-layout {
  display: flex;
  min-height: 500px;
}

.dept-tree-panel {
  width: 220px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-title {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.dept-tree { padding: 8px 0; }

.tree-node-content {
  display: flex;
  align-items: center;
  height: 32px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all .15s;
}

.tree-node-content:hover { background: #f5f7fa; color: var(--primary); }
.tree-node-content.active { background: #ecf5ff; color: var(--primary); font-weight: 500; }

.tree-expand {
  width: 16px;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tree-expand.leaf { opacity: .4; }
.tree-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.split-main { flex: 1; min-width: 0; }

/* Element UI Switch 模拟 */
.el-switch {
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.el-switch__core {
  width: 40px;
  height: 20px;
  border-radius: 10px;
  background: #dcdfe6;
  position: relative;
  transition: background .2s;
  cursor: pointer;
}

.el-switch__core::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.el-switch.is-checked .el-switch__core { background: var(--primary); }
.el-switch.is-checked .el-switch__core::after { left: 22px; }

/* 菜单管理 - 树形表格 */
.tree-toggle {
  display: inline-block;
  width: 16px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
}

.menu-icon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: #f0f2f5;
  border-radius: 3px;
  font-size: 11px;
  color: var(--text-secondary);
}

.menu-icon-tag .menu-icon-key { font-size: 11px; color: var(--text-muted); }

.text-ellipsis {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 字典管理 */
.link-type {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.link-type:hover { text-decoration: underline; }

.row-selected { background: #ecf5ff !important; }

.dict-data-panel {
  margin: 16px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  background: #fafafa;
}

.dict-data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dict-data-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* 操作日志 - 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.tag-primary { background: #ecf5ff; color: var(--primary); }
.tag-warning { background: #fdf6ec; color: var(--warning); }
.tag-danger { background: #fef0f0; color: var(--danger); }
.tag-info { background: #f4f4f5; color: var(--text-secondary); }

/* 操作日志详情 */
.code-block {
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  overflow-x: auto;
  margin: 6px 0 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.tree-box {
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  line-height: 2;
  max-height: 160px;
  overflow-y: auto;
}

.checkbox-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checkbox-group input { margin-right: 6px; }

/* 响应式 */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* 确认对话框 */
.confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
}

.confirm-mask.open { display: flex; }

.confirm-box {
  background: #fff;
  border-radius: 4px;
  width: 400px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}

.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fdf6ec;
  color: var(--warning);
  font-size: 24px;
  line-height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-icon .confirm-icon-img { display: block; }
.confirm-icon .confirm-icon-text { font-weight: 700; font-size: 24px; line-height: 1; }

.confirm-icon.danger { background: #fef0f0; color: var(--danger); }

.confirm-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.confirm-msg { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.confirm-btns { display: flex; justify-content: center; gap: 12px; }

/* 评价星级选择 */
.rate-picker { display: flex; gap: 8px; font-size: 28px; cursor: pointer; padding: 8px 0; }
.rate-picker .star { color: #dcdfe6; transition: color .15s; user-select: none; }
.rate-picker .star.active, .rate-picker .star.hover { color: #f7ba2a; }

.row-highlight { animation: rowFlash .8s ease; }
@keyframes rowFlash {
  0%, 100% { background: inherit; }
  50% { background: #ecf5ff; }
}

.btn-text:active { opacity: .7; transform: scale(.97); }
