/* ============================================================
   全国算力券平台 · 设计系统
   ============================================================ */

:root {
  /* 主色：深邃科技蓝，传递政府平台的稳重 + 算力行业的科技感 */
  --primary-50:  #eef4ff;
  --primary-100: #dbe6ff;
  --primary-200: #bdd1ff;
  --primary-400: #5b86f0;
  --primary-500: #3a66e4;
  --primary-600: #254ad6;
  --primary-700: #1e3aaf;
  --primary-800: #1c3489;
  --primary-900: #182c6d;

  /* 辅助色 */
  --cyan-500: #0ea5b7;
  --emerald-500: #10b981;
  --amber-500: #f59e0b;
  --red-500:   #ef4444;
  --violet-500: #8b5cf6;

  /* 中性灰 */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* 语义 */
  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --border:    #e2e8f0;
  --text:      #0f172a;
  --text-2:    #475569;
  --text-3:    #94a3b8;

  --success-bg: #ecfdf5;
  --success-fg: #065f46;
  --warn-bg:    #fffbeb;
  --warn-fg:    #92400e;
  --danger-bg:  #fef2f2;
  --danger-fg:  #991b1b;
  --info-bg:    #eff6ff;
  --info-fg:    #1e40af;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 6px 18px rgba(15,23,42,.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.10);

  --t: 180ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   顶部 Topbar
   ============================================================ */

.topbar {
  height: 68px;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 60%, var(--primary-600) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(28,52,137,.20);
}

.topbar-left, .topbar-right { display: flex; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.85) 100%);
  color: var(--primary-700);
  font-weight: 800;
  font-size: 22px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.logo-title { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 11px; opacity: .8; letter-spacing: .6px; }

.topbar-nav {
  margin-left: 60px;
  display: flex; gap: 4px;
  flex: 1;
}
.nav-item {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: var(--t);
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 600;
}

.topbar-right { gap: 24px; }
.topbar-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.85);
  padding: 6px 14px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
}
.info-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  cursor: pointer;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 14px;
}
.user-name { font-size: 13px; font-weight: 600; line-height: 1; }
.user-role { font-size: 11px; opacity: .8; line-height: 1; margin-top: 3px; }

/* ============================================================
   App Shell
   ============================================================ */

.app-shell { padding: 18px 28px 60px; }

.role-switcher {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.role-label { color: var(--text-2); font-weight: 600; }
.role-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--gray-50);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  transition: var(--t);
}
.role-btn:hover { border-color: var(--primary-400); color: var(--primary-700); }
.role-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: 0 2px 6px rgba(58,102,228,.30);
}
.role-tip { margin-left: auto; color: var(--text-3); font-size: 12px; }

.view { display: block; }

/* ============================================================
   通用组件
   ============================================================ */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-pad { padding: 24px; }
.card-pad-sm { padding: 18px; }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
  border-radius: 2px;
}
.card-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1100px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

