/* pages-batch5.css · 7.3/8.3/8.4/9.3/9.4 智能质检+审核+分发
   前缀：qcreport-* / batch-review-* / audit-* / dist-plan-* / dist-auth-*
   v1.6 累计 49/58 页面实装 */

.qcreport-v1, .batch-review-v1, .audit-v1, .dist-plan-v1, .dist-auth-v1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== 7.3 质检报告 ========== */
.qcreport-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.qcreport-kpi-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.qcreport-kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-green);
}
.qcreport-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qcreport-kpi-info { flex: 1; }
.qcreport-kpi-val { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.qcreport-kpi-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.qcreport-kpi-trend { font-size: 11px; color: var(--accent-green); margin-top: 4px; }

.qcreport-tabs {
  display: flex; gap: 8px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: fit-content;
}
.qcreport-tab {
  padding: 6px 16px;
  background: transparent;
  border-radius: 6px;
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.qcreport-tab.active { background: var(--primary); color: #fff; }

.qcreport-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.qcreport-list {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.qcreport-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qcreport-section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; }
.qcreport-section-meta { font-size: 11px; color: var(--text-tertiary); }
.qcreport-item {
  display: grid;
  grid-template-columns: 60px 1fr 100px 100px 90px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all .2s;
}
.qcreport-item:last-child { margin-bottom: 0; }
.qcreport-item:hover { border-color: var(--primary); background: var(--bg-page); }
.qcreport-item-score {
  text-align: center;
  font-size: 22px; font-weight: 700;
}
.qcreport-item-score.pass { color: var(--accent-green); }
.qcreport-item-score.warn { color: #f59e0b; }
.qcreport-item-score.fail { color: var(--accent-red); }
.qcreport-item-info { min-width: 0; }
.qcreport-item-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcreport-item-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }
.qcreport-item-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.qcreport-item-tag {
  padding: 1px 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 10px; color: var(--text-tertiary);
}
.qcreport-item-tag.issue {
  background: rgba(248,113,113,0.15);
  color: var(--accent-red);
  border-color: rgba(248,113,113,0.4);
}
.qcreport-item-status {
  text-align: center;
}
.qcreport-item-status-text { font-size: 12px; font-weight: 600; }
.qcreport-item-status-text.pass { color: var(--accent-green); }
.qcreport-item-status-text.warn { color: #f59e0b; }
.qcreport-item-status-text.fail { color: var(--accent-red); }
.qcreport-item-time { font-size: 11px; color: var(--text-tertiary); text-align: right; }
.qcreport-item-action {
  text-align: right;
}
.qcreport-item-btn {
  padding: 4px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 11px; color: var(--text-secondary);
  cursor: pointer;
}
.qcreport-item-btn:hover { border-color: var(--primary); color: var(--primary-light); }

.qcreport-side {
  display: flex; flex-direction: column; gap: 16px;
}
.qcreport-summary {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.qcreport-summary-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}
.qcreport-summary-stat:last-child { border-bottom: 0; }
.qcreport-summary-label { color: var(--text-tertiary); }
.qcreport-summary-val { font-weight: 600; color: var(--text-primary); }
.qcreport-summary-val.pass { color: var(--accent-green); }
.qcreport-summary-val.warn { color: #f59e0b; }
.qcreport-summary-val.fail { color: var(--accent-red); }
.qcreport-rules {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.qcreport-rule {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.qcreport-rule:last-child { border-bottom: 0; }
.qcreport-rule-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qcreport-rule-info { flex: 1; min-width: 0; }
.qcreport-rule-name { font-size: 12px; color: var(--text-primary); }
.qcreport-rule-meta { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.qcreport-rule-count { font-size: 11px; font-weight: 600; }
.qcreport-rule-count.pass { color: var(--accent-green); }
.qcreport-rule-count.fail { color: var(--accent-red); }

/* ========== 8.3 批量审核 ========== */
.batch-review-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.batch-review-kpi-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.batch-review-kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-purple);
}
.batch-review-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.batch-review-kpi-info { flex: 1; }
.batch-review-kpi-val { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.batch-review-kpi-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.batch-review-kpi-trend { font-size: 11px; color: var(--accent-green); margin-top: 4px; }

.batch-review-toolbar {
  display: flex; gap: 8px; align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.batch-review-toolbar-info { font-size: 12px; color: var(--text-secondary); }
.batch-review-toolbar-info b { color: var(--primary-light); font-size: 14px; }
.batch-review-toolbar-btn {
  padding: 6px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all .2s;
}
.batch-review-toolbar-btn:hover { border-color: var(--primary); }
.batch-review-toolbar-btn.primary { background: var(--gradient-primary); color: #fff; border: 0; }
.batch-review-toolbar-btn.success { background: rgba(52,211,153,0.15); color: var(--accent-green); border-color: rgba(52,211,153,0.4); }
.batch-review-toolbar-btn.danger { background: rgba(248,113,113,0.15); color: var(--accent-red); border-color: rgba(248,113,113,0.4); }

.batch-review-table {
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow-x: auto;
}
.batch-review-table table { width: 100%; border-collapse: collapse; }
.batch-review-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px; color: var(--text-tertiary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase; letter-spacing: .5px;
  background: var(--bg-page);
}
.batch-review-table td {
  padding: 14px 16px;
  font-size: 12px; color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}
.batch-review-table tr:hover td { background: var(--bg-page); }
.batch-review-table tr.selected td { background: rgba(34,211,238,0.06); }
.batch-review-checkbox {
  width: 16px; height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card);
}
.batch-review-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.batch-review-item-thumb {
  width: 50px; height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
}
.batch-review-item-info { display: flex; align-items: center; gap: 10px; }
.batch-review-item-name { font-size: 12px; color: var(--text-primary); font-weight: 500; }
.batch-review-item-meta { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.batch-review-table-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 10px;
}
.batch-review-table-action {
  padding: 4px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 11px; color: var(--text-secondary);
  cursor: pointer;
  margin-right: 4px;
}
.batch-review-table-action:hover { border-color: var(--primary); color: var(--primary-light); }

/* ========== 8.4 审核记录与追溯 ========== */
.audit-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.audit-kpi-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.audit-kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-cyan);
}
.audit-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.audit-kpi-info { flex: 1; }
.audit-kpi-val { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.audit-kpi-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.audit-kpi-trend { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

.audit-filters {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  flex-wrap: wrap;
}
.audit-filter {
  padding: 5px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.audit-filter.active { background: rgba(34,211,238,0.15); border-color: var(--primary); color: var(--primary-light); }
.audit-search {
  margin-left: auto;
  padding: 5px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px; color: var(--text-secondary);
  width: 220px;
}

.audit-timeline {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.audit-timeline::before {
  content: ""; position: absolute;
  left: 36px; top: 60px; bottom: 40px;
  width: 2px; background: var(--border-color);
}
.audit-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.audit-section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; }
.audit-section-meta { font-size: 11px; color: var(--text-tertiary); }
.audit-item {
  display: grid;
  grid-template-columns: 32px 100px 1fr 120px 100px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.audit-item:last-child { border-bottom: 0; }
.audit-item-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  z-index: 2;
  position: relative;
}
.audit-item-dot.create { background: rgba(34,211,238,0.15); color: var(--primary-light); border: 2px solid var(--primary); }
.audit-item-dot.review { background: rgba(245,158,11,0.15); color: #f59e0b; border: 2px solid #f59e0b; }
.audit-item-dot.approve { background: rgba(52,211,153,0.15); color: var(--accent-green); border: 2px solid var(--accent-green); }
.audit-item-dot.reject { background: rgba(248,113,113,0.15); color: var(--accent-red); border: 2px solid var(--accent-red); }
.audit-item-dot.publish { background: rgba(139,92,246,0.15); color: var(--accent-purple); border: 2px solid var(--accent-purple); }
.audit-item-time { font-size: 11px; color: var(--text-tertiary); font-family: monospace; }
.audit-item-content { min-width: 0; }
.audit-item-title { font-size: 13px; color: var(--text-primary); font-weight: 500; }
.audit-item-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }
.audit-item-actor { font-size: 12px; color: var(--text-secondary); text-align: center; }
.audit-item-status {
  text-align: right;
}
.audit-item-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}
.audit-item-status-tag.pass { background: rgba(52,211,153,0.15); color: var(--accent-green); }
.audit-item-status-tag.warn { background: rgba(245,158,11,0.15); color: #f59e0b; }
.audit-item-status-tag.fail { background: rgba(248,113,113,0.15); color: var(--accent-red); }

/* ========== 9.3 分发计划 ========== */
.dist-plan-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dist-plan-kpi-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.dist-plan-kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary);
}
.dist-plan-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dist-plan-kpi-info { flex: 1; }
.dist-plan-kpi-val { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.dist-plan-kpi-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.dist-plan-kpi-trend { font-size: 11px; color: var(--accent-green); margin-top: 4px; }

.dist-plan-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.dist-plan-month { font-size: 14px; font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 8px; }
.dist-plan-nav {
  width: 28px; height: 28px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}
.dist-plan-view {
  margin-left: auto;
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
.dist-plan-view-tab {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px; color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.dist-plan-view-tab.active { background: var(--primary); color: #fff; }

.dist-plan-calendar {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.dist-plan-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dist-plan-calendar-head {
  padding: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  text-transform: uppercase; letter-spacing: .5px;
}
.dist-plan-day {
  min-height: 80px;
  padding: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dist-plan-day:hover { border-color: var(--primary); }
.dist-plan-day.today { border-color: var(--primary); background: rgba(34,211,238,0.05); }
.dist-plan-day.empty { background: transparent; border: 0; cursor: default; }
.dist-plan-day-num { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.dist-plan-day.today .dist-plan-day-num { color: var(--primary-light); }
.dist-plan-day-event {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 9.4 投放与授权 ========== */
.dist-auth-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dist-auth-kpi-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.dist-auth-kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #f472b6;
}
.dist-auth-kpi-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dist-auth-kpi-info { flex: 1; }
.dist-auth-kpi-val { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.dist-auth-kpi-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.dist-auth-kpi-trend { font-size: 11px; color: var(--accent-green); margin-top: 4px; }

.dist-auth-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.dist-auth-campaigns {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.dist-auth-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dist-auth-section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; }
.dist-auth-section-meta { font-size: 11px; color: var(--text-tertiary); }
/* 9.4 投放与授权 - 新建投放按钮（页面核心动作，加强存在感） */
.dist-auth-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.28);
  transition: all 0.18s ease;
  letter-spacing: 0.2px;
}
.dist-auth-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
  background: linear-gradient(135deg, #9d6ff8 0%, #7174f3 100%);
}
.dist-auth-new-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.3);
}
.dist-auth-campaign {
  display: grid;
  grid-template-columns: 60px 1fr 140px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .2s;
}
.dist-auth-campaign:last-child { margin-bottom: 0; }
.dist-auth-campaign:hover { border-color: var(--primary); background: var(--bg-page); }
.dist-auth-campaign-thumb {
  width: 60px; height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.dist-auth-campaign-info { min-width: 0; }
.dist-auth-campaign-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.dist-auth-campaign-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }
.dist-auth-campaign-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.dist-auth-campaign-tag {
  padding: 1px 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 10px; color: var(--text-tertiary);
}
.dist-auth-campaign-stat {
  text-align: center;
}
.dist-auth-campaign-stat-val { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.dist-auth-campaign-stat-label { font-size: 10px; color: var(--text-tertiary); }
.dist-auth-campaign-stat-val.up { color: var(--accent-green); }

.dist-auth-side {
  display: flex; flex-direction: column; gap: 16px;
}
.dist-auth-channels {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.dist-auth-channel {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.dist-auth-channel:last-child { border-bottom: 0; }
.dist-auth-channel-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700; font-size: 12px;
}
.dist-auth-channel-info { flex: 1; min-width: 0; }
.dist-auth-channel-name { font-size: 12px; color: var(--text-primary); }
.dist-auth-channel-meta { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.dist-auth-channel-status {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dist-auth-channel-status.active { background: var(--accent-green); }
.dist-auth-channel-status.warning { background: #f59e0b; }
.dist-auth-channel-status.inactive { background: var(--text-tertiary); }
.dist-auth-license {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.dist-auth-license-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.dist-auth-license-item:last-child { border-bottom: 0; }
.dist-auth-license-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.dist-auth-license-name { font-size: 12px; color: var(--text-primary); font-weight: 500; }
.dist-auth-license-status {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.dist-auth-license-status.valid { background: rgba(52,211,153,0.15); color: var(--accent-green); }
.dist-auth-license-status.expiring { background: rgba(245,158,11,0.15); color: #f59e0b; }
.dist-auth-license-meta { font-size: 11px; color: var(--text-tertiary); }

@media (max-width: 1280px) {
  .qcreport-item { grid-template-columns: 50px 1fr 80px 80px 80px; }
  .audit-item { grid-template-columns: 28px 90px 1fr 100px 80px; gap: 10px; }
  .dist-plan-calendar-grid .dist-plan-day { min-height: 60px; }
}
@media (max-width: 900px) {
  .qcreport-kpi-row, .batch-review-kpi-row, .audit-kpi-row, .dist-plan-kpi-row, .dist-auth-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .qcreport-main, .dist-auth-main { grid-template-columns: 1fr; }
  .qcreport-item { grid-template-columns: 50px 1fr; gap: 10px; }
  .qcreport-item-tags, .qcreport-item-status, .qcreport-item-time, .qcreport-item-action { display: none; }
  .audit-item { grid-template-columns: 28px 1fr 100px; }
  .audit-item-time, .audit-item-actor { display: none; }
  .dist-plan-calendar-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== 11.1 组织与权限 · 添加用户弹窗 ========== */
.op-adduser-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  margin: -4px -4px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(34,211,238,0.12));
  border: 1px solid rgba(139,92,246,0.32);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.op-adduser-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 110px;
  background: radial-gradient(circle at right, rgba(34,211,238,0.18), transparent 70%);
  pointer-events: none;
}
.op-adduser-hero-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(139,92,246,0.4);
}
.op-adduser-hero-text { flex: 1; min-width: 0; }
.op-adduser-hero-title { font-size: 14px; font-weight: 600; color: #e8ecf5; margin-bottom: 3px; }
.op-adduser-hero-desc { font-size: 12px; color: #9aa3b8; line-height: 1.5; }
.op-adduser-hero-stat {
  text-align: right;
  padding-left: 14px;
  border-left: 1px solid rgba(139,92,246,0.25);
  flex-shrink: 0;
}
.op-adduser-hero-stat-num { font-size: 22px; font-weight: 700; color: #22d3ee; line-height: 1; }
.op-adduser-hero-stat-label { font-size: 10px; color: #9aa3b8; margin-top: 3px; }

.op-adduser-section {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(20, 26, 43, 0.5);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 10px;
}
.op-adduser-section:last-child { margin-bottom: 0; }
.op-adduser-section-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #c0c8d8;
  margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.op-adduser-section-head > svg { color: #8b5cf6; }
.op-adduser-section-required {
  margin-left: auto;
  font-size: 10px; color: #9aa3b8;
  font-weight: 500; text-transform: none; letter-spacing: 0;
  padding: 2px 8px;
  background: rgba(154,163,184,0.1);
  border-radius: 4px;
}

.op-adduser-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.op-adduser-field { min-width: 0; }
.op-adduser-label {
  display: block;
  font-size: 11px; font-weight: 500; color: #9aa3b8;
  margin-bottom: 6px;
}
.op-adduser-required { color: #f87171; margin-left: 2px; }
.op-adduser-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: #0f1424;
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 6px;
  padding: 0 10px;
  transition: border-color .2s;
}
.op-adduser-input-wrap:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.op-adduser-input-wrap > svg {
  color: #6b7388;
  flex-shrink: 0;
}
.op-adduser-input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0; outline: none;
  padding: 8px 8px 8px 8px;
  color: #e8ecf5;
  font-size: 13px;
  font-family: inherit;
}
.op-adduser-input::placeholder { color: #4b5468; }
.op-adduser-input:disabled { color: #4b5468; cursor: not-allowed; }
.op-adduser-input-wrap select.op-adduser-input { padding-right: 18px; appearance: none; cursor: pointer; }
.op-adduser-select-arrow {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: #6b7388; font-size: 10px;
  pointer-events: none;
}
.op-adduser-hint {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: #6b7388;
  margin-top: 4px;
}
.op-adduser-hint > svg { color: #22d3ee; flex-shrink: 0; }

/* 角色选择网格（3 列） */
.op-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.op-role-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: #0f1424;
  border: 1.5px solid rgba(139,92,246,0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.op-role-card:hover { border-color: rgba(139,92,246,0.5); }
.op-role-card.is-checked {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(99,102,241,0.08));
  box-shadow: 0 0 0 1px rgba(139,92,246,0.3) inset;
}
.op-role-card-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.op-role-card-text { flex: 1; min-width: 0; }
.op-role-card-label { font-size: 12px; font-weight: 600; color: #e8ecf5; }
.op-role-card-desc { font-size: 10px; color: #9aa3b8; margin-top: 2px; line-height: 1.4; }
.op-role-card-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #8b5cf6;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity .2s;
}
.op-role-card.is-checked .op-role-card-check { opacity: 1; }

/* 双因子认证 3 选 1（单列横排） */
.op-mfa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.op-mfa-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #0f1424;
  border: 1.5px solid rgba(139,92,246,0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.op-mfa-card:hover { border-color: rgba(139,92,246,0.5); }
.op-mfa-card.is-checked {
  border-color: rgba(52,211,153,0.6);
  background: rgba(52,211,153,0.06);
}
.op-mfa-card-icon { flex-shrink: 0; }
.op-mfa-card-text { flex: 1; min-width: 0; }
.op-mfa-card-label { font-size: 12px; font-weight: 600; color: #e8ecf5; }
.op-mfa-card-sub { font-size: 10px; color: #9aa3b8; margin-top: 2px; }
.op-mfa-recommend {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  background: rgba(52,211,153,0.2);
  color: #34d399;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  vertical-align: middle;
}
.op-mfa-card-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid #4b5468;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.op-mfa-card.is-checked .op-mfa-card-radio {
  border-color: #34d399;
}
.op-mfa-card-radio-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  opacity: 0;
  transition: opacity .2s;
}
.op-mfa-card.is-checked .op-mfa-card-radio-dot { opacity: 1; }

/* 激活邮件预览 */
.op-mail-preview {
  background: #0f1424;
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 8px;
  overflow: hidden;
}
.op-mail-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(139,92,246,0.08);
  border-bottom: 1px solid rgba(139,92,246,0.18);
}
.op-mail-preview-from { display: flex; align-items: center; gap: 8px; }
.op-mail-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.op-mail-preview-meta { line-height: 1.3; }
.op-mail-preview-from-name { font-size: 12px; font-weight: 600; color: #e8ecf5; }
.op-mail-preview-from-email { font-size: 10px; color: #9aa3b8; }
.op-mail-preview-to {
  font-size: 11px; color: #9aa3b8;
  padding: 3px 8px;
  background: rgba(34,211,238,0.1);
  border-radius: 4px;
}
.op-mail-preview-to > span { color: #22d3ee; font-weight: 500; }
.op-mail-preview-subject {
  padding: 10px 14px 4px;
  font-size: 13px; font-weight: 600; color: #e8ecf5;
}
.op-mail-preview-body {
  padding: 0 14px 12px;
  font-size: 11px; color: #c0c8d8; line-height: 1.6;
}
.op-mail-preview-body strong { color: #22d3ee; font-weight: 600; }

/* footer 左右分栏 */
.op-adduser-foot-left {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #9aa3b8;
}
.op-adduser-foot-left > svg { color: #22d3ee; flex-shrink: 0; }
.op-adduser-foot-right { display: flex; gap: 8px; margin-left: auto; }
.op-adduser-foot-right .btn-primary,
.op-adduser-foot-right .btn-secondary { display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 900px) {
  .op-adduser-row { grid-template-columns: 1fr; }
  .op-role-grid, .op-mfa-grid { grid-template-columns: 1fr; }
  .op-adduser-hero { flex-direction: column; align-items: flex-start; }
  .op-adduser-hero-stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(139,92,246,0.25); padding-top: 8px; }
}

/* =============================================================
   8.4 审核记录与追溯 - 操作详情 Modal 精细化（2026-08-26）
   之前：纯文本键值对，无任何视觉层次
   现在：渐变 Hero + 4 步操作链路 + 双列字段卡 + 合规审计 + 关联内容
   ============================================================= */
.audit-dm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero：渐变头 + 状态徽章 */
.audit-dm-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(34,211,238,0.06));
  border: 1px solid color-mix(in srgb, var(--audit-color, #22c55e) 35%, transparent);
  overflow: hidden;
}
.audit-dm-hero[style*="--audit-color: #f59e0b"] {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,191,36,0.06));
}
.audit-dm-hero[style*="--audit-color: #f87171"],
.audit-dm-hero[style*="--audit-color: #ef4444"] {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(248,113,113,0.06));
}
.audit-dm-hero[style*="--audit-color: #22d3ee"] {
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(34,197,94,0.06));
}
.audit-dm-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 120px;
  background: radial-gradient(ellipse at right top, var(--audit-color, #22c55e) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}
.audit-dm-hero-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--audit-color, #22c55e);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--audit-color, #22c55e) 30%, transparent);
  position: relative;
  z-index: 1;
}
.audit-dm-hero-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.audit-dm-hero-title {
  font-size: 15px;
  font-weight: 600;
  color: #e8ecf5;
  line-height: 1.3;
  margin-bottom: 6px;
}
.audit-dm-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.audit-dm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--audit-color, #22c55e) 18%, transparent);
  color: var(--audit-color, #22c55e);
  border: 1px solid color-mix(in srgb, var(--audit-color, #22c55e) 35%, transparent);
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.audit-dm-hero-sub {
  font-size: 12px;
  color: var(--text-tertiary, #9aa3b8);
  line-height: 1.3;
}

/* 4 步操作链路 */
.audit-dm-steps {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color, rgba(139, 92, 246, 0.18));
  border-radius: 10px;
  gap: 0;
}
.audit-dm-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.audit-dm-step-dot {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  background: rgba(255,255,255,0.04);
  color: var(--text-tertiary, #9aa3b8);
  border: 1.5px solid var(--border-color, rgba(139, 92, 246, 0.18));
  transition: all 0.2s;
}
.audit-dm-step-name {
  font-size: 12.5px;
  color: var(--text-tertiary, #9aa3b8);
  font-weight: 500;
  white-space: nowrap;
}
.audit-dm-step-line {
  flex: 1;
  height: 2px;
  margin: 0 8px;
  background: var(--border-color, rgba(139, 92, 246, 0.18));
  border-radius: 1px;
  min-width: 20px;
}
.audit-dm-step-line.done {
  background: linear-gradient(90deg, #22c55e, #22d3ee);
}
.audit-dm-step-done .audit-dm-step-dot {
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  color: #fff;
  border-color: transparent;
}
.audit-dm-step-done .audit-dm-step-name {
  color: var(--text-primary, #e8ecf5);
  font-weight: 500;
}
.audit-dm-step-active .audit-dm-step-dot {
  background: rgba(167,139,250,0.18);
  color: #c4b5fd;
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167,139,250,0.15);
}
.audit-dm-step-active .audit-dm-step-name {
  color: #c4b5fd;
  font-weight: 600;
}

/* 双列字段组 */
.audit-dm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.audit-dm-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color, rgba(139, 92, 246, 0.18));
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-dm-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary, #9aa3b8);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color, rgba(139, 92, 246, 0.12));
}
.audit-dm-card-title > svg { color: #a78bfa; }

.audit-dm-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audit-dm-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.audit-dm-row-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(167,139,250,0.10);
  color: #a78bfa;
  border-radius: 5px;
  margin-top: 1px;
}
.audit-dm-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.audit-dm-row-label {
  font-size: 10.5px;
  color: var(--text-tertiary, #9aa3b8);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.audit-dm-row-value {
  font-size: 12.5px;
  color: var(--text-primary, #e8ecf5);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-all;
}
.audit-dm-mono {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  color: #c4b5fd;
}

/* 宽卡（合规审计） */
.audit-dm-card-wide {
  grid-column: 1 / -1;
}
.audit-dm-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.audit-dm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}
.audit-dm-check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  margin-top: 1px;
}
.audit-dm-check.ok .audit-dm-check-icon {
  background: rgba(34,197,94,0.18);
  color: #22c55e;
}
.audit-dm-check.fail .audit-dm-check-icon {
  background: rgba(239,68,68,0.18);
  color: #f87171;
}
.audit-dm-check-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.audit-dm-check-name {
  font-size: 12.5px;
  color: var(--text-primary, #e8ecf5);
  font-weight: 500;
}
.audit-dm-check-detail {
  font-size: 11px;
  color: var(--text-tertiary, #9aa3b8);
  line-height: 1.4;
}

/* 关联内容预览 */
.audit-dm-related {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(167,139,250,0.06);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 10px;
  transition: all 0.2s;
}
.audit-dm-related:hover {
  background: rgba(167,139,250,0.10);
  border-color: rgba(167,139,250,0.4);
}
.audit-dm-related-thumb {
  flex-shrink: 0;
  width: 60px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #0a0f1a;
}
.audit-dm-related-body {
  flex: 1;
  min-width: 0;
}
.audit-dm-related-label {
  font-size: 10.5px;
  color: #a78bfa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.audit-dm-related-title {
  font-size: 13px;
  color: var(--text-primary, #e8ecf5);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-dm-related-meta {
  font-size: 11px;
  color: var(--text-tertiary, #9aa3b8);
  margin-top: 1px;
}
.audit-dm-related-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.audit-dm-related-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(167,139,250,0.4);
}

