.ai-chat__messages {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 24px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-chat__thread-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  padding: 48px 16px;
  color: #8f959e;
  font-size: 14px;
}

.ai-chat__thread-loading--error {
  color: #c45656;
}

.ai-chat__thread-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #e5e6eb;
  border-top-color: #0175e8;
  border-radius: 50%;
  animation: ai-thread-loading-spin 0.8s linear infinite;
}

.ai-chat__thread-loading-text {
  line-height: 1.5;
}

@keyframes ai-thread-loading-spin {
  to { transform: rotate(360deg); }
}

.ai-chat__round {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-chat__msg {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-chat__msg--user {
  align-items: flex-end;
}

.ai-chat__msg-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat__msg-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(19deg, #0175e8 4%, #9436ff 98%);
}

.ai-chat__msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-chat__msg-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #2a2b2e;
}

.ai-chat__card {
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ai-chat__card--plain {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
}

.ai-chat__card--merged {
  gap: 16px;
}

.ai-chat__card--merged > .ai-chat__card {
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.ai-chat__card--merged > .ai-chat__card:first-child {
  border-radius: 0;
}

.ai-chat__card--merged .ai-chat__form-intro {
  margin-top: 0;
}

.ai-chat__form-fill-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 文本消息-分支B · 层级段落（Figma 6585:1087） */
.ai-chat__card--hierarchy {
  padding: 16px;
}

.ai-chat__hierarchy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__hierarchy-title {
  margin: 0;
  font-size: var(--ai-typo-title-lg-size, 18px);
  line-height: var(--ai-typo-title-lg-line-height, 28px);
  font-weight: var(--ai-typo-title-lg-weight, 600);
  letter-spacing: var(--ai-typo-title-lg-letter-spacing, 0.2px);
  color: var(--ai-color-text-primary, #2a2b2e);
}

.ai-chat__hierarchy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat__hierarchy-subtitle {
  margin: 0;
  font-size: var(--ai-typo-title-sm-size, 16px);
  line-height: var(--ai-typo-title-sm-line-height, 24px);
  font-weight: var(--ai-typo-title-sm-weight, 600);
  letter-spacing: var(--ai-typo-title-sm-letter-spacing, 0.1px);
  color: var(--ai-color-text-primary, #2a2b2e);
}

.ai-chat__hierarchy-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__hierarchy-footer .ai-chat__text {
  margin: 0;
}

.ai-chat__inline-link {
  color: var(--ai-color-text-link, #0175e8);
  text-decoration: underline;
  word-break: break-all;
}

.ai-chat__inline-link:hover {
  color: var(--ai-color-text-link, #0175e8);
}

/* 文本消息-分支C · 复杂段落（Figma 6585:1337） */
.ai-chat__card--complex {
  gap: 16px;
  padding: 16px;
}

.ai-chat__card--complex .ai-chat__hierarchy {
  gap: 12px;
}

.ai-chat__complex-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__complex-block > .ai-chat__text {
  margin: 0;
}

.ai-chat__inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: var(--ai-typo-body-size, 14px);
  line-height: var(--ai-typo-body-line-height, 20px);
  color: var(--ai-color-text-primary, #2a2b2e);
}

.ai-chat__inline-text {
  display: inline;
}

.ai-chat__inline-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: var(--ai-typo-tag-size, 12px);
  line-height: var(--ai-typo-tag-line-height, 16px);
  font-weight: var(--ai-typo-tag-weight, 400);
  white-space: nowrap;
}

.ai-chat__inline-tag--model,
.ai-chat__inline-tag--recommend {
  background-image:
    linear-gradient(90deg, #0175e8 0%, #9436ff 100%),
    linear-gradient(90deg, rgba(1, 117, 232, 0.1) 0%, rgba(148, 54, 255, 0.1) 100%);
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ai-chat__inline-tag--compat {
  background: rgba(250, 144, 16, 0.05);
  color: #fa9010;
}

.ai-chat__inline-tag--warn {
  background: rgba(230, 0, 57, 0.05);
  color: #e60039;
}

.ai-chat__code-block {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  max-width: 100%;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.ai-chat__code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  background: #f5f6f8;
  border-bottom: 1px solid #e6e8eb;
}

.ai-chat__code-block-lang {
  font-size: var(--ai-typo-code-size, 13px);
  line-height: var(--ai-typo-code-line-height, 20px);
  color: #6a6b6d;
}

.ai-chat__code-block-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat__code-block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.85;
}

.ai-chat__code-block-btn:hover {
  opacity: 1;
}

.ai-chat__code-block-btn img {
  width: 16px;
  height: 16px;
}

.ai-chat__code-block-body {
  margin: 0;
  padding: 12px 20px;
  background: #fafbfc;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.ai-chat__code-block-body code {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.68;
  color: #2a2b2e;
  white-space: pre !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  tab-size: 4;
}

/* 对话内 Markdown 代码/拓扑：无背景分块，与正文一体 */
.ai-chat__md-pre {
  margin: 8px 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.ai-chat__md-pre code {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: inherit;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  tab-size: 4;
  font-variant-ligatures: none;
}

/*
 * 组网拓扑字符网格：半角 1ch、汉字/全角 2ch，强制列对齐，不依赖字体度量。
 */
.ai-chat__md-pre--ascii {
  margin: 8px 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow-x: auto;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.35;
  color: inherit;
  white-space: normal;
}

.ai-chat__ascii-line {
  display: block;
  white-space: nowrap;
  min-height: 1.35em;
}

.ai-chat__ascii-ch {
  display: inline-block;
  box-sizing: content-box;
  width: 1ch;
  max-width: 1ch;
  overflow: hidden;
  text-align: center;
  vertical-align: top;
  white-space: pre;
  font-variant-ligatures: none;
}

.ai-chat__ascii-ch.is-wide {
  width: 2ch;
  max-width: 2ch;
}

.ai-chat__action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ai-chat__action-btn {
  padding: 4px 16px;
  border: none;
  border-radius: 4px;
  font-size: var(--ai-typo-action-size, 14px);
  line-height: var(--ai-typo-action-line-height, 20px);
  font-weight: var(--ai-typo-action-weight, 400);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.ai-chat__action-btn--primary {
  background: linear-gradient(46deg, #0175e8 3%, #9436ff 99%);
  color: #fff;
}

.ai-chat__action-btn--secondary {
  background: #f1f3f5;
  color: #6a6b6d;
}

/* 文本消息-分支D · 参数查询（Figma 6605:1698） */
.ai-chat__card--param {
  gap: 16px;
  padding: 16px;
}

.ai-chat__param-query {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__param-query > .ai-chat__text {
  margin: 0;
  font-size: var(--ai-typo-body-size, 14px);
  line-height: var(--ai-typo-body-line-height, 20px);
  color: var(--ai-color-text-primary, #2a2b2e);
}

.ai-chat__param-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat__param-highlight-bar {
  flex-shrink: 0;
  align-self: stretch;
  width: 4px;
  min-height: 48px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0175e8 0%, #9436ff 100%);
}

.ai-chat__param-highlight-value {
  margin: 0;
  font-size: var(--ai-typo-param-size, 32px);
  line-height: var(--ai-typo-param-line-height, 48px);
  font-weight: var(--ai-typo-param-weight, 700);
  letter-spacing: var(--ai-typo-param-letter-spacing, 1px);
  color: var(--ai-color-text-primary, #2a2b2e);
  word-break: break-word;
}

.ai-chat__hierarchy-section .ai-chat__text,
.ai-chat__hierarchy-footer .ai-chat__text {
  font-size: var(--ai-typo-body-size, 14px);
  line-height: var(--ai-typo-body-line-height, 20px);
  letter-spacing: var(--ai-typo-body-letter-spacing, 0);
}

.ai-chat__card-header {
  padding: 12px;
  border-bottom: 1px solid #e3e5e6;
  font-size: 14px;
  font-weight: 700;
  color: #2a2b2e;
}

.ai-chat__card-body {
  padding: 12px;
}

.ai-chat__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}

.ai-chat__summary-label {
  flex-shrink: 0;
  width: 100px;
  padding: 3px 8px 3px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6a6b6d;
}

.ai-chat__summary-tags {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.ai-chat__tag {
  padding: 3px 6px;
  border-radius: 4px;
  background: #f1f3f5;
  font-size: 14px;
  line-height: 1.5;
  color: #6a6b6d;
}

.ai-chat__user-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  max-width: 80%;
  padding-bottom: 28px;
  margin-bottom: -28px;
}

.ai-chat__user-bubble {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0175e8 0%, #9436ff 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
}

.ai-chat__user-text {
  margin: 0;
  color: #fff;
}

.ai-chat__user-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s linear 0.25s;
}

.ai-chat__user-copy img {
  display: block;
  width: 24px;
  height: 24px;
}

.ai-chat__user-wrap:hover .ai-chat__user-copy:not(.is-copied),
.ai-chat__user-wrap:focus-within .ai-chat__user-copy:not(.is-copied) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}

.ai-chat__user-copy:hover {
  opacity: 0.72;
}

.ai-chat__user-copy.is-copied {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ai-chat__user-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-chat__user-attachments:last-child {
  margin-bottom: 0;
}

.ai-chat__user-attach--image {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  line-height: 0;
}

.ai-chat__user-attach--image img {
  display: block;
  max-width: 200px;
  max-height: 160px;
  object-fit: cover;
}

.ai-chat__user-attach--file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  text-decoration: none !important;
}

.ai-chat__user-attach--file:hover,
.ai-chat__user-attach--file:focus,
.ai-chat__user-attach--file:visited,
.ai-chat__user-attach--file:active {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
  text-decoration: none !important;
}

.ai-chat__user-attach-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ai-chat__user-attach-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #fff !important;
}

.ai-chat__composer-attachments {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat__composer-attachments.is-visible {
  display: flex;
}

/* 拖拽文件到输入区时的高亮 */
.AI-panel__composer-wrap.is-file-dragover .AI-panel__composer,
.ai-chat__composer-wrap.is-file-dragover .ai-chat__composer {
  background: #f3f8ff;
  box-shadow: inset 0 0 0 1.5px #0175e8;
}

/* 附件 file input：避免官网全局 input 样式冲突导致「选择文件」露出 */
#AI-panel .AI-panel__composer .ai-chat__file-input,
#AI-panel .AI-panel__composer input[type="file"],
.ai-chat .ai-chat__composer .ai-chat__file-input,
.ai-chat .ai-chat__composer input[type="file"] {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ai-chat__composer-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 4px 8px 4px 4px;
  border-radius: 8px;
  background: #f7f9fa;
  border: 1px solid #ebeef2;
}

.ai-chat__composer-attach-thumb {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.ai-chat__composer-attach-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  color: #2a2b2e;
}

.ai-chat__composer-attach-remove {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #9b9fa8;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}

.ai-chat__composer-attach-remove:hover {
  background: #ebeef2;
  color: #6a6b6d;
}

.ai-chat__turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__turn-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* AI 对话反馈区域（Figma 6568:76） */
.ai-chat__feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ai-chat__feedback-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ai-chat__feedback-btn img,
.ai-chat__feedback-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.ai-chat__feedback-btn:hover {
  background: #F7F9FA;
}

.ai-chat__btn-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
  color: #2a2b2e;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ai-chat__btn-tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-bottom-color: #fff;
  transform: translateX(-50%);
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.04));
}

.ai-chat__feedback-btn:hover .ai-chat__btn-tooltip,
.ai-chat__feedback-btn:focus-visible .ai-chat__btn-tooltip,
.ai-chat__md-table-action:hover .ai-chat__btn-tooltip,
.ai-chat__md-table-action:focus-visible .ai-chat__btn-tooltip {
  opacity: 1;
  visibility: visible;
}

/* 反馈区首个按钮贴左，居中提示会被消息区 overflow-x 裁切 */
.ai-chat__feedback > .ai-chat__feedback-btn:first-child .ai-chat__btn-tooltip {
  left: 0;
  transform: none;
}

.ai-chat__feedback > .ai-chat__feedback-btn:first-child .ai-chat__btn-tooltip::before {
  left: 12px;
  transform: none;
}

/* 移动端反馈按钮（复制/点赞/点踩/重新生成）不展示 tooltip，PC 端 hover 逻辑保持不变 */
@media (max-width: 768px) {
  .ai-chat__feedback-btn .ai-chat__btn-tooltip {
    display: none;
  }
}

.ai-chat__feedback-btn.is-active {
  background: transparent;
}

.ai-chat__feedback-btn.is-active:hover {
  background: transparent;
}

.ai-chat__feedback-btn.is-hidden {
  display: none;
}

.ai-chat__feedback-btn[data-action="like"] .ai-chat__feedback-icon--hover,
.ai-chat__feedback-btn[data-action="like"] .ai-chat__feedback-icon--active,
.ai-chat__feedback-btn[data-action="dislike"] .ai-chat__feedback-icon--hover,
.ai-chat__feedback-btn[data-action="dislike"] .ai-chat__feedback-icon--active {
  display: none;
}

.ai-chat__feedback-btn[data-action="like"]:hover:not(.is-active) .ai-chat__feedback-icon--default,
.ai-chat__feedback-btn[data-action="dislike"]:hover:not(.is-active) .ai-chat__feedback-icon--default {
  display: none;
}

.ai-chat__feedback-btn[data-action="like"]:hover:not(.is-active) .ai-chat__feedback-icon--hover,
.ai-chat__feedback-btn[data-action="dislike"]:hover:not(.is-active) .ai-chat__feedback-icon--hover {
  display: block;
}

.ai-chat__feedback-btn[data-action="like"].is-active .ai-chat__feedback-icon--default,
.ai-chat__feedback-btn[data-action="like"].is-active .ai-chat__feedback-icon--hover,
.ai-chat__feedback-btn[data-action="dislike"].is-active .ai-chat__feedback-icon--default,
.ai-chat__feedback-btn[data-action="dislike"].is-active .ai-chat__feedback-icon--hover {
  display: none;
}

.ai-chat__feedback-btn[data-action="like"].is-active .ai-chat__feedback-icon--active,
.ai-chat__feedback-btn[data-action="dislike"].is-active .ai-chat__feedback-icon--active {
  display: block;
}

.ai-chat__copy-toast {
  position: fixed;
  z-index: 10007;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(42, 43, 46, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
  box-sizing: border-box;
  animation: ai-copy-toast-in 0.2s ease;
}

.ai-chat__copy-toast.is-leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes ai-copy-toast-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat__turn.is-streaming .ai-chat__feedback {
  display: none;
}

.ai-chat__segment--tool .ai-chat__skills,
.ai-chat__skills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e3e5e6;
}

.ai-chat__skill-badge.is-calling {
  box-shadow: 0 0 0 1px #e3e5e6;
}

.ai-chat__skill-badge-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ai-chat__skill-badge-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #e3e5e6;
  border-top-color: #0175e8;
  border-radius: 50%;
  animation: ai-skill-spin 0.8s linear infinite;
  animation-delay: calc(-1 * var(--ai-spin-offset, 0ms));
}

@keyframes ai-skill-spin {
  to { transform: rotate(360deg); }
}

.ai-chat__skill-badge-text {
  font-size: 14px;
  line-height: 1.5;
  color: #6a6b6d;
}

.ai-chat__tool-panel {
  width: fit-content;
  max-width: 100%;
}

.ai-chat__tool-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e3e5e6;
  cursor: pointer;
  text-align: left;
}

.ai-chat__tool-toggle.is-static {
  cursor: default;
}

.ai-chat__tool-chevron {
  transition: transform 0.2s;
}

.ai-chat__tool-panel.is-expanded .ai-chat__tool-chevron {
  transform: rotate(180deg);
}

.ai-chat__tool-body {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f9fa;
  max-width: 520px;
}

.ai-chat__tool-output {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6a6b6d;
  word-break: break-word;
}

.ai-chat__reasoning-panel {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e3e5e6;
  overflow: hidden;
}

.ai-chat__reasoning-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.ai-chat__reasoning-toggle-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2b2e;
}

.ai-chat__reasoning-check,
.ai-chat__reasoning-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ai-chat__reasoning-spinner {
  border: 2px solid #e3e5e6;
  border-top-color: #0175e8;
  border-radius: 50%;
  animation: ai-skill-spin 0.8s linear infinite;
}

.ai-chat__reasoning-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.ai-chat__reasoning-chevron--toggle {
  transform: rotate(0deg);
}

.ai-chat__reasoning-panel.is-expanded .ai-chat__reasoning-chevron--toggle {
  transform: rotate(180deg);
}

.ai-chat__reasoning-body {
  padding: 0 12px 12px;
}

.ai-chat__reasoning-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 8px 8px 20px;
}

.ai-chat__reasoning-rail {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e3e5e6;
}

.ai-chat__reasoning-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #0175e8;
}

.ai-chat__reasoning-tag {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(1, 117, 232, 0.1);
  font-size: 12px;
  line-height: 1.5;
  color: #0175e8;
}

.ai-chat__reasoning-text {
  flex: 1;
  margin: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9b9fa8;
  word-break: break-word;
}

.ai-chat__reasoning-chevron--step {
  margin-top: 4px;
  transform: rotate(-90deg);
  opacity: 0.45;
}

.ai-chat__reasoning {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9b9fa8;
  word-break: break-word;
}

/* 深度思考（Figma 6611:1109 / 6606:1737） */
.ai-chat__deep-think {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1000px;
}

.ai-chat__deep-think-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  min-height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ai-chat__deep-think-badge-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ai-chat__deep-think-badge-text {
  font-size: 14px;
  line-height: 18px;
  color: #6a6b6d;
}

.ai-chat__deep-think-badge-content {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.ai-chat__deep-think-badge-meta {
  font-size: 14px;
  line-height: 18px;
  color: #9aa0a6;
}

.ai-chat__deep-think-badge .ai-chat__deep-think-shimmer-text {
  display: inline-block;
  vertical-align: baseline;
  font-size: 14px;
  line-height: 18px;
  background: linear-gradient(
    90deg,
    #9b9fa8 0%,
    #9b9fa8 35%,
    #0175e8 50%,
    #9436ff 55%,
    #9b9fa8 70%,
    #9b9fa8 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: ai-deep-think-shimmer 2.6s linear infinite;
}

@keyframes ai-deep-think-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -100% 0; }
}

.ai-chat__deep-think-badge-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.ai-chat__deep-think-badge.is-static {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.ai-chat__deep-think.ai-chat__segment--skill .ai-chat__skill-badge-spinner {
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ai-chat__deep-think.ai-chat__segment--skill .ai-chat__deep-think-badge-icon {
  display: block;
  flex-shrink: 0;
}

.ai-chat__deep-think-body[hidden] {
  display: none !important;
}

.ai-chat__skill-output {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f9fa;
  max-width: 520px;
  font-size: 12px;
  line-height: 1.6;
  color: #6a6b6d;
  word-break: break-word;
}

.ai-chat__deep-think.is-expanded .ai-chat__deep-think-badge-chevron {
  transform: rotate(180deg);
}

.ai-chat__think-process-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__think-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-chat__think-nested {
  margin-top: 6px;
  padding-left: 0;
}

.ai-chat__think-summary-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 2px 0;
  color: #6b6f76;
  font-size: 13px;
  line-height: 1.7;
}

.ai-chat__think-summary-text {
  flex: 1;
  min-width: 0;
  color: #2a2b2e;
  font-size: 13px;
  line-height: 22px;
  word-break: break-word;
  white-space: pre-wrap;
}

.ai-chat__deep-think-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-chat__deep-think-step {
  display: flex;
  align-items: stretch;
}

.ai-chat__deep-think-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
  padding: 0 8px;
  align-self: stretch;
}

.ai-chat__deep-think-step-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.ai-chat__deep-think-rail-line {
  flex: 1;
  width: 1px;
  min-height: 8px;
  margin-top: 8px;
  background: #e3e5e6;
}

.ai-chat__deep-think-step.is-last .ai-chat__deep-think-rail-line {
  display: none;
}

.ai-chat__deep-think-step-body {
  flex: 1;
  min-width: 0;
}

.ai-chat__deep-think-step-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #2a2b2e;
}

.ai-chat__deep-think-step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__deep-think-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ai-chat__deep-think-action-text {
  font-size: 14px;
  line-height: 20px;
  color: #2a2b2e;
}

.ai-chat__deep-think-status-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__deep-think-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat__deep-think-status-group--nested .ai-chat__deep-think-status-head {
  margin-left: 26px;
}

.ai-chat__deep-think-indent {
  flex-shrink: 0;
  width: 26px;
  height: 11px;
}

.ai-chat__deep-think-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ai-chat__deep-think-status-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.ai-chat__deep-think-status-toggle.is-expanded .ai-chat__deep-think-status-chevron {
  transform: rotate(180deg);
}

.ai-chat__deep-think-status-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__deep-think-status-body[hidden] {
  display: none !important;
}

.ai-chat__deep-think-status-body--nested {
  padding-left: 60px;
}

.ai-chat__deep-think-status {
  font-size: 14px;
  line-height: 20px;
  color: #9b9fa8;
}

.ai-chat__deep-think-row-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.ai-chat__deep-think-note {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1px;
  color: #2a2b2e;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-chat__deep-think-summary {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #f7f9fa;
}

.ai-chat__deep-think-status-group--nested {
  margin-top: 10px;
}

.ai-chat__deep-think-aside {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.ai-chat__deep-think-turn {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0;
}

.ai-chat__deep-think-aside-text {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1px;
  color: #9b9fa8;
  word-break: break-word;
}

.ai-chat__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2b2e;
  word-break: break-word;
}

.ai-chat__transfer-summery {
  margin-top: 8px;
  color: #6a6b6d;
}

.ai-chat__text--bold {
  font-size: 16px;
  font-weight: 700;
}

.ai-chat__text-term {
  color: #0175e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 思考过程中的参考资料：品红、无下划线 */
.ai-chat__deep-think .ai-chat__text-term {
  color: #f536ff;
  text-decoration: none;
}

.ai-chat__product-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ai-chat__product-section-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: #2a2b2e;
}

.ai-chat__md {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__md > .ai-chat__text {
  margin: 0;
}

.ai-chat__md-figure {
  margin: 0;
}

.ai-chat__md-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
}

.ai-chat__user-attach--image,
a.ai-human-image-link {
  cursor: zoom-in;
}

/* 回复图片预览：浮层 + 缩放 / 拖拽 */
.ai-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  transition: opacity 0.18s ease;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: none;
}

.ai-image-lightbox.is-open {
  opacity: 1;
}

.ai-image-lightbox__toolbar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.ai-image-lightbox__tool {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ai-image-lightbox__tool:hover {
  background: #e5e7eb;
}

.ai-image-lightbox__zoom-label {
  min-width: 52px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  user-select: none;
}

.ai-image-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-image-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: #fff;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.ai-image-lightbox__img.is-zoomed {
  cursor: grab;
}

.ai-image-lightbox__img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.ai-image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.ai-image-lightbox__close:hover {
  background: #fff;
}

.ai-chat__text .ai-chat__md-image {
  margin: 4px 0;
}

.ai-chat__md-video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 480px;
  border-radius: 8px;
  background: #000;
}

