.select2-dropdown{
  z-index: 9;
}
.flex{
  display: flex;
  align-items: center;
}
.flex-c{
  display: flex;
  justify-content: center;
}
.mb32{
  margin-bottom: 32px;
}
.date{
  font-size: 20px;
  line-height: 23px;
  color: #72777A;
  margin-top: 20px;
}
.cyqbContentColorBg{
  background: linear-gradient( 160deg, #F2F8FF 0%, #F7FFFF 27%, #F7FDFF 48%, #FCFAFF 68%, #F0F7FF 100%);
  padding: 0 32px;
}

.cyqbContentBg{
    box-sizing: border-box;
}
.cyqbContentBg .item{
  display: flex;
  justify-content: flex-start;
  font-size: 16px;
  line-height: 32px;
  padding: 32px;
  box-sizing: border-box;
  border-bottom: 1px solid #D0E3F7;
}
.cyqbContentColorBg .item{
  padding: 32px 0;
  &:last-child{
    border-bottom: none;
  }
}
.cyqbContentBg .item .label{
  width: 180px;
}

.cyqbContentBg .item .value{
  width: 0;
  flex: 1;
  .tip{
    line-height: 28px;
    color: #72777A;
    font-size: 14px;
  }
}
.tipsWrap{
  font-size: 14px;
  line-height: 28px;
  color: #969B9E;
  margin-top: 20px;
}
.formBtnWrap{
  margin-bottom: 100px;
}
.formBtn{
  width: 336px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: #43C4E0;
  cursor: pointer;
}

.formContentTitle{
  text-align: center;
  margin-bottom: 80px;
  font-size: 16px;
  line-height: 32px;
  color: #293033;
  .secTitle{
    font-size: 14px;
    line-height: 28px;
    color: #72777A;
  }
}
.generalMedicinePageConDesc{
  position: relative;
}
.allErrorTip{
  position: absolute;
  width: 100%;
  left: 0;
  top: -55px;
  text-align: center;
  display: none;
}
.errorText{
  font-size: 14px;
  line-height: 16px;
  color: #FF0839;
  &.bottom{
    position: absolute;
    left: 0;
    bottom: -24px;
  }
}
.form-group{
  position: relative;
  margin: 0 auto 32px;
  width: 692px;
  .label{
    font-size: 16px;
    line-height: 19px;
    color: #293033;
    margin-bottom: 12px;
    font-weight: 500;
  }
  .flatpickr-wrapper{
    width: 100%;
    position: relative;
  }
  .form-control[readonly]{
    background: transparent;
  }
  .radio-group {
        display: flex;
        gap: 20px;
        margin-top: 10px;
  }
  .radio-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 16px;
  }
  .radio-label input[type="radio"] {
        margin-right: 8px;
        cursor: pointer;
        border: 1px solid #B2B6B8;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
  }
  .radio-label input[type="radio"]:checked {
        border: 4px solid #293033;
  }
  .radio-text {
        cursor: pointer;
  }
  .form-control{
    height: 40px;
    padding: 0 16px;
  }
  .form-control:focus{
    box-shadow: none;
  }
  .hidden{
    display: none;
  }
  .fileInputBtn{
    cursor: pointer;
    padding: 12px 30px;
    background: #293033;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    margin-right: 12px;
  }
  .fileTips{
    color: #72777A;
    font-size: 14px;
    line-height: 16px;
    margin-top: 12px;
  }
}
.tipsTxt{
  color: #293033;
  text-align: center;
  font-size: 14px;
  line-height: 16px;
  .tipsTxt-title{
    font-size: 16px;
    line-height: 32px;
  }
  .tipsTxt-secTitle{
    line-height: 28px;
  }
  .blue{
    color: #1675D9;
  }
  .yellow{
    color: #FF912B;
  }
  .checkbox{
    cursor: pointer;
    margin-right: 8px;
  }
  
}
/* 复选框选中状态样式 - 只修改颜色 */
.checkbox:checked {
  background-color: #293033 !important;
  border-color: #293033 !important;
  accent-color: #293033 !important;
}

/* 针对不同浏览器的复选框样式 */
.checkbox:checked {
  background: #293033 !important;
  border: 1px solid #293033 !important;
}

/* Webkit浏览器 */
.checkbox:checked::-webkit-checkbox {
  background-color: #293033 !important;
}

