html, body, #app {
  height: 100%;
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #eef4ff 0%, #e8ecf4 45%, #dde4f0 100%);
}

.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.login-bg-orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(64, 158, 255, 0.35);
}

.login-bg-orb-2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: rgba(102, 126, 234, 0.28);
}

.login-bg-orb-3 {
  width: 240px;
  height: 240px;
  top: 40%;
  left: 35%;
  background: rgba(83, 168, 255, 0.18);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 24px 48px rgba(15, 35, 70, 0.12),
    0 8px 16px rgba(15, 35, 70, 0.06);
}

.login-brand {
  flex: 1.05;
  display: flex;
  align-items: center;
  padding: 48px 40px;
  color: #fff;
  background: linear-gradient(145deg, #409eff 0%, #53a8ff 42%, #667eea 100%);
}

.login-brand-inner {
  max-width: 320px;
}

.login-brand h1 {
  margin: 20px 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.login-brand-desc {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
}

.login-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.login-features li:last-child {
  margin-bottom: 0;
}

.login-feature-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #fff;
}

.login-panel-inner {
  width: 100%;
  max-width: 340px;
}

.login-panel-head {
  margin-bottom: 28px;
}

.login-panel-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #303133;
}

.login-panel-head p {
  margin: 0;
  font-size: 14px;
  color: #909399;
}

.login-form .el-form-item__label {
  font-weight: 500;
  color: #606266;
}

.login-form .el-input__wrapper {
  border-radius: 10px;
  box-shadow: 0 0 0 1px #dcdfe6 inset;
  transition: box-shadow 0.2s;
}

.login-form .el-input__wrapper:hover,
.login-form .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #409eff inset;
}

.login-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #a8abb2;
}

.login-input-icon svg {
  width: 16px;
  height: 16px;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.login-footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12px;
  color: #c0c4cc;
}

.logo-badge {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  font-size: 26px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .login-page {
    padding: 16px;
    align-items: flex-start;
    padding-top: 32px;
  }

  .login-shell {
    flex-direction: column;
    min-height: auto;
    border-radius: 16px;
  }

  .login-brand {
    padding: 32px 24px;
  }

  .login-brand h1 {
    font-size: 22px;
  }

  .login-features {
    display: none;
  }

  .login-panel {
    padding: 32px 24px 28px;
  }
}

.admin-layout {
  height: 100vh;
}

.admin-aside {
  display: flex;
  flex-direction: column;
  background: #304156;
  transition: width 0.2s;
  overflow: hidden;
  height: 100vh;
}

.admin-aside-nav {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-aside-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-aside-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.admin-aside .el-menu {
  border-right: none;
  height: auto;
}

.admin-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

.admin-menu-icon svg {
  width: 1em;
  height: 1em;
}

.admin-aside .el-icon {
  font-size: 18px;
}

.admin-logo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  background: #263445;
  white-space: nowrap;
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 0 16px;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  color: #606266;
  text-decoration: none;
  font-size: 13px;
}

.header-link:hover {
  color: #409eff;
}

.admin-main {
  background: #f0f2f5;
  padding: 16px;
  overflow: auto;
}

.admin-main .el-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(15, 35, 70, 0.06);
}