.ai-chat__text .ai-chat__md-video {
  margin: 4px 0;
}

.ai-chat__md-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 4px 0;
}

.ai-chat__md-pdf {
  display: block;
  width: 100%;
  min-height: 480px;
  max-height: 640px;
  border: 0;
  border-radius: 8px;
  background: #f5f6f8;
}

.ai-chat__md-figure--pdf,
.ai-chat__md-figure--video {
  margin: 8px 0;
}

.ai-chat__md-file {
  display: inline-flex;
  align-items: center;
  color: #0066cc;
  text-decoration: none;
}

.ai-chat__md-file:hover {
  text-decoration: underline;
}

.ai-chat__heading {
  margin: 0;
  font-weight: 700;
  color: #2a2b2e;
  line-height: 1.4;
}

.ai-chat__heading--1 { font-size: 20px; }
.ai-chat__heading--2 { font-size: 18px; }
.ai-chat__heading--3 { font-size: 16px; }
.ai-chat__heading--4,
.ai-chat__heading--5,
.ai-chat__heading--6 { font-size: 14px; }

.ai-chat__hr {
  margin: 0;
  border: none;
  border-top: 1px solid #e3e5e6;
}

.ai-chat__md-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-chat__md-table-card {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e3e5e6;
  background: #fff;
}

