/* ========== PC后台专用样式 ========== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.admin-sidebar {
  width: 220px;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  padding: 12px 0;
}

.admin-sidebar .sidebar-section {
  padding: 8px 16px;
}

.admin-sidebar .sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px 8px;
}

.admin-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1px;
}

.admin-sidebar .sidebar-link:hover {
  background: var(--bg-light);
  color: var(--text);
}

.admin-sidebar .sidebar-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 500;
}

.admin-sidebar .sidebar-link .badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.admin-main {
  flex: 1;
  margin-left: 220px;
  padding: 24px 32px;
  background: var(--bg);
  min-height: calc(100vh - var(--nav-height));
}

/* 数据大屏 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card .stat-change {
  font-size: 11px;
}

.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-full {
  margin-bottom: 24px;
}

.todo-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.todo-list-item:last-child {
  border-bottom: none;
}

.todo-list-item .todo-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-list-item .todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.todo-dot.urgent { background: var(--danger); }
.todo-dot.normal { background: var(--warning); }
.todo-dot.info { background: var(--info); }

.chart-placeholder {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 13px;
  border: 1px dashed var(--border);
  flex-direction: column;
  gap: 8px;
}

.time-btn {
  padding: 6px 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.time-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.time-btn.active {
  background: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

/* 快捷入口 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-action {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.quick-action:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.quick-action .qa-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.quick-action .qa-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* 审批流程条 */
.approval-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.approval-step {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--bg-light);
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  font-weight: 500;
}

.approval-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.approval-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.approval-step.done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.approval-step.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.approval-step.reject {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* 操作按钮区 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar select {
  width: auto;
  min-width: 140px;
}

/* 响应式 */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
