/* ==========================================================================
   MESL 081 AI 工具工作台专属样式 (Framework 081 - AI Tool Workbench)
   ========================================================================== */

.ai-workbench-section {
  position: relative;
  padding: 90px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
}

.workbench-card {
  background: rgba(13, 21, 38, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.workbench-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #3b82f6, transparent);
}

/* 工作台顶部控制栏与状态指示 */
.workbench-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.workbench-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workbench-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.workbench-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.workbench-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-bench-test {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(37, 99, 235, 0.25));
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-bench-test:hover {
  background: linear-gradient(135deg, #00f2fe, #2563eb);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

/* AI 服务矩阵网格 */
.ai-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ai-service-item {
  background: rgba(17, 28, 51, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-service-item:hover {
  border-color: rgba(0, 242, 254, 0.45);
  background: rgba(22, 36, 66, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.ai-service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ai-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ai-app-name {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
}

.ai-app-category {
  font-size: 12px;
  color: #94a3b8;
}

.ai-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-service-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.ai-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(51, 65, 85, 0.5);
  font-size: 12px;
}

.ai-metric-label {
  color: #64748b;
}

.ai-metric-value {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-weight: 700;
  color: #38bdf8;
}

.ai-progress-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.ai-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00f2fe);
  border-radius: 2px;
  transition: width 1s ease-in-out;
}

/* 工作台底部协议与实时中转面板 */
.workbench-footer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  background: rgba(9, 14, 26, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(30, 41, 59, 0.6);
}

.wf-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-stat-title {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf-stat-data {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

@media (max-width: 768px) {
  .workbench-card {
    padding: 20px 16px;
  }
  .ai-services-grid {
    grid-template-columns: 1fr;
  }
}
