/* 首页控制台样式 — 对齐 java1 views/index.vue */
.console {
  --panel-bg: #fff;
  --panel-border: #ebeef5;
  --soft-text: #909399;
  --strong-text: #303133;
  padding-bottom: 8px;
}
.welcome-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.18) 0%, #fff 58%);
  border: 1px solid var(--panel-border);
}
.welcome-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.welcome-greeting h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--strong-text);
}
.welcome-greeting p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--soft-text);
}
.welcome-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-chip {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--panel-border);
}
.meta-label { display: block; font-size: 12px; color: var(--soft-text); margin-bottom: 4px; }
.meta-value { font-size: 18px; font-weight: 700; color: var(--strong-text); }
.meta-value.accent { color: #409EFF; }
.welcome-deco {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 158, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.stat-row, .chart-row, .bottom-row { margin-bottom: 16px; }
.stat-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  margin-bottom: 16px;
  padding: 18px 16px;
  border-radius: 3px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(64, 158, 255, 0.12);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fff);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff));
  flex-shrink: 0;
  font-size: 20px;
}
.stat-label { font-size: 13px; color: var(--soft-text); }
.stat-value { margin-top: 4px; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--strong-text); }
.stat-trend { margin-top: 6px; font-size: 12px; }
.stat-trend.up { color: #67C23A; }
.stat-trend.down { color: #F56C6C; }
.panel {
  height: 100%;
  padding: 16px 18px 18px;
  border-radius: 3px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  margin-bottom: 16px;
}
.panel.fill { display: flex; flex-direction: column; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head h3 { margin: 0; font-size: 16px; font-weight: 650; color: var(--strong-text); }
.panel-head p { margin: 4px 0 0; font-size: 12px; color: var(--soft-text); }
.chart-box { width: 100%; }
.trend-chart, .pie-chart { height: 300px; }
.top-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}
@media (max-width: 992px) {
  .top-split-row { grid-template-columns: 1fr; }
}
.shortcut-panel, .operlog-panel { margin-bottom: 0; }
.operlog-panel { min-height: 100%; overflow: hidden; }
.operlog-viewport { flex: 1; min-height: 180px; max-height: 260px; overflow-y: auto; }
.operlog-empty {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-text);
  font-size: 13px;
}
.operlog-item {
  display: grid;
  grid-template-columns: 88px 56px minmax(48px, 72px) auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px dashed #ebeef5;
  font-size: 12px;
}
.operlog-time { color: #409EFF; font-variant-numeric: tabular-nums; }
.operlog-name { color: var(--strong-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operlog-title { color: var(--soft-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operlog-url { display: flex; align-items: center; min-width: 0; color: var(--strong-text); }
.operlog-url-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 18px;
  color: #fff;
  background: #909399;
}
.method-tag.method-GET { background: #67C23A; }
.method-tag.method-POST { background: #409EFF; }
.method-tag.method-PUT { background: #E6A23C; }
.method-tag.method-DELETE { background: #F56C6C; }
.biz-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 18px;
  background: #ecf5ff;
  color: #409EFF;
}
.status-ok { color: #409EFF; }
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
  align-content: center;
}
.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.shortcut-item span { font-size: 12px; color: var(--strong-text); }
.shortcut-item:hover { background: #f5f7fa; transform: translateY(-1px); }
.shortcut-icon {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.todo-list li { display: flex; align-items: flex-start; gap: 10px; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #909399; }
.todo-dot.high { background: #F56C6C; }
.todo-dot.mid { background: #E6A23C; }
.todo-dot.low { background: #67C23A; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 13px; color: var(--strong-text); font-weight: 600; }
.todo-desc { margin-top: 2px; font-size: 12px; color: var(--soft-text); }
.health-item { margin-bottom: 12px; }
.health-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--strong-text); }
.health-pct { color: var(--soft-text); }
.activity-block { margin-top: 8px; padding-top: 12px; border-top: 1px dashed #ebeef5; }
.activity-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--strong-text); }
.activity-item { display: flex; gap: 10px; font-size: 12px; padding: 4px 0; }
.activity-time { color: #409EFF; width: 40px; flex-shrink: 0; }
.activity-text { color: var(--soft-text); }
