* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f0f2f5; }

/* 登录页 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
  width: 420px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h1 { font-size: 24px; color: #303133; margin-bottom: 8px; }
.login-header p { font-size: 14px; color: #909399; }
.demo-accounts { text-align: center; font-size: 13px; color: #909399; }

/* 主布局 */
.main-layout { min-height: 100vh; }
.sidebar {
  background: #001529;
  transition: width 0.3s;
  overflow: hidden;
}
.logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}
.sidebar-menu { border-right: none; }
.sidebar-menu:not(.el-menu--collapse) { width: 220px; }

.header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.collapse-btn { cursor: pointer; color: #606266; }
.header-right { display: flex; align-items: center; }
.user-dropdown { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.username { font-size: 14px; color: #606266; }

.main-content { background: #f0f2f5; padding: 20px; min-height: calc(100vh - 60px); }

/* 统计卡片 */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-card .stat-title { font-size: 14px; color: #909399; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 600; color: #303133; }
.stat-card .stat-footer { font-size: 12px; color: #909399; margin-top: 8px; }

/* 页面容器 */
.page-container { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-title { font-size: 18px; font-weight: 600; color: #303133; }
.filter-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* 状态标签颜色 */
.status-pending { color: #e6a23c; }
.status-submitted { color: #409eff; }
.status-paid { color: #67c23a; }
.status-confirmed { color: #67c23a; }
.status-draft { color: #909399; }
.status-verified { color: #67c23a; }
.status-unverified { color: #e6a23c; }
.status-open { color: #f56c6c; }
.status-resolved { color: #67c23a; }
.level-high { color: #f56c6c; font-weight: 600; }
.level-medium { color: #e6a23c; }
.level-low { color: #67c23a; }

/* 表格优化 */
.el-table { font-size: 13px; }
.el-table th { background: #fafafa !important; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; }
  .main-content { padding: 12px; }
  .filter-bar { flex-direction: column; }
}
