/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* 遮罩层 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none; /* 初始状态隐藏 */
}

/* 弹框容器 */
.modal-container {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 387px;
 background-image: url('./img/image.png');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
  display: none; /* 初始状态隐藏 */
}



.modal-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.robot-img {
  width: 60px;
  height: 60px;
}

.title-text {
  font-size: 16px;
}

.greeting {
  margin-bottom: 5px;
}

.highlight {
  font-weight: bold;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.close-btn img {
  width: 20px;
  height: 20px;
}

/* 弹框内容 */
.modal-body {
  padding: 25px;
  background: linear-gradient(0deg, #FFFFFF, #FEEDD9);
  border-radius: 20px;
  margin-top: 162px;
}

.offer-title {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 24px;
  color: #FF3548;
  text-align: center;
  position: relative;
  z-index: 2;

}
.offer-title::after{
  content: '';
  display: block;
  margin: 0 auto;
  width: 426px;
  height: 9px;
  background: linear-gradient(90deg, #FCBFC1, #FDE595);
  border-radius: 3px;
  position: absolute;
  top: 26px;
  z-index:-1;
  left: 36px;
}

/* 表单样式 */
.form {
  display: flex;
 justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  width: 410px;
}

.form-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.form-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}
.form-input{
  width: 100%;
}
.verify-code {
  flex: 2;
}

.verify-btn {
  padding:5px 15px;
  background-color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  color: #05C375;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  left: 326px;
}

/* 倒计时/禁用态：灰色且不可点击 */
.verify-btn:disabled {
  color: #999;
  cursor: not-allowed;
  opacity: 1;
}

.submit-btn {
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  line-height: 30px;
  transition: background-color 0.3s ease;
  width: 87px;
  height: 106px;
  background: linear-gradient(135deg, #FF485E, #FF802B);
  border-radius: 10px;
}

.modal-footer {
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  position: fixed;
  top:66%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  display: none;
}

/* 响应式设计（可选，根据需求调整） */
@media (max-width: 600px) {
  .modal-container {
    width: 90%;
    max-width: 550px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .verify-code {
    flex: 1;
  }
  
  .verify-btn {
    flex: 1;
  }
}