/* compute-popup.css - 算力体验申请弹框样式 */
/* 弹框遮罩层 */
#popup-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

/* 弹框主体 */
#popup-container {
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s ease-out;
  transform-origin: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 关闭按钮 */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #909399;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.popup-close:hover {
  color: #0097A8;
  background: rgba(0, 151, 168, 0.1);
}

/* 提交按钮容器 */
.popup-footer {
  padding: 20px 25px;
  border-top: 1px solid #e4e7ed;
  background: #f8f9fa;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #008594 0%, #007380 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 151, 168, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 151, 168, 0.3);
}

/* Tab栏样式 */
.popup-tabs {
  display: flex;
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f0f5 100%);
}

.popup-tab {
  flex: 1;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #606266;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-tab:hover {
  color: #0097A8;
  background: rgba(0, 151, 168, 0.05);
}

.popup-tab.active {
  color: #0097A8;
  border-bottom: 3px solid #0097A8;
  background: rgba(0, 151, 168, 0.1);
}



/* 弹框标题栏 */
.popup-header {
  text-align: center;
  padding: 20px;
  border-bottom: 3px solid #0097A8;
  font-size: 22px;
  color: #0097A8;
  font-weight: 600;
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f0f5 100%);
}

/* 弹框内容区 */
.popup-body {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* 自定义滚动条 */
.popup-body::-webkit-scrollbar {
  width: 6px;
}

.popup-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 表单输入项 */
.form-item {
  margin-bottom: 20px;
}

.form-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #303133;
}

.form-item input,
.form-item select {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: #fafafa;
  line-height: 50px;
}

.form-item input:focus,
.form-item select:focus {
  outline: none;
  border-color: #0097A8;
  box-shadow: 0 0 0 3px rgba(0, 151, 168, 0.1);
  background: #fff;
}

.form-item input::placeholder {
  color: #909399;
}

/* 选项组 */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 500;
  color: #303133;
}

.form-group .option-item {
  margin-top: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.form-group .option-item:hover {
  color: #409eff;
}

.form-group .option-item input[type="radio"],
.form-group .option-item input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  vertical-align: middle;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #0097A8 0%, #008594 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 151, 168, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #008594 0%, #007380 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 151, 168, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 151, 168, 0.3);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  #popup-container {
    width: 95%;
    max-width: 480px;
    max-height: 95vh;
  }
  
  .popup-header {
    padding: 18px;
    font-size: 20px;
  }
  
  .popup-tabs {
    flex-direction: row;
  }
  
  .popup-tab {
    padding: 16px;
    font-size: 16px;
  }
  
  .tab-icon {
    font-size: 18px;
  }
  
  .popup-body {
    padding: 20px;
    max-height: 50vh;
  }
  
  .popup-footer {
    padding: 18px 20px;
  }
  
  .form-item input,
  .form-item select {
    height: 50px;
    padding: 0 18px;
    font-size: 15px;
    line-height: 50px;
  }
  
  .submit-btn {
    padding: 16px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  #popup-container {
    width: 98%;
    max-height: 95vh;
  }
  
  .popup-header {
    padding: 16px;
    font-size: 18px;
  }
  
  .popup-tabs {
    flex-direction: row;
  }
  
  .popup-tab {
    padding: 14px;
    font-size: 14px;
  }
  
  .tab-icon {
    font-size: 16px;
  }
  
  .popup-body {
    padding: 18px;
    max-height: 45vh;
  }
  
  .popup-footer {
    padding: 16px 18px;
  }
  
  .form-item input,
  .form-item select {
    height: 50px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 50px;
  }
  
  .submit-btn {
    padding: 14px;
    font-size: 16px;
  }
}