body {
  background-color: #f9f9f9;
}

.arrow {
  font-size: 12px;
  color: #888;
  margin-left: 2px;
}

.main {
  max-width: 1296px;
  margin: 0px auto 0;
  padding: 88px 24px 12px;
  position: relative;
}
.model-tabs {
  /* width: 447px; */
  width: 298px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 40px;
  border: 1px solid #e4e4e4;
}
.model-tab {
  width: 145px;
  height: 38px;
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.model-tab img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.model-tab:nth-child(3) img {
  height: 12px;
}

.model-tab span {
  margin-top: -2px;
}

.model-tab:hover {
  background: #e4e4e4;
}

.model-tab.active {
  background: linear-gradient(
    258deg,
    #47a6ff 0%,
    #3575fe 13%,
    #6c27e2 89%,
    #8e3cff 100%
  );
  color: #fff;
}

.translate-container {
  height: 70vh;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}

.sub-tabs {
  display: flex;
  justify-content: flex-start;
  margin: 12px 24px 10px;
  position: relative;
}
.sub-tab {
  padding: 3px 0;
  margin-right: 7px;
  width: 120px;
  height: 36px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
}

.sub-tab.active {
  border: 2px solid #5e2bff;
}

.lang-select {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-select > div {
  min-width: 90px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  padding-right: 16px;
}

.lang-select .target-language,
.lang-select .source-language {
  background-image: url("../image/downwards.png");
  background-repeat: no-repeat; /* 不重复 */
  background-position: right center; /* 靠右垂直居中 */
  background-size: 16px 16px; /* 图片大小 */
}

.lang-select img {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.translate-panel {
  display: flex;
  height: 90%;
}
.translate-left,
.translate-right {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
}
.translate-left {
  border-right: 1px solid #f0f1f2;
}

.input-area {
  width: 100%;
  height: 90%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  margin-bottom: 24px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.input-area-mini {
  height: calc(90% - 200px);
}

.input-area::placeholder {
  color: #bdbdbd;
}

.text-num {
  font-weight: 400;
  font-size: 14px;
  position: absolute;
  left: 550px;
  bottom: 44px;
  z-index: 88;
}

.prompt-box {
  position: absolute;
  left: 24px;
  bottom: 32px;
  width: 549px;
  height: 199px;
  background: linear-gradient(180deg, #f0ecff 0%, #e5ddff 100%);
  border-radius: 12px;
  padding: 20px 20px 12px 20px;
  transition: all 0.3s ease;
  z-index: 99;
}

.prompt-mini {
  width: 364px;
  height: 40px;
  padding: 10px 16px;
}

.prompt-header {
  margin-bottom: 15px;
  position: relative;
}
.prompt-title {
  font-size: 14px;
  text-align: center;
  font-weight: bold;
}

.prompt-toggle {
  font-size: 12px;
  color: #5e2bff;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  right: 0;
  top: 2px;
}

.prompt-toggle img {
  width: 16px;
  height: 16px;
  margin-right: 1px;
}

.prompt-input {
  width: 513px;
  height: 87px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #ffffff;
  font-size: 14px;
  padding: 6px 14px;
  margin-bottom: 10px;
}

.prompt-input::placeholder {
  color: #bdbdbd;
}

.prompt-btns {
  display: flex;
  justify-content: center;
}

.prompt-box-mini {
  display: flex;
  justify-content: flex-start;
  /* padding: 10px 16px; */
  align-items: center;
  position: relative;
  cursor: pointer;
}

.prompt-box-mini-hidden {
  display: none !important;
}

.prompt-box-mini img {
  position: absolute;
  right: 0px;
  top: 3px;
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.prompt-box-mini-decorate {
  width: 3px;
  height: 20px;
  background: #5e2bff;
  border-radius: 2px;
  margin-right: 12px;
}

.prompt-box-mini-text {
  font-size: 14px;
  color: #5e2bff;
  width: 300px;
}

.confirm-btn {
  width: 109px;
  height: 28px;
  background: linear-gradient(
    258deg,
    #47a6ff 0%,
    #3575fe 13%,
    #6c27e2 89%,
    #8e3cff 100%
  );
  border-radius: 14px;

  cursor: pointer;
  color: #fff;
  font-size: 14px;
}

.translate-right {
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  font-weight: 500;
  font-size: 20px;
  overflow-y: auto;
}

.copy-wrap {
  margin-top: 38px;
}

.copy-btn {
  width: 13px;
  height: 13px;
  margin-bottom: 12px;
  cursor: pointer;
}

.copy-success {
  font-weight: 400;
  font-size: 10px;
  color: #5e2bff;
}

.result-placeholder {
  font-size: 20px;
  color: #bdbdbd;
  height: 360px;
  width: 100%;
}

.usage-tip {
  margin: 18px 0 0 8px;
  color: #888;
  font-size: 13px;
}

/* 语言搜索样式 */
.lang-selector {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #f0f1f2;
  width: 540px;
  padding: 14px 20px;
  position: absolute;
  z-index: 100;
}

.target-lang-selector {
  top: 210px;
  right: 108px;
}

.source-lang-selector {
  top: 210px;
  right: 208px;
}

.lang-selector-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.lang-tabs {
  display: flex;
  justify-content: flex-start;
  font-size: 14px;
  align-items: center;
}
.lang-tab {
  cursor: pointer;
  margin-right: 32px;
  white-space: nowrap; /* 禁止换行 */
}
/* .lang-tab.active {
  color: #6c63ff;
  border-bottom: 2.5px solid #6c63ff;
} */

.lang-search-box {
  position: relative;
}
.lang-search-box img {
  width: 16px;
  height: 16px;
  position: absolute;
  left: 8px;
  top: 6px;
}

#lang-search {
  width: 192px;
  height: 25px;
  border-radius: 13px;
  border: 1px solid #e4e4e4;
  padding-left: 33px;
  font-size: 10px;
}

#lang-search:focus {
  border: 1px solid #5e2bff;
}

#lang-search::placeholder {
  color: #bdbdbd;
}

.lang-list-wrapper {
  display: flex;
  position: relative;
}
.lang-list {
  flex: 1;
  max-height: 410px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 16px;
}

.lang-list::-webkit-scrollbar {
  width: 4px; /* 垂直滚动条宽度 */
}

.lang-list {
  scrollbar-width: thin; /* auto | thin | none */
}

.lang-group {
  margin-bottom: 10px;
}
.lang-group-title {
  font-size: 15px;
  color: #b0b0b0;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 2px;
}
.lang-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 26px;
}
.lang-item {
  font-size: 14px;
  color: #222;
  margin-bottom: 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-item:hover {
  color: #6c63ff;
}

.lang-index {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  margin-right: 13px;
}
.lang-index-letter {
  color: #d0d0d0;
  font-size: 12px;
  margin: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-index-letter.active,
.lang-index-letter:hover {
  color: #6c63ff;
  font-weight: bold;
}

.lang-search-list {
  max-height: 200px;
  width: 500px;
  margin-top: 15px;
}

.lang-search-list .lang-search-item {
  width: 500px;
  height: 25px;
  background: #ffffff;
  border-radius: 13px;
  font-size: 10px;
  padding: 5px 10px;
  border: 1px solid #e4e4e4;
  margin-bottom: 10px;
  cursor: pointer;
}

.lang-search-list .lang-search-item:hover {
  border: 1px solid #5e2bff;
}

.not-sufficient-funds,
.add-wechat-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  width: 578px;
  height: 370px;
  background: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(0, 25, 50, 0.33),
    inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
  border-radius: 24px;
}

.not-sufficient-funds > img {
  width: 114px;
  height: 110px;
  margin: 61px auto 23px;
}

.not-sufficient-funds p {
  font-size: 24px;
  color: #ff3636;
  text-align: center;
}

.not-sufficient-funds .btn-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.not-sufficient-funds .btn-wrap button {
  width: 153px;
  height: 40px;
  background: #5e2bff;
  border-radius: 20px;
  color: #fff;
  font-size: 16px;
}

.add-wechat-wrap {
  background-color: unset;
  box-shadow: unset;
  background-size: cover; /* 或 contain */
  background-repeat: no-repeat;
  background-position: left; /* 可选：控制图片居中 */
  background-image: url("../image/topUpBg.png");
}

.add-wechat-wrap h3 {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin-top: 40px;
}

.add-wechat-wrap .qr-wrap {
  width: 168px;
  height: 168px;
  margin: 29px auto 8px;
}

.add-wechat-wrap .qr-wrap img {
  width: 168px;
  height: 168px;
}

.add-wechat-wrap p {
  text-align: center;
  font-size: 14px;
  color: #000000;
}

.prompt-message {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  border-radius: 5px;
  box-shadow: 0px 1px 4px 2px #eee;
  padding: 8px;
  font-size: 14px;
  background-color: #fff;
}

.prompt-message img {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -3px;
}