.page-card {
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.stat-card .value {
  font-size: 32px;
  font-weight: 700;
  color: #409eff;
  line-height: 1.2;
}

.stat-card .label {
  margin-top: 6px;
  color: #909399;
  font-size: 13px;
}

.mono {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.log-pre {
  margin: 0;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.5;
  background: #f8fafc;
  border: 1px solid #ebeef5;
  padding: 12px 14px;
  border-radius: 8px;
}

.log-pre-stack {
  max-height: 160px;
  color: #c45656;
  background: #fef0f0;
  border-color: #fde2e2;
}

/* ── 全局滚动条 ── */
.admin-scroll,
.admin-main,
.trace-dialog-body {
  scrollbar-width: thin;
  scrollbar-color: #b8c0cc transparent;
}

.admin-scroll::-webkit-scrollbar,
.admin-main::-webkit-scrollbar,
.trace-dialog-body::-webkit-scrollbar,
.log-pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.admin-scroll::-webkit-scrollbar-track,
.admin-main::-webkit-scrollbar-track,
.trace-dialog-body::-webkit-scrollbar-track,
.log-pre::-webkit-scrollbar-track {
  background: transparent;
}

.admin-scroll::-webkit-scrollbar-thumb,
.admin-main::-webkit-scrollbar-thumb,
.trace-dialog-body::-webkit-scrollbar-thumb,
.log-pre::-webkit-scrollbar-thumb {
  background: #c8cfd8;
  border-radius: 6px;
}

.admin-scroll::-webkit-scrollbar-thumb:hover,
.admin-main::-webkit-scrollbar-thumb:hover,
.trace-dialog-body::-webkit-scrollbar-thumb:hover,
.log-pre::-webkit-scrollbar-thumb:hover {
  background: #909399;
}

/* ── 管理弹框 ── */
.admin-dialog.el-dialog {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 35, 70, 0.18);
}

.admin-dialog .el-dialog__header {
  margin-right: 0;
  padding: 18px 22px 12px;
  border-bottom: 1px solid #f0f2f5;
}

.admin-dialog .el-dialog__body {
  padding: 16px 22px 8px;
}

.admin-dialog .el-dialog__footer {
  padding: 12px 22px 18px;
  border-top: 1px solid #f0f2f5;
}

/* ── 请求追踪页 ── */
.trace-page-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(15, 35, 70, 0.06);
}

.trace-page-card > .el-card__header {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f2f5;
}

.trace-page-card > .el-card__body {
  padding: 20px;
}

.trace-page-title {
  font-size: 17px;
  font-weight: 700;
  color: #303133;
  line-height: 1.4;
}

.trace-page-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #909399;
}

.trace-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f9ff 0%, #f8fafc 100%);
  border: 1px solid #e8eef5;
}

.trace-id-input {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.trace-input-prefix {
  font-size: 11px;
  font-weight: 700;
  color: #909399;
  letter-spacing: 0.06em;
}

.trace-filter-bar {
  margin-bottom: 12px;
  padding: 4px 0 0;
}

.trace-filter-bar .el-form-item {
  margin-bottom: 8px;
}

.trace-table-wrap {
  border-radius: 10px;
  overflow: auto;
  border: 1px solid #ebeef5;
}

.trace-table {
  --el-table-header-bg-color: #f8fafc;
}

.trace-table .el-table__row {
  cursor: pointer;
  transition: background-color 0.15s;
}

.trace-table .el-table__row:hover > td {
  background-color: #f0f7ff !important;
}

.trace-time {
  font-size: 13px;
  color: #606266;
}

.trace-duration {
  font-size: 12px;
  color: #909399;
  font-variant-numeric: tabular-nums;
}

.trace-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trace-dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
}

.trace-dialog-body {
  max-height: min(68vh, 640px);
  overflow-y: auto;
  padding-right: 4px;
}

.trace-summary-card {
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #e8eef5;
  background: #f8fafc;
}

.trace-summary-card.is-success {
  background: linear-gradient(135deg, #f0f9eb 0%, #f8fafc 100%);
  border-color: #e1f3d8;
}

.trace-summary-card.is-fail {
  background: linear-gradient(135deg, #fef0f0 0%, #f8fafc 100%);
  border-color: #fde2e2;
}

.trace-summary-main {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  line-height: 1.5;
}

.trace-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: #909399;
}

.trace-section {
  margin-bottom: 18px;
}

.trace-section:last-child {
  margin-bottom: 4px;
}

.trace-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #606266;
  letter-spacing: 0.02em;
}

.trace-desc .el-descriptions__label {
  width: 100px;
  font-weight: 500;
}

