:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --text-color: #ffffff;
  --bg-color: #0f172a;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./assets/bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(to right, #00f2fe, #4facfe, #a18cd1, #fbc2eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 48px;
  opacity: 0.9;
  line-height: 1.7;
}

/* 按钮样式与发光动效 */
.glow-on-hover {
  width: 220px;
  height: 60px;
  border: none;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(10px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 30px;
}

.glow-on-hover:hover {
  transform: scale(1.05);
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  left: 0;
  top: 0;
  border-radius: 30px;
}

/* 模态框整体容器样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: visible;
  backdrop-filter: blur(3px); /* 进一步强化底层模糊 */
  -webkit-backdrop-filter: blur(3px);
}

.modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 玻璃拟态风格支付框 */
.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255,255,255,0.1);
  transform: translateY(0) scale(1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.hidden .glassmorphism {
  transform: translateY(30px) scale(0.95);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  outline: none;
}

.close-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.glassmorphism h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #fff;
}

.glassmorphism p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 30px;
}

.qr-container {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.qr-container:hover {
  transform: scale(1.03);
}

.qr-image {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.price-tag {
  font-size: 1.6rem !important;
  color: #4ade80 !important;
  font-weight: 800;
  margin-bottom: 0 !important;
  text-shadow: 0 2px 10px rgba(74, 222, 128, 0.3);
}

/* 动效关键帧 */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}
