/* 遮罩层 */
.lay-modal-overlay {
position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 模态框主体 */
.lay-modal {
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

/* 标题栏 */
.lay-modal-header {
  background-color: #d80000;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.lay-close-btn {
  cursor: pointer;
  font-size: 20px;
  color: white;
}

/* 内容区 */
.lay-modal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  overflow-y: auto;
  max-height: 600px;
  -webkit-overflow-scrolling: touch;
}

/* 按钮 */
.lay-modal-footer {
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
}

.lay-btn {
  background-color: #d80000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lay-btn:hover {
  background-color: #c0392b;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}