@charset "UTF-8";

/* 文字轮播组件 */
.text-banner-section {
  width: 100%;
  height: 30px;
  margin-top: 10px;
}

.text-banner-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  column-gap: 10px;
}

.text-banner-container .swiper-container {
  height: 100%;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.text-banner-container .swiper-slide {
  display: inline-flex;
  flex-wrap: nowrap;
  line-height: 20px;
  align-items: center;
  justify-content: center;
}

.text-banner-container .swiper-slide p {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.text-banner-container .swiper-slide p em {
  color: var(--theme-primary-color);
}

.text-banner--before_line {
  width: 40px;
  height: 1px;
  background: linear-gradient(270deg, #d1d1d1 0%, transparent 100%);
}

.text-banner--after_line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #d1d1d1 0%, transparent 100%);
}

/* 示例组件 */
.ai-example-section {
  margin: 32px 0 20px;
  padding: 0 max(calc((100% - 840px) / 2), 16px);
}

.ai-example-section-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.ai-example-section-title>i {
  color: var(--theme-primary-color);
  font-size: 18px;
}

.ai-example-section-title>strong {
  font-size: 16px;
  line-height: 30px
}

.ai-example-section-title>span {
  color: var(--theme-light-text-color);
}

.ai-example-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  padding: 0;
}

.ai-example-item {
  border-radius: 12px;
  background: #f9f9fb;
  border: 1px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  /* min-height: 74px; */
  /* max-height: 120px; */
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc(50% - 6px);
  transition: 0.15s border-color, 0.3s background-color;
  position: relative;
}

.ai-example-item:hover {
  border-color: var(--theme-question-bg-color);
  background-color: #ffffff;
}

.ai-example-title {
  color: var(--theme-medium-text-color);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
}

.ai-example-title-content {
  display: block;
  line-height: 24px;
}

.ai-example-title-content span[data-type] {
  font-size: 12px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 4px;
  min-width: fit-content;
  background: #eee;
  color: #fff;
  border-radius: 4px;
}

.ai-example-title-content span[data-type="文书生成"] {
  color: #2ca79c;
  background-color: #e5f1f1;
}

.ai-example-title-content span[data-type="法律问答"] {
  color: #0a5de7;
  background-color: #e2eaf9;
}

.ai-example-title-content span[data-type="案件研判"] {
  color: #1aa5d3;
  background-color: #e3f1f7;
}

.ai-example-title-content span[data-type="类案检索"] {
  color: #583ab8;
  background-color: #eae7f4;
}

.ai-example-content {
  color: var(--theme-light-text-color);
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 40px;
}

.ai-example-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.ai-example-controls .btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  height: 32px;
  margin-right: 10px;
  padding: 0 7px;
  display: flex;
  column-gap: 4px;
  cursor: pointer;
  transition: color 0.1s ease-in, background 0.2s ease-in-out;
}

.ai-example-controls .btn i,
.ai-example-controls .btn span {
  color: var(--theme-medium-text-color);
}

.ai-example-controls .btn.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* 不喜欢 */
.dislike-btn {
  padding: 8px 16px;
  border: 1px solid #ff4d4f;
  background-color: #fff;
  color: #ff4d4f;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.dislike-btn:hover {
  background-color: #fff2f0;
}

/* 反馈弹窗遮罩 */
.feedback-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

/* 反馈弹窗 */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 10vh auto;
  min-width: min(300px, 90%);
  max-width: min(90%, 600px);
  max-height: 80vh;
  overflow-x: hidden;
  background-image: linear-gradient(178deg, #d8e4ff 0%, #ffffff 25%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: none;
}

/* 弹窗头部 */
.feedback-modal__header {
  padding: 16px 30px;
  position: relative;
}

.feedback-modal__title {
  margin: 0;
  font-size: 22px;
  /* font-weight: 600; */
  color: var(--theme-dark-text-color);
}

.feedback-modal__title::after {
  content: "";
  display: block;
  width: 110px;
  height: 100px;
  position: absolute;
  top: 20px;
  right: 30px;
  background-image: url(/static/img/jufaAIimg/feedback_bg_icon.png);
  background-size: 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

.feedback-modal__title span{
  color: var(--theme-primary-color);
}

.feedback-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--theme-dark-text-color);
  transition: color 0.2s;
}

.feedback-modal__close:hover {
  color: #1f2329;
}

.feedback-modal__close i {
  color: inherit;
  font-size: inherit;
}

/* 弹窗内容 */
.feedback-modal__body {
  padding: 0 30px;
  margin-top: 10px;
}

.feedback-modal__desc {
  margin: 0 0 16px;
  color: #4e5969;
  font-size: 14px;
}

/* 反馈选项 */
.feedback-options {
  margin-bottom: 20px;
}

.feedback-options__title {
  margin: 0 0 12px;
  font-size: 14px;
  color: #000;
  font-weight: 500;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.feedback-options__title::before {
  content:'';
  display: block;
  width: 4px;
  height: 4px;
  background-color: var(--theme-primary-color);
  border-radius: 40px;
  margin-right: 8px;
}

.feedback-options__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-options__item {
  flex: 1 0 100px;
  max-width: 100px;
  min-width: 100px;
}

.feedback-options__btn {
  padding: 6px 12px;
  border: 1px solid #e8eaf0;
  background-color: #f9f9fb;
  border-radius: 4px;
  color: var(--theme-dark-text-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.feedback-options__btn:hover {
  border-color:  var(--theme-primary-color);
  color:  var(--theme-primary-color);
}

.feedback-options__btn.active {
  background-color: var(--theme-light-color);
  border-color: var(--theme-light-border-color);
  color: var(--theme-primary-color);
}

/* 文本输入 */
.feedback-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #e8eaf0;
  border-radius: 4px;
  background-color: #f9f9fb;
  resize: vertical;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 4px;
  transition: all 0.3s;
}

.feedback-textarea:focus {
  outline: none;
  border-color:  var(--theme-primary-color);
}

/* 弹窗底部 */
.feedback-modal__footer {
  padding: 16px 20px;
  text-align: center;
}

.feedback-modal__submit {
  padding: 8px 20px;
  background-color: var(--theme-primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.feedback-modal__submit:hover {
  background-color: var(--theme-primary-color);
}