* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  color: #333;
}
.layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: 240px;
  background: #1a1f36;
  color: #c4c9d5;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.logo { padding: 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #2a3050; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #FF6B35, #FF8F5E); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.logo-title { color: #fff; font-size: 15px; font-weight: 700; }
.logo-sub { font-size: 11px; color: #6b7280; }

.nav-menu { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-group { padding: 16px 20px 8px; font-size: 11px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; min-height: 48px; color: #c4c9d5; font-size: 14px; cursor: pointer; transition: all 0.2s; text-decoration: none; position: relative; border-radius: 8px; margin: 2px 10px; }
.nav-item:hover { background: #252b45; color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(255,107,53,0.2), transparent); color: #fff; border-left: 3px solid #FF6B35; }
.nav-item span, .nav-item .nav-icon { pointer-events: none; }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.badge-dot { position: absolute; right: 20px; width: 8px; height: 8px; background: #e74c3c; border-radius: 50%; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid #2a3050; }
.user-info { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #FF6B35, #FF8F5E); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.user-name { color: #fff; font-size: 14px; font-weight: 600; }
.user-role { font-size: 12px; color: #6b7280; }

/* 主内容 */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.top-bar {
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
.breadcrumb { font-size: 14px; color: #666; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; align-items: center; background: #f5f5f5; border-radius: 20px; padding: 6px 14px; width: 280px; }
.search-box input { border: none; background: transparent; outline: none; width: 100%; margin-left: 8px; font-size: 13px; }
.notification { position: relative; cursor: pointer; }
.notification span { font-size: 18px; }
.notif-count { position: absolute; top: -4px; right: -8px; background: #e74c3c; color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.help-btn { padding: 6px 14px; background: #f5f5f5; border-radius: 16px; font-size: 13px; cursor: pointer; }

.page { display: none; flex: 1; padding: 24px; overflow-y: auto; }
.page.active { display: block; }

.page-header-bar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.page-desc { font-size: 14px; color: #999; }
.header-actions { display: flex; gap: 12px; align-items: center; }

/* 按钮 */
.btn-primary { background: linear-gradient(135deg, #FF6B35, #FF8F5E); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-secondary { background: #fff; color: #666; border: 1px solid #e0e0e0; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-outline { background: transparent; color: #999; border: 1px solid #e0e0e0; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-export { background: #fff; color: #666; border: 1px solid #e0e0e0; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-sm { padding: 6px 14px; border-radius: 6px; font-size: 12px; cursor: pointer; border: none; }
.btn-upload { background: #f5f5f5; color: #666; padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; border: 1px dashed #ddd; }

.filter-btn { background: #fff; border: 1px solid #e0e0e0; padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; color: #666; }
.filter-btn.active { background: #FF6B35; color: #fff; border-color: #FF6B35; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.stat-content { flex: 1; }
.stat-value { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.stat-label { font-size: 13px; color: #999; margin-top: 2px; }
.stat-trend { font-size: 12px; margin-top: 4px; }
.stat-trend.up { color: #4caf50; }
.stat-trend.down { color: #f44336; }

/* 图表卡片 */
.chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.chart-large { min-height: 360px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-header h3 { font-size: 16px; font-weight: 600; }
.chart-legend { display: flex; gap: 16px; }
.legend-item { font-size: 12px; color: #666; display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart-body { display: flex; flex-direction: column; }
.line-chart { width: 100%; height: 220px; }
.pie-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #666; }
.legend-row { display: flex; align-items: center; gap: 8px; }

/* 数据表格：自动列宽 + 单行不换行，容器横向滚动 */
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.data-table th, .data-table td { padding: 10px 12px; font-size: 13px; color: #333; border-bottom: 1px solid #f0f0f0; vertical-align: middle; white-space: nowrap; }
.data-table th { text-align: left; font-weight: 600; color: #666; background: #f8f8f8; border-bottom: 2px solid #e8e8e8; position: sticky; top: 0; z-index: 1; }
.data-table tbody tr:hover td { background: #fafafa; }
.data-table a { color: #FF6B35; text-decoration: none; margin-right: 12px; cursor: pointer; white-space: nowrap; }
.data-table a:hover { text-decoration: underline; }
.data-table .tag,
.data-table .status, .data-table .meta span { white-space: nowrap; }
/* 长文本列：超宽截断省略号，悬浮 title 显示完整文字 */
.data-table td.t-clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.data-table td.t-clip .clip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
/* 表格容器允许横向滚动，放不下时左右滑动 */
.table-card { overflow-x: auto; }
.table-card .data-table { min-width: max-content; }

/* 难度标签 */
.diff { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.diff-1 { background: #E8F5E9; color: #4CAF50; }
.diff-2 { background: #FFF8E1; color: #FF9800; }
.diff-3 { background: #FFEBEE; color: #f44336; }

/* 通用按钮hover */
.btn-primary:hover { opacity: 0.9; }
.btn-secondary:hover { background: #f5f5f5; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; cursor: pointer; }
.btn-sm.btn-primary { padding: 5px 12px; font-size: 12px; }
.btn-sm.btn-secondary { padding: 5px 12px; font-size: 12px; }
.btn-outline { background: #fff; border: 1px solid #ddd; color: #666; }
.btn-outline:hover { background: #f5f5f5; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 8px; padding: 20px 0; justify-content: flex-end; }
.pagination button { min-width: 32px; height: 32px; border: 1px solid #e0e0e0; background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; color: #666; }
.pagination button.active { background: #FF6B35; color: #fff; border-color: #FF6B35; }
.pagination button:hover:not(.active) { background: #f5f5f5; }
.pagination span { margin-left: 12px; font-size: 13px; color: #999; }

/* 搜索工具按钮 */
.search-tool button { background: #FF6B35; color: #fff; border: none; padding: 0 16px; height: 34px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.search-tool button:hover { opacity: 0.9; }

/* filter button通用 */
button, .btn-primary, .btn-secondary, .filter-tab, .filter-btn, .report-tab, .nav-item { -webkit-tap-highlight-color: transparent; }
button:focus { outline: none; }

/* toast提示 */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.75); color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* 批量操作栏（勾选表格行后从底部滑出）*/
#batch-bar { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 90px); background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,0.18); padding: 10px 16px; display: flex; gap: 10px; align-items: center; z-index: 8500; opacity: 0; transition: transform 0.25s, opacity 0.25s; }
#batch-bar.show { transform: translate(-50%, 0); opacity: 1; }
#batch-bar .bb-count { font-size: 13px; color: #333; padding-right: 12px; border-right: 1px solid #eee; white-space: nowrap; }
#batch-bar .bb-count b { color: #FF6B35; font-size: 17px; padding: 0 2px; }
#batch-bar button { border: 1px solid #ddd; background: #fff; border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
#batch-bar button:hover { border-color: #FF6B35; color: #FF6B35; }
#batch-bar button.danger { color: #e74c3c; border-color: #f2c4c0; }
#batch-bar button.danger:hover { background: #FDECEA; border-color: #e74c3c; color: #e74c3c; }
#batch-bar button.ghost { border: none; color: #999; }
#batch-bar button.ghost:hover { color: #333; }

/* 模态框遮罩 */
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 9000; }
.modal-mask.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; width: 560px; max-width: 92vw; max-height: 85vh; overflow: auto; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.modal-box.size-sm { width: 440px; }
.modal-box.size-lg { width: 800px; max-width: 94vw; }
.modal-box.size-xl { width: 1040px; max-width: 95vw; }
.modal-box h3 { margin: 0 0 16px 0; font-size: 18px; }
.modal-form .form-row { margin-bottom: 14px; }
.modal-form label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 500; }
.modal-form input, .modal-form select, .modal-form textarea { width: 100%; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; box-sizing: border-box; font-family: inherit; }
.modal-form textarea { resize: vertical; min-height: 70px; }
.modal-form .option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.modal-form .option-row input.flex-1 { flex: 1; }
.modal-form .option-row .opt-label { min-width: 30px; font-weight: 600; color: #666; }
.modal-form .ans-check { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.modal-form .ans-check label { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 0; cursor: pointer; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }

.rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.rank-1 { background: #FFD700; color: #fff; }
.rank-2 { background: #C0C0C0; color: #fff; }
.rank-3 { background: #CD7F32; color: #fff; }

/* 标签 */
.tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.tag-system { background: #E8F4FF; color: #2196F3; }
.tag-custom { background: #FFF3E8; color: #FF6B35; }
.tag-article { background: #E8F5E9; color: #4CAF50; }
.tag-video { background: #E8F4FF; color: #2196F3; }
.tag-link { background: #FFF3E8; color: #FF6B35; }
.tag-doc { background: #E8F4FF; color: #2196F3; }
.tag-original { background: #FFF3E8; color: #FF6B35; }
.tag-orange { background: #FFF3E8; color: #FF6B35; }

.status { font-size: 12px; }
.status.active { color: #4caf50; }
.status.inactive { color: #999; }
.status.published { color: #4caf50; }
.status.pending { color: #ff9800; }
.status.scheduled { color: #2196F3; }

.scheduled-tag { background: #E8F4FF; color: #2196F3; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-left: 4px; }

/* 表格卡片 */
.table-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-group { display: flex; gap: 12px; }
.filter-group select { padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }
.search-tool { display: flex; gap: 8px; }
.search-tool input { padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; width: 200px; }
.search-tool button { padding: 8px 16px; background: #FF6B35; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }

/* 评分分布 */
.rating-summary { display: flex; gap: 24px; align-items: center; }
.rating-score { text-align: center; padding-right: 24px; border-right: 1px solid #f0f0f0; }
.score-big { font-size: 42px; font-weight: 700; color: #FFB800; }
.score-stars { font-size: 18px; color: #FFB800; margin: 4px 0; }
.score-count { font-size: 12px; color: #999; }
.rating-bars { flex: 1; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar-label { width: 30px; font-size: 12px; color: #666; }
.bar-track { flex: 1; height: 16px; background: #f5f5f5; border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; }
.bar-count { width: 50px; text-align: right; font-size: 12px; color: #666; }

/* 二级分类 */
.subcat-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.subcat-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.subcat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.subcat-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f8f8f8; border-radius: 8px; font-size: 13px; }
.subcat-item .count { color: #999; font-size: 12px; }
.subcat-item.add { background: #fff; border: 1px dashed #ddd; color: #999; justify-content: center; cursor: pointer; }

/* 筛选标签 */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-tab { padding: 8px 16px; border-radius: 20px; background: #f5f5f5; font-size: 13px; color: #666; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.filter-tab.active { background: #FF6B35; color: #fff; }
.tab-count { background: rgba(0,0,0,0.1); padding: 1px 6px; border-radius: 10px; font-size: 11px; }
.filter-tab.active .tab-count { background: rgba(255,255,255,0.3); }

.content-toolbar { display: flex; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.content-toolbar .filter-tabs { flex: 1 0 100%; margin-bottom: 4px; flex-wrap: wrap; }
.content-toolbar .filter-group { flex-wrap: wrap; flex: 1 1 auto; align-items: center; row-gap: 8px; }
.content-toolbar .filter-group select,
.content-toolbar .filter-group input[type="date"] { min-width: 110px; height: 34px; box-sizing: border-box; }
.content-toolbar .search-tool { flex: 0 0 auto; height: 34px; }
.content-toolbar input[type="date"] { padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }

/* 内容编辑器 */
.content-editor { margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.content-editor h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.editor-form { max-width: 900px; }
.form-section { margin-bottom: 24px; }
.form-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid #FF6B35; }
.form-row { display: flex; align-items: flex-start; margin-bottom: 12px; }
.form-row label { width: 120px; font-size: 13px; color: #666; padding-top: 8px; flex-shrink: 0; }
.form-row input[type="text"], .form-row select { flex: 1; max-width: 500px; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }
.form-row input[type="datetime"] { padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }
.radio-group { display: flex; gap: 20px; padding-top: 8px; }
.radio-group label { font-size: 13px; color: #333; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.upload-area { flex: 1; max-width: 500px; }
.upload-files { margin-bottom: 8px; }
.file-item { background: #f8f8f8; padding: 8px 12px; border-radius: 6px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.file-remove { color: #e74c3c; cursor: pointer; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid #f0f0f0; }

/* 合规提示 */
.compliance-banner { background: linear-gradient(135deg, #FFF9E6, #FFF3E8); border: 1px solid #FFE58F; border-radius: 10px; padding: 16px 20px; display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.compliance-icon { font-size: 28px; }
.compliance-text { font-size: 13px; color: #666; line-height: 1.6; }
.compliance-text strong { color: #d48806; }

/* 素材源卡片 */
.material-sources { margin-bottom: 24px; }
.material-sources h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.source-cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.source-card { background: #f8f8f8; border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.source-card:hover { background: #FFF3E8; }
.source-card.active { background: #FFF3E8; border: 1px solid #FFD4B8; }
.source-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.source-count { font-size: 11px; color: #FF6B35; margin-bottom: 4px; }
.source-status { font-size: 11px; color: #4caf50; }
.source-card.add { background: #fff; border: 1px dashed #ddd; color: #999; }

/* 素材卡片列表 */
.material-list h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.material-cards { display: flex; flex-direction: column; gap: 12px; }
.material-card { display: flex; gap: 16px; padding: 16px; background: #f8f8f8; border-radius: 10px; }
.material-card.warn { border-left: 4px solid #fa709a; }
.material-info { flex: 1; display: flex; flex-direction: column; }
.material-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; line-height: 1.4; }
.material-meta { display: flex; gap: 16px; font-size: 12px; color: #999; margin-bottom: 12px; }
.material-actions { display: flex; gap: 8px; }

.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.pagination button { padding: 6px 12px; border: 1px solid #e0e0e0; background: #fff; border-radius: 6px; font-size: 13px; cursor: pointer; }
.pagination button.active { background: #FF6B35; color: #fff; border-color: #FF6B35; }
.pagination span { font-size: 13px; color: #999; margin-left: 12px; }

/* 答题统计 */
.quiz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.mini-stat { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.mini-stat-value { font-size: 28px; font-weight: 700; color: #1a1a1a; }
.mini-stat-label { font-size: 13px; color: #999; margin-top: 4px; }

.question-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.question-card { background: #f8f8f8; border-radius: 10px; padding: 16px; }
.q-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.q-type { background: #FF6B35; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.q-diff { font-size: 12px; color: #fa709a; }
.q-usage { font-size: 12px; color: #999; }
.q-stem { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; line-height: 1.5; }
.q-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.q-opt { padding: 8px 12px; background: #fff; border-radius: 6px; font-size: 13px; color: #333; display: flex; align-items: center; gap: 8px; }
.q-opt span { width: 22px; height: 22px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.q-opt.correct { background: #E8F5E9; }
.q-opt.correct span { background: #4caf50; color: #fff; }
.q-analysis { font-size: 12px; color: #666; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* 满意度概览 */
.survey-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.overview-card { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.overview-num { font-size: 36px; font-weight: 700; color: #FF6B35; }
.overview-label { font-size: 14px; color: #666; margin: 8px 0 4px; }
.overview-sub { font-size: 12px; color: #999; }

/* 合规统计 */
.compliance-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.compliance-card { background: linear-gradient(135deg, #1a1f36, #2a3050); border-radius: 12px; padding: 20px; color: #fff; }
.compliance-num { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.compliance-label { font-size: 13px; opacity: 0.7; margin-bottom: 2px; }
.compliance-sub { font-size: 12px; opacity: 0.5; }

.archive-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.archive-toolbar input[type="date"], .archive-toolbar input[type="text"] { padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }

/* 日志页面 */
.log-warning { background: #FFF3E8; border: 1px solid #FFD4B8; border-radius: 10px; padding: 14px 20px; display: flex; gap: 12px; align-items: center; margin-bottom: 24px; font-size: 13px; color: #666; }
.log-toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.log-toolbar select, .log-toolbar input { padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }

/* 权限管理 */
.perm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.perm-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.perm-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.perm-card .count { background: #FF6B35; color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.perm-list { list-style: none; }
.perm-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.perm-list li:last-child { border-bottom: none; }
.perm-toggle { width: 40px; height: 20px; background: #f0f0f0; border-radius: 10px; position: relative; cursor: pointer; }
.perm-toggle.on { background: #FF6B35; }
.perm-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: left 0.2s; }
.perm-toggle.on::after { left: 22px; }

/* 监管报备 */
.report-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.report-tab { padding: 10px 20px; border-radius: 8px; background: #fff; color: #666; cursor: pointer; font-size: 14px; border: 1px solid #e0e0e0; }
.report-tab.active { background: #FF6B35; color: #fff; border-color: #FF6B35; }

.report-form { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.report-form h3 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.report-checklist { list-style: none; }
.report-checklist li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.report-checklist li:last-child { border-bottom: none; }
.report-checklist label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.report-checklist .check-status { font-size: 12px; }
.check-status.ok { color: #4caf50; }
.check-status.no { color: #999; }

.trend-up { color: #4caf50; }
.trend-down { color: #f44336; }

.highlight-row { background: #FFFBF5; }
.scheduled-row { background: #F5FBFF; }