/* Firefox */
.checkbox:checked::-moz-checkbox {
  background-color: #293033 !important;
}
.btn{
  cursor: pointer;
  width: 326px;
  font-size: 14px;
  padding: 12px 0;
  border: 1px solid #293033;
  border-radius: 0;
  margin-top: 80px;
  margin-left: 40px;
  &:first-child{
    margin-left: 0;
  }
}
.btn.submit{
  color: #fff;
  background: #43C4E0;
  border: none;
}
.select2-container--open .select2-dropdown {
      position: relative;
}
.select2-container {
  .select2-selection--single{
    height: 40px !important;
    border-color: #ced4da !important;
  }
  .select2-selection--single .select2-selection__rendered{
    line-height: 38px !important;
    padding: 0 16px !important;
  }
  .select2-results {
    padding: 8px 0;
  }
  .select2-results__option{
    padding: 12px 9px;
    line-height: 16px;
    font-size: 14px;
    color: #293033;
  }
  .select2-dropdown {
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-top: 6px;
    font-size: 14px;
    line-height: 16px;
  }
  .select2-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    z-index: 1;
  }
}
.select2-container--default {
  .select2-selection--single .select2-selection__arrow{
    height: 38px !important;
  }
  .select2-results__option--selected.select2-results__option--selectable{
    font-family: "NotoSerifJP";
  }
  .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(247, 249, 250, 0.8);
    color: #293033;
  }
  .select2-results>.select2-results__options{
    max-height: 240px;
  }
}
.mobile-select-dropdown{
  display: none;
}

/* 日期输入右侧日历icon样式 */
.date-input-wrapper{
  position: relative;
}
.date-input-wrapper .date-input{
  padding-right: 40px;
}
.date-input-wrapper .date-icon{
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #72777A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.date-input-wrapper .date-icon:hover{
  color: #293033;
  background: #f7f9fa;
}

