/* ═══════════════════════════════════════════════
   组件库 — 与 _ui-test2.html 对齐 (2026-04-10)
   覆盖旧版，统一使用 Design Tokens
═══════════════════════════════════════════════ */

:root {
  /* Status */
  --success-50:  #ecfdf3;
  --success-500: #12b76a;
  --success-600: #039855;
  --warning-50:  #fffaeb;
  --warning-400: #fdb022;
  --warning-700: #b54708;
  --error-50:    #fef3f2;
  --error-500:   #f04438;
  --error-600:   #d92d20;

  /* 兼容旧变量名 */
  --component-primary:       var(--brand-500, #1677ff);
  --component-primary-hover: var(--brand-600, #0958d9);
  --component-success:       var(--success-600);
  --component-success-hover: #15803d;
  --component-warning:       var(--warning-700);
  --component-warning-soft:  var(--warning-50);
  --component-danger:        var(--error-600);
  --component-danger-hover:  #b91c1c;
  --component-danger-soft:   var(--error-50);
  --component-text:  var(--gray-700, #344054);
  --component-muted: var(--gray-500, #667085);
  --component-bg:    var(--gray-50, #f9fafb);
  --component-border:var(--gray-200, #e4e7ec);
  --component-shadow: 0 1px 2px rgba(16,24,40,0.05);
}

/* ═══════════════════════════════════════════════
   按钮
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm, 8px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(16,24,40,0.05));
  transition:
    background var(--dur-fast, 150ms) ease,
    border-color var(--dur-fast, 150ms) ease,
    color var(--dur-fast, 150ms) ease,
    box-shadow var(--dur-fast, 150ms) ease,
    transform var(--dur-fast, 150ms) ease;
}

.btn:active { transform: scale(0.97); }

.btn:disabled, .btn.disabled {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-primary {
  background: var(--brand-500, #1677ff);
  border-color: var(--brand-500, #1677ff);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-600, #0958d9);
  border-color: var(--brand-600, #0958d9);
}

.btn-default {
  background: var(--bg-panel, #fff);
  color: var(--gray-700, #344054);
  border-color: var(--gray-200, #e4e7ec);
}
.btn-default:hover { background: var(--gray-100, #f2f4f7); }

body.dark .btn-default {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.10);
}
body.dark .btn-default:hover { background: rgba(255,255,255,0.10); }

.btn-success {
  background: var(--success-600);
  border-color: var(--success-600);
  color: #fff;
}

.btn-danger {
  background: var(--error-600);
  border-color: var(--error-600);
  color: #fff;
  box-shadow: 0 8px 16px rgba(220,38,38,0.15);
}
.btn-danger:hover {
  background: #b91c1c; border-color: #b91c1c;
}

/* ═══════════════════════════════════════════════
   卡片
═══════════════════════════════════════════════ */
.card {
  background: var(--bg-panel, #fff);
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  transition:
    background var(--dur-slow, 300ms) ease,
    border-color var(--dur-slow, 300ms) ease,
    box-shadow var(--dur-norm, 200ms) ease,
    transform var(--dur-norm, 200ms) ease;
}
.card:hover {
  box-shadow: var(--shadow-lg, 0 12px 16px -4px rgba(16,24,40,0.08));
  transform: translateY(-1px);
}

body.dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100, #f2f4f7);
  transition: border-color var(--dur-slow, 300ms);
}
body.dark .card-head { border-color: rgba(255,255,255,0.06); }

.card-title {
  font-size: 16px; font-weight: 600;
  color: var(--gray-800, #1d2939);
  transition: color var(--dur-slow, 300ms);
}
body.dark .card-title { color: rgba(255,255,255,0.92); }

.card-subtitle { font-size: 12px; color: var(--gray-400, #98a2b3); margin-top: 2px; }
body.dark .card-subtitle { color: rgba(255,255,255,0.40); }

.card-body { padding: 14px 18px; }

/* 兼容旧 .card-header 命名 */
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--gray-100, #f2f4f7);
  color: var(--gray-800, #1d2939);
  font-size: 15px; font-weight: 600;
}
body.dark .card-header { border-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92); }

/* ═══════════════════════════════════════════════
   数据表格
═══════════════════════════════════════════════ */
.table-card {
  background: var(--bg-panel, #fff);
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  transition: background var(--dur-slow, 300ms), border-color var(--dur-slow, 300ms);
}
body.dark .table-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.data-table-wrap {
  width: 100%; overflow-x: auto;
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-md, 12px);
  background: var(--bg-panel, #fff);
}
body.dark .data-table-wrap { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }

.data-table { width: 100%; border-collapse: collapse; }

.data-table thead th {
  padding: 12px 20px; text-align: left;
  font-size: 12px; font-weight: 700;
  color: var(--gray-400, #98a2b3);
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--gray-50, #f9fafb);
  border-bottom: 1px solid var(--gray-100, #f2f4f7);
  transition: background var(--dur-slow, 300ms), border-color var(--dur-slow, 300ms), color var(--dur-slow, 300ms);
}
body.dark .data-table thead th {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
}

.data-table tbody td {
  padding: 14px 20px; font-size: 13px;
  color: var(--gray-700, #344054);
  border-bottom: 1px solid var(--gray-100, #f2f4f7);
  transition: background var(--dur-fast, 150ms), color var(--dur-slow, 300ms), border-color var(--dur-slow, 300ms);
}
body.dark .data-table tbody td {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.06);
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--dur-fast, 150ms) ease; cursor: pointer; }
.data-table tbody tr:hover td { background: rgba(59,130,246,0.04); }
body.dark .data-table tbody tr:hover td { background: rgba(255,255,255,0.03); }

/* ═══════════════════════════════════════════════
   状态徽章 Badge
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: var(--r-full, 9999px);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-success { background: var(--success-50); color: var(--success-600); }
.badge-warning { background: var(--warning-50); color: var(--warning-700); }
.badge-error   { background: var(--error-50);   color: var(--error-600); }

body.dark .badge-success { background: rgba(18,183,106,0.15); color: var(--success-500); }
body.dark .badge-warning { background: rgba(253,176,34,0.15);  color: var(--warning-400); }
body.dark .badge-error   { background: rgba(240,68,56,0.15);   color: var(--error-500); }

/* 兼容旧 .tag 命名 */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 24px; padding: 2px 8px;
  border-radius: var(--r-full, 9999px);
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.tag-danger  { background: var(--error-50);   color: var(--error-600); }
.tag-warning { background: var(--warning-50); color: var(--warning-700); }
.tag-success { background: var(--success-50); color: var(--success-600); }

/* ═══════════════════════════════════════════════
   统计卡片 (test2 水平布局)
═══════════════════════════════════════════════ */
.stat-card-new {
  padding: 16px 18px;
  background: var(--bg-panel, #fff);
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-lg, 16px);
  display: flex; align-items: center; gap: 14px;
  transition:
    background var(--dur-slow, 300ms) ease,
    border-color var(--dur-slow, 300ms) ease,
    box-shadow var(--dur-norm, 200ms) ease,
    transform var(--dur-norm, 200ms) ease;
}
.stat-card-new:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
body.dark .stat-card-new {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-50, #e6f0ff);
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--brand-500, #1677ff);
  transition: background var(--dur-slow, 300ms), transform var(--dur-norm, 200ms);
}
.stat-icon svg { width: 20px; height: 20px; stroke-width: 1.6px; }
.stat-card-new:hover .stat-icon { transform: scale(1.06); }
body.dark .stat-icon { background: rgba(22,119,255,0.12); color: #69b1ff; }

.stat-body {
  flex: 1; display: flex; align-items: center;
  justify-content: space-between; min-width: 0;
}
.stat-label {
  font-size: 12px; color: var(--gray-400, #98a2b3); margin-bottom: 4px;
  transition: color var(--dur-slow, 300ms);
}
body.dark .stat-label { color: rgba(255,255,255,0.45); }

.stat-value {
  font-size: 26px; font-weight: 700;
  color: var(--gray-800, #1d2939); line-height: 1;
  animation: val-in 0.35s ease both;
  transition: color var(--dur-slow, 300ms);
}
body.dark .stat-value { color: rgba(255,255,255,0.95); }

@keyframes val-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 趋势 Badge */
.trend-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px 2px 8px; border-radius: var(--r-full, 9999px);
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.trend-badge.up   { background: var(--success-50); color: var(--success-600); }
.trend-badge.down { background: var(--error-50);   color: var(--error-600); }
body.dark .trend-badge.up   { background: rgba(18,183,106,0.15); color: var(--success-500); }
body.dark .trend-badge.down { background: rgba(240,68,56,0.15);  color: var(--error-500); }
.trend-arrow { font-size: 10px; }

/* ═══════════════════════════════════════════════
   图表区 (CSS 模拟柱状图)
═══════════════════════════════════════════════ */
.chart-meta {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.chart-big { font-size: 22px; font-weight: 700; color: var(--gray-800, #1d2939); transition: color var(--dur-slow, 300ms); }
body.dark .chart-big { color: rgba(255,255,255,0.9); }

.chart-legend { display: flex; gap: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-500, #667085); }
.legend-dot { width: 8px; height: 8px; border-radius: var(--r-full, 9999px); }
.legend-dot.blue  { background: var(--brand-500, #1677ff); }
.legend-dot.light { background: #93c5fd; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 80px;
  border-bottom: 1px solid var(--gray-100, #f2f4f7); padding-bottom: 0;
  transition: border-color var(--dur-slow, 300ms);
}
body.dark .chart-bars { border-color: rgba(255,255,255,0.06); }

.bar {
  flex: 1; border-radius: 4px 4px 0 0; min-width: 0;
  transition: opacity var(--dur-fast, 150ms), filter var(--dur-fast, 150ms);
  animation: bar-up 0.5s ease both;
}
.bar.primary { background: var(--brand-500, #1677ff); }
.bar.light   { background: #bfdbfe; }
body.dark .bar.light { background: rgba(59,130,246,0.3); }
.bar:hover { opacity: 0.8; filter: brightness(1.1); }

@keyframes bar-up {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.bar:nth-child(1)  { animation-delay: 0.02s; }
.bar:nth-child(2)  { animation-delay: 0.06s; }
.bar:nth-child(3)  { animation-delay: 0.10s; }
.bar:nth-child(4)  { animation-delay: 0.14s; }
.bar:nth-child(5)  { animation-delay: 0.18s; }
.bar:nth-child(6)  { animation-delay: 0.22s; }
.bar:nth-child(7)  { animation-delay: 0.26s; }
.bar:nth-child(8)  { animation-delay: 0.30s; }
.bar:nth-child(9)  { animation-delay: 0.34s; }
.bar:nth-child(10) { animation-delay: 0.38s; }
.bar:nth-child(11) { animation-delay: 0.42s; }
.bar:nth-child(12) { animation-delay: 0.46s; }

.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; }
.chart-axis span { font-size: 11px; color: var(--gray-400, #98a2b3); }

/* ═══════════════════════════════════════════════
   分段选择器 Segmented Control
═══════════════════════════════════════════════ */
.seg-ctrl {
  display: flex; align-items: center; gap: 2px;
  background: var(--gray-100, #f2f4f7); border-radius: 8px; padding: 3px;
  transition: background var(--dur-slow, 300ms);
}
body.dark .seg-ctrl { background: rgba(255,255,255,0.07); }

.seg-btn {
  padding: 4px 12px; height: 28px;
  font-size: 12px; font-weight: 500; color: var(--gray-400, #98a2b3);
  border-radius: 6px; cursor: pointer; white-space: nowrap; border: 0; background: transparent;
  transition: background var(--dur-fast, 150ms) ease, color var(--dur-fast, 150ms) ease, box-shadow var(--dur-fast, 150ms) ease;
}
body.dark .seg-btn { color: rgba(255,255,255,0.35); }

.seg-btn.active {
  background: #fff; color: var(--gray-700, #344054); font-weight: 600;
  box-shadow: 0 1px 4px rgba(16,24,40,0.10);
}
body.dark .seg-btn.active {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════
   快捷入口 (test2 新版)
═══════════════════════════════════════════════ */
.quick-list { display: flex; flex-direction: column; gap: 6px; }

.quick-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 12px;
  background: var(--gray-50, #f9fafb); border-radius: var(--r-sm, 8px);
  cursor: pointer;
  transition: background var(--dur-fast, 150ms) ease, transform var(--dur-fast, 150ms) ease;
}
.quick-item:hover { background: var(--brand-50, #e6f0ff); transform: translateX(4px); }
body.dark .quick-item { background: rgba(255,255,255,0.05); }
body.dark .quick-item:hover { background: rgba(59,130,246,0.12); }

.quick-left { display: flex; align-items: center; gap: 12px; }

.quick-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm, 8px);
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-50, #e6f0ff); color: var(--brand-500, #1677ff);
  transition: background var(--dur-fast, 150ms), color var(--dur-fast, 150ms);
}
.quick-icon svg { width: 16px; height: 16px; stroke-width: 1.6px; }
body.dark .quick-icon { background: rgba(22,119,255,0.12); color: #69b1ff; }

.quick-title { font-size: 13px; font-weight: 600; color: var(--gray-800, #1d2939); transition: color var(--dur-slow, 300ms); }
body.dark .quick-title { color: rgba(255,255,255,0.92); }
.quick-desc { font-size: 12px; color: var(--gray-400, #98a2b3); margin-top: 1px; }
body.dark .quick-desc { color: rgba(255,255,255,0.40); }

.quick-arrow {
  color: var(--gray-300, #d0d5dd); display: grid; place-items: center;
  transition: color var(--dur-fast, 150ms), transform var(--dur-fast, 150ms) ease;
}
.quick-arrow svg { width: 14px; height: 14px; stroke-width: 2px; }
.quick-item:hover .quick-arrow { color: var(--brand-500, #1677ff); transform: translateX(3px); }

/* ═══════════════════════════════════════════════
   表单
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block; margin-bottom: 6px;
  color: var(--gray-500, #667085); font-size: 13px; font-weight: 500;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-sm, 8px);
  background: var(--bg-panel, #fff);
  color: var(--gray-700, #344054);
  font-family: inherit; font-size: 14px;
  transition: border-color var(--dur-fast, 150ms) ease, box-shadow var(--dur-fast, 150ms) ease;
}
.form-input, .form-select { height: 40px; padding: 0 12px; }
.form-textarea { min-height: 120px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400, #98a2b3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 0;
  border-color: var(--brand-300, #69b1ff);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.10);
}

body.dark .form-input, body.dark .form-select, body.dark .form-textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}

/* ── 全局 select 基础样式（覆盖浏览器默认 + 统一裸 select） ── */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%2398a2b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-sm, 8px);
  background-color: var(--bg-panel, #fff);
  color: var(--gray-700, #344054);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--dur-fast, 150ms) ease, box-shadow var(--dur-fast, 150ms) ease;
}
select:focus {
  outline: 0;
  border-color: var(--brand-300, #69b1ff);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.10);
}
body.dark select {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* .form-select 继承全局 select 并补充高度 */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%2398a2b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

/* ═══════════════════════════════════════════════
   Loading / Empty
═══════════════════════════════════════════════ */
.loading {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gray-500, #667085); font-size: 14px;
}
.loading::before {
  content: ""; width: 16px; height: 16px;
  border: 2px solid var(--gray-200, #e4e7ec);
  border-top-color: var(--brand-500, #1677ff);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

.empty-state {
  min-height: 160px; display: grid; place-items: center; padding: 24px;
  border: 1px dashed var(--gray-200, #e4e7ec); border-radius: var(--r-md, 12px);
  background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
  color: var(--gray-500, #667085); text-align: center;
}
.empty-state::before { content: "暂无数据"; font-size: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   自定义滚动条
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { border-radius: var(--r-full, 9999px); }
::-webkit-scrollbar-thumb { background: var(--gray-200, #e4e7ec); border-radius: var(--r-full, 9999px); }
body.dark ::-webkit-scrollbar-thumb { background: var(--gray-700, #344054); }

/* ═══════════════════════════════════════════════
   页面入场动画
═══════════════════════════════════════════════ */
.main-content {
  animation: page-in 0.25s ease both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   响应式
═══════════════════════════════════════════════ */
@media (max-width: 720px) {
  .btn { width: 100%; }
  .card-header, .card-body, .card-head { padding-left: 14px; padding-right: 14px; }
  .data-table thead th, .data-table tbody td { padding-left: 10px; padding-right: 10px; }
}

/* ================================================================
   GL UI Components — Toast / Loading / Modal / Pagination / Empty
   ================================================================ */

/* --- Toast --- */
.gl-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.gl-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: auto;
}

.gl-toast-show { transform: translateX(0); }
.gl-toast-hide { opacity: 0; transform: translateX(50%); }

.gl-toast-icon { font-size: 16px; flex-shrink: 0; }
.gl-toast-success { background: #065f46; }
.gl-toast-error { background: #991b1b; }
.gl-toast-warning { background: #92400e; }
.gl-toast-info { background: #1e40af; }

/* --- Loading Overlay --- */
.gl-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(2px);
}

.gl-loading-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-size: 14px;
  color: #374151;
}

.gl-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* --- Modal --- */
.gl-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gl-modal-visible { opacity: 1; }

.gl-modal {
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.gl-modal-visible .gl-modal { transform: scale(1); }

.gl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.gl-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.gl-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-modal-close:hover { background: #f3f4f6; color: #374151; }

.gl-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.gl-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
}

.gl-prompt-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.gl-prompt-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* --- Pagination --- */
.gl-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}

.gl-page-btn {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gl-page-btn:hover:not(:disabled):not(.active) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.gl-page-btn.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.gl-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gl-page-info {
  margin-left: 12px;
  color: #9ca3af;
  font-size: 13px;
}

/* --- Empty State (GL) --- */
.gl-empty {
  padding: 48px 24px;
  text-align: center;
  color: #9ca3af;
}

.gl-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.gl-empty p {
  margin: 0;
  font-size: 14px;
}

/* --- Pro theme overrides for GL components --- */
[data-theme="pro"] .gl-toast { border-radius: 2px; }
[data-theme="pro"] .gl-modal { border-radius: 4px; }
[data-theme="pro"] .gl-loading-inner { border-radius: 4px; border: 1px solid #ebebeb; }
[data-theme="pro"] .gl-loading-overlay { background: rgba(245,245,245,0.7); }
[data-theme="pro"] .gl-loading-spinner { border-color: #e8e8e8; border-top-color: #4a6eb5; }
[data-theme="pro"] .gl-page-btn.active { background: #1a1a1a; border-color: #1a1a1a; }
[data-theme="pro"] .gl-modal-bg { background: rgba(0,0,0,0.3); }
[data-theme="pro"] .gl-modal { box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

/* ================================================================
   User Select Panel
   ================================================================ */

.gl-user-select {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gl-user-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gl-user-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 4px 4px;
  border-bottom: 1px solid #f0f1f3;
}

.gl-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f9fafb;
  color: var(--component-text);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.gl-user-item:hover {
  background: #eef4ff;
  border-color: #bfdbfe;
}

.gl-user-item:active {
  background: #dbeafe;
}

.gl-user-item-name {
  font-weight: 500;
}

.gl-user-item-role {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Pro theme overrides */
[data-theme="pro"] .gl-user-item { border-radius: 2px; }
[data-theme="pro"] .gl-user-group-title { color: #888; }

/* ================================================================
   Report Page V2
   ================================================================ */
.report-page-v2 { display: flex; flex-direction: column; gap: 12px; }

/* 紧凑类型栏 */
.rpt-type-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px;
}
.rpt-type-label { font-size: 12px; color: var(--text-tertiary, #9ca3af); font-weight: 600; white-space: nowrap; }
.rpt-type-tabs { display: flex; gap: 4px; }
.rpt-type-tab {
  padding: 6px 14px; border: 1px solid var(--border-color, #d1d5db); border-radius: 4px;
  background: transparent; color: var(--text-secondary, #6b7280); font-family: inherit;
  font-size: 13px; cursor: pointer; transition: all 0.15s ease;
}
.rpt-type-tab:hover { background: var(--bg-hover, #f3f4f6); }
.rpt-type-tab.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* 两栏布局 */
.rpt-main { display: grid; grid-template-columns: 320px 1fr; gap: 14px; }
.rpt-input-col { display: flex; flex-direction: column; gap: 10px; }
.rpt-preview-col { min-height: 500px; }
.rpt-preview-card { height: 100%; display: flex; flex-direction: column; }
.rpt-preview-body { flex: 1; overflow-y: auto; }
.rpt-preview-actions { display: flex; gap: 4px; }
.rpt-placeholder { text-align: center; padding: 80px 20px; }

/* 输入区可折叠 */
.rpt-input-collapse { overflow: hidden; transition: max-height 0.3s ease; }
.rpt-input-collapsed { max-height: 0; padding: 0 !important; }
.rpt-toggle-input {
  padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 4px;
  background: transparent; color: var(--text-secondary); font-size: 12px;
  cursor: pointer; width: 100%; text-align: center; margin-bottom: 4px;
}
.rpt-toggle-input:hover { background: var(--bg-hover, #f3f4f6); }

/* AI进度步骤 */
.rpt-progress { padding: 30px 24px; }
.rpt-progress-step {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  font-size: 13px; color: var(--text-tertiary, #9ca3af);
  border-left: 2px solid #e5e7eb; margin-left: 8px;
  transition: all 0.4s ease; opacity: 0.5;
}
.rpt-progress-step.active {
  color: var(--text-primary, #111827); font-weight: 500;
  border-left-color: #2563eb; opacity: 1;
  background: linear-gradient(90deg, rgba(37,99,235,0.04), transparent);
}
.rpt-progress-step.done { color: #16a34a; border-left-color: #16a34a; opacity: 0.8; }
.rpt-progress-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.rpt-progress-step.active .rpt-progress-icon { color: #2563eb; animation: pulse 1.5s ease-in-out infinite; }
.rpt-progress-step.done .rpt-progress-icon { color: #16a34a; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 流程操作栏 */
.rpt-workflow-bar {
  display: flex; gap: 6px; padding: 8px 12px;
  border-top: 1px solid var(--border-color, #e5e7eb); background: var(--bg-subtle, #f9fafb);
  align-items: center; flex-wrap: wrap;
}
.rpt-workflow-step {
  display: flex; align-items: center; gap: 4px; font-size: 12px;
  color: var(--text-tertiary); padding: 4px 8px;
}
.rpt-workflow-step.ready { color: var(--text-primary); }
.rpt-workflow-arrow { color: var(--text-tertiary); font-size: 10px; }

/* 编辑区 */
.rpt-edit-area {
  width: 100%; border: 1px solid var(--border-color); border-radius: 4px;
  padding: 16px; font-family: inherit; font-size: 14px; line-height: 1.8;
  resize: vertical; background: var(--card-bg, #fff); color: var(--text-primary);
}

/* 历史报告紧凑列表 */
.rpt-history-compact { max-height: 200px; overflow-y: auto; }
.rpt-history-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
  border-bottom: 1px solid var(--border-color, #f0f0f0); cursor: pointer;
  font-size: 12px; color: var(--text-secondary);
}
.rpt-history-item:hover { background: var(--bg-hover, #f3f4f6); }
.rpt-history-item:last-child { border-bottom: none; }
.rpt-history-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-history-type { flex-shrink: 0; font-size: 11px; color: var(--text-tertiary); }
.rpt-history-time { flex-shrink: 0; font-size: 11px; color: var(--text-tertiary); }

/* Pro theme */
[data-theme="pro"] .rpt-type-bar { border-radius: 2px; }
[data-theme="pro"] .rpt-type-tab { border-radius: 2px; }
[data-theme="pro"] .rpt-type-tab.active { background: #1a1a1a; }

@media (max-width: 900px) { .rpt-main { grid-template-columns: 1fr; } }

/* === 预警详情面板（审核快速浏览模式） === */
.detail-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

/* ================================================================
   Archive Page — 存档中心
   ================================================================ */

.archive-filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid var(--component-border);
  border-radius: 8px;
}

.archive-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-filter-group .form-select {
  min-width: 120px;
}

.archive-filter-actions {
  margin-left: auto;
  justify-content: flex-end;
}

/* --- Timeline --- */
.archive-timeline {
  padding: 12px 20px 12px 32px;
  background: #f9fafb;
  border-top: 1px solid #eef2f7;
}

.archive-timeline-row td {
  padding: 0 !important;
}

.archive-timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  line-height: 1.5;
}

.archive-timeline-item:last-child {
  border-bottom: none;
}

.archive-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93c5fd;
  flex-shrink: 0;
}

.archive-timeline-time {
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  min-width: 110px;
}

.archive-timeline-operator {
  color: var(--component-primary);
  font-weight: 500;
  white-space: nowrap;
}

.archive-timeline-action {
  color: var(--component-text);
  font-weight: 500;
  white-space: nowrap;
}

.archive-timeline-detail {
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- QC Result Modal --- */
.qc-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qc-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

/* Pro theme */
[data-theme="pro"] .archive-filters { border-radius: 2px; }
[data-theme="pro"] .archive-timeline { background: #fafafa; }
[data-theme="pro"] .archive-timeline-dot { background: #4a6eb5; }

@media (max-width: 720px) {
  .archive-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .archive-filter-actions {
    margin-left: 0;
  }
}

/* ================================================================
   Production Board — 首页生产看板
   ================================================================ */

.production-board {
  margin-top: 20px;
}

.production-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.production-stat-card {
  text-align: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
  transition: background-color 140ms ease;
}

.production-stat-card:hover {
  background: #f3f4f6;
}

.production-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--component-text);
}

.production-stat-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.recent-reports {
  margin-top: 8px;
}

.recent-report-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  line-height: 1.5;
}

.recent-report-item:last-child {
  border-bottom: none;
}

.recent-report-id {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.recent-report-title {
  flex: 1;
  color: var(--component-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-report-type {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.recent-report-status {
  white-space: nowrap;
}

.recent-report-time {
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .production-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pro theme */
[data-theme="pro"] .production-stat-card { background: #fafafa; border-radius: 2px; }

/* ================================================================
   Review Timeline — 审核页操作时间线
   ================================================================ */

.review-timeline {
  margin-top: 20px;
}

.review-timeline-list {
  padding: 8px 0;
}

.review-timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  line-height: 1.5;
}

.review-timeline-item:last-child {
  border-bottom: none;
}

.review-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93c5fd;
  flex-shrink: 0;
}

.review-timeline-time {
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  min-width: 110px;
}

.review-timeline-operator {
  color: var(--component-primary);
  font-weight: 500;
  white-space: nowrap;
}

.review-timeline-action {
  color: var(--component-text);
  font-weight: 500;
  white-space: nowrap;
}

.review-timeline-detail {
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-timeline-empty {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 13px;
}

/* Pro theme */
[data-theme="pro"] .review-timeline-dot { background: #4a6eb5; }

/* ================================================================
   Rules Page — 审核规则管理
   ================================================================ */

.rules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.rules-sidebar .card-body {
  max-height: 60vh;
  overflow-y: auto;
}

.rule-set-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 140ms ease;
}

.rule-set-item:hover {
  background: #f3f4f6;
}

.rule-set-item.active {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}

.rule-set-item:last-child {
  border-bottom: none;
}

.set-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rules-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.btn-sm {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}

/* Pro theme */
[data-theme="pro"] .rule-set-item.active { background: rgba(55,90,170,0.06); border-left-color: #4a6eb5; }
[data-theme="pro"] .rule-set-item:hover { background: #fafafa; }

/* ═══════════════════════════════════════════════
   企微推送抽屉 · wecom-push-drawer
═══════════════════════════════════════════════ */

/* 遮罩层 */
.wecom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow, 300ms) ease;
}
.wecom-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* 弹窗主体（居中模态） */
.wecom-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80vw;
  max-width: 1000px;
  max-height: 88vh;
  background: var(--bg-panel, #fff);
  box-shadow: 0 12px 48px rgba(16, 24, 40, 0.2);
  border-radius: 16px;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-slow, 280ms) cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity var(--dur-slow, 200ms) ease;
}
.wecom-drawer.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}
body.dark .wecom-drawer {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

/* 头部 */
.wecom-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-200, #e4e7ec);
  flex-shrink: 0;
}
body.dark .wecom-drawer__header {
  border-bottom-color: rgba(255,255,255,0.08);
}
.wecom-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #1d2939);
}
body.dark .wecom-drawer__title {
  color: #f1f5f9;
}
.wecom-drawer__title .wecom-icon {
  width: 32px;
  height: 32px;
  background: #07c160;
  border-radius: var(--r-sm, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.wecom-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm, 8px);
  border: none;
  background: transparent;
  color: var(--gray-400, #98a2b3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast, 150ms), color var(--dur-fast, 150ms);
}
.wecom-drawer__close:hover {
  background: var(--gray-100, #f2f4f7);
  color: var(--gray-700, #344054);
}

/* 内容区（可滚动） */
.wecom-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 分节 */
.wecom-drawer__section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500, #667085);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* 群组列表 */
.wecom-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wecom-group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-md, 12px);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  user-select: none;
}
.wecom-group-item:hover {
  border-color: var(--brand-300, #69b1ff);
  background: var(--brand-50, #e6f0ff);
}
.wecom-group-item.selected {
  border-color: var(--brand-500, #1677ff);
  background: var(--brand-50, #e6f0ff);
}
body.dark .wecom-group-item {
  border-color: rgba(255,255,255,0.08);
}
body.dark .wecom-group-item.selected {
  border-color: var(--brand-500, #1677ff);
  background: rgba(22, 119, 255, 0.12);
}
.wecom-group-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-500, #1677ff);
  flex-shrink: 0;
  cursor: pointer;
}
.wecom-group-info {
  flex: 1;
  min-width: 0;
}
.wecom-group-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800, #1d2939);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.dark .wecom-group-name { color: #f1f5f9; }
.wecom-group-meta {
  font-size: 12px;
  color: var(--gray-400, #98a2b3);
  margin-top: 2px;
}
.wecom-group-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-full, 9999px);
  background: var(--success-50, #ecfdf3);
  color: var(--success-600, #039855);
  font-weight: 500;
  white-space: nowrap;
}

/* 内容预览 */
.wecom-preview {
  width: 100%;
  min-height: 400px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200, #e4e7ec);
  border-radius: var(--r-md, 12px);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700, #344054);
  background: var(--gray-50, #f9fafb);
  resize: vertical;
  font-family: inherit;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  box-sizing: border-box;
}
.wecom-preview:focus {
  outline: none;
  border-color: var(--brand-500, #1677ff);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
  background: #fff;
}
body.dark .wecom-preview {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: #f1f5f9;
}

/* 字数统计（隐藏） */
.wecom-char-count { display: none; }

/* 底部操作栏 */
.wecom-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200, #e4e7ec);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
body.dark .wecom-drawer__footer {
  border-top-color: rgba(255,255,255,0.08);
}
.wecom-drawer__footer .btn { flex: 1; justify-content: center; }

/* 推送成功态 */
.wecom-success-toast {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: var(--success-600, #039855);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md, 12px);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.wecom-success-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }
}
