/* v98 卡片内请求计时 */
.xh-v98-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 780px;
  margin: 16px auto;
  box-sizing: border-box;
}

.xh-v98-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .28);
}

.xh-v98-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.xh-v98-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  font-size: 15px;
}

.xh-v98-spinner {
  width: 14px;
  height: 14px;
  border: 3px solid #ddd6fe;
  border-top-color: #4f46e5;
  border-radius: 999px;
  animation: xhV98Spin .8s linear infinite;
  flex: 0 0 14px;
}

.xh-v98-spinner.done {
  animation: none;
  border-color: #22c55e;
  background: #22c55e;
}

.xh-v98-spinner.fail {
  animation: none;
  border-color: #ef4444;
  background: #ef4444;
}

.xh-v98-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xh-v98-progress {
  height: 8px;
  border-radius: 999px;
  background: #eef2ff;
  margin-top: 12px;
  overflow: hidden;
}

.xh-v98-progress-inner {
  width: 8%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width .45s ease;
}

.xh-v98-tip {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

@keyframes xhV98Spin {
  to {
    transform: rotate(360deg);
  }
}

/* 图片加载时在卡片里显示提示 */
.xh-v98-img-loading {
  position: relative;
  min-height: 220px;
  background: #f8fafc;
}

.xh-v98-img-loading::after {
  content: "图片加载中...";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #64748b;
  font-weight: 900;
  font-size: 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 999px;
}

.xh-v98-muted-auto-text {
  opacity: .55;
}

@media (max-width: 768px) {
  .xh-v98-ai-row {
    max-width: calc(100vw - 20px);
    margin: 14px 10px;
    gap: 9px;
  }

  .xh-v98-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 13px;
  }

  .xh-v98-card {
    border-radius: 16px;
    padding: 12px 13px;
  }

  .xh-v98-card-head {
    font-size: 14px;
  }

  .xh-v98-tip {
    font-size: 12px;
  }
}