.ai-chat__md-table-card .ai-chat__table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.ai-chat__md-table-card .ai-chat__table-col {
  width: 160px !important;
}

.ai-chat__md-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: #e4e8eb;
  border-bottom: 1px solid #e3e5e6;
}

.ai-chat__md-table-title {
  font-size: 14px;
  line-height: 1.5;
  color: #2a2b2e;
}

.ai-chat__md-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat__md-table-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
}

.ai-chat__md-table-action img {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.2s;
}

.ai-chat__md-table-action:hover {
  opacity: 1;
}

.ai-chat__md-table-action:hover > img {
  opacity: 0.72;
}

.ai-chat__md-table-action--shrink {
  display: none;
}

.ai-chat__md-table-card.is-fullscreen-active .ai-chat__md-table-action--fullscreen {
  display: none;
}

.ai-chat__md-table-card.is-fullscreen-active .ai-chat__md-table-action--shrink {
  display: inline-flex;
}

.ai-chat__table-fullscreen-mask {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(255, 255, 255, 1);
}

.ai-chat__table-fullscreen-mask[hidden] {
  display: none !important;
}

body.is-table-fullscreen-open {
  overflow: hidden;
}

.ai-chat__md-table-card.is-fullscreen-active {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10006;
  display: flex;
  flex-direction: column;
  width: min(1360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  transform: translate(-50%, -50%) scale(var(--ai-table-fullscreen-scale, 1));
  transform-origin: center center;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 15, 57, 0.15);
}

.ai-chat__md-table-card.is-fullscreen-active .ai-chat__md-table-toolbar {
  flex-shrink: 0;
}

.ai-chat__md-table-card.is-fullscreen-active .ai-chat__md-table-wrap,
.ai-chat__md-table-card.is-fullscreen-active .ai-chat__spec-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.ai-chat__md-table-card.is-fullscreen-active .ai-chat__spec-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ai-chat__md-table-card.is-fullscreen-active .ai-chat__citation {
  display: none;
  pointer-events: none;
}

.ai-chat__code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f0f2f5;
  font-size: 13px;
}

.ai-chat__list--ordered {
  list-style-type: decimal;
}

.ai-chat__list {
  margin: 0;
  padding-left: 1.2em;
}

.ai-chat__list li {
  margin-bottom: 8px;
}

.ai-chat__list li:last-child {
  margin-bottom: 0;
}

.ai-chat__ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6a6b6d;
  font-size: 14px;
  line-height: 25px;
  cursor: pointer;
}

.ai-chat__ref img {
  width: 24px;
  height: 24px;
}

.ai-chat__refs {
  margin-top: 16px;
  margin-bottom: 0;
}

.ai-chat__refs-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6a6b6d;
  font-size: 14px;
  line-height: 25px;
  text-align: left;
  cursor: pointer;
}

.ai-chat__refs-toggle:hover {
  color: #2a2b2e;
}

.ai-chat__refs-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ai-chat__refs-count {
  display: inline;
  font-variant-numeric: tabular-nums;
}

.ai-chat__refs-chev {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-chat__refs.is-folded .ai-chat__refs-chev {
  transform: rotate(-90deg);
}

.ai-chat__refs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ai-chat__refs.is-folded .ai-chat__refs-list,
.ai-chat__refs-list[hidden] {
  display: none;
}

.ai-chat__refs-item {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-chat__refs-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2a2b2e;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.ai-chat__refs-file:hover {
  color: #0175e8;
}

.ai-chat__refs-file:hover .ai-chat__refs-file-name {
  text-decoration: underline;
}

.ai-chat__refs-file-icon {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
}

.ai-chat__refs-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.ai-chat__product {
  background: #f7f9fa;
  overflow: hidden;
}

.ai-chat__product-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}

.ai-chat__product-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.ai-chat__product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-chat__product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  padding: 0;
}

.ai-chat__product-tag {
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(1, 117, 232, 0.1), rgba(148, 54, 255, 0.1));
  color: #0175e8;
  font-size: 12px;
}

.ai-chat__product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #2a2b2e;
}

.ai-chat__product-desc {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: #9b9fa8;
  word-break: break-word;
}

.ai-chat__solution-block {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.ai-chat__solution-block:empty,
.ai-chat__recommendation-pending:empty {
  display: none !important;
}

.ai-chat__solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.ai-chat__solution-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #2a2b2e;
}

.ai-chat__solution-lead-wrap {
  width: 100%;
}

.ai-chat__solution-lead-wrap .ai-chat__text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #2a2b2e;
}

.ai-chat__solution-lead-wrap .ai-chat__md-figure {
  font-weight: 400;
}

.ai-chat__solution-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.ai-chat__solution-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ai-chat__solution-card-cover {
  width: 106px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e3e5e6;
}

.ai-chat__solution-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-chat__solution-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 12px;
  background: #f7f9fa;
}

.ai-chat__solution-card-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: #2a2b2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat__solution-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.ai-chat__solution-card-action svg,
.ai-chat__solution-card-action img {
  display: block;
  width: 20px;
  height: 20px;
}

.ai-chat__recommendation-loading {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #8b8d98;
}

.ai-chat__product-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ai-chat__solution-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ai-chat__solution-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__solution-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #2a2b2e;
}

.ai-chat__solution-desc .ai-chat__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6a6b6d;
}

.ai-chat__param-table { display: flex; flex-direction: column; gap: 8px; }

/* 表格参数（Figma 6598:1602 / 6598:1817） */
.ai-chat__card--spec-table {
  gap: 16px;
  padding: 16px;
}

.ai-chat__spec-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__spec-card > .ai-chat__text {
  margin: 0;
}

.ai-chat__spec-table {
  width: 100%;
}

.ai-chat__spec-table--simple {
  max-width: 100%;
}

.ai-chat__spec-table--compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__spec-table-scroll {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.ai-chat__spec-grid {
  display: grid;
  border: 1px solid #e3e5e6;
  border-right: none;
  border-bottom: none;
  width: 100%;
}

.ai-chat__spec-grid--2 {
  width: 100%;
  max-width: none;
}

.ai-chat__spec-grid--3 {
  min-width: min(100%, 600px);
}

.ai-chat__spec-grid--compare {
  min-width: min(100%, 600px);
}

.ai-chat__spec-cell {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-height: 44px;
  padding: 12px;
  border-right: 1px solid #e3e5e6;
  border-bottom: 1px solid #e3e5e6;
  font-size: 14px;
  line-height: 20px;
  color: #2a2b2e;
  word-break: break-word;
  overflow-wrap: break-word;
  background: #fff;
}

.ai-chat__spec-cell--label,
.ai-chat__spec-cell--dim {
  max-width: 240px;
}

.ai-chat__spec-cell--label,
.ai-chat__spec-cell--dim,
.ai-chat__spec-cell--head.ai-chat__spec-cell--label,
.ai-chat__spec-cell--head.ai-chat__spec-cell--dim {
  background: #f1f3f5;
}

.ai-chat__spec-cell--head {
  font-weight: 700;
}

.ai-chat__spec-cell--label,
.ai-chat__spec-cell--dim {
  font-weight: 400;
  padding: 16px 12px;
}

.ai-chat__spec-cell--detail {
  align-items: flex-start;
  align-self: stretch;
  line-height: 1.5;
}

.ai-chat__spec-cell--product-head {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  min-height: 120px;
  padding: 16px 12px;
  background: #f7f9fa;
  font-weight: 700;
}

.ai-chat__spec-product-thumb {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 4px;
  background: #e3e5e6;
}

.ai-chat__spec-product-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.ai-chat__spec-table-action {
  display: flex;
  align-items: center;
}

.ai-chat__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.ai-chat__table th,
.ai-chat__table td {
  padding: 8px 12px;
  border: 1px solid #e3e5e6;
  text-align: left;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
}

.ai-chat__table th:first-child,
.ai-chat__table td:first-child {
  max-width: 240px;
}

.ai-chat__table th {
  width: 160px;
  max-width: 160px;
  background: #f1f3f5;
  font-weight: 700;
}

.ai-chat__text--invalid { color: #e34d59; }
.ai-chat__text--valid { color: #00a870; }

.ai-chat__highlight-value {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(1, 117, 232, 0.08), rgba(148, 54, 255, 0.08));
  font-size: 16px;
  font-weight: 700;
}

.ai-chat__file-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ai-chat__file-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #2a2b2e;
}

.ai-chat__file-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-chat__file-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 34px;
  background: #f7f9fa;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.ai-chat__file-tab {
  padding: 6px 20px;
  border: none;
  border-radius: 15px;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
  color: #6a6b6d;
  cursor: pointer;
}

.ai-chat__file-tab.is-active {
  background: linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
  color: #fff;
}

.ai-chat__file-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.ai-chat__reply-files {
  margin: 0 0 12px;
}

.ai-chat__reply-files:last-child {
  margin-bottom: 0;
}

.ai-chat__file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f7f9fa;
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ai-chat__file-card:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.ai-chat__file-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ai-chat__file-type {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.ai-chat__file-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.ai-chat__file-date {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 28px;
  color: #9b9fa8;
}

.ai-chat__file-name {
  font-size: 14px;
  line-height: 28px;
  color: #001233;
  word-break: break-word;
}

.ai-chat__file-card-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ai-chat__file-more {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-chat__file-more[hidden] {
  display: none !important;
}

.ai-chat__file-expand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  background: linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-chat__file-expand img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ai-chat__file-card.is-hidden {
  display: none;
}

.ai-chat__citation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0 1px 0 4px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: url('../img/ai-citation-icon.svg') center / 16px 16px no-repeat;
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.ai-chat__typing { color: #9b9fa8; }

/* 操作步骤 · 表单填写 / 填写提交（Figma 6604:3009 / 6604:3355） */
.ai-chat__form-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__form-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #2a2b2e;
}

.ai-chat__form-card {
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ai-chat__form-card--fill {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.ai-chat__form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat__form-label {
  font-size: 14px;
  line-height: 1.5;
  color: #6a6b6d;
}

.ai-chat__form-required {
  margin-left: 2px;
  color: #e64545;
  font-weight: 600;
}

.ai-chat__form-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #e3e5e6;
  border-radius: 4px;
  background: #f7f9fa;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2b2e;
  box-sizing: border-box;
}

textarea.ai-chat__form-input,
.ai-chat__form-input--multiline {
  resize: none;
  overflow: hidden;
  min-height: 32px;
  white-space: pre-wrap;
  word-break: break-word;
  appearance: none;
  -webkit-appearance: none;
}

.ai-chat__form-input::placeholder {
  color: #c1c6cf;
}

.ai-chat__form-input.is-error,
.ai-chat__form-field.is-error .ai-chat__form-input {
  border-color: #e64545;
  background: #fff;
}

.ai-chat__form-error {
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #e64545;
}

.ai-chat__form-error[hidden] {
  display: none !important;
}

.ai-chat__form-field.is-error .ai-chat__form-chips,
.ai-chat__form-field.is-error .ai-chat__form-checks {
  box-shadow: inset 0 0 0 1px #e64545;
  border-radius: 4px;
}

.ai-chat__form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat__form-chip {
  padding: 6px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #f7f9fa;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2b2e;
  cursor: pointer;
}

.ai-chat__form-chip.is-selected {
  border: 1px solid transparent;
  background:
    linear-gradient(#f7f9fa, #f7f9fa) padding-box,
    linear-gradient(90deg, #0175e8 0%, #9436ff 100%) border-box;
  color: #0175e8;
}

.ai-chat__form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat__form-check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #f7f9fa;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2b2e;
  cursor: pointer;
}

.ai-chat__form-check-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #c1c6cf;
  border-radius: 2px;
  background: #fff;
}

.ai-chat__form-check-item.is-checked .ai-chat__form-check-icon {
  border-color: #3686ff;
  background-color: #3686ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.ai-chat__form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat__form-btn {
  padding: 4px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.ai-chat__form-btn--primary {
  background: linear-gradient(46deg, #0175e8 3%, #9436ff 99%);
  color: #fff;
}

.ai-chat__form-btn--primary:disabled,
.ai-chat__form-btn--primary.is-disabled,
.ai-chat__form-btn--primary:disabled:hover,
.ai-chat__form-btn--primary.is-disabled:hover {
  background: #e3e5e6;
  color: #9ca3af;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: auto;
}

.ai-chat__form-btn--primary.is-ready:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.ai-chat__form-btn--ghost {
  background: #f1f3f5;
  color: #6a6b6d;
}

.ai-chat__form-card--summary {
  display: flex;
  flex-direction: column;
}

.ai-chat__form-summary-head {
  padding: 16px;
  border-bottom: 1px solid #e3e5e6;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #2a2b2e;
}

.ai-chat__form-summary-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.ai-chat__form-summary-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.ai-chat__form-summary-row--wrap {
  flex-wrap: wrap;
  align-items: flex-start;
}

.ai-chat__form-summary-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.ai-chat__form-summary-label {
  flex-shrink: 0;
  width: 302px;
  max-width: 100%;
  padding-right: 20px;
  font-size: 14px;
  line-height: 20px;
  color: #6a6b6d;
  box-sizing: border-box;
}

.ai-chat__form-summary-row--stack .ai-chat__form-summary-label {
  width: auto;
  padding-right: 0;
}

.ai-chat__form-summary-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.ai-chat__form-summary-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f3f5;
  font-size: 12px;
  line-height: 16px;
  color: #6a6b6d;
}

.ai-chat__form-summary-tag--block {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.ai-chat__form-success {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #2a2b2e;
}

@media (max-width: 768px) {
  .ai-chat__form-summary-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .ai-chat__form-summary-label {
    width: auto;
    padding-right: 0;
  }
}

.ai-citation-drawer {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
}

.ai-citation-drawer.is-open { display: block; }

.ai-citation-drawer__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.ai-citation-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.ai-citation-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 48px 16px 16px;
}

.ai-citation-drawer__body.is-file-preview {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.ai-citation-drawer__body.is-file-preview .ai-citation-drawer__title {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1;
  max-width: calc(100% - 72px);
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
}

.ai-citation-drawer__body.is-file-preview .ai-citation-drawer__iframe {
  height: 100%;
  min-height: 100%;
}

.ai-citation-drawer__body.is-video-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.ai-citation-drawer__body.is-video-preview .ai-citation-drawer__title {
  flex-shrink: 0;
  margin: 0;
  padding: 14px 48px 14px 16px;
  background: #fff;
  color: #2a2b2e;
}

.ai-citation-drawer__media-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.ai-citation-drawer__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #2a2b2e;
  word-break: break-all;
}

.ai-citation-drawer__media {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.ai-citation-drawer__media[controls] {
  width: 100%;
  max-height: calc(100vh - 120px);
  background: #000;
}

.ai-citation-drawer__body.is-video-preview .ai-citation-drawer__media[controls] {
  max-height: 100%;
}

.ai-citation-drawer__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.7;
  color: #2a2b2e;
}

.ai-citation-drawer__markdown {
  font-size: 14px;
  line-height: 1.7;
  color: #2a2b2e;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ai-citation-drawer__markdown img,
.ai-citation-drawer__markdown .ai-chat__md img,
.ai-chat__md--document img,
.ai-chat__md--react img {
  max-height: 400px;
  max-width: 100%;
  display: block;
  margin: 8px auto;
  height: auto;
  object-fit: contain;
}

.ai-citation-drawer__markdown .ai-chat__md,
.ai-citation-drawer__markdown .ai-chat__md--document,
.ai-citation-drawer__markdown .ai-chat__md--react {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ai-citation-drawer__markdown .ai-chat__md--document {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-citation-drawer__markdown .ai-chat__md--document > .ai-chat__text {
  margin: 0;
}

.ai-citation-drawer__markdown .ai-chat__md-table-wrap,
.ai-citation-drawer__markdown .ai-chat__md-table-wrap--document,
.ai-citation-drawer__markdown .ai-chat__md-table-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ai-citation-drawer__markdown .ai-chat__md-table-wrap--document {
  border: 1px solid #e3e5e6;
  border-radius: 4px;
}

.ai-citation-drawer__markdown table,
.ai-citation-drawer__markdown .ai-chat__table,
.ai-citation-drawer__markdown .ai-chat__table--document {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  box-sizing: border-box;
}

.ai-citation-drawer__markdown th,
.ai-citation-drawer__markdown td {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}

/* react-markdown 文档预览 */
.ai-chat__md--react {
  display: block;
}

.ai-chat__md--react > .ai-chat__md--document,
.ai-chat__md.ai-chat__md--react {
  display: block;
}

.ai-chat__md--react h1,
.ai-chat__md--react h2,
.ai-chat__md--react h3,
.ai-chat__md--react h4,
.ai-chat__md--react h5,
.ai-chat__md--react h6 {
  margin: 1.1em 0 0.45em;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2329;
}

.ai-chat__md--react h1 { font-size: 1.5em; }
.ai-chat__md--react h2 { font-size: 1.3em; }
.ai-chat__md--react h3 { font-size: 1.15em; }

.ai-chat__md--react p {
  margin: 0 0 0.75em;
}

.ai-chat__md--react ul,
.ai-chat__md--react ol {
  margin: 0 0 0.75em;
  padding-left: 1.4em;
}

.ai-chat__md--react li {
  margin: 0.25em 0;
}

.ai-chat__md--react blockquote {
  margin: 0.75em 0;
  padding: 0.25em 0 0.25em 12px;
  border-left: 3px solid #d0d3d6;
  color: #646a73;
}

.ai-chat__md--react pre {
  margin: 0.75em 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 6px;
  background: #f5f6f7;
}

.ai-chat__md--react table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75em 0;
  font-size: 13px;
}

.ai-chat__md--react th,
.ai-chat__md--react td {
  border: 1px solid #e3e5e6;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.ai-chat__md--react thead th {
  background: #f7f8fa;
  font-weight: 600;
}

.ai-chat__md--react hr {
  border: 0;
  border-top: 1px solid #e3e5e6;
  margin: 1em 0;
}

.ai-chat__em,
.ai-chat__md em,
.ai-chat__text em {
  font-style: italic;
  color: inherit;
}

.ai-chat__math,
.ai-chat__md .katex {
  font-size: 1.05em;
}

.ai-chat__math--block,
.ai-chat__md .katex-display {
  display: block;
  margin: 0.75em 0;
  overflow-x: auto;
  text-align: center;
}

.ai-chat__md-loading {
  color: #8f959e;
  font-size: 13px;
  padding: 8px 0;
}

.ai-citation-drawer__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  padding: 48px 16px;
  color: #8f959e;
  font-size: 14px;
}

.ai-citation-drawer__loading--error {
  color: #c45656;
}

.ai-citation-drawer__loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #e5e6eb;
  border-top-color: #4e6ef2;
  border-radius: 50%;
  animation: ai-citation-drawer-spin 0.8s linear infinite;
}

.ai-citation-drawer__loading-text {
  line-height: 1.5;
}

@keyframes ai-citation-drawer-spin {
  to { transform: rotate(360deg); }
}

.ai-citation-drawer__highlight {
  display: inline;
  background: #fff3bf;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  scroll-margin-top: 16px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ai-citation-drawer__body .is-citation-excerpt {
  padding: 12px;
  border-radius: 6px;
  background: #fffbeb;
}

.ai-citation-drawer__close {
  position: absolute;
  top: 8px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: 20px;
  line-height: 1;
  color: #6a6b6d;
  cursor: pointer;
}

.ai-citation-drawer__close:hover {
  background: #fff;
  color: #2a2b2e;
}

.ai-citation-drawer__iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 320px;
  border: none;
}

.ai-confirm {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ai-confirm.is-open {
  display: flex;
}

.ai-confirm__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ai-confirm__dialog {
  position: relative;
  width: min(400px, 100%);
  padding: 1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(1, 117, 232, 0.35), rgba(148, 54, 255, 0.35));
  box-shadow: 0 5px 40px rgba(0, 15, 57, 0.15);
}

.ai-confirm__inner {
  padding: 24px;
  border-radius: 11px;
  background: #fff;
}

.ai-confirm__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #2a2b2e;
}

.ai-confirm__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6a6b6d;
}

.ai-confirm__message[hidden] {
  display: none;
}

.ai-confirm__field {
  margin-top: 16px;
}

.ai-confirm--prompt .ai-confirm__message {
  margin-bottom: 0;
}

.ai-confirm__input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e3e5e6;
  border-radius: 8px;
  background: #fff;
  color: #2a2b2e;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-confirm__input::placeholder {
  color: #c1c6cf;
}

.ai-confirm__input:focus {
  border-color: #0175e8;
  box-shadow: 0 0 0 3px rgba(1, 117, 232, 0.12);
}

