* {
    padding: 0;
    margin: 0;
}
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}
body, html {
    width: 457px !important;
    height: 594px !important;
}

.body {
    background: linear-gradient(to bottom, #BBECF0 0%, #F4F5F7 50%,rgba(244, 245, 247, 1) 50%);
    border: 1px solid transparent;
}

select {
    /* 基本样式 */
    border: none; /* 去掉边框 */
    background: none; /* 去掉背景 */
    padding: 0; /* 去掉内边距 */
    font-size: inherit; /* 使用父元素的字体大小 */
    color: inherit; /* 使用父元素的字体颜色 */
    width: 100%; /* 设为100%宽度，具体宽度可根据需要调整 */
    outline: none;
}

select:hover {
    outline: none; /* 去掉focus时的高亮边框 */
}

.header {
    margin: auto;
    margin-top: 14px;
    display: flex;
    height: 32px;
    width: 425px;
    flex-direction: row;
}

.logButton {
    height: 32px;
}

.buttonSelf {
    background: rgba(0, 170, 181, 1);
    text-align: center;
    line-height: 32px;
    width: 72px;
    height: 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.selectLanguageContainer {
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

.selectLanguageBox {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 20px;
}

.flex {
    display: flex;
}

.originalLanguageSelect {
    width: 108px;
    height: 20px;
}

.languageSelectText {
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: right;
}

.languageSelect {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 108px;
}

.targetLanguageSelect {
    width: 108px;
    height: 20px;
}

.arrow {
    width: 20px;
    height: 20px;
    margin: 0 12px;
}

.serviceSelectContainer {
    display: flex;
    flex-direction: row;
    width: 425px;
    height: 44px;
    margin: auto;
}

.serviceSelectBox {
    background: rgba(229, 253, 255, 1);
    border-radius: 10px;
    width: 208px;
    height: 44px;
}

.serviceSelect {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    width: 90%;
    height: 100%;
    margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 自定义选择框样式 */
.custom-select {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.select-display {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  background: transparent;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  gap: 8px;
}

.select-display .service-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.select-display .service-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-display .pro-badge {
  width: 34px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 4px;
}

.select-display .dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-select.open .dropdown-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  width: 245px;
  padding: 8px 12px;
  position: absolute;
  top: 100%;
  left: -2px;
  right: 0;
  background: white;
  border: 1px solid #D0D5DD;
  border-radius: 16px;
  box-shadow: 0px 4px 12px 0px #12306D1F;
  z-index: 1000;
  overflow-y: auto;
  margin-top: 4px;
}

.select-dropdown.hidden {
  display: none;
}

.select-option {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 8px;
  font-family: Inter;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.select-option:hover {
  background-color: rgba(0, 170, 181, 0.1);
}

.select-option .service-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.select-option .service-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-option .pro-badge {
  width: 34px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 4px;
}

.select-option.pro-service {
  position: relative;
}

/* Pro服务的特殊布局 */
.select-option.pro-service .service-name {
  flex: none;
  /* 不要自动扩展 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 64px);
  /* 留出图标和Pro标识的空间 */
}

.select-option.selected {
  background-color: rgba(0, 170, 181, 0.1);
  color: rgba(0, 170, 181, 1);
  font-weight: 500;
}
.flex-1 {
    flex: 1;
}

.text-right {
    text-align: right;
}

.hover {
    cursor: pointer;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.visible {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.mainUse {
    background: #fff;
    width: 425px;
    margin: auto;
    border-radius: 10px;
    margin-top: 8px;
    border: 1px solid transparent;
}

.mainUseHeader {
    display: flex;
    flex-direction: row;
    width: 401px;
    margin: auto;
    padding-top: 10px;
}

.mainUseHeaderTitle {
    font-family: Inter;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: left;
    color: rgba(0, 170, 181, 1);
}

.mainUseOptions {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
    color: rgba(31, 41, 67, 0.6);
}

.mainUseMainContainer {
    margin: auto;
    display: flex;
    flex-direction: row;
    width: 401px;
    height: 44px;
}

.switchPatten {
    width: 156px;
    height: 44px;
    font-family: Inter;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
    border-radius: 8px;
    background: rgba(244, 245, 247, 1);
}

.pattenSwitch {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;

    padding-left: 12px;
    width: 142px;
    height: 100%;
}

.translateBtn {
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 181, 1);
    background: rgba(0, 170, 181, 1);
    font-family: Inter;
    font-size: 16px;
    font-weight: 600;
    line-height: 44px;
    text-align: center;
    color: #fff;
}

.translateBtn:hover{
    border: 1px solid rgba(0, 201, 213, 1);
    background: rgba(0, 201, 213, 1);

}

.textTranslateContainer {
    display: flex;
    flex-direction:column ;
    width: 425px;
    margin: auto;
    border-radius: 10px;
    background: #fff;
    border: 1px solid transparent;
}

.textTranslateTitle {
    margin-left: 12px;
    font-family: Inter;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: left;
    padding-top: 12px;
    margin-bottom: 8px;
    color: rgba(0, 170, 181, 1);

}

/* Placeholder styling for contenteditable divs */
.textArae[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: rgba(31, 41, 67, 0.4);
    pointer-events: none;
    display: block; /* Ensures the placeholder behaves like block-level element */
}

.textArae {
    resize: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(31, 41, 67, 0.8); /* Adjusted color for content */
    padding: 8px 32px 8px 8px;
    overflow-y: auto; /* Ensure long content is scrollable */
    word-wrap: break-word; /* Ensure long words wrap to the next line */
    white-space: pre-wrap; /* Preserve whitespaces and ensure text wraps */
    width: 401px;
    flex: 1 1 auto; /* 允许增长和收缩 */
}

.inputContainer {
    margin: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 181, 1);
    background-color: white;
}
.greenText{
    height: 95%;
    overflow: auto; /* Ensure long content is scrollable */
    word-wrap: break-word; /* Ensure long words wrap to the next line */
    white-space: pre-wrap; /* Preserve whitespaces and ensure text wraps */
}
/* 滚动条样式 */
.greenText::-webkit-scrollbar {
    width: 8px;
    height: 95%;
}
/* 滑块样式 */
.greenText::-webkit-scrollbar-thumb {
    background-color: rgb(192, 192, 192);
    border-radius: 8px;
}
/* 滚动条轨道样式 */
.greenText::-webkit-scrollbar-track {
    background-color: #f2f2f2;
    border-radius: 8px;
}

/* 滚动条样式 */
.grayText::-webkit-scrollbar {
    width: 8px;
    height: 95%;
}
/* 滑块样式 */
.grayText::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: rgb(192, 192, 192);
}
/* 滚动条轨道样式 */
.grayText::-webkit-scrollbar-track {
    background-color: #f2f2f2;
}


.loadingContainer{
    margin-left: 12px;
    margin-bottom: 10px;
}

.loadingText{
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: rgba(255, 71, 115, 1);
    max-width: 380px;
    overflow: hidden;
}
.grayText {
    position: relative;
    margin: auto;
    border: none !important;
    display: flex;
    font-size: 14px;
    color: #000;
    padding: 8px 32px 8px 8px;
    overflow-y: auto; /* Ensure long content is scrollable */
    word-wrap: break-word; /* Ensure long words wrap to the next line */
    white-space: pre-wrap; /* Preserve whitespaces and ensure text wraps */

    p {
        max-width: unset; /* 限制文字的最大宽度 */
        word-wrap: break-word; /* 在需要时进行换行 */
    }
}
.clearIcon {
    position: absolute;
    top: 8px; /* Distance from the top */
    right: 16px; /* Distance from the right */
    width: 20px; /* Adjust the size of the icon as needed */
    height: 20px;
    cursor: pointer;
}

.clear-icon {
    position: absolute;
    top: 40px; /* Distance from the top */
    right: 16px; /* Distance from the right */
    width: 20px; /* Adjust the size of the icon as needed */
    height: 20px;
    cursor: pointer;
    z-index: 9999;
}
.retryIcon{
    position: absolute;
    top: 10px; /* Distance from the top */
    right: 16px; /* Distance from the right */
    width: 20px; /* Adjust the size of the icon as needed */
    height: 20px;
    z-index: 9999;
}
footer {
    margin: auto;
    display: flex;
    flex-direction: row;
    width: 425px;
    height: 40px;
    margin-bottom: 8px;
}

.settings {
    min-width: 68px;
      /* 最小宽度，允许增长 */
      max-width: 120px;
      /* 最大宽度，防止过度扩展 */
    height: 20px;
    display: flex;
    flex-direction: row;
    margin: auto;
    overflow: hidden;
      /* 防止内容溢出 */
}

.settingText {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: rgba(31, 41, 67, 0.8);
    white-space: nowrap;
      /* 防止换行 */
      overflow: hidden;
      /* 隐藏溢出内容 */
      text-overflow: ellipsis;
      /* 使用省略号 */
      flex: 1;
      /* 占用剩余空间，但受max-width限制 */
      min-width: 0;
      /* 允许收缩到最小 */
}

.feedback {
    display: flex;
    flex-direction: row;
    margin: auto;
    min-width: 85px;
      /* 最小宽度，允许增长 */
      max-width: 120px;
      /* 最大宽度，防止过度扩展 */
    height: 20px;
    overflow: hidden;
      /* 防止内容溢出 */
}

.feedbackText {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: rgba(31, 41, 67, 0.8);
    white-space: nowrap;
      /* 防止换行 */
      overflow: hidden;
      /* 隐藏溢出内容 */
      text-overflow: ellipsis;
      /* 使用省略号 */
      flex: 1;
      /* 占用剩余空间，但受max-width限制 */
      min-width: 0;
      /* 允许收缩到最小 */
}

.pdfButton {
    background: #fff;
    width: 222px;
    height: 40px;
    border-radius: 8px;
}

.pdfContainer {
    margin: auto;
    height: 20px;
}
.statusMessage {
    display: none; /* 初始状态为隐藏 */
    color:rgba(255, 255, 255, 1);;
    align-content: center;
    position: absolute;
    z-index: 9999;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    width: 237px;
    height: 36px;
    left: 86px;
    top:282px;
}

.copyMessage{
    display: none; /* 初始状态为隐藏 */
    color:rgba(255, 255, 255, 1);;
    align-content: center;
    position: absolute;
    z-index: 9999;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    width: 128px;
    height: 36px;
    left: 144px;
    top:343px;
}

.pdfText {
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: rgba(31, 41, 67, 1);
}

.loadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading_ {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.failedContainer {
    width: 100% !important;
    display: flex;
    flex-direction: row;
}

.failedIcon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    justify-content: center;
    align-items: center;
}

.failedText {
    width: 100% !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.drawer {
    max-height: 0; /* 初始高度为0 */
    overflow: hidden; /* 隐藏溢出的内容 */
    transition: max-height 0.3s ease, margin-top 0.3s ease, padding 0.3s ease; /* 使用 CSS 过渡 */
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 0;
}

.drawer.open {
    max-height: 200px; /* 根据内容调整最大高度 */
    margin-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
}

.drawer h2 {
    margin-top: 0;
}

.drawer ul {
    list-style-type: none;
    padding: 0;
}

.drawer ul li {
    margin: 20px 0;
}

.drawer ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.drawer ul li a:hover {
    text-decoration: underline;
}

/*.drawer {*/
/*    max-height: 0; !* 初始高度为0 *!*/
/*    overflow: hidden; !* 隐藏溢出的内容 *!*/
/*}*/

/*.drawer.open {*/
/*    max-height: 200px; !* 根据内容调整最大高度 *!*/
/*    margin-top: 10px;*/
/*    padding-left: 12px;*/
/*    padding-right: 12px;*/
/*}*/

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    overflow: hidden;
      /* 防止内容溢出 */
    }
    
    .flex-row .flex {
      flex-shrink: 1;
      /* 允许flex子元素收缩 */
      min-width: 0;
      /* 允许flex项目收缩到0宽度 */
}
.alwaysTranslate{
    font-family: Inter;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}
.alwaysTranslate select{
    background: none;
    border: none;
    color: rgb(29, 37, 59);
    width: auto;
    max-width: calc(100% - 60px);
      /* 为switch留出更多空间 */
      min-width: 120px;
      /* 设置最小宽度确保可读性 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分省略 */
    flex: 1 1 auto;
      /* 允许增长但不超过max-width */
      margin-right: 8px;
      /* 与switch之间的间距 */
}


input[type="checkbox"].switch {
    width: 40px;
    height: 20px;
}


.shrink-0 {
    flex-shrink: 0;
}

/* 确保switch不会被挤出页面 */
input[type="checkbox"].switch {
  flex-shrink: 0;
  /* 防止switch被压缩 */
  width: 35px !important;
  /* 强制设置固定宽度 */
  min-width: 35px;
  /* 最小宽度 */
}
input[type='checkbox'].switch{
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 35px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
}

input[type='checkbox'].switch:hover{
    cursor: pointer;
}

input[type='checkbox'].switch::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height:1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0, 0, 2px, #999;
    top: 2px;
    position: absolute;
    left: 2px;
}

input[type='checkbox'].switch:checked {
    background: rgb(0, 160, 172);
}

input[type='checkbox'].switch:checked::after {
    left: 50%;
}

/* 动画类 */
input[type='checkbox'].switch.animated,
input[type='checkbox'].switch.animated::after {
    transition: all 0.3s;
}

.disable{
    opacity: 0.5;
    pointer-events: none;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dialog-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    text-align: center;
    border-radius: 8px;
    width: 220px;
}

.hidden {
    display: none;
}

.dialog-content {
    text-align: center;
}

.dialog-content p {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.dialog-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 12px -16px;
}

.dialog-button {
    border: none;
    background-color: transparent;
    color: #2196F3;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.dialog-buttons {
    display: flex;
    flex-direction: column;
}

.logout{
    display: flex;
    flex-direction: row;
    height: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 1);

}
.userIcon{
    display: flex;
    width: 32px;
    height: 32px;
    border-radius: 32px;
    img{
        border-radius: 32px;
    }
}

.userName{
    font-family: Inter;
      font-size: 12px;
      font-weight: 400;
      line-height: 16px;
      text-align: left;
      color: rgba(31, 41, 67, 0.8);
    }
    
    .user-pro-badge {
      width: 72px;
      height: 28px;
    margin-left: 8px;
    margin-right: 4px;
      flex-shrink: 0;
}