.trace-id-code {
  margin-right: 8px;
  word-break: break-all;
}

.trace-error-alert {
  border-radius: 8px;
}

.trace-error-condition {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #606266;
}

.secret-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.secret-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.toolbar-tip {
  margin-left: auto;
  color: #909399;
  font-size: 12px;
}

.cred-banner {
  margin-bottom: 16px;
}

.docs-section {
  margin-bottom: 20px;
}

.docs-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #303133;
}

.method-tag {
  min-width: 52px;
  text-align: center;
}

.json-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 14px;
  border-radius: 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.steps-list {
  margin: 0;
  padding-left: 20px;
  color: #606266;
  line-height: 2;
}

.recent-org-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebeef5;
}

.recent-org-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cred-line {
  margin-top: 4px;
  color: #606266;
}

.docs-desc {
  color: #606266;
  margin: 0 0 16px;
  line-height: 1.6;
}

.docs-subtitle {
  margin: 16px 0 8px;
  font-size: 15px;
  color: #303133;
}

.docs-detail {
  padding: 8px 16px 12px 48px;
}

.docs-detail-section {
  margin-bottom: 20px;
}

.docs-detail-section:last-child {
  margin-bottom: 0;
}

.docs-detail-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: #303133;
  font-weight: 600;
}

.docs-detail-note {
  margin: 0 0 8px;
  color: #909399;
  font-size: 13px;
}

.docs-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #606266;
  font-size: 13px;
}

.docs-code-tabs {
  margin-top: 8px;
}

.docs-code-tabs .el-tabs__content {
  padding: 12px;
}

.docs-code-tabs .json-block {
  margin: 0;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pager-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── 首页仪表盘 ── */
.dash-home {
  min-height: 100%;
  padding-bottom: 8px;
}

/* Hero */
.dash-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d7fe0 0%, #409eff 38%, #667eea 100%);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(45, 127, 224, 0.28),
    0 4px 12px rgba(15, 35, 70, 0.08);
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dash-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.dash-hero-orb-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
  background: rgba(255, 255, 255, 0.22);
}

.dash-hero-orb-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 12%;
  background: rgba(255, 255, 255, 0.12);
}

.dash-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 24px 24px;
}

.dash-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
}

.dash-hero-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}

.dash-hero h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(15, 35, 70, 0.12);
}

.dash-hero-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.dash-hero-dot {
  margin: 0 6px;
  opacity: 0.6;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.dash-hero-actions .el-button--primary {
  background: #fff;
  color: #409eff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 35, 70, 0.12);
}

.dash-hero-actions .el-button--primary:hover {
  background: #f5f9ff;
  color: #2d7fe0;
}

.dash-hero-actions .el-button:not(.el-button--primary) {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
}

.dash-hero-actions .el-button:not(.el-button--primary):hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.dash-refresh-icon {
  display: inline-block;
  margin-right: 2px;
  font-size: 14px;
}

/* 概览条 */
.dash-overview-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 16px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 35, 70, 0.06);
}

.dash-overview-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.dash-overview-item:first-child {
  padding-left: 0;
}

.dash-overview-label {
  font-size: 12px;
  color: #909399;
}

.dash-overview-item strong {
  font-size: 22px;
  font-weight: 700;
  color: #303133;
  line-height: 1.2;
}

.dash-overview-health.health-good { color: #67c23a; }
.dash-overview-health.health-fair { color: #909399; }
.dash-overview-health.health-warning { color: #e6a23c; }
.dash-overview-health.health-error { color: #f56c6c; }

.dash-overview-divider {
  width: 1px;
  height: 36px;
  background: #ebeef5;
  flex-shrink: 0;
}

/* 统计卡片 */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1400px) {
  .dash-stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-hero-inner { flex-direction: column; align-items: flex-start; }
  .dash-overview-divider { display: none; }
  .dash-overview-item { min-width: 46%; padding: 8px 0; }
  .dash-shortcuts { grid-template-columns: repeat(2, 1fr); }
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 35, 70, 0.06);
  border: 1px solid rgba(235, 238, 245, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.1);
}

.dash-stat-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 35, 70, 0.12);
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #303133;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.dash-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: #909399;
}

