.step-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.success-box {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  text-align: center;
  color: #155724;
}

.success-icon {
  font-size: 40px;
  color: #28a745;
  margin-bottom: 10px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(to right, #12b7f5, #1e90ff);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-button:hover {
  transform: scale(1.1);
}

.chatbot-button i {
  font-size: 24px;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #00ff00;
  border: 2px solid white;
  border-radius: 50%;
}

.chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  height: 450px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.chat-header {
  background: linear-gradient(to right, #12b7f5, #1e90ff);
  color: white;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  position: relative;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-info {
  flex: 1;
}

.chat-name {
  font-weight: bold;
  font-size: 16px;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-action {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f5f5f5;
}

.message-wrapper {
  display: flex;
  /* align-items: flex-end; */
  gap: 8px;
}

.bot-message-wrapper {
  align-self: flex-start;
}

.user-message-wrapper {
  align-self: flex-end;
  flex-direction: row-reverse;
  width: 100%;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  position: relative;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #00ff00;
  border: 2px solid white;
  border-radius: 50%;
  z-index: 1;
}

.message {
  max-width: 70%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bot-message {
  background: white;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-message {
  background: #95ec69;
  border-bottom-right-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-message .message-text {
  color: #333;
}

/* 消息文本样式 */
.message-text {
  color: #333;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* 审核通过样式 */
.audit-success {
  color: #00c853 !important;
  font-weight: 500;
}

/* 审核失败样式 */
.audit-fail {
  color: #f44336 !important;
  font-weight: 500;
}

/* 引用图片样式 */
.message-quote {
  margin-bottom: 8px;
  border-left: 3px solid #e0e0e0;
  padding-left: 8px;
  border-radius: 4px;
}

.message-quote img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.image-message {
  padding: 5px;
  background: white;
  border-radius: 8px;
  /* overflow: hidden; */
  max-width: 200px;
}

.image-message img {
  width: 100%;
  border-radius: 5px;
}

/* 音频消息样式 */
.audio-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 15px;
  background: #e3f2fd;
  border-radius: 18px;
  transition: background 0.2s;
  max-width: 180px;
  min-width: 120px;
}

.audio-message:hover {
  background: #bbdefb;
}

.audio-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
}

.waveform-bar {
  width: 3px;
  background: #1976d2;
  border-radius: 2px;
  transition: height 0.3s ease;
  height: 15px;
  background-color: #1976d2;
}

.audio-waveform.playing .waveform-bar {
  animation: waveform-animation 0.8s ease-in-out infinite;
}

.audio-waveform.playing .waveform-bar:nth-child(1) {
  animation-delay: 0s;
}

.audio-waveform.playing .waveform-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.audio-waveform.playing .waveform-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.audio-waveform.playing .waveform-bar:nth-child(4) {
  animation-delay: 0.3s;
}

.audio-waveform.playing .waveform-bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes waveform-animation {
  0%,
  100% {
    height: 20px;
  }
  50% {
    height: 40px;
  }
}

.audio-duration {
  font-size: 16px;
  color: #666;
  white-space: nowrap;
}

.audio-message audio {
  display: none;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  background: white;
  display: flex;
  flex-direction: column;
}

.screenshot-notice {
  background: #fff8e1;
  border: 1px dashed #ffd54f;
  border-radius: 5px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #ff6f00;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-notice i {
  margin-right: 5px;
}

.input-row {
  display: flex;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.chat-input:focus {
  border-color: #12b7f5;
}

.chat-send {
  background: #12b7f5;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-upload {
  background: none;
  border: none;
  color: #7f8c8d;
  font-size: 20px;
  cursor: pointer;
  margin-right: 10px;
}

.resource-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.resource-button {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.resource-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.resource-button.secondary {
  background: linear-gradient(to right, #42e695, #3bb2b8);
}

.resource-button.tertiary {
  background: linear-gradient(to right, #5b86e5, #36d1dc);
}

.simple-guide {
  background: #f0f7ff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #3498db;
}

.guide-step {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.guide-icon {
  background: #3498db;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 12px;
}

.guide-text {
  flex: 1;
}

.highlight {
  color: #e60023;
  font-weight: bold;
}

.contact-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: fit-content;
  margin: 20px auto;
}

.contact-button:hover {
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: #333;
}

.download-prompt {
  display: none;
  margin-top: 10px;
  text-align: center;
  color: #e60023;
}

.save-hint {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

.image-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.long-press-hint {
  font-size: 14px;
  color: #3498db;
  margin-top: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

@keyframes fadeInOut {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}
