* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(to bottom, #e0f7fa 0%, #ffffff 50%, #ff8655 100%);
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.portal-container {
  width: min(90%, 400px);
  padding: 40px 60px;
  border: 2px solid #a2e9a2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  backdrop-filter: blur(5px);
}

.icon {
  min-height: 40px;
  margin-bottom: 10px;
  font-size: 40px;
}

.portal-container h1 {
  margin-bottom: 10px;
  color: #2d5a27;
  font-size: 24px;
  font-weight: 700;
}

.portal-container p {
  margin-bottom: 30px;
  color: #666666;
  font-size: 14px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn {
  display: block;
  padding: 15px 30px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.05);
}

.btn-1 {
  background-color: #4caf50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-1:hover,
.btn-1:focus-visible {
  background-color: #45a049;
}

.btn-2 {
  background-color: #ff8655;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-2:hover,
.btn-2:focus-visible {
  background-color: #1b5e20;
}

.tip {
  margin-top: 30px;
  color: #999999;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(34, 34, 34, 0.92);
  color: #ffffff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .portal-container {
    width: 100%;
    padding: 34px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .toast {
    transition: none;
  }
}
