:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.hidden { display: none !important; }

/* 登录页 */
.login-card {
  max-width: 400px;
  margin: 100px auto;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.login-header {
  background: var(--primary);
  color: white;
  padding: 32px;
  text-align: center;
}

.login-header h1 { font-size: 24px; margin-bottom: 8px; }
.login-header h2 { font-size: 16px; font-weight: normal; opacity: 0.9; }

.login-body {
  padding: 32px;
  text-align: center;
}

.login-hint {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 12px;
}

/* 顶部导航 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  background: var(--primary);
  color: white;
}

.nav-title { font-size: 18px; font-weight: 600; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name { font-weight: 500; }
.user-role {
  padding: 2px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 12px;
}

/* 布局 */
.main-container {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 200px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  padding: 16px 0;
}

.nav-menu { list-style: none; }
.nav-menu li a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}
.nav-menu li a:hover { background: var(--bg); }
.nav-menu li.active a {
  background: var(--primary);
  color: white;
}

.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* 卡片 */
.card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
}

.card-body { padding: 20px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #d1d5db; }

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-ghost { background: transparent; color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-sm { padding: 4px 12px; font-size: 12px; }

/* 输入框 */
input, textarea, select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

input[type="number"] { width: 100px; }

/* 进度步骤 */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step.completed .step-icon { background: var(--success); color: white; }
.step.active .step-icon { background: var(--primary); color: white; }

.step-label { font-size: 12px; color: var(--text-muted); }
.step.completed .step-label, .step.active .step-label { color: var(--text); }

.step-arrow { color: var(--border); font-size: 20px; }

/* 状态网格 */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.status-item {
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.status-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.status-value { font-size: 20px; font-weight: 600; color: var(--primary); }

/* 评估表单 */
.eval-section { margin-bottom: 24px; }
.eval-section h4 { margin-bottom: 12px; color: var(--text); }

.eval-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eval-item label { min-width: 200px; }

.score-summary {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 16px;
}

.eval-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* 结果项 */
.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.result-label { color: var(--text-muted); }
.result-value { font-weight: 600; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show { opacity: 1; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