/* 文件列表样式 */
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  color: #1675D9;
  font-size: 16px;
}
.file-close{
  display: none;
  cursor: pointer;
}
.file-item:hover {
  background: rgba(247,249,250,0.8);
  .file-success{
    display: none;
  }
  .file-close{
    display: block;
  }
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

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

.file-type-icon {
  width: 16px;
  height: 16px;
}

.file-name {
  word-break: break-all;
}

.file-actions {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

/* HTML5 日期选择器样式 */
.date-input {
  position: relative;
  cursor: pointer;
}

/* 桌面端样式 */
.date-input::-webkit-calendar-picker-indicator {
  background: transparent;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin-right: 8px;
  filter: invert(0.5);
}

.date-input::-webkit-datetime-edit {
  padding: 0;
}

.date-input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.date-input::-webkit-datetime-edit-text {
  padding: 0 2px;
  color: #293033;
}

.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field,
.date-input::-webkit-datetime-edit-year-field {
  padding: 0 2px;
  color: #293033;
  font-weight: 500;
}

.date-input::-webkit-datetime-edit-month-field:focus,
.date-input::-webkit-datetime-edit-day-field:focus,
.date-input::-webkit-datetime-edit-year-field:focus {
  background: rgba(67, 196, 224, 0.1);
  outline: none;
}


/* Firefox 兼容性 */
.date-input::-moz-calendar-picker-indicator {
  background: transparent;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin-right: 8px;
  border: none;
}

/* Edge 兼容性 */
.date-input::-ms-clear,
.date-input::-ms-expand {
  display: none;
}

/* Flatpickr 日期选择器样式 */
.flatpickr-calendar {
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  z-index: 1000;
}

.flatpickr-calendar.open {
  display: inline-block;
  z-index: 1000;
}

.flatpickr-day {
  border-radius: 4px;
  margin: 2px;
  height: 36px;
  line-height: 36px;
  color: #293033;
  font-weight: 500;
}

.flatpickr-day:hover {
  background: rgba(247, 249, 250, 0.8);
  border-color: transparent;
}

.flatpickr-day.selected {
  background: #43C4E0;
  border-color: #43C4E0;
  color: #fff;
}

.flatpickr-day.today {
  border-color: #43C4E0;
  color: #43C4E0;
}

.flatpickr-day.today.selected {
  color: #fff;
}

.flatpickr-months {
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  padding: 8px 0;
}

.flatpickr-month {
  color: #293033;
  font-weight: 600;
}

.flatpickr-current-month {
  font-size: 16px;
  padding: 8px 0;
}

.flatpickr-monthDropdown-months {
  background: transparent;
  border: none;
  color: #293033;
  font-weight: 600;
}

.flatpickr-weekday {
  color: #72777A;
  font-weight: 500;
  font-size: 12px;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: #293033;
  fill: #293033;
  padding: 8px;
  top: 4px !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: #43C4E0;
  fill: #43C4E0;
}



/* 弹窗样式 */
.freeDocDialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.freeDocDialog.show {
  display: flex;
}

.freeDocDialogBox {
  background: #fff;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.freeDocDialog .close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #72777A;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.freeDocDialog .close:hover {
  background: #f8f9fa;
  color: #293033;
}

@media screen and (max-width: 1440px) {
  .formBtnWrap{
    margin-bottom: 80px;
  }
  .formBtn{
    width: 244px;
  }
  .form-group{
    width: 772px;
  }
  .btn{
    margin-top: 60px;
    width: 366px;
  }
}

@media screen and (max-width: 1280px) {
  .date{
    font-size: 18px;
    margin-top: 16px;
  }
  .formBtnWrap{
    margin-bottom: 68px;
  }
  .formBtn{
    width: 216px;
  }
  .form-group{
    width: 688px;
  }
  .btn{
    margin-top: 56px;
    width: 324px;
  }
  .formContentTitle{
    margin-bottom: 68px;
  }
}

@media screen and (max-width: 1024px) {
  .date{
    font-size: 20px;
    margin-top: 20px;
  }
  .formBtnWrap{
    margin-bottom: 60px;
  }
  .formBtn{
    width: 314px;
  }
  .flowPathT{
    display: block;
    width: 100%;
    text-align: center;
  }
  .form-group{
    width: 650px;
  }
  .btn{
    margin-top: 60px;
  }
  .formContentTitle{
    margin-bottom: 60px;
  }

  .form-group select[name="jobType"] {
    display: none;
  }
  
  /* 隐藏Select2相关元素 */
  .select2-container {
    display: none !important;
  }
  
  .mobile-select-wrapper {
    position: relative;
    width: 100%;
  }
  .mobile-select-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #293033;
    min-height: 40px;
  }
  
  .mobile-select-trigger:after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #72777A;
    transition: transform 0.3s ease;
  }
  
  .mobile-select-trigger.active:after {
    transform: rotate(180deg);
  }
  
  .mobile-select-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .mobile-select-dropdown.show {
    transform: translateY(0);
    display: block;
  }
  
  .mobile-select-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #293033;
    font-size: 16px;
  }
  
  .mobile-select-options {
    padding: 8px 0;
  }
  
  .mobile-select-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .mobile-select-option:last-child {
    border-bottom: none;
  }
  
  .mobile-select-option:hover {
    background: #f8f9fa;
  }
  
  /* .mobile-select-option.selected {
    background: #f0f7ff;
    color: #43C4E0;
  } */
  
  .mobile-select-option-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
  }
  
  .mobile-select-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A84FF;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  
  .mobile-select-option.selected .mobile-select-check {
    opacity: 1;
  }
  
  .mobile-select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-select-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  .file-success{
    display: none;
  }
  .file-close{
    display: block;
  }
}
@media screen and (max-width: 768px) {
  .date{
    font-size: 16px;
    line-height: 19px;
  }
  .formBtnWrap{
    margin-bottom: 45px;
  }
  .formBtn{
    width: 230px;
  }
  .form-group{
    width: 478px;
  }

  .date-input-wrapper .date-icon{
    right: 10px;
    width: 36px;
    height: 36px;
  }
  .date-input {
    font-size: 16px; /* 防止iOS缩放 */
    -webkit-appearance: none;
    appearance: none;
  }
  
  .date-input::-webkit-calendar-picker-indicator {
    width: 24px;
    height: 24px;
    margin-right: 12px;
  }
  
  /* 移动端触摸优化 */
  .date-input:active {
    background-color: #f8f9fa;
  }

  .file-item {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .btn{
    margin-top: 44px;
  }
  .formContentTitle{
    margin-bottom: 45px;
  }
}
@media screen and (max-width: 650px) {
  .flowPath{
    display: block;
  }
  .cyqbContentColorBg{
    padding: 0 16px;
  }
  .cyqbContentBg .item{
    flex-direction: column;
    padding: 16px;
  }
  .cyqbContentColorBg .item{
    padding: 16px 0;
  }
  .cyqbContentBg .item .label{
    font-family: "NotoSerifJP";
  }
  .cyqbContentBg .item .value{
    width: 100%;
  }
  .date{
    margin-top: 12px;
  }
  .formBtnWrap{
    margin-bottom: 32px;
  }
  .formBtn{
    width: 217px;
  }
  .form-group{
    width: 100%;
  }
}


/* 小屏幕移动端优化 */
@media screen and (max-width: 480px) {
  .flatpickr-calendar {
    width: 260px !important;
    max-width: calc(100vw - 20px) !important;
    font-size: 14px;
    top: 50px !important;
    right: 0 !important;
  }
  
  .flatpickr-day {
    height: 40px !important;
    line-height: 40px !important;
    margin: 2px !important;
    min-width: 40px !important;
    font-size: 14px !important;
  }
  
  .flatpickr-current-month {
    font-size: 16px !important;
  }
  
  .flatpickr-weekday {
    font-size: 12px !important;
    padding: 8px 0 !important;
  }
}

/* 超小屏幕优化 */
@media screen and (max-width: 375px) {
  .flatpickr-calendar {
    width: 240px !important;
    max-width: calc(100vw - 10px) !important;
  }
  
  .flatpickr-day {
    height: 36px !important;
    line-height: 36px !important;
    margin: 1px !important;
    min-width: 36px !important;
    font-size: 13px !important;
  }
  .btn{
    margin-top: 32px;
    margin-left: 20px;
    &:first-child{
      margin-left: 0;
    }
  }
  .formContentTitle{
    margin-bottom: 33px;
  }
}