/* ===== Dashboard 样式补丁（2026-09-23）===== */

/* 欢迎横幅 */
.welcome-banner {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff;
  padding: 22px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.welcome-banner h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.welcome-banner p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}
.date-info {
  text-align: center;
}
.date-info .big-date {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.date-info .lunar {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

/* 统计卡片网格 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.stat-icon.blue { background: #3b82f6; }
.stat-icon.orange { background: #f59e0b; }
.stat-icon.red { background: #ef4444; }
.stat-icon.green { background: #10b981; }
.stat-icon.purple { background: #8b5cf6; }
.stat-info {
  min-width: 0;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* 快捷操作 */
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.quick-action {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.quick-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-action-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
}

/* 双列内容区 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.card-body {
  padding: 10px 12px;
}
.btn-text {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* 待办条目 */
.todo-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.todo-list-item:last-child {
  border-bottom: none;
}
.todo-priority {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
}
.priority-high { background: var(--danger); }
.priority-medium { background: var(--warning); }
.priority-low { background: var(--success); }
.todo-content {
  flex: 1;
  min-width: 0;
}
.todo-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.4;
  word-break: break-word;
}
.todo-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-red { background: #fef2f2; color: #dc2626; }
.tag-yellow { background: #fffbeb; color: #d97706; }
.tag-gray { background: #f3f4f6; color: #4b5563; }

.mb-20 { margin-bottom: 20px; }
.mb-16 { margin-bottom: 16px; }

/* 空状态 */
.empty-state {
  text-align: center;
  color: var(--gray-500);
  padding: 16px;
}
.empty-state p {
  margin: 0;
  font-size: 13px;
}

/* ===== Dashboard 增强样式（2026-09-23 补丁）===== */

/* 预警区域 */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert strong {
  font-weight: 600;
}

/* 待办条目增强 */
.todo-overdue {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding-left: 8px;
  border-radius: 6px;
}

/* TOOLMAP 链接 */
.todo-tool {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
  line-height: 1.5;
}
.todo-tool strong {
  color: var(--gray-800);
  font-weight: 600;
}
.tool-link {
  display: inline-block;
  margin-right: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.tool-link:hover {
  text-decoration: underline;
}

/* 标签增强 */
.tag-red {
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
}
.tag-yellow {
  background: #fffbeb;
  color: #d97706;
  font-weight: 600;
}
.tag-blue {
  background: #eff6ff;
  color: #1d4ed8;
}
