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

html,
body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #d0d0d0 0%, #e0e0e0 50%, #c8c8c8 100%);
  position: relative;
  margin: 0;
  padding: 0;
}

/* 流动波浪背景 */
.wave-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(0deg, #8B5CF6 0%, #A855F7 30%, #9333EA 60%, #7C3AED 85%, #6D28D9 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  animation: wave-flow 15s linear infinite;
  transform-origin: center top;
  will-change: transform;
  backface-visibility: hidden;
}

.wave:nth-child(2) {
  background: linear-gradient(0deg, #A855F7 0%, #9333EA 25%, #7C3AED 50%, #6D28D9 75%, #5B21B6 100%);
  animation-delay: -3s;
  opacity: 0.85;
}

.wave:nth-child(3) {
  background: linear-gradient(0deg, #9333EA 0%, #7C3AED 25%, #6D28D9 50%, #5B21B6 75%, #4C1D95 100%);
  animation-delay: -6s;
  opacity: 0.7;
}

.wave:nth-child(4) {
  background: linear-gradient(0deg, #7C3AED 0%, #6D28D9 25%, #5B21B6 50%, #4C1D95 75%, #3B0764 100%);
  animation-delay: -9s;
  opacity: 0.6;
}

.wave:nth-child(5) {
  background: linear-gradient(0deg, #6D28D9 0%, #5B21B6 25%, #4C1D95 50%, #3B0764 75%, #2D1B69 100%);
  animation-delay: -12s;
  opacity: 0.5;
}



@keyframes wave-flow {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  
  50% {
    transform: translate3d(-40%, -10px, 0);
  }
  
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 顶部装饰 */
.top-decoration {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.decoration-item {
  width: 40px;
  height: 40px;
  background: rgba(200, 200, 200, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* QR码区域 */
.qr-section {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: center;
  z-index: 10;
}

.qr-code {
  width: 80px;
  height: 80px;
  background: #d0d0d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}

.qr-text {
  font-size: 12px;
  color: #666;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 20px 40px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* 头像和用户信息 */
.profile {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.username {
  font-size: 24px;
  font-weight: 600;
  color: #eee7e7;
  margin-bottom: 8px;
}

.bio {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
}

/* 链接按钮样式 */
.links {
  width: 100%;
  max-width: 400px;
}

.link-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.link-item:hover::before {
  left: 100%;
}

.link-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.link-item:active {
  transform: translateY(0);
}

.link-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.link-text {
  flex: 1;
  text-align: center;
  margin-right: 36px;
}

/* 动画延迟 */
.link-item:nth-child(1) {
  animation-delay: 0.1s;
}

.link-item:nth-child(2) {
  animation-delay: 0.2s;
}

.link-item:nth-child(3) {
  animation-delay: 0.3s;
}

.link-item:nth-child(4) {
  animation-delay: 0.4s;
}

.link-item:nth-child(5) {
  animation-delay: 0.5s;
}

.link-item:nth-child(6) {
  animation-delay: 0.6s;
}

.link-item:nth-child(7) {
  animation-delay: 0.7s;
}

.link-item:nth-child(8) {
  animation-delay: 0.8s;
}

.link-item:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .container {
    padding: 100px 15px 30px;
  }

  .top-decoration {
    top: 15px;
    gap: 15px;
  }

  .decoration-item {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .qr-section {
    top: 15px;
    right: 15px;
  }

  .qr-code {
    width: 70px;
    height: 70px;
  }

  .avatar {
    width: 128px;
    height: 128px;
  }

  .username {
    font-size: 20px;
  }

  .link-item {
    padding: 14px 18px;
    font-size: 15px;
  }
}