.fs-hidden {
  display: none !important;
}

.fs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 30, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.fs-backdrop.fs-open {
  opacity: 1;
  pointer-events: auto;
}

.fs-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1001;
  pointer-events: none;
}
.fs-modal.fs-open {
  pointer-events: auto;
}

.fs-card {
  width: min(825px, 92vw);
  max-height: 90vh;
  min-height: 600px;
  box-sizing: border-box;
  padding: 20px 70px;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: all 0.22s ease;
  background: url(../img/survey_background.png) no-repeat top right,
    linear-gradient(105deg, #e5f7ff 1.78%, #f7e5ff 98.58%), #fff;
  background-size: cover;
  position: relative;
}
.fs_complate {
  background: linear-gradient(105deg, #e5f7ff 1.78%, #f7e5ff 98.58%), #fff;
}
.fs-modal.fs-open .fs-card {
  transform: none;
  opacity: 1;
}

.fs-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 8px 22px;
}
.fs-title {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  margin: 20px auto;
}
.fs-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 10px;
  position: absolute;
  top: 20px;
  right: 10px;
  color: #7a7a7a;
  font-size: 30px;
}
.fs-sub {
  max-width: 440px;
  color: #333;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin: 0 auto;
}

/* 标题区：紫色小标题 + 黑色主标题 */
.fs-headline {
  width: max-content;
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(90deg, #2d67ff 0%, #9e63ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 0 0 10px 0;
  border-left: 3px solid #2e67ff;
  line-height: 28px;
  padding-left: 10px;
}
.fs-title-main {
  font-size: 28px;
  font-weight: 500;
  color: #333;
  margin: 10px 0 25px 0;
}

.fs-list {
  margin: 10px 0 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.fs-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
}

/* -------- 自定义 radio / checkbox 样式（替换原先 accent-color） -------- */
.fs-item input[type='radio'],
.fs-item input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid #333; /* 未选中边框 */
  background: #fff; /* 背景 */
  border-radius: 50%; /* radio: 圆形；checkbox 下面会覆盖 */
  cursor: pointer;
  position: relative;
  outline: none;
}
.fs-item .fs-other {
  grid-column: 1 / -1; /* 占满整行，显示在 label 下 */
  margin-top: 10px;
}

/* hover & focus 状态 */
.fs-item:hover input[type='radio'],
.fs-item:hover input[type='checkbox'] {
  border-color: #2c67ff;
}
.fs-item input[type='radio']:focus-visible,
.fs-item input[type='checkbox']:focus-visible {
  box-shadow: 0 0 0 3px rgba(107, 92, 255, 0.25);
  border-color: #2c67ff;
}

/* 选中态 - radio */
.fs-item input[type='radio']:checked {
  background-color: #2c67ff;
  border-color: #2c67ff;
}
.fs-item input[type='radio']:checked::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* checkbox 方形 & 对勾 */
.fs-item input[type='checkbox'] {
  border-radius: 6px; /* 方形 */
}
.fs-item input[type='checkbox']:checked {
  background-color: #2c67ff;
  border-color: #2c67ff;
}
.fs-item input[type='checkbox']:checked::after {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

/* 禁用态（如果将来需要） */
.fs-item input[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* label 文案 */
.fs-item label {
  cursor: pointer;
  color: #1f2430;
  line-height: 1;
  font-size: 16px;
  padding: 5px 0;
}
.fs-item:hover {
  border-color: #cfd4e6;
}
/* -------- 自定义控件样式结束 -------- */

.fs-other {
  margin-top: 10px;
}
.fs-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  resize: none;
  border: 1px solid #999;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  color: #333;
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fs-text::placeholder {
  color: #999;
}

.fs-text:focus {
  background: #fff;
  border-color: #6b5cff;
  box-shadow: 0 0 0 3px rgba(107, 92, 255, 0.15);
  outline: none;
}
.fs-hint {
  font-size: 12px;
  color: #667085;
  margin-top: 6px;
}

.fs-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.fs-btn {
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* 文字和箭头间距 */
}

/* 主按钮：渐变背景 + 阴影 */
.fs-btn--primary {
  background: linear-gradient(90deg, #2c67ff 0%, #9e62ff 100%);
  color: #fff;
}
.fs-btn--primary:hover {
  background: linear-gradient(90deg, #0148ff 0%, #8940ff 100%);
}

/* 次按钮 */
.fs-btn--ghost {
  background: transparent;
  color: #1f2430;
  border: 1.5px solid #e0e5f2;
}
.fs-btn--ghost:hover {
  background: #f7f7fb;
  border-color: #ccd2e6;
}
.fs-btn:focus-visible {
  outline: 2px solid #6b5cff;
  outline-offset: 2px;
}
.fs-err {
  color: #ef4444;
  font-size: 12px;
  margin: 6px 0 0 4px;
}

.fs-badge {
  width: 172px;
  margin: 0 auto;
}

.fs-center {
  text-align: center;
}
.fs-muted {
  color: #667085;
}
.fs-bold {
  font-weight: 700;
}

@media (max-width: 460px) {
  .fs-card__hd {
    padding: 16px 16px 4px;
  }
  .fs-card__bd {
    padding: 0 16px 16px;
  }
  .fs-actions {
    padding: 12px 16px 16px;
  }
}

/* body 滚动锁 */
.body-lock {
  overflow: hidden;
}

.fs_complate .fs-actions {
  display: block;
}
.fs_complate .fs-link {
  color: #666;
  text-align: center;
  font-size: 16px;
  display: block;
  margin-top: 10px;
}
.fs-text-error {
  border-color: #ef4444 !important;
  outline: 1px solid #ef4444 !important;
}

/* 按钮加载态 */
.fs-btn--primary.is-loading {
  position: relative;
  color: transparent; /* 隐藏文字，防止抖动 */
  pointer-events: none;
}
.fs-btn--primary.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-right-color: transparent; /* 形成环形 */
  border-radius: 50%;
  animation: fs-spin 0.8s linear infinite;
}

/* 禁用态（按钮/链接统一视觉） */
.fs-actions .is-disabled,
.fs-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

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