:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; padding: 0; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; }

/* 布局 */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 220px; background: #0f2547; color: #cbd5e1; flex-shrink: 0;
  display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar .logo { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .logo .school { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4; }
.sidebar .logo .sys { font-size: 12px; color: #7e9cc9; margin-top: 2px; }
.sidebar .el-menu { border-right: none; background: transparent; flex: 1; }
.sidebar .el-menu-item { height: 44px; line-height: 44px; color: #cbd5e1; }
.sidebar .el-menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .el-menu-item.is-active { background: var(--primary); color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f1f5f9; }
.header {
  height: 56px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.header .h-title { font-size: 16px; font-weight: 600; color: #1e293b; }
.header .h-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #475569; }
.content { flex: 1; overflow-y: auto; padding: 20px; }
.footer-beian {
  padding: 10px 0 14px; text-align: center; font-size: 12px; color: #94a3b8;
  background: #f1f5f9;
}
.footer-beian a { color: #94a3b8; text-decoration: none; margin: 0 10px; display: inline-flex; align-items: center; gap: 4px; }
.footer-beian a:hover { color: var(--primary); }
.footer-beian .icp-badge {
  width: 16px; height: 16px; border: 1.4px solid #b91c1c; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 700; color: #b91c1c;
}

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f2547 0%, #1e3a8a 60%, #2563eb 100%);
  padding: 20px;
}
.login-card { background: #fff; border-radius: 12px; padding: 36px 34px 28px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-card .t1 { text-align: center; font-size: 20px; font-weight: 700; color: #0f2547; }
.login-card .t2 { text-align: center; font-size: 13px; color: #64748b; margin: 6px 0 24px; }
.login-beian { margin-top: 26px; text-align: center; font-size: 12px; color: rgba(255,255,255,.75); }
.login-beian a { color: rgba(255,255,255,.75); text-decoration: none; margin: 0 8px; display: inline-flex; align-items: center; gap: 4px; }
.login-beian .icp-badge {
  width: 16px; height: 16px; border: 1.4px solid #fca5a5; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 700; color: #fca5a5;
}

/* 通用 */
.page-title { font-size: 17px; font-weight: 600; color: #1e293b; margin: 0 0 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-card .label { font-size: 13px; color: #64748b; }
.stat-card .value { font-size: 26px; font-weight: 700; color: #0f2547; margin-top: 4px; }
.stat-card .value small { font-size: 13px; color: #94a3b8; font-weight: 400; }
.card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar .spacer { flex: 1; }
.muted { color: #94a3b8; font-size: 13px; }

/* 资料清单 */
.req-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e2e8f0;
  border-radius: 10px; margin-bottom: 10px; background: #fff;
}
.req-item .req-name { font-weight: 600; color: #1e293b; }
.req-item .req-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.req-item .req-main { flex: 1; min-width: 0; }

/* 预览 */
.preview-container { overflow: auto; background: #525659; min-height: 60vh; max-height: 76vh; border-radius: 6px; }
.preview-container.light { background: #fff; }
.preview-container .docx-wrap { background: #fff; width: 920px; margin: 0 auto; padding: 20px 0; }
.preview-container canvas { display: block; margin: 0 auto 10px; }
.preview-container .xlsx-table { background: #fff; margin: 16px auto; border-collapse: collapse; }
.preview-container .xlsx-table td, .preview-container .xlsx-table th { border: 1px solid #cbd5e1; padding: 4px 8px; font-size: 13px; min-width: 60px; white-space: nowrap; }
.preview-container .pptx-wrap { background: #fff; padding: 12px; }
.preview-container video { width: 100%; max-height: 72vh; display: block; }
.preview-container img { display: block; margin: 0 auto; max-width: 100%; }
.preview-container pre { color: #e2e8f0; padding: 16px; margin: 0; min-height: 50vh; white-space: pre-wrap; font-size: 13px; }
.pptx-slide { margin: 0 auto 16px; }

.el-dialog.is-fullscreen { display: flex; flex-direction: column; }
.el-dialog.is-fullscreen .el-dialog__body { flex: 1; overflow: hidden; }

.time-line-item { font-size: 13px; }
.drawer-section-title { font-weight: 600; margin: 14px 0 10px; color: #1e293b; font-size: 14px; }

@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .logo .school, .sidebar .logo .sys { display: none; }
  .sidebar .el-menu-item { padding: 0 20px !important; }
  .sidebar .el-menu-item span { display: none; }
  .content { padding: 12px; }
}
