/* 瞬艺绘管理后台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Source Han Sans CN', sans-serif; background: #f0f4f8; color: #1a3a5c; }
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: linear-gradient(180deg, #3390ff, #1a6fc9); color: #fff; padding: 24px 0; flex-shrink: 0; }
.logo { font-size: 22px; font-weight: 700; text-align: center; padding-bottom: 32px; }
.sidebar a { display: block; padding: 14px 24px; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 15px; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.15); color: #fff; }
.main { flex: 1; padding: 32px; overflow: auto; }
h2 { margin-bottom: 24px; color: #0061c1; }
h3 { margin: 16px 0 12px; font-size: 16px; }
.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { background: #fff; border-radius: 12px; padding: 24px 32px; min-width: 140px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card .num { display: block; font-size: 32px; font-weight: 700; color: #3390ff; }
.stat-card .label { font-size: 14px; color: #6a8aaa; }
.stat-card.warn .num { color: #bc5050; }
.data-table { width: 100%; background: #fff; border-radius: 12px; border-collapse: collapse; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e8f0f8; font-size: 14px; }
.data-table th { background: #f8fbff; color: #0061c1; font-weight: 600; }
.form-card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.form-card label { display: block; margin: 12px 0 6px; font-size: 14px; color: #5a7a9a; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 10px 14px; border: 1px solid #d0d8e0; border-radius: 8px; font-size: 14px; }
.form-card input[type="file"] { padding: 8px; background: #f8fafc; }
.form-hint { font-size: 12px; color: #8c8c8c; margin: 6px 0 0; word-break: break-all; }
.btn-primary { background: linear-gradient(90deg, #3390ff, #4ecdc4); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; margin-top: 16px; }
.btn-secondary { background: #e8f4fc; color: #3390ff; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-sm { background: #e8f4fc; color: #3390ff; border: none; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.btn-danger-sm { background: #fde8e8; color: #bc5050; border: none; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.alert { background: #d4f0e8; color: #00a05b; padding: 12px 20px; border-radius: 8px; margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #a8dff5, #d4f0e8); }
.login-box { background: #fff; padding: 48px; border-radius: 16px; width: 360px; box-shadow: 0 8px 32px rgba(51,144,255,0.15); }
.login-box h1 { text-align: center; color: #3390ff; margin-bottom: 32px; font-size: 22px; }
.login-box label { display: block; margin: 12px 0 6px; font-size: 14px; }
.login-box input { width: 100%; padding: 12px; border: 1px solid #d0d8e0; border-radius: 8px; }
.login-box button { width: 100%; margin-top: 24px; padding: 12px; background: #3390ff; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; }
.error { color: #bc5050; text-align: center; margin-bottom: 12px; }
.tiny-input { width: 60px; padding: 4px; font-size: 12px; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; }
.user-profile-card { background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.filter-bar { margin-bottom: 20px; }
.filter-bar select { padding: 8px 16px; border-radius: 8px; border: 1px solid #d0d8e0; }
.hint { font-size: 13px; color: #6a8aaa; line-height: 1.6; margin-top: 12px; }
.agent-qrcode-cell { min-width: 120px; text-align: center; vertical-align: middle; }
.agent-qrcode-thumb {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
  border-radius: 8px;
  border: 1px solid rgba(51, 144, 255, 0.2);
  background: #fff;
}
.agent-qrcode-actions { display: flex; gap: 8px; justify-content: center; font-size: 12px; }
.agent-qrcode-actions a { color: #3390ff; text-decoration: none; }
.agent-qrcode-preview { text-align: center; margin: 20px 0; }
.agent-qrcode-large {
  width: 240px;
  height: 240px;
  border-radius: 12px;
  border: 1px solid rgba(51, 144, 255, 0.25);
  background: #fff;
}
.agent-qrcode-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.text-muted { color: #8aa0b8; }
.agent-name { text-align: center; font-size: 13px; color: rgba(255,255,255,0.8); padding: 0 16px 20px; }
.code-block { background: #f0f4f8; padding: 16px; border-radius: 8px; font-size: 14px; word-break: break-all; }
.score-detail-cell { min-width: 720px; vertical-align: top; }
.score-detail-layout { font-size: 13px; line-height: 1.5; }
.score-detail-top-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.score-detail-top-table td { vertical-align: top; border: none; padding: 0; background: transparent; }
.score-detail-main { width: auto; padding-right: 16px; }
.score-detail-image-cell { width: 240px; padding-left: 8px; }
.score-detail-bottom { margin-top: 12px; }
.score-detail-image-wrap { width: 240px; text-align: center; }
.score-detail-image-wrap > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #dce8f4;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(51, 144, 255, 0.08);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.score-detail-image-wrap > a:hover {
  border-color: #3390ff;
  box-shadow: 0 4px 14px rgba(51, 144, 255, 0.16);
}
.score-detail-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.score-detail-image-caption {
  margin-top: 8px;
  font-size: 12px;
  color: #6a8aaa;
  word-break: break-all;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.score-detail-image-empty {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  border-radius: 10px;
  color: #8c8c8c;
  font-size: 12px;
  border: 1px dashed #c8d8e8;
  margin: 0 auto;
  box-sizing: border-box;
}
.score-detail-tag { margin-bottom: 10px; color: #0061c1; }
.score-detail-section-title { margin: 14px 0 8px; font-weight: 600; font-size: 13px; }
.score-detail-keep { color: #00a05b; }
.score-detail-improve { color: #bc5050; }
.score-detail-table { width: 100%; border-collapse: collapse; margin-bottom: 4px; background: #f8fbff; border-radius: 8px; overflow: hidden; }
.score-detail-table th, .score-detail-table td { padding: 8px 10px; border: 1px solid #e8f0f8; text-align: left; font-size: 12px; vertical-align: top; }
.score-detail-table th { background: #eef5fc; color: #0061c1; font-weight: 600; white-space: nowrap; }
.score-detail-notes { max-width: 360px; word-break: break-word; }
.score-detail-empty { color: #8c8c8c; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h2 { margin-bottom: 0; }
.page-head-btn { display: inline-block; margin-top: 0; text-decoration: none; text-align: center; line-height: 1.2; padding: 10px 20px; }
.btn-secondary-link { display: inline-block; margin-left: 12px; color: #3390ff; text-decoration: none; line-height: 42px; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.knowledge-edit-form { max-width: 920px; }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.editor-btn { border: 1px solid #d0d8e0; background: #f8fbff; color: #1a5a8a; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.editor-btn:hover { border-color: #3390ff; color: #3390ff; }
.rich-editor { min-height: 320px; padding: 16px; border: 1px solid #d0d8e0; border-radius: 8px; background: #fff; line-height: 1.7; font-size: 14px; color: #1a3a5c; overflow-y: auto; }
.rich-editor:focus { outline: none; border-color: #3390ff; box-shadow: 0 0 0 2px rgba(51, 144, 255, 0.12); }
.rich-editor img,
.rich-editor .editor-image {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}
.rich-editor p { margin: 0 0 10px; }
.editor-paste-tip {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(51, 144, 255, 0.1);
  color: #3390ff;
  font-size: 13px;
}

.agent-register-box { width: 400px; max-width: calc(100vw - 32px); }
.register-tip { text-align: center; font-size: 13px; color: #6a8aaa; margin: -16px 0 20px; line-height: 1.6; }
.success { color: #00a05b; text-align: center; margin-bottom: 12px; line-height: 1.6; }
.login-links { text-align: center; margin-top: 16px; font-size: 13px; }
.login-links a { color: #3390ff; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.link-divider { margin: 0 8px; color: #b8d9f5; }
.audit-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.audit-0 { background: #fff3e0; color: #e65100; }
.audit-1 { background: #d4f0e8; color: #00a05b; }
.audit-2 { background: #fde8e8; color: #bc5050; }
.row-pending { background: #fffbf5; }
.btn-approve { background: #d4f0e8; color: #00a05b; }
.btn-reject { background: #fde8e8; color: #bc5050; }
.agent-actions form { margin-right: 4px; }
.text-muted { color: #8c8c8c; font-size: 12px; }
