.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;
}

/* 段落级检测结果样式 */
.detect-paragraphs {
  margin-bottom: 16px;
  padding: 0;
}

.detect-paragraphs-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detect-paragraphs-title i {
  color: #4285f4;
  font-size: 0.8rem;
}

.dark-mode .detect-paragraphs-title {
  color: #e8eaed;
}

.detect-paragraph-item {
  position: relative;
  padding: 12px 14px;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

.dark-mode .detect-paragraph-item {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.detect-paragraph-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.dark-mode .detect-paragraph-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.detect-paragraph-item.human {
  border-left-color: #34a853;
}

.detect-paragraph-item.genai {
  border-left-color: #ea4335;
}

.detect-paragraph-item.mixed {
  border-left-color: #fbbc04;
}

.detect-paragraph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.detect-paragraph-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.detect-paragraph-badge i {
  font-size: 0.65rem;
}

.detect-paragraph-badge.human {
  background-color: rgba(52, 168, 83, 0.1);
  color: #34a853;
}

.detect-paragraph-badge.genai {
  background-color: rgba(234, 67, 53, 0.1);
  color: #ea4335;
}

.detect-paragraph-badge.mixed {
  background-color: rgba(251, 188, 4, 0.1);
  color: #fbbc04;
}

.detect-paragraph-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  flex-wrap: wrap;
}

.detect-paragraph-metric {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.detect-paragraph-metric-label {
  color: #5f6368;
}

.dark-mode .detect-paragraph-metric-label {
  color: #9aa0a6;
}

.detect-paragraph-metric-value {
  font-weight: 600;
  color: #1f1f1f;
}

.dark-mode .detect-paragraph-metric-value {
  color: #e8eaed;
}

.detect-paragraph-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #1f1f1f;
  margin: 0;
}

.dark-mode .detect-paragraph-text {
  color: #e8eaed;
}

.llm-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 500;
  background-color: rgba(66, 133, 244, 0.1);
  color: #4285f4;
}

.dark-mode .llm-source-tag {
  background-color: rgba(138, 180, 248, 0.15);
  color: #8ab4f8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .detect-paragraph-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .detect-paragraph-metrics {
    margin-left: 0;
  }
}
