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

html, body {
  width: 100%;
  height: 100%;
  background-color: #999999;
  font-family: 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
}

.container {
  max-width: 600px;
  padding: 30px 25px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 120px; /* 为悬浮按钮留出空间 */
}

.container > .header {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.container > .header > .avatar {
  width: 100%;
  display: flex;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: solid 3px #222;
  transition: transform 0.3s ease;
}

.container > .header > .avatar:hover {
  transform: scale(1.05);
}

.container > .header > .avatar > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.container > .header > .title {
  margin-top: 25px;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.container > .main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  border: solid 2px #fff;
  margin-top: 40px;
  padding: 30px 25px;
}

.container > .main > h3 {
  margin-top: 25px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.6;
}

.container > .main > h3:first-child {
  margin-top: 0;
}

.container > .footer {
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
  margin-top: 30px;
  border-radius: 40px;
  background-color: #ffd803;
  padding: 15px 20px;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(600px - 50px);
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.container > .footer:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background-color: #ffed4e;
  animation: none;
}

.container > .footer:active {
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: none;
}

.container > .footer > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.container > .footer:hover > img {
  transform: scale(1.1);
}

.container > .footer span {
  margin-left: 20px;
  color: #222;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    padding: 25px 20px;
    padding-bottom: 120px;
  }
  
  .container > .header > .avatar {
    width: 120px;
    height: 120px;
  }
  
  .container > .header > .title {
    font-size: 20px;
  }
  
  .container > .main {
    margin-top: 30px;
    padding: 25px 20px;
  }
  
  .container > .main > h3 {
    font-size: 18px;
    margin-top: 20px;
  }
  
  .container > .footer {
    bottom: 20px;
    max-width: calc(100vw - 40px);
    padding: 15px 18px;
  }
  
  .container > .footer > img {
    width: 45px;
    height: 45px;
  }
  
  .container > .footer span {
    font-size: 15px;
    margin-left: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
    padding-bottom: 110px;
  }
  
  .container > .header > .avatar {
    width: 100px;
    height: 100px;
  }
  
  .container > .header > .title {
    font-size: 18px;
    margin-top: 20px;
  }
  
  .container > .main {
    margin-top: 25px;
    padding: 20px 15px;
  }
  
  .container > .main > h3 {
    font-size: 16px;
    margin-top: 18px;
  }
  
  .container > .footer {
    bottom: 15px;
    max-width: calc(100vw - 30px);
    padding: 12px 15px;
  }
  
  .container > .footer > img {
    width: 40px;
    height: 40px;
  }
  
  .container > .footer span {
    font-size: 14px;
    margin-left: 15px;
  }
}