/* KPI 卡片 */
.kpi {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-label { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.kpi-unit { font-size: 13px; color: var(--text-2); margin-left: 4px; font-weight: 500; }
.kpi-trend {
  margin-top: 12px;
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.kpi-up { color: var(--success-fg); }
.kpi-down { color: var(--danger-fg); }
.kpi-bar {
  position: absolute; right: -20px; bottom: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: .08;
  background: var(--primary-500);
}

/* 状态标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; }
.tag-info    { background: var(--info-bg); color: var(--info-fg); }
.tag-info    .tag-dot { background: var(--primary-500); }
.tag-success { background: var(--success-bg); color: var(--success-fg); }
.tag-success .tag-dot { background: var(--emerald-500); }
.tag-warn    { background: var(--warn-bg); color: var(--warn-fg); }
.tag-warn    .tag-dot { background: var(--amber-500); }
.tag-danger  { background: var(--danger-bg); color: var(--danger-fg); }
.tag-danger  .tag-dot { background: var(--red-500); }
.tag-muted   { background: var(--gray-100); color: var(--text-2); }
.tag-muted   .tag-dot { background: var(--gray-400); }
.tag-violet  { background: #ede9fe; color: #5b21b6; }
.tag-violet  .tag-dot { background: var(--violet-500); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--primary-600);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
}
.btn:hover { background: var(--primary-700); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--text); }

.btn-danger { background: var(--red-500); }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--emerald-500); }
.btn-success:hover { background: #059669; }

.btn-warn { background: var(--amber-500); }
.btn-warn:hover { background: #d97706; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }

/* 表格 */
.tbl-wrap { overflow-x: auto; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl thead th {
  background: var(--gray-50);
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.tbl tbody tr:hover { background: var(--gray-50); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .col-num { font-weight: 600; font-family: 'Inter', monospace; }
.tbl-action { color: var(--primary-600); font-weight: 500; cursor: pointer; }
.tbl-action:hover { text-decoration: underline; }
.tbl-action + .tbl-action { margin-left: 12px; }

/* 表单 */
.form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.form-row.col-2 {
  grid-template-columns: 120px 1fr 1fr;
  gap: 16px;
}
.form-label {
  text-align: right;
  padding-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.form-label.required::after {
  content: '*';
  color: var(--red-500);
  margin-left: 4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  transition: var(--t);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(58,102,228,.12);
}
.form-textarea { min-height: 80px; resize: vertical; }
.form-hint { color: var(--text-3); font-size: 12px; margin-top: 4px; }

/* 文件上传 */
.uploader {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  background: var(--gray-50);
  transition: var(--t);
  cursor: pointer;
}
.uploader:hover { border-color: var(--primary-400); background: var(--primary-50); }
.uploader-icon {
  font-size: 32px; margin-bottom: 6px;
  color: var(--primary-500);
}
.uploader-text { color: var(--text-2); font-size: 13px; }
.uploader-text strong { color: var(--primary-600); }

.file-list { margin-top: 12px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}
.file-item-name { display: flex; align-items: center; gap: 8px; color: var(--text); }
.file-item-meta { color: var(--text-3); font-size: 12px; }

/* 时间轴 */
.timeline { padding: 8px 0; }
.timeline-item {
  display: flex; gap: 16px;
  padding: 14px 0;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px; top: 32px; bottom: -4px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--text-2);
  display: grid; place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 700;
}
.timeline-item.success .timeline-dot { background: var(--emerald-500); color: #fff; }
.timeline-item.fail    .timeline-dot { background: var(--red-500); color: #fff; }
.timeline-item.current { background: linear-gradient(90deg, var(--primary-50) 0%, transparent 100%); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.timeline-item.current .timeline-dot { background: var(--primary-500); color: #fff; box-shadow: 0 0 0 4px rgba(58,102,228,.18); }
.timeline-title { font-weight: 600; font-size: 14px; color: var(--text); }
.timeline-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.timeline-content { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* 步骤条 */
.steps { display: flex; gap: 0; align-items: center; padding: 12px 0; }
.step {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%; right: -50%; top: 14px;
  height: 2px;
  background: var(--gray-200);
}
.step.done:not(:last-child)::after { background: var(--emerald-500); }
.step-bubble {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--text-2);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  z-index: 1;
  flex-shrink: 0;
}
.step.done .step-bubble { background: var(--emerald-500); color: #fff; }
.step.active .step-bubble {
  background: var(--primary-500); color: #fff;
  box-shadow: 0 0 0 4px rgba(58,102,228,.18);
}
.step-meta {
  display: flex; flex-direction: column; gap: 2px;
  margin-left: 10px;
}
.step-title { font-size: 13px; color: var(--text-2); font-weight: 500; }
.step.active .step-title { color: var(--primary-700); font-weight: 700; }
.step-sub { font-size: 11px; color: var(--text-3); }

/* 进度条 */
.progress {
  height: 8px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
  border-radius: 999px;
  transition: width 600ms cubic-bezier(.4,0,.2,1);
}
.progress.warn .progress-bar { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.progress.danger .progress-bar { background: linear-gradient(90deg, #ef4444, #b91c1c); }

/* 图标盒 */
.iconbox {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 22px;
}
.iconbox.blue { background: var(--info-bg); color: var(--primary-600); }
.iconbox.green { background: var(--success-bg); color: var(--success-fg); }
.iconbox.amber { background: var(--warn-bg); color: var(--warn-fg); }
.iconbox.red { background: var(--danger-bg); color: var(--danger-fg); }
.iconbox.violet { background: #ede9fe; color: #6d28d9; }
.iconbox.cyan { background: #cffafe; color: var(--cyan-500); }

/* 筛选条 */
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filter-bar label { font-size: 13px; color: var(--text-2); }
.filter-bar select, .filter-bar input {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  min-width: 140px;
}

/* 详情行 */
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.detail-item-label { color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.detail-item-value { color: var(--text); font-size: 14px; font-weight: 500; }
@media (max-width: 900px) { .detail-list { grid-template-columns: 1fr; } }

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.page-btns { display: flex; gap: 4px; }
.page-btn {
  min-width: 32px;
  height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid transparent;
  background: transparent;
  padding: 0 10px;
}
.page-btn:hover { background: var(--gray-100); }
.page-btn.active {
  background: var(--primary-600);
  color: #fff;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 提示条 */
.alert {
  display: flex; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-500);
  background: var(--info-bg);
  color: var(--info-fg);
  font-size: 13px;
  margin-bottom: 18px;
}
.alert.warn { border-left-color: var(--amber-500); background: var(--warn-bg); color: var(--warn-fg); }
.alert.success { border-left-color: var(--emerald-500); background: var(--success-bg); color: var(--success-fg); }
.alert.danger { border-left-color: var(--red-500); background: var(--danger-bg); color: var(--danger-fg); }

/* 列表项 */
.list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-row-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.list-row-meta { color: var(--text-3); font-size: 12px; }

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(58,102,228,.45) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(139,92,246,.40) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: #fff;
  padding: 56px 60px;
  margin-bottom: 24px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.hero-sub { font-size: 15px; opacity: .9; line-height: 1.7; max-width: 620px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn {
  background: rgba(255,255,255,.95);
  color: var(--primary-700);
}
.hero-actions .btn:hover { background: #fff; }
.hero-actions .btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.30);
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.22); }

.hero-meta {
  position: absolute; right: 50px; top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
  text-align: right;
}
.hero-meta-item .num {
  font-size: 32px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-meta-item .label { font-size: 12px; opacity: .8; margin-top: 4px; }

@media (max-width: 1100px) {
  .hero-meta { display: none; }
  .hero { padding: 40px 32px; }
  .hero-title { font-size: 28px; }
}

/* Section heading */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.section-head .sub { font-size: 13px; color: var(--text-3); }
.section-head .more { font-size: 13px; color: var(--primary-600); cursor: pointer; }

/* Feature block */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 6px; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.feature-card::before {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50), transparent);
}
.feature-card-icon { position: relative; }
.feature-card-title { font-size: 15px; font-weight: 700; margin: 14px 0 8px; color: var(--text); }
.feature-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* Flow steps (展示页) */
.flow-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-top: 18px;
}
@media (max-width: 1100px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
.flow-step {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 14px;
  border-radius: var(--radius-lg);
  position: relative;
}
.flow-step-num {
  width: 36px; height: 36px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(58,102,228,.30);
}
.flow-step-title { font-weight: 700; margin-bottom: 4px; }
.flow-step-desc { font-size: 12px; color: var(--text-3); }

/* Info row */
.info-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 900px) { .info-list { grid-template-columns: 1fr 1fr; } }
.info-item {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 14px 18px;
  border-left: 3px solid var(--primary-500);
}
.info-item .label { color: var(--text-3); font-size: 12px; }
.info-item .value { color: var(--text); font-weight: 700; font-size: 18px; margin-top: 4px; }

/* 标签栏 tabs */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab {
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: var(--t);
  font-size: 14px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--primary-700);
  border-bottom-color: var(--primary-600);
  font-weight: 700;
}

/* ECharts container */
.chart-box { width: 100%; height: 300px; }
.chart-box.tall { height: 360px; }

/* 审批卡片 */
.approve-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface);
  transition: var(--t);
}
.approve-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); }
.approve-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.approve-card-title { font-weight: 700; color: var(--text); }
.approve-card-meta { display: flex; gap: 16px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; margin: 8px 0; }
.approve-card-actions { margin-top: 12px; display: flex; gap: 10px; }

/* 模态 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.50);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(720px, 92vw);
  max-height: 86vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  background: transparent; border: none;
  font-size: 24px;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--text-2);
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--gray-100); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Toast */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translate(-50%, 80px);
  padding: 12px 22px;
  background: var(--gray-900);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transition: var(--t);
  z-index: 200;
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Tabs inside modal */
.modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.modal-tab {
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.modal-tab.active { color: var(--primary-700); border-bottom-color: var(--primary-600); font-weight: 700; }

/* Switch toggle */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch-track {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--gray-300);
  position: relative;
  transition: var(--t);
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.20);
  transition: var(--t);
}
.switch.on .switch-track { background: var(--primary-600); }
.switch.on .switch-thumb { left: 18px; }

/* 滑块 */
.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type=range] {
  flex: 1; accent-color: var(--primary-600);
}

/* 公告卡片 */
.notice-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: var(--t);
}
.notice-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-sm); }
.notice-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.notice-card .title { font-weight: 600; font-size: 15px; color: var(--text); }
.notice-card .desc { font-size: 13px; color: var(--text-2); }
.notice-card .meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* Quick actions tile */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .qa-grid { grid-template-columns: repeat(3, 1fr); } }
.qa-tile {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--t);
  border: 1px solid transparent;
}
.qa-tile:hover { background: var(--primary-50); border-color: var(--primary-200); transform: translateY(-2px); }
.qa-tile .qa-icon { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; }
.qa-tile .qa-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* 仪表盘两栏 */
.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .dash-row { grid-template-columns: 1fr; } }

/* Toggle pill segment */
.segment {
  display: inline-flex;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 999px;
}
.segment button {
  padding: 6px 14px;
  border: none; background: transparent;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.segment button.active {
  background: #fff;
  color: var(--primary-700);
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  font-weight: 700;
}

/* util */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-muted { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap-3 { display: flex; gap: 12px; align-items: center; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.divider-dashed { height: 1px; background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); margin: 18px 0; }

/* 公告管理 / 列表项 */
.kv-row {
  display: flex; gap: 14px;
  padding: 8px 0;
  font-size: 13px;
}
.kv-row .k { color: var(--text-3); width: 100px; flex-shrink: 0; }
.kv-row .v { color: var(--text); }

/* 评估卡 */
.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .score-grid { grid-template-columns: repeat(2, 1fr); } }
.score-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.score-card .name { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.score-card .score { font-size: 24px; font-weight: 800; color: var(--primary-700); }
.score-card .total { font-size: 12px; color: var(--text-3); }

/* 状态机可视化 */
.state-machine {
  display: flex; gap: 0; align-items: center; flex-wrap: wrap;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.state-node {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.state-node.active { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }
.state-arrow { padding: 0 8px; color: var(--text-3); }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   页脚 Footer
   ============================================================ */
.footer {
  background: var(--primary-900);
  color: rgba(255,255,255,.85);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 28px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: flex-start; gap: 12px;
  flex: 0 0 320px;
}
.footer-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.85) 100%);
  color: var(--primary-800);
  font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.footer-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-desc { font-size: 13px; opacity: .8; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; flex: 1; }
.ft-col { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.ft-head { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ft-col a { font-size: 13px; opacity: .8; cursor: pointer; transition: var(--t); }
.ft-col a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: .7;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap; gap: 8px;
}
