/* ===== 全局 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #303133;
  font-size: 14px;
}
.hidden { display: none !important; }

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 40%, #3d8ec9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
}
.login-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.login-brand {
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}
.brand-logo {
  font-size: 64px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.login-brand h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 2px;
}
.login-brand p {
  font-size: 14px;
  opacity: 0.75;
  letter-spacing: 1px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.login-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid #f0f2f5;
}
.login-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #909399;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-weight: 500;
}
.login-tab.active {
  color: #2d6a9f;
  border-bottom-color: #2d6a9f;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: #606266;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: #2d6a9f;
  box-shadow: 0 0 0 3px rgba(45,106,159,0.1);
}
.login-error {
  color: #f56c6c;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}
.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #2d6a9f, #3d8ec9);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 4px;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,106,159,0.3);
}
.login-footer {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 24px;
}

/* ===== 顶部导航 ===== */
.top-nav {
  background: linear-gradient(135deg, #1e3a5f, #2d6a9f);
  color: #fff;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { font-size: 24px; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: 1px; }

.role-switcher {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
}
.role-tab {
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.role-tab:hover { color: #fff; }
.role-tab.active {
  background: #fff;
  color: #2d6a9f;
  font-weight: 600;
}

.nav-right { display: flex; align-items: center; gap: 20px; }
.subject-switch {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2px;
}
.subject-tab {
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.subject-tab.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 500;
}
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.user-name { font-size: 14px; }
.btn-logout {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.25); }

/* ===== 主内容区 ===== */
.main-area {
  padding: 20px 24px;
  min-height: calc(100vh - 60px);
}

/* ===== 统计卡片 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.stat-icon-box.blue { background: linear-gradient(135deg, #e8f4fd, #d1e9f9); }
.stat-icon-box.green { background: linear-gradient(135deg, #e8f8ee, #c8ecd4); }
.stat-icon-box.orange { background: linear-gradient(135deg, #fef3e2, #fde3b8); }
.stat-icon-box.red { background: linear-gradient(135deg, #fde8e8, #f8c8c8); }
.stat-icon-box.purple { background: linear-gradient(135deg, #f0ebff, #d9ccff); }
.stat-icon-box.teal { background: linear-gradient(135deg, #e0f7f5, #b0ece7); }

.stat-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-content p {
  font-size: 13px;
  color: #909399;
}
.stat-content .stat-trend {
  font-size: 12px;
  margin-top: 4px;
}
.stat-trend.up { color: #67c23a; }
.stat-trend.down { color: #f56c6c; }

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
}
.card-body { padding: 20px; }

/* ===== 双栏布局 ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th {
  background: #fafbfc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #606266;
  border-bottom: 1px solid #f0f2f5;
  white-space: nowrap;
  font-size: 13px;
}
table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f7fa;
  color: #303133;
}
table.data-table tbody tr:hover {
  background: #f8faff;
}

/* ===== 状态标签 ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.badge-success { background: #e8f8ee; color: #52c41a; }
.badge-warning { background: #fef3e2; color: #fa8c16; }
.badge-danger { background: #fde8e8; color: #f5222d; }
.badge-info { background: #e8f4fd; color: #1890ff; }
.badge-default { background: #f0f2f5; color: #8c8c8c; }
.badge-primary { background: #e8f4fd; color: #2d6a9f; }
.badge-purple { background: #f0ebff; color: #722ed1; }

/* ===== 按钮 ===== */
.btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #595959;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn:hover { color: #2d6a9f; border-color: #2d6a9f; }
.btn-primary {
  background: linear-gradient(135deg, #2d6a9f, #3d8ec9);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  opacity: 0.9;
  color: #fff;
}
.btn-success { background: #52c41a; color: #fff; border-color: #52c41a; }
.btn-danger { background: #f5222d; color: #fff; border-color: #f5222d; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-link {
  background: none;
  border: none;
  color: #2d6a9f;
  padding: 0 6px;
  cursor: pointer;
  font-size: 13px;
}
.btn-link:hover { text-decoration: underline; }

/* ===== 星星 ===== */
.stars { color: #faad14; letter-spacing: 2px; font-size: 14px; }

/* ===== 进度条 ===== */
.progress-bar {
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d6a9f, #3d8ec9);
  border-radius: 4px;
  transition: width 0.5s;
}
.progress-fill.green { background: linear-gradient(90deg, #52c41a, #73d13d); }
.progress-fill.orange { background: linear-gradient(90deg, #fa8c16, #ffa940); }
.progress-fill.red { background: linear-gradient(90deg, #f5222d, #ff4d4f); }
.progress-fill.purple { background: linear-gradient(90deg, #722ed1, #9254de); }

/* ===== 分项卡片（环境/设施/运营/服务 四色） ===== */
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border-top: 4px solid;
  transition: transform 0.2s;
  cursor: pointer;
}
.category-card:hover { transform: translateY(-2px); }
.category-card.blue { border-top-color: #1890ff; }
.category-card.green { border-top-color: #52c41a; }
.category-card.orange { border-top-color: #fa8c16; }
.category-card.purple { border-top-color: #722ed1; }

.category-card .cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.category-card .cat-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
}
.category-card .cat-score {
  font-size: 24px;
  font-weight: 700;
}
.category-card.blue .cat-score { color: #1890ff; }
.category-card.green .cat-score { color: #52c41a; }
.category-card.orange .cat-score { color: #fa8c16; }
.category-card.purple .cat-score { color: #722ed1; }

.category-card .cat-total {
  font-size: 12px;
  color: #909399;
  margin-top: 2px;
}
.category-card .cat-progress {
  margin-top: 12px;
}
.category-card .cat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
  margin-top: 8px;
}

/* ===== Step Bar ===== */
.step-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}
.step-bar::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #f0f2f5;
  z-index: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #909399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #f0f2f5;
}
.step-item.active .step-num {
  background: #2d6a9f;
  color: #fff;
  box-shadow: 0 0 0 2px #2d6a9f;
}
.step-item.done .step-num {
  background: #52c41a;
  color: #fff;
  box-shadow: 0 0 0 2px #52c41a;
}
.step-label {
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
}
.step-item.active .step-label { color: #2d6a9f; font-weight: 500; }
.step-item.done .step-label { color: #52c41a; }

/* ===== 评分项 ===== */
.score-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid #d9d9d9;
  transition: all 0.2s;
}
.score-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.score-item.nv { border-left-color: #f5222d; background: #fff5f5; }
.score-item.must { border-left-color: #faad14; background: #fffbe6; }
.score-item.scored { border-left-color: #52c41a; }

.score-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.score-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e3a5f;
  flex: 1;
}
.score-item-code {
  font-size: 12px;
  color: #909399;
  margin-right: 12px;
  font-family: monospace;
}
.score-item-tags { display: flex; gap: 6px; margin-left: 12px; }
.score-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}
.score-tag.nv { background: #f5222d; color: #fff; }
.score-tag.must { background: #faad14; color: #fff; }

.score-item-desc {
  font-size: 12px;
  color: #606266;
  margin-bottom: 10px;
  line-height: 1.6;
}
.score-item-method {
  font-size: 12px;
  color: #909399;
  margin-bottom: 10px;
}
.score-item-method::before { content: '📋 检查方式：'; }

.score-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}
.score-input:focus {
  border-color: #2d6a9f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(45,106,159,0.1);
}
.score-max { font-size: 12px; color: #909399; }
.score-note {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
}

/* ===== 双门槛结果 ===== */
.result-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f6ffed, #d9f7be);
  border-radius: 12px;
  margin-bottom: 20px;
}
.result-header.fail {
  background: linear-gradient(135deg, #fff1f0, #ffccc7);
}
.result-icon { font-size: 48px; margin-bottom: 12px; }
.result-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 8px;
}
.result-score-big {
  font-size: 48px;
  font-weight: 700;
  color: #52c41a;
  margin: 12px 0;
}
.result-header.fail .result-score-big { color: #f5222d; }
.result-sub { font-size: 14px; color: #606266; }

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.threshold-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 2px solid #f0f2f5;
}
.threshold-item.pass { border-color: #52c41a; background: #f6ffed; }
.threshold-item.fail { border-color: #f5222d; background: #fff1f0; }
.threshold-item .th-name {
  font-size: 13px;
  color: #606266;
  margin-bottom: 8px;
}
.threshold-item .th-score {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.threshold-item.pass .th-score { color: #52c41a; }
.threshold-item.fail .th-score { color: #f5222d; }
.threshold-item .th-target {
  font-size: 12px;
  color: #909399;
}

/* ===== 问题项清单 ===== */
.issue-list { display: flex; flex-direction: column; gap: 10px; }
.issue-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid;
}
.issue-item.high { border-left-color: #f5222d; }
.issue-item.medium { border-left-color: #faad14; }
.issue-item.low { border-left-color: #faad14; }

.issue-severity {
  width: 50px;
  flex-shrink: 0;
  text-align: center;
}
.issue-severity .sev-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.high .sev-badge { background: #f5222d; }
.medium .sev-badge { background: #faad14; }
.low .sev-badge { background: #faad14; }

.issue-content { flex: 1; }
.issue-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.issue-desc {
  font-size: 12px;
  color: #606266;
  margin-bottom: 6px;
}
.issue-meta {
  font-size: 12px;
  color: #909399;
  display: flex;
  gap: 16px;
}

/* ===== 任务卡片 ===== */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.task-card:hover {
  border-color: #2d6a9f;
  box-shadow: 0 4px 12px rgba(45,106,159,0.1);
}
.task-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 6px;
}
.task-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #909399;
}
.task-meta span::before { margin-right: 4px; }
.task-action .btn { padding: 8px 20px; }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #595959;
}
.pagination button.active {
  background: #2d6a9f;
  color: #fff;
  border-color: #2d6a9f;
}
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination span { font-size: 13px; color: #8c8c8c; margin: 0 8px; }

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.search-bar input, .search-bar select {
  padding: 7px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.search-bar input:focus, .search-bar select:focus { border-color: #2d6a9f; }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #909399;
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }

/* ===== 加载 ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: #909399;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  animation: slideDown 0.3s;
}
.toast.success { background: #52c41a; }
.toast.error { background: #f5222d; }
.toast.info { background: #1890ff; }
@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== 侧边栏式导航（管理员用） ===== */
.admin-layout {
  display: flex;
  gap: 20px;
}
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 12px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: #595959;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  background: #f5faff;
  color: #2d6a9f;
}
.admin-nav-item.active {
  background: #e8f4fd;
  color: #2d6a9f;
  font-weight: 600;
  border-left-color: #2d6a9f;
}
.admin-nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-content { flex: 1; min-width: 0; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .threshold-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: 1fr; }
  .threshold-grid { grid-template-columns: 1fr; }
  .role-switcher { display: none; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; position: static; }
}

/* ===== CSS运行时补丁（从app.js内嵌样式提取） ===== */
/* 修复表格联系人列掉行 */
.data-table td { vertical-align: middle; }
.data-table td br { display: none; }
.data-table td span[style*="color:#909399"] { 
  display: block; 
  margin-top: 2px; 
  font-size: 12px; 
}
    
/* 侧边栏优化 */
.admin-sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  min-height: calc(100vh - 60px);
  padding: 16px 0;
}
.sidebar-title {
  padding: 0 16px 12px;
  font-size: 13px;
  color: #909399;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #606266;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  background: #f5f7fa;
  color: #1e3a5f;
}
.admin-nav-item.active {
  background: #f0f5ff;
  color: #2d6a9f;
  font-weight: 600;
  border-left-color: #2d6a9f;
}
.admin-nav-icon { font-size: 16px; }
    
/* 主布局 */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.admin-content {
  flex: 1;
  padding: 20px;
  background: #f5f7fa;
  overflow-x: auto;
}
.page-title {
  font-size: 20px;
  color: #1e3a5f;
  margin-bottom: 16px;
  font-weight: 600;
}
    
/* 卡片 */
.card {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.card-title {
  font-weight: 600;
  color: #1e3a5f;
  font-size: 15px;
}
.card-body { padding: 16px 20px; }
    
/* 统计卡片行 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stat-icon-box.blue { background: #e6f7ff; }
.stat-icon-box.green { background: #f6ffed; }
.stat-icon-box.orange { background: #fff7e6; }
.stat-icon-box.purple { background: #f9f0ff; }
.stat-icon-box.red { background: #fff1f0; }
.stat-icon-box.teal { background: #e6fffb; }
.stat-icon-box.gray { background: #f5f7fa; }
.stat-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 4px 0;
}
.stat-content p {
  font-size: 13px;
  color: #909399;
  margin: 0;
}
.stat-trend { font-size: 12px; margin-top: 4px; }
.stat-trend.up { color: #52c41a; }
    
/* 两列布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
    
/* 按钮 */
.btn {
  padding: 6px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.btn:hover { border-color: #2d6a9f; color: #2d6a9f; }
.btn-primary {
  background: #2d6a9f;
  border-color: #2d6a9f;
  color: #fff;
}
.btn-primary:hover { background: #1e5080; border-color: #1e5080; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-xs { padding: 2px 8px; font-size: 12px; }
.btn-link {
  background: none;
  border: none;
  color: #2d6a9f;
  cursor: pointer;
  padding: 0 4px;
  font-size: 13px;
}
.btn-link:hover { text-decoration: underline; }
    
/* Badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.badge-primary { background: #e6f7ff; color: #1890ff; }
.badge-success { background: #f6ffed; color: #52c41a; }
.badge-warning { background: #fffbe6; color: #faad14; }
.badge-danger { background: #fff1f0; color: #f5222d; }
.badge-default { background: #f5f7fa; color: #909399; }
.badge-info { background: #e6f7ff; color: #1890ff; }
.badge-purple { background: #f9f0ff; color: #722ed1; }
.badge-orange { background: #fff7e6; color: #fa8c16; }
    
/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.search-bar input, .search-bar select {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
}
    
/* 表格 */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: #fafafa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #606266;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #303133;
}
.data-table tbody tr:hover { background: #fafafa; }
    
/* 任务卡片 */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.task-card:hover {
  border-color: #2d6a9f;
  box-shadow: 0 2px 8px rgba(45,106,159,0.1);
}
.task-info { flex: 1; }
.task-info h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #1e3a5f;
}
.task-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #909399;
  flex-wrap: wrap;
}
.task-action { margin-left: 16px; }
    
/* 进度条 */
.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d6a9f, #3d8ec9);
  border-radius: 4px;
  transition: width 0.3s;
}
.progress-fill.green { background: linear-gradient(90deg, #52c41a, #73d13d); }
.progress-fill.orange { background: linear-gradient(90deg, #fa8c16, #ffa940); }
.progress-fill.purple { background: linear-gradient(90deg, #722ed1, #9254de); }
.progress-fill.red { background: linear-gradient(90deg, #f5222d, #ff4d4f); }
.progress-fill.blue { background: linear-gradient(90deg, #2d6a9f, #3d8ec9); }
    
/* 步骤条 */
.step-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e8e8e8;
}
.step-item.done:not(:last-child)::after { background: #52c41a; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #909399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.step-item.done .step-num { background: #52c41a; color: #fff; }
.step-item.active .step-num { background: #2d6a9f; color: #fff; }
.step-label {
  margin-top: 8px;
  font-size: 13px;
  color: #909399;
}
.step-item.active .step-label { color: #2d6a9f; font-weight: 600; }
    
/* 分类卡片 */
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.category-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border-top: 3px solid #2d6a9f;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.category-card.green { border-top-color: #52c41a; }
.category-card.orange { border-top-color: #fa8c16; }
.category-card.purple { border-top-color: #722ed1; }
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.cat-name { font-size: 14px; font-weight: 600; color: #1e3a5f; }
.cat-score { font-size: 20px; font-weight: 700; color: #2d6a9f; }
.cat-total { font-size: 12px; color: #909399; margin-bottom: 8px; }
.cat-progress { margin-bottom: 8px; }
.cat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
}
    
/* 评分项 */
.score-item {
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 10px;
}
.score-item.nv { border-left: 3px solid #f5222d; }
.score-item.scored { background: #f6ffed; border-color: #b7eb8f; }
.score-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.score-item-code {
  font-family: monospace;
  font-size: 12px;
  color: #909399;
  margin-right: 8px;
}
.score-item-title { font-weight: 600; color: #1e3a5f; }
.score-item-tags { display: flex; gap: 4px; }
.score-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
}
.score-tag.nv { background: #fff1f0; color: #f5222d; }
.score-tag.req { background: #fffbe6; color: #faad14; }
.score-item-desc { font-size: 13px; color: #606266; margin-bottom: 4px; line-height: 1.5; }
.score-item-method { font-size: 12px; color: #909399; margin-bottom: 10px; }
.score-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.score-input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}
.score-select {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
}
.score-max { font-size: 13px; color: #909399; }
.score-note {
  flex: 1;
  min-width: 200px;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
}
    
/* 结果页 */
.result-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f6ffed, #d9f7be);
  border-radius: 12px;
  margin-bottom: 20px;
}
.result-header.fail {
  background: linear-gradient(135deg, #fff7e6, #ffe7ba);
}
.result-icon { font-size: 48px; margin-bottom: 12px; }
.result-title { font-size: 24px; font-weight: 700; color: #1e3a5f; margin-bottom: 8px; }
.result-score-big {
  font-size: 48px;
  font-weight: 700;
  color: #2d6a9f;
  margin-bottom: 8px;
}
.result-sub { font-size: 14px; color: #606266; }
    
.threshold-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.threshold-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 2px solid #52c41a;
}
.threshold-item.fail { border-color: #f5222d; }
.th-name { font-size: 13px; color: #909399; margin-bottom: 8px; }
.th-score { font-size: 24px; font-weight: 700; color: #1e3a5f; margin-bottom: 4px; }
.th-target { font-size: 12px; color: #909399; }
    
/* 问题项 */
.issue-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  align-items: flex-start;
}
.issue-item.high { border-left: 4px solid #f5222d; }
.issue-item.medium { border-left: 4px solid #faad14; }
.issue-item.low { border-left: 4px solid #52c41a; }
.issue-severity { flex-shrink: 0; }
.issue-content { flex: 1; min-width: 0; }
.issue-title { font-weight: 600; color: #1e3a5f; margin-bottom: 4px; }
.issue-desc { font-size: 13px; color: #606266; line-height: 1.5; margin-bottom: 6px; }
.issue-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #909399;
  flex-wrap: wrap;
}
    
/* 星星 */
.star-text { color: #faad14; letter-spacing: 2px; }
    
/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: #606266;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d6a9f;
}
    
/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.modal-title { font-weight: 600; font-size: 16px; color: #1e3a5f; }
.modal-close {
  font-size: 20px;
  color: #909399;
  cursor: pointer;
  line-height: 1;
}
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
}
    
/* Toast */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-success { background: #52c41a; }
.toast-error { background: #f5222d; }
.toast-warning { background: #faad14; }
.toast-info { background: rgba(0,0,0,0.8); }
    
/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #909399;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
    
/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: #909399;
}
    
/* 响应式 */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .threshold-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: 1fr; }
  .threshold-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 60px; }
  .admin-nav-item { justify-content: center; }
  .admin-nav-item span:last-child { display: none; }
  .sidebar-title { display: none; }
}