/* 快捷入口 */
.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .dash-shortcuts { grid-template-columns: repeat(3, 1fr); }
}

.dash-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebeef5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-shortcut:hover {
  border-color: #c6e2ff;
  background: linear-gradient(135deg, #fafcff 0%, #fff 100%);
  box-shadow: 0 4px 16px rgba(64, 158, 255, 0.1);
  transform: translateY(-2px);
}

.dash-shortcut-icon {
  flex-shrink: 0;
  width: 10px;
  height: 36px;
  border-radius: 6px;
}

.dash-shortcut-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-shortcut-text strong {
  font-size: 14px;
  color: #303133;
  font-weight: 600;
}

.dash-shortcut-text span {
  font-size: 12px;
  color: #909399;
}

.dash-shortcut-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: #c0c4cc;
  transition: transform 0.2s, color 0.2s;
}

.dash-shortcut:hover .dash-shortcut-arrow {
  color: #409eff;
  transform: translateX(3px);
}

/* 图表区 */
.dash-row {
  margin-bottom: 16px;
}

.dash-row-last {
  margin-bottom: 0;
}

.dash-chart-card,
.dash-panel-card {
  height: 100%;
}

.dash-chart-card .el-card__header,
.dash-panel-card .el-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
}

.dash-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dash-card-title {
  font-weight: 600;
  font-size: 15px;
  color: #303133;
}

.dash-card-sub {
  font-size: 12px;
  color: #909399;
  flex-shrink: 0;
}

.dash-chart {
  height: 320px;
  width: 100%;
}

.dash-chart-sm {
  height: 280px;
}

/* 快速开始 */
.dash-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f5f7fa 100%);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-step:hover {
  background: linear-gradient(135deg, #ecf5ff 0%, #f0f7ff 100%);
  border-color: #d9ecff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.08);
}

.dash-step-connector {
  width: 2px;
  height: 12px;
  margin-left: 31px;
  background: linear-gradient(180deg, #dcdfe6, #ebeef5);
  border-radius: 1px;
}

.dash-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #409eff, #53a8ff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(64, 158, 255, 0.3);
}

.dash-step-content {
  flex: 1;
  min-width: 0;
}

.dash-step-content strong {
  display: block;
  margin-bottom: 4px;
  color: #303133;
  font-size: 14px;
}

.dash-step-content p {
  margin: 0;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}

.dash-step-go {
  flex-shrink: 0;
  font-size: 12px;
  color: #409eff;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.dash-step:hover .dash-step-go {
  opacity: 1;
  transform: translateX(0);
}

.dash-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-status-grid-inline {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
  .dash-status-grid-inline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-status-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f5f7fa 100%);
  border-radius: 12px;
  font-size: 13px;
  color: #606266;
  border: 1px solid #ebeef5;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dash-status-item:hover {
  box-shadow: 0 4px 12px rgba(15, 35, 70, 0.06);
}

.dash-status-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-status-name {
  font-weight: 500;
  color: #303133;
}

.dash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-status-dot.dot-excellent {
  background: #67c23a;
  box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.2);
  animation: dash-pulse 2s ease-in-out infinite;
}

