body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; background: #f0f2f5; color: #333; }

/* 顶部导航栏 */
nav { background: #2d3e50; padding: 0 24px; height: 60px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
nav a, nav span { color: #cfd8dc; margin-right: 20px; text-decoration: none; font-size: 14px; transition: color 0.2s; }
nav a:hover { color: #fff; }
.nav-left { display: flex; align-items: center; }
.nav-left .logo { color: #fff; font-size: 18px; font-weight: bold; margin-right: 30px; letter-spacing: 1px; }
.nav-right { display: flex; align-items: center; }
.nav-right a { margin-left: 15px; margin-right: 0; }
.nav-right .logout-btn { color: #ff7675; }
.role-badge { background: #1e88e5; color: #fff !important; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 5px; }

/* 主体内容区 */
.container { max-width: 1200px; margin: 24px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
h2 { margin-top: 0; color: #2d3e50; font-weight: 600; padding-bottom: 15px; border-bottom: 1px solid #ebeef5; margin-bottom: 24px; }
h3 { color: #444; font-size: 16px; margin-top: 25px; margin-bottom: 15px; }

/* 表格美化 */
table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ebeef5; }
th { background: #f8fafc; font-weight: 600; color: #606266; border-top: 1px solid #ebeef5; }
tr:hover td { background: #f5f7fa; }

/* 表单输入框 */
input, select { padding: 8px 12px; margin: 4px 8px 4px 0; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 14px; transition: border-color 0.2s; box-sizing: border-box; }
input:focus, select:focus { outline: none; border-color: #2d7ff9; }
input[type="checkbox"] { margin-right: 4px; vertical-align: middle; }
label { font-size: 14px; color: #606266; margin-right: 15px; }

/* 按钮 */
button { background: #2d7ff9; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
button:hover { background: #1a66d6; }
.btn-sm { padding: 4px 10px !important; font-size: 12px !important; margin: 0 4px 4px 0 !important; }

/* Flash 消息 */
.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; }
.flash.ok { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.flash.error { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }

/* 仪表盘卡片 */
.cards { display: flex; gap: 20px; flex-wrap: wrap; }
.card { flex: 1; min-width: 200px; background: #f8fafc; border: 1px solid #ebeef5; border-radius: 8px; padding: 24px; text-align: center; }
.card .num { font-size: 32px; font-weight: bold; color: #2d7ff9; }
.card .label { color: #606266; font-size: 14px; margin-top: 8px; }

/* 表单行内排版 */
form.inline { display: inline; }

/* 搜索栏和操作栏容器 */
.action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }