.w-e-text-container {
  background-color: rgba(0, 0, 0, 0) !important;
  border: none !important;
  height: 95% !important; /* 设置为90%让文字能完全显示 */
}
.w-e-toolbar {
  background-color: rgba(0, 0, 0, 0) !important;
  border: none !important;
  display: none !important;
}
.w-e-text {
  border: none !important;
  height: 95% !important; /* 设置为90%让文字能完全显示 */
  overflow-y: auto !important; /* 内容过多时显示滚动条 */
}
.ai-left-height {
  height: calc(100% - 0px) !important; /* 减去header和footer的高度 */
}
.article .article-box {
  height: calc(100% - 0px) !important; /* 减去header和footer的高度 */
  overflow: hidden; /* 防止内容溢出 */
}
.ai-yuanchuang {
  height: calc(100% - 50px);
}
.ai-yuanchuang .sentence {
  height: calc(100% - 50px);
}
.foot-tag {
  gap: 10px;
}
.foot-tag .tag {
  width: 75px;
  height: 26px;
  line-height: 26px;
  border-radius: 14px;
  text-align: center;
  background-color: #fff;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.foot-tag .tag em {
  display: inline-block;
  font-style: normal;
}
.sentence {
  height: 100%;
  overflow-y: auto;
}
.foot-tag .tag i {
  display: block;
}
.foot-tag .tag.cross {
  background-color: rgba(183, 28, 28, 0.1);
  color: #f00;
}
.foot-tag .tag.warning {
  background-color: rgba(230, 81, 0, 0.1);
  color: #b67418;
}
.foot-tag .tag.check {
  background-color: rgba(27, 94, 32, 0.1);
  color: #529c4f;
}
.dark-mode .foot-tag .tag i {
  display: block;
}
.dark-mode .foot-tag .tag.cross {
  background-color: rgba(183, 28, 28, 0.1);
  color: #b71c1c;
}
.dark-mode .foot-tag .tag.warning {
  background-color: rgba(230, 81, 0, 0.1);
  color: #e65100;
}
.dark-mode .foot-tag .tag.check {
  background-color: rgba(27, 94, 32, 0.1);
  color: #1b5e20;
}
.result-content {
  height: calc(100% - 40px); /* 减少减去的空间，让结果区域更大 */
  overflow: hidden; /* 防止内容溢出 */
}
.result-content .ai-result {
  height: 100%;
  overflow-y: auto;
}
.article-right {
  height: calc(100% - 40px) !important; /* 减少减去的空间，让结果区域更大 */
  overflow: hidden; /* 防止内容溢出 */
}

/* 确保卡片容器不会超出视口 */
.card.h-100 {
  max-height: 60vh;
  overflow: hidden;
}

/* 确保按钮区域可见 */
.card-footer {
  position: relative;
  z-index: 10;
  background: white;
  border-top: 1px solid #dee2e6;
  flex-shrink: 0; /* 防止被压缩 */
}

/* 暗色模式下的按钮区域 */
.dark-mode .card-footer {
  background: #343a40;
  border-top: 1px solid #495057;
}