@keyframes dash-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(103, 194, 58, 0.08); }
}
.dash-status-dot.dot-good { background: #95d475; }
.dash-status-dot.dot-fair { background: #909399; }
.dash-status-dot.dot-warning { background: #e6a23c; box-shadow: 0 0 0 3px rgba(230, 162, 60, 0.2); }
.dash-status-dot.dot-error { background: #f56c6c; box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.2); }

.dash-status-level-excellent { border-left-color: #67c23a; }
.dash-status-level-good { border-left-color: #95d475; }
.dash-status-level-fair { border-left-color: #909399; }
.dash-status-level-warning { border-left-color: #e6a23c; background: #fdf6ec; }
.dash-status-level-error { border-left-color: #f56c6c; background: #fef0f0; }

.dash-status-detail {
  font-size: 12px;
  color: #909399;
  line-height: 1.4;
}

.dash-status-item strong {
  font-size: 20px;
  color: #303133;
}

.chat-drawer .el-drawer__header {
  margin-bottom: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.chat-drawer .el-drawer__body {
  padding: 0;
}

.chat-drawer-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-drawer-head-name {
  font-size: 17px;
  font-weight: 600;
  color: #303133;
  line-height: 1.3;
}

.chat-drawer-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: #909399;
}

.chat-drawer-head-id {
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f2f5;
  font-family: Consolas, Monaco, monospace;
  color: #606266;
}

.chat-drawer-head-org {
  color: #409eff;
}

.chat-user-avatar,
.chat-conv-avatar,
.chat-msg-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  user-select: none;
}

.chat-user-avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.25);
}

.chat-conv-avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.chat-conv-avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.chat-msg-avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  margin-top: 2px;
}

.chat-drawer-body {
  display: flex;
  height: calc(100vh - 120px);
  min-height: 480px;
  overflow: hidden;
}

.chat-conv-list {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e4e7ed;
  background: #f7f8fa;
  overflow-y: auto;
}

.chat-drawer-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid #e4e7ed;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.chat-drawer-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 13px;
  color: #606266;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chat-drawer-tab:hover {
  background: #f5f7fa;
}

.chat-drawer-tab.active {
  background: #ecf5ff;
  color: #409eff;
  font-weight: 600;
}

.chat-tab-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 10px;
  background: #409eff;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
}

.chat-drawer-tab.active .chat-tab-badge {
  background: #337ecc;
}

.chat-conv-avatar.recording {
  font-size: 18px;
}

.chat-rec-duration {
  flex-shrink: 0;
  font-size: 11px;
  color: #909399;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0f2f5;
}

.chat-conv-list-head {
  padding: 14px 16px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #909399;
}

.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 8px 4px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 10px;
  transition: background 0.18s, box-shadow 0.18s;
}

.chat-conv-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-conv-item.active {
  background: #fff;
  box-shadow: 0 2px 12px rgba(64, 158, 255, 0.12);
  outline: 2px solid rgba(64, 158, 255, 0.35);
}

.chat-conv-main {
  flex: 1;
  min-width: 0;
}

.chat-conv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-conv-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-conv-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #c0c4cc;
}

.chat-conv-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chat-conv-preview {
  flex: 1;
  font-size: 12px;
  color: #909399;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.chat-msg-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-msg-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}

.chat-msg-members {
  margin-top: 2px;
  font-size: 12px;
  font-weight: normal;
  color: #909399;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}

.chat-msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(64, 158, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(103, 194, 58, 0.03) 0%, transparent 50%),
    #eef1f6;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px;
}

.chat-date-divider span {
  padding: 4px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  color: #909399;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.chat-msg-row.self {
  justify-content: flex-end;
}

.chat-msg-content {
  max-width: min(72%, 420px);
}

.chat-msg-row.self .chat-msg-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #909399;
}

.chat-msg-row.self .chat-msg-meta {
  flex-direction: row-reverse;
}

.chat-msg-sender {
  font-weight: 500;
  color: #606266;
}

.chat-msg-del {
  opacity: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(245, 108, 108, 0.12);
  color: #f56c6c;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.chat-msg-row:hover .chat-msg-del {
  opacity: 1;
}

.chat-msg-del:hover {
  background: rgba(245, 108, 108, 0.22);
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
  color: #303133;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chat-msg-row:not(.self) .chat-msg-bubble {
  border-top-left-radius: 4px;
}

.chat-msg-row.self .chat-msg-bubble {
  background: linear-gradient(135deg, #409eff 0%, #53a8ff 100%);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.28);
}

.chat-msg-row.self .chat-msg-bubble .chat-text {
  color: #fff;
}

.chat-msg-bubble.type-image,
.chat-msg-bubble.type-voice {
  padding: 6px;
  background: #fff;
}

.chat-msg-row.self .chat-msg-bubble.type-image,
.chat-msg-row.self .chat-msg-bubble.type-voice {
  background: #fff;
}

.chat-text {
  white-space: pre-wrap;
}

.chat-emoji {
  font-size: 28px;
  line-height: 1.2;
}

.chat-system {
  color: #909399;
  font-size: 13px;
}

.chat-recalled {
  color: #909399;
  font-style: italic;
}

.chat-msg-row.self .chat-msg-bubble .chat-system,
.chat-msg-row.self .chat-msg-bubble .chat-recalled {
  color: rgba(255, 255, 255, 0.85);
}

.chat-msg-bubble.type-system,
.chat-msg-bubble.type-emoji {
  background: #f4f4f5;
  box-shadow: none;
}

.chat-msg-row.self .chat-msg-bubble.type-system,
.chat-msg-row.self .chat-msg-bubble.type-emoji {
  background: #f4f4f5;
  color: #606266;
}

.chat-msg-bubble.type-video {
  padding: 6px;
  background: #fff;
}

.chat-video-inline {
  max-width: 280px;
  max-height: 200px;
  border-radius: 8px;
  display: block;
}

.chat-img-wrap {
  display: block;
  line-height: 0;
}

.chat-msg-img {
  display: block;
  max-width: 220px;
  max-height: 180px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-img-wrap:hover .chat-msg-img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chat-voice-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f0f9eb;
  color: #67c23a;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s;
}

.chat-voice-card:hover {
  background: #e1f3d8;
}

.chat-voice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #67c23a;
  color: #fff;
  font-size: 10px;
}

.chat-media-fallback {
  color: #909399;
  font-size: 13px;
}

.chat-msg-pager {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  border-top: 1px solid #ebeef5;
  background: #fff;
}

.chat-empty-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #909399;
}

