/* AI 匹配表单样式，matching 页与期刊列表页 banner 卡片共用（结构与 AiMatchForm.njk 宏对应） */

.aiMatch__form {
  margin-top: 18px;
  padding: 25px 32px 33px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.aiMatch__field {
  position: relative;
}

.aiMatch__label {
  display: block;
  height: 16px;
  margin-bottom: 4px;
  line-height: 16px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
}
.aiMatch__label .required {
  color: #E80101;
}

.aiMatch__titleInput.layui-input {
  height: 29px;
  padding: 0 118px 8px 0;
  line-height: 20px;
  color: #333;
  font-size: 14px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
}

.aiMatch__titleInput:focus,
.aiMatch__textarea:focus {
  border-color: #0066ff !important;
  box-shadow: none;
}

.aiMatch__count {
  position: absolute;
  right: 0;
  bottom: 10px;
  color: #999;
  font-size: 10px;
  line-height: 16px;
}

.aiMatch__field--abstract {
  margin-top: 16px;
}

.aiMatch__fieldTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aiMatch__meta {
  color: #999;
  font-size: 12px;
  line-height: 16px;
}

.aiMatch__subject {
  margin-right: 6px;
  color: #0066ff;
}

.aiMatch__textarea.layui-textarea {
  min-height: 106px;
  height: 106px;
  padding: 13px 0 14px;
  color: #333;
  font-size: 14px;
  line-height: 23px;
  border: 0;
  border-bottom: 1px solid #f9fafb;
  border-radius: 0;
  resize: none;
}

.aiMatch__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
}

.aiMatch__filterLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 28px;
  color: #666;
  font-size: 12px;
  line-height: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.aiMatch__filterLabel img {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

.aiMatch__selects {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aiMatch__selects select.js-ms {
  flex: 0 0 200px;
  width: 200px;
  height: 30px;
  visibility: hidden;
}

.aiMatch__selects select.js-subjectSelect {
  flex-basis: 138px;
  width: 138px;
}

.aiMatch__selects .ms-parent {
  flex: 0 0 200px;
  width: 200px !important;
  height: 30px;
}

.aiMatch__selects .js-subjectSelect + .ms-parent {
  flex-basis: 200px;
  width: 200px !important;
}

.aiMatch__selects .ms-choice {
  height: 30px;
  line-height: 28px;
  color: #333;
  border-color: #e5e7eb;
  border-radius: 6px;
}

.aiMatch__selects .ms-choice > span {
  right: 50px;
  padding-left: 12px;
  font-size: 12px;
}

.aiMatch__selects .ms-choice > div.icon-close {
  display: none;
  right: 28px;
}


.aiMatch__selects .ms-choice > div.icon-caret {
  top: 50%;
  margin-top: -9px;
  right: 5px;
  width: 18px;
  height: 18px;
  border: 0;
  background: url('../../../images/aiMatch/image.png') center / 18px 18px no-repeat;
  transition: transform 0.2s;
}


.aiMatch__selects .ms-choice > div.icon-caret.open {
  border: 0;
  transform: rotate(180deg);
}

.aiMatch__selects .ms-drop {
  color: #333;
  border-color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.aiMatch__selects .ms-drop ul > li {
  padding: 5px 10px;
  font-size: 12px;
}

.aiMatch__selects .ms-drop ul > li:hover {
  background: #f5f8ff;
}

.aiMatch__selects .ms-drop ul > li.selected {
  color: #0066ff;
  background: #eff6ff;
}

.aiMatch__selects .ms-drop ul > li.selected label {
  color: #0066ff;
}

.aiMatch__selects .ms-drop input[type="checkbox"]:checked {
  accent-color: #0066ff;
}

.aiMatch__selects .ms-search input {
  min-height: 28px;
  border-color: #e5e7eb;
}

.aiMatch__clear,
.aiMatch__submit {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.aiMatch__clear {
  margin-left: auto;
  color: #999;
  font-size: 14px;
}

.aiMatch__submit {
  width: 139px;
  height: 40px;
  margin-left: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 40px;
  background: #0066ff;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px #bfdbfe, 0 4px 6px -4px #bfdbfe;
}

.aiMatch__submit:hover {
  background: #005be5;
}

.aiMatch__submit:disabled,
.aiMatch__submit.is-loading {
  cursor: not-allowed;
  background: #93c5fd;
  box-shadow: none;
}
