/* Autotec AI 客服浮窗样式
 * 定位：左下角（原站 Coze 客服按钮在右下角，避免重叠）
 */
.aics-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f4e79;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.aics-btn:hover { transform: scale(1.08); }

.aics-panel {
  position: fixed;
  left: 24px;
  bottom: 92px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483000;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
.aics-panel.aics-open { display: flex; }

.aics-head {
  background: #1f4e79;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aics-head-title { font-size: 15px; font-weight: 600; }
.aics-head-actions { display: flex; align-items: center; gap: 8px; }
.aics-lang {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.75;
}
.aics-lang:hover { opacity: 1; }
.aics-lang-on { opacity: 1; background: rgba(255, 255, 255, 0.25); }
.aics-min { cursor: pointer; font-size: 16px; padding: 0 2px; }

.aics-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f4f6f9;
  scroll-behavior: smooth;
}
.aics-msg { display: flex; margin-bottom: 10px; }
.aics-msg.aics-user { justify-content: flex-end; }
.aics-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.aics-user .aics-bubble {
  background: #1f4e79;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.aics-assistant .aics-bubble,
.aics-admin .aics-bubble {
  background: #fff;
  color: #222;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.aics-download {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 12px;
  background: #e8f0f8;
  color: #1f4e79;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #c8dcef;
}
.aics-download:hover { background: #d6e6f5; }

.aics-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px 8px;
  font-size: 12px;
  color: #888;
  background: #f4f6f9;
}
.aics-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa7b5;
  display: inline-block;
  animation: aics-bounce 1.2s infinite;
}
.aics-typing i:nth-child(2) { animation-delay: 0.2s; }
.aics-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes aics-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.aics-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #e5e8ec;
  background: #fff;
}
.aics-input {
  flex: 1;
  border: 1px solid #d8dde3;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
}
.aics-input:focus { border-color: #1f4e79; }
.aics-send {
  background: #1f4e79;
  color: #fff;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.aics-send:hover { background: #2a6397; }
.aics-ico { font-size: 18px; cursor: pointer; opacity: 0.7; padding: 2px; }
.aics-ico:hover { opacity: 1; }

.aics-tools {
  padding: 6px 14px 10px;
  background: #fff;
  display: flex;
  justify-content: center;
}
.aics-human {
  font-size: 12px;
  color: #5b738c;
  cursor: pointer;
  padding: 3px 10px;
  border: 1px dashed #b9c6d3;
  border-radius: 12px;
}
.aics-human:hover { color: #1f4e79; border-color: #1f4e79; }
