/* 弹窗遮罩层 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 弹窗容器 */
.modal-container {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

/* 弹窗头部 */
.modal-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #0f1729;
  margin: 0;
  font-family: 'PingFang SC', sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6c727f;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #0f1729;
}

/* 弹窗内容 */
.modal-content {
  padding: 24px;
  text-align: center;
}

.modal-icon {
  margin-bottom: 20px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
  color: #6c727f;
  margin: 0 0 24px 0;
  font-family: 'PingFang SC', sans-serif;
}

.modal-description strong {
  color: #f11d48;
  font-weight: 600;
}

/* 功能特色 */
.modal-features {
  display: flex;
  justify-content: space-around;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #fef9ff, #e3f1ff);
  border-radius: 16px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.feature-item span:last-child {
  font-size: 14px;
  color: #0f1729;
  font-weight: 500;
  font-family: 'PingFang SC', sans-serif;
}

/* 弹窗底部 */
.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 200px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'PingFang SC', sans-serif;
}

.modal-btn-primary {
  background: #f11d48;
  color: white;
}

.modal-btn-primary:hover {
  background: #e11d48;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(241, 29, 72, 0.3);
}

.modal-btn-secondary {
  background: #f5f5f5;
  color: #6c727f;
}

.modal-btn-secondary:hover {
  background: #e5e5e5;
  color: #0f1729;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    border-radius: 16px;
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-description {
    font-size: 14px;
  }
  
  .modal-features {
    flex-direction: column;
    gap: 12px;
  }
  
  .feature-item {
    flex-direction: row;
    justify-content: center;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-btn {
    width: 100%;
  }
}