/* ==============================================================================
 * U5 智能领航 Copilot (In-App Operations AI Copilot) 专属样式
 * 包含：悬浮球、毛玻璃对话抽屉、视觉现场代填聚光灯高亮与操作指引卡片
 * ============================================================================== */

/* 1. 右下角常驻悬浮领航球 (Float Trigger Dock - 圆形按钮，位于总管客服正上方) */
#u5-copilot-trigger {
  position: fixed;
  bottom: 148px;
  right: 24px;
  z-index: 99997;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#u5-copilot-trigger:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
}

#u5-copilot-trigger:active {
  transform: translateY(0) scale(0.95);
}

/* 操作顾问气泡：用户停留在业务页 10 秒后出现 */
#u5-copilot-idle-help {
  position: fixed;
  right: 86px;
  bottom: 148px;
  z-index: 100000;
  width: 292px;
  padding: 14px 16px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  animation: u5-copilot-help-in 0.24s ease-out;
}

#u5-copilot-idle-help::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-top: 1px solid #bfdbfe;
  border-right: 1px solid #bfdbfe;
  transform: rotate(45deg);
}

.u5-copilot-idle-help-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.u5-copilot-idle-help-text { font-size: 12px; line-height: 1.55; color: #475569; }
.u5-copilot-idle-help-actions { display: flex; gap: 8px; margin-top: 11px; }
.u5-copilot-idle-help-actions button { border: 0; border-radius: 7px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.u5-copilot-idle-help-actions button:first-child { color: #ffffff; background: #2563eb; }
.u5-copilot-idle-help-actions button:last-child { color: #475569; background: #f1f5f9; }

@keyframes u5-copilot-help-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 鼠标箭头操作提示与步骤指示徽标，伴随跟随实际字段与弹窗位置 */
.u5-copilot-operation-pointer {
  position: fixed;
  z-index: 2147483647 !important;
  display: none;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
  transition: left 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), top 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.u5-copilot-operation-pointer.active {
  display: inline-flex;
}

.u5-copilot-operation-pointer.badge-left {
  flex-direction: row-reverse;
}

/* 经典操作系统级鼠标指针外框与点击波纹 */
.u5-copilot-cursor-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.u5-copilot-mouse-svg {
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transform-origin: 2px 2px;
  animation: u5-cursor-bob 1.8s ease-in-out infinite;
}

@keyframes u5-cursor-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.u5-copilot-cursor-ripple {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  background: rgba(37, 99, 235, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.u5-copilot-operation-pointer.anim-click .u5-copilot-cursor-ripple {
  animation: u5-cursor-ripple-wave 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes u5-cursor-ripple-wave {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* 步骤指示徽章 */
.u5-copilot-pointer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid #3b82f6;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.28), 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-4px);
  animation: u5-badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes u5-badge-pop {
  0% { transform: translateY(-4px) scale(0.85); opacity: 0; }
  100% { transform: translateY(-4px) scale(1); opacity: 1; }
}

.u5-pointer-step-pill {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.u5-copilot-pointer-label {
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.copilot-advice-rationale, .copilot-advice-list { margin: 8px 0; padding: 9px 11px; border-left: 3px solid #60a5fa; background: rgba(239,246,255,0.65); color: #334155; font-size: 12px; line-height: 1.55; }
.copilot-advice-list ul { margin: 5px 0 0 18px; padding: 0; }

/* 圆形按钮右上角状态绿点 */
.copilot-pulse-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: copilot-pulse 2s infinite;
}

@keyframes copilot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* 悬停左侧气泡提示 */
.copilot-hover-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.copilot-hover-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.92);
}

#u5-copilot-trigger:hover .copilot-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 2. Copilot 对话工作面板 (Floating Panel - 位于浮动按钮左侧) */
#u5-copilot-panel {
  position: fixed;
  bottom: 48px;
  right: 90px;
  width: 460px;
  max-width: calc(100vw - 110px);
  height: 780px;
  max-height: calc(100vh - 72px);
  z-index: 100050 !important;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

#u5-copilot-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 640px) {
  /* Keep the AI trigger in its own dock slot above the customer-service
     control.  The old 148px offset overlapped the CS pill on 390–440px
     screens once the mobile bottom nav was present. */
  #u5-copilot-trigger {
    bottom: calc(var(--mobile-nav-height, 68px) + 126px);
    right: 12px;
    width: 46px;
    height: 46px;
  }

  #u5-copilot-panel {
    bottom: calc(var(--mobile-nav-height, 68px) + 8px);
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    height: min(78dvh, 680px);
    max-height: calc(100dvh - var(--mobile-nav-height, 68px) - 16px);
  }

  #u5-copilot-idle-help { right: 12px; bottom: calc(var(--mobile-nav-height, 68px) + 174px); width: min(292px, calc(100vw - 24px)); }
}

/* 暗黑模式自适应 */
body.dark #u5-copilot-panel,
html[data-theme="dark"] #u5-copilot-panel {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(51, 65, 85, 0.85);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
}

/* 面板顶栏 */
.copilot-panel-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark .copilot-panel-header {
  border-bottom-color: rgba(51, 65, 85, 0.7);
}

.copilot-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.copilot-header-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.dark .copilot-header-title {
  color: #f8fafc;
}

.copilot-header-status {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.copilot-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.copilot-header-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.copilot-header-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1e293b;
}

body.dark .copilot-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

/* 推荐快捷引导胶囊 (Quick Prompts) */
.copilot-quick-chips {
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.75);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.copilot-quick-chips::-webkit-scrollbar {
  display: none;
}

body.dark .copilot-quick-chips {
  background: rgba(30, 41, 59, 0.5);
  border-bottom-color: rgba(51, 65, 85, 0.6);
}

.copilot-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.copilot-chip-btn:hover {
  border-color: #3b82f6;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

body.dark .copilot-chip-btn {
  background: #1e293b;
  border-color: #475569;
  color: #cbd5e1;
}

body.dark .copilot-chip-btn:hover {
  border-color: #60a5fa;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

/* 消息流区域 */
.copilot-message-flow {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.copilot-msg-row {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: copilot-msg-appear 0.22s ease-out;
}

@keyframes copilot-msg-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copilot-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.copilot-msg-row.ai {
  align-self: flex-start;
}

.copilot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.copilot-avatar.ai {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.copilot-avatar.user {
  background: #e2e8f0;
  color: #475569;
}

body.dark .copilot-avatar.user {
  background: #334155;
  color: #e2e8f0;
}

.copilot-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.copilot-msg-row.user .copilot-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.copilot-msg-row.ai .copilot-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

body.dark .copilot-msg-row.ai .copilot-bubble {
  background: #1e293b;
  color: #f1f5f9;
  border-color: rgba(51, 65, 85, 0.8);
}

/* 伴随式代办行动卡片 (Interactive Action Card) */
.copilot-action-card {
  margin-top: 10px;
  background: #ffffff;
  border: 1.5px solid #3b82f6;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  font-size: 12.5px;
}

body.dark .copilot-action-card {
  background: #0f172a;
  border-color: #60a5fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.copilot-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

body.dark .copilot-card-badge {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
}

.copilot-param-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

body.dark .copilot-param-list {
  background: #1e293b;
  border-color: #475569;
}

.copilot-param-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.copilot-param-key {
  color: #64748b;
  font-weight: 500;
}

.copilot-param-val {
  color: #0f172a;
  font-weight: 700;
  max-width: 65%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark .copilot-param-val {
  color: #f8fafc;
}

.copilot-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.copilot-card-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}

.copilot-card-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.copilot-card-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.copilot-card-btn.secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.copilot-card-btn.secondary:hover {
  background: #e2e8f0;
}

body.dark .copilot-card-btn.secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

/* 底部输入框区域 */
.copilot-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

body.dark .copilot-input-area {
  background: #0f172a;
  border-top-color: rgba(51, 65, 85, 0.8);
}

.copilot-textarea {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  height: 40px;
  max-height: 100px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s;
}

.copilot-textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

body.dark .copilot-textarea {
  background: #1e293b;
  border-color: #475569;
  color: #f8fafc;
}

body.dark .copilot-textarea:focus {
  background: #0f172a;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.copilot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.copilot-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.copilot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==============================================================================
 * 3. 伴随式现场代填视觉特效：聚光灯聚焦呼吸框 + ✨ AI 代填微动效
 * ============================================================================== */
.copilot-spotlight-focus {
  position: relative !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 0 28px rgba(16, 185, 129, 0.35) !important;
  background-color: rgba(16, 185, 129, 0.08) !important;
  transform: scale(1.015) !important;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 1000 !important;
  animation: copilot-pulse-glow 1.2s infinite ease-in-out !important;
}

@keyframes copilot-pulse-glow {
  0% { box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.5), 0 0 12px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 5.5px rgba(16, 185, 129, 0.75), 0 0 30px rgba(16, 185, 129, 0.45); }
  100% { box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.5), 0 0 12px rgba(16, 185, 129, 0.25); }
}

.copilot-ai-fill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #065f46;
  background: #a7f3d0;
  border: 1px solid #10b981;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  animation: copilot-badge-bounce 0.4s ease-out;
  vertical-align: middle;
}

@keyframes copilot-badge-bounce {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 4. 弹窗打开时的并列分屏布局：防止对话面板遮挡表单，让用户同时看到建议与实际代填 */
@media (min-width: 1200px) {
  body.copilot-active-modal .modal-overlay .modal-card,
  body.copilot-active-modal .modal-overlay .modal-box,
  body.copilot-active-modal .fb-modal-overlay .fb-modal-card,
  body.copilot-active-modal #add-fb-tmpl-modal .fb-modal-card,
  body.copilot-active-modal #add-fb-acc-modal .fb-modal-card,
  body.copilot-active-modal #fb-create-video-modal .fb-modal-card,
  body.copilot-active-modal #lp-builder-modal .modal-card {
    margin-right: 480px !important;
    max-width: min(860px, calc(100vw - 520px)) !important;
    transition: margin-right 0.3s ease, max-width 0.3s ease;
  }
  body.copilot-active-modal #u5-copilot-panel {
    right: 16px !important;
    width: 450px !important;
    max-width: 450px !important;
    z-index: 100050 !important;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.2) !important;
  }
}

/* ==============================================================================
 * 5. 傻瓜式 5 步闭环：意图透传卡片、纠偏胶囊、推荐方案卡片与下游主动预测
 * ============================================================================== */

/* 5.1 意图透传与核验卡片 (Intent Reflection Box) */
.copilot-intent-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

body.dark .copilot-intent-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(88, 28, 135, 0.25) 100%);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.copilot-intent-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
}

body.dark .copilot-intent-header {
  color: #93c5fd;
}

.copilot-intent-icon {
  font-size: 13px;
}

.copilot-intent-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
}

body.dark .copilot-intent-text {
  color: #f1f5f9;
}

/* 5.2 纠偏快捷选项 (Pivot Chips) */
.copilot-pivot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(203, 213, 225, 0.6);
}

body.dark .copilot-pivot-chips {
  border-top-color: rgba(71, 85, 105, 0.6);
}

.copilot-pivot-chip {
  appearance: none;
  border: none;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.35;
  white-space: nowrap;
}

.copilot-pivot-chip.confirmed {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
  font-weight: 600;
}

.copilot-pivot-chip.confirmed:hover {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}

.copilot-pivot-chip.pivot {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

body.dark .copilot-pivot-chip.pivot {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #475569;
}

.copilot-pivot-chip.pivot:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

body.dark .copilot-pivot-chip.pivot:hover {
  background: #334155;
  color: #ffffff;
  border-color: #64748b;
}

/* 5.3 自然语言文案主体 */
.copilot-reply-body {
  font-size: 13px;
  line-height: 1.55;
  color: #1e293b;
}

body.dark .copilot-reply-body {
  color: #f1f5f9;
}

/* 5.4 预设推荐执行方案卡片 (Recommended Plans Container & Cards) */
.copilot-plans-container {
  margin-top: 12px;
}

.copilot-plans-header {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

body.dark .copilot-plans-header {
  color: #e2e8f0;
}

.copilot-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copilot-plan-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.dark .copilot-plan-card {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.copilot-plan-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

body.dark .copilot-plan-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.copilot-plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.copilot-plan-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

body.dark .copilot-plan-title {
  color: #f8fafc;
}

.copilot-plan-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

body.dark .copilot-plan-badge {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.2);
}

.copilot-plan-summary {
  font-size: 11.5px;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 8px;
}

body.dark .copilot-plan-summary {
  color: #94a3b8;
}

.copilot-plan-adopt-btn {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copilot-plan-adopt-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.copilot-plan-adopt-btn:active {
  transform: translateY(0);
}

/* 5.5 漏斗下游主动预测操作 (Proactive Next Steps) */
.copilot-proactive-steps {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(203, 213, 225, 0.7);
}

body.dark .copilot-proactive-steps {
  border-top-color: rgba(71, 85, 105, 0.7);
}

.copilot-next-steps-header {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

body.dark .copilot-next-steps-header {
  color: #cbd5e1;
}

.copilot-next-steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.copilot-next-step-chip {
  appearance: none;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1.35;
}

body.dark .copilot-next-step-chip {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.copilot-next-step-chip:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}


