/* 区号选择框 */
.formTable .iti__country-list {
  border-radius: 0 !important;
  z-index: 9999;
}

.formTable .phoneiti {
  width: 100%;
}

/* 快速留言按钮 */
.openwin {
  padding: 8px 15px;
  background: #428dce;
  border-radius: 8px;
  color: #fff;
  border: 0;
  cursor: pointer;
}

.openwin:hover {
  background: rgba(66, 141, 206, 0.8);
}

/* 提示 */
.formmsg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
}

.formmsg .box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 15px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  flex-direction: column;
  font-family: "黑体";
}

.formmsg .box img {
  width: 50px;
  height: 50px;
}

.formmsg .box p {
  color: #666666;
  margin-top: 10px;
  text-align: center;
}

.formmsg .box button {
  width: 100%;
  border: 0;
  border-radius: 50px;
  background: #428dce;
  color: #fff;
  margin-top: 20px;
  padding: 15px;
  cursor: pointer;
}

@media (max-width: 400px) {
  .formmsg .box {
    width: 90%;
  }
}

/* 表单 */
.formTable {
  z-index: 999;
}

.formTable h3 {
  font-weight: 400;
}

.formTable h3 span {
  color: #9b9b9b;
  font-size: 12px;
}

.formTable .radio-group {
  padding: 10px 0;
  display: flex;
  margin-top: 10px;
  font-size: 13px;
  overflow: hidden;
  background: #fff;
}

.formTable .radio-group .left {
  width: 100px;
}

.formTable .radio-group .right {
  display: flex;
  flex: 1;
}

.formTable .radio-group .right .radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-right: 20px;
}

.formTable .radio-group .right .radio-item input {
  cursor: pointer;
}

@media (max-width: 768px) {
  .formTable .radio-group .right {
    flex-wrap: wrap;
  }

  .formTable .radio-group .right .radio-item {
    width: 50%;
    margin: 0;
  }

  .formTable .radio-group .right .radio-item:nth-child(1),
  .formTable .radio-group .right .radio-item:nth-child(2) {
    margin-bottom: 10px;
  }
}

.formTable .radio-group .radio-item input {
  margin-right: 5px;
}

.formTable .input-group {
  height: 40px;
  padding-left: 13px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}

.formTable .input-group .name {
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.formTable .input-group input {
  height: 100%;
  flex: 1;
  border: 1px solid #eeeeee;
  outline: 0;
  color: #333;
  border-radius: 8px;
  padding-left: 10px;
}

.formTable ul {
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 4px 0px,
    rgba(0, 0, 0, 0.08) 0px 4px 12px 0px;
}

.formTable ul li {
  list-style: none;
  width: 100%;
  padding: 4px 20px;
  color: #9b9b9b;
  font-size: 14px;
  cursor: pointer;
}

.formTable ul li:hover {
  background: #428dce;
  color: #fff;
}

.formTable ul li:not(last-child) {
  border-bottom: 1px solid #eeeeee;
}

.formTable textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 15px;
  outline: 0;
  resize: none;
  background: #ffffff;
}

.formTable textarea::-webkit-input-placeholder {
  color: #9b9b9b;
  /* 设置占位符文字颜色为红色 */
}

.formTable button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: #428dce;
  color: #fff;
  padding: 15px 0;
  border-radius: 8px;
  cursor: pointer;
}

.formTable button:hover {
  background: rgba(66, 141, 206, 0.8);
}

.win-form {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.win-form .formTable {
  padding: 30px 20px;
  border-radius: 15px;
  background: #fff;
  position: relative;
  box-shadow: none;
}

.win-form .formTable .guan {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.lianxi-box {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lianxi {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

.must {
  color: red;
}

/* 联系方式下方提示 */
.tishi {
  font-size: 12px;
  color: #9b9b9b;
}

/* 注册弹窗 */
.win-register {
  z-index: 10;
}

.win-register .formTable {
  border-radius: 0;
}

.win-register h3 {
  text-align: center;
  margin-bottom: 20px;
}

.win-register .quxiao {
  background: #b7b7b7;
  border-radius: 0;
}

.win-register .quxiao:hover {
  background: rgba(183, 183, 183, 0.8);
}

.win-register .zhuce {
  border-radius: 0;
  margin-top: 30px;
  background: #007dfe;
}

.win-register .zhuce:hover {
  background: rgba(0, 125, 254, 0.8);
}

.win-register .zhuce,
.win-register .quxiao {
  padding: 10px 0;
}

.pinglun {
  padding-bottom: 20px;
  display: flex;
  margin-top: 20px;
}

.pinglun input {
  flex: 1;
  margin-right: 20px;
  border-radius: 5px;
  outline: none;
  border: 1px solid #999;
  padding-left: 20px;
}

.pinglun button {
  padding: 8px 20px;
  border: 0;
  border-radius: 5px;
  background: #0084ff;
  color: #fff;
  cursor: pointer;
}

.pinglun button:hover {
  background: rgba(0, 132, 255, 0.8);
}

@media (max-width: 768px) {
  .main-left > .formTable {
    padding: 20px 0;
  }

  .win-form .formTable {
    width: 90%;
    border-radius: 15px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 6px 16px 0px;
    position: relative;
  }

  .lianxi {
    width: 90%;
  }

  .win-register .formTable {
    border-radius: 0;
  }
}

/* 区号选择功能样式 */
.phone-input-group {
  display: flex;
  width: 100%;
  border: 1px solid #eeeeee;
  border-radius: 8px;
}

.custom-country-select {
  position: relative;
  min-width: 80px;
  border-right: 1px solid #ddd;
  cursor: pointer;
}

.selected-country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 14px;
  height: 100%;
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 200px;
  width: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.country-option {
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.country-option:hover {
  background-color: #f5f5f5;
}

.country-option.selected {
  background-color: #e6f3ff;
  color: #1890ff;
}

.phone-input-group input[type="tel"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 14px;
}

.error-message {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 5px;
}

/* 修复包含 phone-input-group 的 input-group 样式 */
.formTable .input-group:has(.phone-input-group) {
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  height: auto;
}

.formTable .input-group:has(.phone-input-group) .name {
  padding: 10px 13px 5px 13px;
  height: auto;
}

.formTable .input-group:has(.phone-input-group) .phone-input-group {
  height: 35px;
  border-top: 1px solid #eeeeee;
}

.formTable .input-group:has(.phone-input-group) .custom-country-select {
  background: #f8f9fa;
  border-right: 1px solid #eeeeee;
}

.formTable .input-group:has(.phone-input-group) .error-message {
  padding: 5px 13px;
  margin: 0;
}

/* 针对不支持 :has() 的浏览器的兼容性样式 */
.formTable .input-group-with-phone {
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  height: auto;
}

.formTable .input-group-with-phone .name {
  padding: 10px 13px 5px 13px;
  height: auto;
}

.formTable .input-group-with-phone .phone-input-group {
  height: 35px;
  border-top: 1px solid #eeeeee;
}

.formTable .input-group-with-phone .custom-country-select {
  background: #f8f9fa;
  border-right: 1px solid #eeeeee;
}

.formTable .input-group-with-phone .error-message {
  padding: 5px 13px;
  margin: 0;
}