.chat-empty-block p {
  margin: 8px 0 0;
  font-size: 13px;
}

.chat-empty-icon {
  font-size: 32px;
  opacity: 0.7;
}

.chat-msg-placeholder {
  flex: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(64, 158, 255, 0.05) 0%, transparent 60%),
    #f7f8fa;
}

.call-recording-detail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(230, 162, 60, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(64, 158, 255, 0.06) 0%, transparent 55%),
    #f7f8fa;
}

.call-recording-card {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 35, 70, 0.08);
}

.call-recording-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.call-recording-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf6ec, #faecd8);
  font-size: 22px;
}

.call-recording-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.call-recording-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #909399;
}

.call-recording-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f5f7fa;
}

.call-recording-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.call-recording-meta-grid span {
  color: #909399;
}

.call-recording-meta-grid strong {
  font-size: 13px;
  color: #303133;
  font-weight: 500;
}

.call-recording-player-wrap {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9eb 0%, #ecf5ff 100%);
}

.call-audio-player,
.chat-audio-inline,
.file-audio-inline {
  width: 100%;
  max-width: 100%;
  height: 40px;
  border-radius: 8px;
}

.file-audio-inline {
  min-width: 220px;
}

.chat-audio-inline {
  min-width: 200px;
}

.call-recording-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.chat-empty-hint-text {
  margin: 0;
  text-align: center;
  color: #909399;
  font-size: 13px;
}

.file-no-audio {
  color: #c0c4cc;
}

.file-player-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-player-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f7fa;
  font-size: 13px;
  color: #303133;
}

.file-player-meta span {
  display: inline-block;
  min-width: 36px;
  margin-right: 6px;
  color: #909399;
}

.file-player-img {
  max-width: 100%;
  border-radius: 8px;
}