.ai-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.ai-confirm__btn {
  min-width: 88px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.ai-confirm__btn:hover {
  opacity: 0.9;
}

.ai-confirm__btn--cancel {
  border: 1px solid #e3e5e6;
  background: #fff;
  color: #2a2b2e;
}

.ai-confirm__btn--cancel:hover {
  background: #f7f9fa;
  opacity: 1;
}

.ai-confirm__btn--confirm {
  border: none;
  background: linear-gradient(135deg, #0175e8 0%, #9436ff 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(1, 117, 232, 0.25);
}

.ai-confirm__btn--confirm.ai-confirm__btn--danger {
  background: #e60039;
  box-shadow: 0 2px 12px rgba(230, 0, 57, 0.25);
}

.ai-confirm__btn--confirm.is-disabled,
.ai-confirm__btn--confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ai-confirm__btn--confirm.is-disabled:hover,
.ai-confirm__btn--confirm:disabled:hover {
  opacity: 0.45;
}

/* 移动端：重命名弹窗不拦截侧栏遮罩的点击——点遮罩只关闭侧栏，弹窗保留 */
@media (max-width: 768px) {
  .ai-confirm--prompt {
    pointer-events: none;
  }
  .ai-confirm--prompt .ai-confirm__mask {
    pointer-events: none;
  }
  .ai-confirm--prompt .ai-confirm__dialog {
    pointer-events: auto;
  }
}

.ai-feedback-popover {
  position: fixed;
  z-index: 10004;
  display: none;
}

.ai-feedback-popover.is-open {
  display: block;
}

.ai-feedback-popover__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  max-width: min(512px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 115, 255, 0.2);
  box-sizing: border-box;
}

.ai-feedback-popover__title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #6a6b6d;
}

.ai-feedback-popover__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ai-feedback-popover__option {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  color: #6a6b6d;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.ai-feedback-popover__option:hover {
  border-color: #b8b8b8;
}

.ai-feedback-popover__option.is-selected {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #0175e8 0%, #9436ff 100%) border-box;
  color: #0175e8;
}

.ai-feedback-popover__option--other.is-selected {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #0175e8 0%, #9436ff 100%) border-box;
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
  color: transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
  position: relative;
}

.ai-feedback-popover__option--other.is-selected::after {
  content: "其他反馈";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
}

.ai-feedback-popover__field {
  width: 100%;
}

.ai-feedback-popover__field[hidden] {
  display: none;
}

.ai-feedback-popover__input {
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #6a6b6d;
  border-radius: 4px;
  background: #f7f9fa;
  color: #2a2b2e;
  font-size: 12px;
  line-height: 1.5;
  outline: none;
}

.ai-feedback-popover__input::placeholder {
  color: #c1c6cf;
}

.ai-feedback-popover__input:focus {
  border-color: #0175e8;
  box-shadow: 0 0 0 2px rgba(1, 117, 232, 0.12);
}

.ai-feedback-popover__submit {
  align-self: flex-start;
  padding: 4px 16px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(46deg, #0175e8 3%, #9436ff 99%);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ai-feedback-popover__submit:hover:not(:disabled) {
  opacity: 0.92;
}

.ai-feedback-popover__submit:disabled,
.ai-feedback-popover__submit.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .ai-chat__products {
    grid-template-columns: 1fr;
  }

  .ai-chat__solution-grid {
    grid-template-columns: 1fr;
  }

  .ai-chat__solution-card {
    width: 100%;
  }
}

/* 云桌面需求表单卡 */
.ai-chat__cloud-desktop-form {
  width: 100%;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ai-chat__cloud-desktop-form-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 12px;
}

.ai-chat__cloud-desktop-form-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.ai-chat__cloud-desktop-form-head-text {
  min-width: 0;
  flex: 1;
}

.ai-chat__cloud-desktop-form-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #2a2b2e;
}

.ai-chat__cloud-desktop-form-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-form-body {
  padding: 0 16px 12px;
}

.ai-chat__cloud-desktop-form-section + .ai-chat__cloud-desktop-form-optional,
.ai-chat__cloud-desktop-form-section + .ai-chat__cloud-desktop-form-section {
  margin-top: 12px;
}

.ai-chat__cloud-desktop-section-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: #2a2b2e;
}

.ai-chat__cloud-desktop-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}

.ai-chat__cloud-desktop-field {
  min-width: 0;
}

.ai-chat__cloud-desktop-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 18px;
  color: #2a2b2e;
}

.ai-chat__cloud-desktop-required {
  margin-left: 2px;
  color: #e5484d;
}

.ai-chat__cloud-desktop-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #eef0f3;
  border-radius: 4px;
  background: #f7f9fa;
  font-size: 13px;
  line-height: 20px;
  color: #2a2b2e;
  box-sizing: border-box;
}

.ai-chat__cloud-desktop-input--select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%239B9FA8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.ai-chat__cloud-desktop-form.is-submitted .ai-chat__cloud-desktop-input {
  color: #6a6b6d;
  pointer-events: none;
}

.ai-chat__cloud-desktop-field-desc {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-field-error {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: #e5484d;
}

.ai-chat__cloud-desktop-field.is-error .ai-chat__cloud-desktop-input {
  border-color: #e5484d;
}

.ai-chat__cloud-desktop-form-optional {
  margin-top: 12px;
  border-radius: 6px;
  background: rgba(1, 117, 232, 0.04);
  overflow: hidden;
}

.ai-chat__cloud-desktop-optional-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.ai-chat__cloud-desktop-optional-summary::-webkit-details-marker {
  display: none;
}

.ai-chat__cloud-desktop-optional-title {
  font-size: 13px;
  font-weight: 600;
  color: #0175e8;
}

.ai-chat__cloud-desktop-optional-meta {
  font-size: 12px;
  color: #9b9fa8;
  white-space: nowrap;
}

.ai-chat__cloud-desktop-form-section--optional {
  padding: 0 12px 12px;
}

.ai-chat__cloud-desktop-form-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid #eef0f3;
}

.ai-chat__cloud-desktop-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #0175e8 0%, #9436ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ai-chat__cloud-desktop-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-chat__cloud-desktop-form-foot-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 18px;
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-form-foot-hint {
  text-align: right;
}

.ai-chat__cloud-desktop-field.is-prefill .ai-chat__cloud-desktop-input {
  border-color: #0175e8;
  background: rgba(1, 117, 232, 0.04);
}

.ai-chat__cloud-desktop-field.is-default .ai-chat__cloud-desktop-input {
  border-style: dashed;
}

.ai-chat__cloud-desktop-scene-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-chat__cloud-desktop-scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ai-chat__cloud-desktop-scene-tab,
.ai-chat__cloud-desktop-match-tab {
  appearance: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #f7f9fa;
  color: #6a6b6d;
  font-size: 12px;
  line-height: 28px;
  cursor: pointer;
}

.ai-chat__cloud-desktop-scene-tab.is-active,
.ai-chat__cloud-desktop-match-tab.is-active {
  border-color: #0175e8;
  background: rgba(1, 117, 232, 0.08);
  color: #0175e8;
  font-weight: 600;
}

.ai-chat__cloud-desktop-scene-add,
.ai-chat__cloud-desktop-scene-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: #0175e8;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  padding: 0;
}

