.pdf-reader-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pdf-reader-container-right {
  flex-direction: row;
}

.pdf-viewer-section-right {
  flex-direction: row;
}

.pdf-viewer-section {
  position: relative;
  min-height: 20%;
  max-height: 90%;
  overflow: hidden;
}

@media (max-height: 768px) {
  .pdf-viewer-section {
    max-height: 85%;
  }
}

.pdf-reader {
  height: 100%;
  overflow: auto;
}

.resizer-vertical {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  cursor: row-resize;
  position: relative;
  transition: background-color 0.3s;
}

.resizer-vertical:hover,
.resizer-vertical:active {
  background-color: #1890ff;
}

.resizer-vertical::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 2px;
  background-color: #999;
  border-radius: 1px;
}

.resizer-horizontal {
  height: 100%;
  width: 8px;
  background-color: #f0f0f0;
  cursor: col-resize;
  position: relative;
  transition: background-color 0.3s;
}

.resizer-horizontal:hover,
.resizer-horizontal:active {
  background-color: #1890ff;
}

.resizer-horizontal::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 30px;
  background-color: #999;
}

.translate-section-container {
  overflow: hidden;
  flex: 1;
}

.translate-section-container-right {
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-switcher {
  display: flex;
  background-color: #f5f5f5;
  padding: 8px 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.tab-button {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  margin-right: 8px;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
  color: #666;
  position: relative;
  transition: all 0.3s;
}

.tab-button:hover {
  color: #1890ff;
}

.tab-button.active {
  color: #1890ff;
  background-color: white;
  border: 1px solid #e8e8e8;
  border-bottom: none;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: white;
}

/* 确保 PDF 查看器填满容器 */
.rpv-core__viewer {
  height: 100% !important;
}

.rpv-core__inner-page {
  padding: 0 !important;
}

.chat-box {
  height: calc(100% - 125px);
}
