.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}

.tab-btn.active {
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: rgba(0,0,0,0.03);
}

.tab-content {
  padding-top: 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 输入区样式 */
.input-area {
  width: 100%;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  padding-right: 35px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
  line-height: 1.5;
}

.clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
}

.clear-btn:hover {
  background: rgba(224, 224, 224, 0.9);
}

/* 文件上传样式 */
.upload-container {
  margin-bottom: 20px;
}

.file-upload-area {
  width: 100%;
}

.dropzone {
  width: 100%;
  min-height: 150px;
  border: 2px dashed #ccc;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.dropzone.active {
  border-color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
}

.dropzone-content {
  text-align: center;
  padding: 20px;
}

.upload-icon {
  width: 48px;
  height: 48px;
  fill: #999;
  margin-bottom: 10px;
}

.file-info {
  margin-top: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
  display: none;
}

.file-info.show {
  display: block;
}

/* 结果区域样式 */
.result-container {
  margin-bottom: 20px;
}

.result-content textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f8f8;
  resize: vertical;
}

/* 按钮样式 */
.action-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.button:hover {
  background: #e0e0e0;
}

.button.primary {
  background: #4CAF50;
  color: white;
  border-color: #45a049;
}

.button.primary:hover {
  background: #45a049;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .dropzone {
    padding: 20px;
  }
  
  .upload-icon {
    width: 40px;
    height: 40px;
  }
}

/* 添加到module4.css */
.query-container {
  width: 100%;
  margin-bottom: 20px;
}

.query-input {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  margin-bottom: 10px;
}
.page-header .text-muted {
  color: #000000; 
}