/* ===== 全局样式：内部档案提醒系统 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f0f2f5; color: #333; }

/* ===== 顶部导航 ===== */
.nav { background: #1f2d3d; color: #fff; display: flex; align-items: center; padding: 0 20px; height: 56px; }
.nav .logo { font-size: 18px; font-weight: bold; margin-right: 30px; }
.nav a { color: #c0c4cc; text-decoration: none; margin-right: 22px; font-size: 14px; line-height: 56px; }
.nav .logo a { color: #fff; }
.nav a.active, .nav a:hover { color: #fff; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav .right a { margin-right: 0; cursor: pointer; }
.badge { background: #f56c6c; color: #fff; border-radius: 8px; font-size: 12px; padding: 1px 6px; }

/* ===== 页面容器 ===== */
.container { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card h3 { margin-bottom: 16px; font-size: 16px; border-left: 4px solid #409eff; padding-left: 8px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; border: none; border-radius: 4px; padding: 7px 14px; font-size: 14px; cursor: pointer; background: #409eff; color: #fff; text-decoration: none; }
.btn:hover { opacity: .9; }
.btn-default { background: #fff; color: #333; border: 1px solid #dcdfe6; }
.btn-danger { background: #f56c6c; }
.btn-success { background: #67c23a; }
.btn-small { padding: 3px 8px; font-size: 12px; }

/* ===== 表格 ===== */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid #ebeef5; padding: 10px 8px; text-align: left; }
th { background: #fafafa; color: #606266; font-weight: 600; }
tr:hover td { background: #f5f7fa; }

/* ===== 表单 ===== */
.form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; align-items: center; }
.form-item { display: flex; flex-direction: column; }
.form-item label { font-size: 13px; color: #606266; margin-bottom: 4px; }
input, select, textarea { padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: #409eff; }

/* ===== 状态标签 ===== */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-green { background: #f0f9eb; color: #67c23a; }
.tag-orange { background: #fdf6ec; color: #e6a23c; }
.tag-red { background: #fef0f0; color: #f56c6c; }
.tag-gray { background: #f4f4f5; color: #909399; }
.tag-blue { background: #ecf5ff; color: #409eff; }

/* ===== 统计卡片 ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-card { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.stat-card .num { font-size: 28px; font-weight: bold; margin-top: 6px; }
.stat-card .label { color: #909399; font-size: 13px; }
.num.orange { color: #e6a23c; } .num.red { color: #f56c6c; } .num.blue { color: #409eff; } .num.green { color: #67c23a; }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 100; }
.modal-mask.show { display: flex; align-items: flex-start; justify-content: center; }
.modal { background: #fff; border-radius: 8px; width: 620px; max-width: 94vw; max-height: 88vh; overflow-y: auto; margin-top: 6vh; padding: 20px 24px; }
.modal h3 { margin-bottom: 16px; }
.modal .modal-footer { text-align: right; margin-top: 10px; }

/* ===== 消息提示 ===== */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 20px; border-radius: 6px; z-index: 999; font-size: 14px; }
.toast.error { background: #f56c6c; }

/* ===== 分页 ===== */
.pager { margin-top: 14px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: 14px; }

/* ===== 拖拽上传区 ===== */
.drop-zone {
  border: 2px dashed #c8d3e0; border-radius: 8px; padding: 26px 16px;
  text-align: center; color: #6b7a8f; font-size: 14px; cursor: pointer;
  background: #fafbfd; transition: all .18s; margin-bottom: 12px;
}
.drop-zone:hover { border-color: #4a8af4; background: #f4f8ff; }
/* 文件被拖到区域上方时高亮 */
.drop-zone.drop-active { border-color: #4a8af4; background: #e8f1ff; transform: scale(1.01); }
.drop-zone .dz-icon { font-size: 26px; color: #b7c4d4; line-height: 1; margin-bottom: 8px; }
.drop-zone .dz-tip { font-size: 12px; color: #a2acbb; margin-top: 6px; }
/* 表格行内的"处理"按钮不换行 */
.row-actions { white-space: nowrap; }

/* ===== 登录页 ===== */
.login-box { width: 360px; margin: 12vh auto; background: #fff; border-radius: 10px; padding: 34px 30px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.login-box h2 { text-align: center; margin-bottom: 24px; }
.login-box input { width: 100%; margin-bottom: 14px; padding: 10px; }
.login-box .btn { width: 100%; padding: 10px; }

.desc-grid { display: grid; grid-template-columns: 130px 1fr; row-gap: 8px; font-size: 14px; }
.desc-grid dt { color: #909399; }