.ai-chat__cloud-desktop-scene-remove {
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-scene-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-chat__cloud-desktop-scene-panel-head .ai-chat__cloud-desktop-section-title {
  margin: 0;
}

/* 云桌面匹配结果卡 */
.ai-chat__cloud-desktop-match {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.ai-chat__cloud-desktop-match-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat__cloud-desktop-match-empty {
  padding: 16px;
  border-radius: 8px;
  background: #f7f9fa;
}

.ai-chat__cloud-desktop-match-empty-msg {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #6a6b6d;
}

.ai-chat__cloud-desktop-skeleton {
  display: inline-block;
  width: 64px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eef0f3 25%, #f7f9fa 50%, #eef0f3 75%);
  background-size: 200% 100%;
  animation: ai-cd-skeleton 1.2s ease-in-out infinite;
}

.ai-chat__cloud-desktop-skeleton--block {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: 8px;
}

.ai-chat__cloud-desktop-enhance-pending {
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fa;
}

.ai-chat__cloud-desktop-enhance-tip {
  margin: 0;
  font-size: 12px;
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-compare-status.is-ok { color: #1a7f37; }
.ai-chat__cloud-desktop-compare-status.is-bad { color: #e60039; }
.ai-chat__cloud-desktop-compare-status.is-partial { color: #b54708; }
.ai-chat__cloud-desktop-compare-status.is-unknown { color: #9b9fa8; }

@keyframes ai-cd-skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ai-chat__cloud-desktop-match-product .ai-chat__products--single {
  grid-template-columns: 1fr;
}

.ai-chat__cloud-desktop-match-product .ai-chat__product {
  position: relative;
}

.ai-chat__cloud-desktop-onsale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  background: rgba(230, 0, 57, 0.05);
  color: #e60039;
  pointer-events: none;
}

.ai-chat__cloud-desktop-table-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat__cloud-desktop-table-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #2a2b2e;
}

.ai-chat__cloud-desktop-quantity {
  font-weight: 700;
  color: #0175e8;
}

.ai-chat__cloud-desktop-quantity-badge {
  display: inline-block;
  min-width: 28px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(1, 117, 232, 0.1);
  color: #0175e8;
  font-weight: 700;
  text-align: center;
}

/* 主体内容块：标题 / 副文案 / 状态 / 脚注 / 服务器产品（样式沿用现有体系） */
.ai-chat__cloud-desktop-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ai-chat__cloud-desktop-match-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #2a2b2e;
}

.ai-chat__cloud-desktop-match-sub {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-match-status {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 18px;
  color: #9b9fa8;
  white-space: nowrap;
}

.ai-chat__cloud-desktop-match-loading-tip {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
  color: #6a6b6d;
}

.ai-chat__cloud-desktop-table-footnote {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: #9b9fa8;
}

.ai-chat__cloud-desktop-server-products {
  margin-top: 20px;
}

.ai-chat__cloud-desktop-server-products-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #2a2b2e;
}

.ai-chat__product--cloud-desktop .ai-chat__product-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ai-chat__cloud-desktop-product-detail-link {
  font-size: 13px;
  line-height: 20px;
  color: #0175e8;
}

.ai-chat__cloud-desktop-match-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.ai-chat__cloud-desktop-match-actions-tip {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #2a2b2e;
}

.ai-chat__cloud-desktop-match-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-chat__cloud-desktop-match-btn {
  appearance: none;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ai-chat__cloud-desktop-match-btn--primary {
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
}

.ai-chat__cloud-desktop-match-btn--primary:hover {
  opacity: 0.92;
}

.ai-chat__cloud-desktop-match-btn--outline {
  border: 1px solid #0175e8;
  color: #0175e8;
  background: #fff;
}

.ai-chat__cloud-desktop-match-btn--outline:hover {
  background: rgba(1, 117, 232, 0.06);
}

@media (max-width: 768px) {
  .ai-chat__user-bubble {
    padding: 16px;
  }
  .ai-chat__card--plain{
    padding: 16px;
  }
  .ai-chat__card--hierarchy, .ai-chat__card--complex, .ai-chat__card--param{
    gap: 16px !important;
  }
  .ai-chat__card--hierarchy .ai-chat__hierarchy{
    gap: 16px;
  }
  .ai-chat__card--complex .ai-chat__code-block-head{
    background: #000;
    border-bottom-color: transparent;
  }
  .ai-chat__card--complex .ai-chat__code-block-head .ai-chat__code-block-lang{
    color: #fff;
  }
  .ai-chat__card--complex .ai-chat__code-block-body{
    background: #2A2B2E;
    padding: 20px;
  }
  .ai-chat__card--complex .ai-chat__code-block-body code{
    color: #DDFAFF;
  }
  .ai-chat__card--param .ai-chat__param-highlight-value {
    font-size: 18px;
    line-height: 36px;
  }
  .ai-chat__card--param .ai-chat__param-highlight-bar {
    min-height: 36px;
  }
  .ai-chat__deep-think-action{
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .ai-chat__deep-think-action .ai-chat__inline-link{
    color:#F536FF;
  }
  .ai-chat__turn-body .ai-chat__card--hierarchy .ai-chat__hierarchy{
    gap: 12px;
  }
  /* 表格 */
  .ai-chat__spec-table--simple .ai-chat__spec-grid--2 {
    grid-template-columns: 124px minmax(0, 1fr) !important;
  }

  .ai-chat__spec-table--compare .ai-chat__spec-grid--compare {
    grid-template-columns: 124px repeat(var(--ai-chat-spec-product-count), minmax(200px, 1fr)) !important;
  }

  .ai-chat__spec-table--simple .ai-chat__spec-cell,
  .ai-chat__spec-table--compare .ai-chat__spec-cell{
    min-height: 54px;
    padding: 16px 12px;
    font-size: 14px;
    line-height: 1.5;
    align-items: flex-start;
  }

  .ai-chat__spec-table--simple .ai-chat__spec-cell--label {
    max-width: none;
    padding: 16px 12px;
  }

  .ai-chat__spec-table--simple .ai-chat__spec-cell--label,
  .ai-chat__spec-table--simple .ai-chat__spec-cell--dim {
    max-width: 124px;
  }

  .ai-chat__spec-table--compare .ai-chat__spec-cell--dim {
    max-width: 124px;
  }
  /* 表单 */
  .ai-chat__form-label{
    height: 18px;
    line-height: 1;
  }
  .ai-chat__form-input{
    padding: 6px 8px;
    line-height: 1;
  }
  textarea.ai-chat__form-input,
  .ai-chat__form-input--multiline{
    line-height: 1.5;
  }
  .ai-chat__form-chip{
    padding: 7px 24px;
    line-height: 1;
  }
  .ai-chat__form-check-item{
    padding: 7px 8px;
    line-height: 1;
  }
  .ai-chat__form-summary-row{
    flex-direction: row;
  }
  .ai-chat__form-summary-row .ai-chat__form-summary-label{
    width: 80px;
    margin-right: 20px;
  }
  /* 文件 */
  .ai-chat__file-tabs{
    gap: 4px;
  }
  .ai-chat__file-tabs .ai-chat__file-tab{
    padding: 6px 16px;
    height: 30px;
  }
  .ai-chat__file-expand{
    margin: 0 auto;
    margin-top: 6px;
  }
  .ai-chat__code-block-copy-icon{
    width: 20px;
    height: 20px;
    content: url("https://futurewindow.oss-cn-beijing.aliyuncs.com/chineseResources/UIA/static-page/AI-conversation/img/ai-feedback-copy-h5.svg");
  }
  .ai-chat__file-card-arrow{
    content: url("https://futurewindow.oss-cn-beijing.aliyuncs.com/chineseResources/UIA/static-page/AI-conversation/img/ai-file-chevron-right-h5.svg")
  }
  .ai-chat__deep-think-indent{
    height: 20px;
    content: url("https://futurewindow.oss-cn-beijing.aliyuncs.com/chineseResources/UIA/static-page/AI-conversation/img/ai-deeps-think-turn-h5.svg")
  }
  .ai-chat__deep-think-turn{
    content: url("https://futurewindow.oss-cn-beijing.aliyuncs.com/chineseResources/UIA/static-page/AI-conversation/img/ai-deep-think-turn-h5.svg")
  }

  .ai-chat__cloud-desktop-form-grid {
    grid-template-columns: 1fr;
  }

  .ai-chat__cloud-desktop-form-foot-locked {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-chat__cloud-desktop-form-foot-hint {
    text-align: left;
  }

  .ai-chat__cloud-desktop-match-actions-btns {
    flex-direction: column;
  }

  .ai-chat__cloud-desktop-match-btn {
    width: 100%;
  }
}

/* Clink system emoji sprite used in human transcript render */
.ai-clink-emoji {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin: 0 1px;
  vertical-align: -8px;
  background-image: url('https://futurewindow.oss-cn-beijing.aliyuncs.com/chineseResources/UIA/static-page/AI-conversation/img/clink-emoji.svg');
  background-repeat: no-repeat;
  background-size: 374px 238px;
  background-position: 0 0;
}
