* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "微软雅黑", Arial, sans-serif; background: #f5f7fa; color: #333; }

/* 登录页 */
.login-page { display: flex; justify-content: center; align-items: center; height: 100vh; }
.login-box { width: 400px; padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.login-box h2 { text-align: center; margin-bottom: 20px; color: #2c3e50; }

/* 头部 */
.header { background: #2c3e50; color: #fff; padding: 0 20px; height: 60px; display: flex; align-items: center; }
.logo { font-size: 20px; font-weight: bold; margin-right: 40px; }
.nav a { color: #fff; text-decoration: none; margin-right: 20px; padding: 20px 0; display: inline-block; }
.nav a:hover { color: #3498db; }
.user-info { margin-left: auto; }
.user-info a { color: #fff; margin-left: 15px; text-decoration: none; }

/* 容器 */
.container { max-width: 1200px; margin: 20px auto; padding: 20px; background: #fff; border-radius: 8px; min-height: calc(100vh - 100px); }

/* 表单 */
.form-item { margin-bottom: 15px; }
.form-item label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; }
.form-row label { white-space: nowrap; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select {
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; width: 150px;
}
.tip { font-size: 12px; color: #999; margin-top: 5px; }
.red { color: red; }

/* 按钮 */
.btn-primary { background: #3498db; color: #fff; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; }
.btn-primary:hover { background: #2980b9; }
.btn-default { background: #ecf0f1; color: #333; border: 1px solid #ddd; padding: 7px 15px; border-radius: 4px; cursor: pointer; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.data-table th { background: #f8f9fa; font-weight: 600; }
.data-table tr:hover { background: #f8f9fa; }

/* 搜索区 */
.search-form { background: #f8f9fa; padding: 20px; border-radius: 6px; margin-bottom: 20px; }

/* 消息 */
.message { padding: 12px 15px; border-radius: 4px; margin-bottom: 15px; }
.success { background: #d4edda; color: #155724; }
.error { background: #f8d7da; color: #721c24; }
.error-list { background: #fff3f3; padding: 15px; border-radius: 4px; margin-bottom: 15px; }
.error-list ul { margin-left: 20px; }
.error-list li { margin: 5px 0; color: #721c24; }

/* 工具栏 */
.toolbar { margin-bottom: 15px; display: flex; gap: 10px; align-items: center; }

/* 模态框 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 600px; max-width: 90%; }
.modal-content h3 { margin-bottom: 20px; }
.form-actions { text-align: right; margin-top: 20px; }
.form-actions button { margin-left: 10px; }

.section { margin-bottom: 30px; }
.section h3 { margin-bottom: 10px; color: #2c3e50; border-left: 4px solid #3498db; padding-left: 10px; }
.statistics { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #ddd; }