.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f4f9;
  color: #333;
  max-width: 100%; /* 设置最大宽度 */
  margin: 0 auto; /* 居中 */
}

.main-content {
  position: relative; /* 必须 relative，为了让子元素绝对定位 */
  margin-top: 30px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden; /* 防止内容溢出 */
}
.background-img {
  position: absolute; /* 绝对定位，让图片铺满 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例，必要时裁剪，防止变形 */
  z-index: 0;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
}

.modal-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.modal input {
  width: 100%;
  padding: 8px;
  margin: 12px 0;
}
.modal-buttons {
  display: flex;
  justify-content: center; /* ⬅️ 居中对齐按钮 */
  gap: 12px; /* 按钮之间的间距 */
  margin-top: 20px; /* 与上方内容留点空间 */
}

.modal-buttons button {
  padding: 10px 20px; /* ⬅️ 放大按钮尺寸 */
  font-size: 16px; /* ⬅️ 放大文字 */
  border-radius: 6px;
  background-color: rgba(255, 196, 0, 0.3);
  color: rgb(30, 28, 28);
  border: none;
  cursor: pointer;
}

