html, body {
  height: 100%;
}
body {
  background: #f5f6fa;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
.container {
  width: 340px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.10), 0 1.5px 4px rgba(44,62,80,0.08);
  padding: 32px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: -60px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  border: 4px solid #fff;
  background: #eee;
}
.title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #4b4b4b;
  margin-bottom: 8px;
}
.progress-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.progress-section .progress-text,
.progress-bar-bg,
.progress-percent,
.progress-tip {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.progress-bar-bg {
  width: 80%;
  max-width: 240px;
  height: 14px;
  background: #e6e6e6;
  border-radius: 7px;
  overflow: hidden;
  margin: 0 auto 10px auto;
  display: block;
  position: relative;
}
.progress-bar {
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
  border-radius: 7px 0 0 7px;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  top: 0;
}
.progress-percent {
  font-size: 1rem;
  color: #888;
  margin-bottom: 8px;
}
.progress-tip {
  color: #b0b0b0;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.btn {
  width: 80%;
  padding: 13px 0;
  margin: 18px auto 0 auto;
  border: none;
  border-radius: 12px;
  font-size: 1.13rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #7f7fd5 0%, #86a8e7 50%, #91eac9 100%);
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn:active {
  background: linear-gradient(90deg, #86a8e7 0%, #7f7fd5 100%);
}
.btn-exit {
  width: 80%;
  padding: 12px 0;
  margin: 12px auto 0 auto;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.13rem;
  color: #666;
  background: #fafbfc;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.btn-exit:active {
  background: #f0f0f0;
  border-color: #d0d0d0;
}
.result-section {
  width: 340px;
  background: linear-gradient(120deg, #ff6a6a 0%, #ffb199 100%);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(255, 106, 106, 0.10), 0 1.5px 4px rgba(255, 106, 106, 0.08);
  padding: 38px 0 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: shake-crazy 0.7s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake-crazy {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  10% { transform: translate(-48%, -52%) rotate(-6deg); }
  20% { transform: translate(-52%, -48%) rotate(6deg); }
  30% { transform: translate(-51%, -49%) rotate(-12deg); }
  40% { transform: translate(-49%, -51%) rotate(12deg); }
  50% { transform: translate(-50%, -50%) rotate(-8deg); }
  60% { transform: translate(-52%, -48%) rotate(8deg); }
  70% { transform: translate(-48%, -52%) rotate(-4deg); }
  80% { transform: translate(-50%, -50%) rotate(4deg); }
  90% { transform: translate(-51%, -49%) rotate(-2deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}
.result-section .emoji {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 10px;
}
.result-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}
.result-tip {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.result-fun {
  color: #fff;
  font-size: 1.08rem;
  margin-top: 8px;
  font-weight: 500;
}
.hide {
  display: none !important;
}
.success-section {
  width: 380px;
  background: linear-gradient(120deg, #ff6a6a 0%, #ffb199 100%);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(255, 106, 106, 0.10), 0 1.5px 4px rgba(255, 106, 106, 0.08);
  padding: 38px 0 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  overflow: hidden;
}
.success-emoji {
  font-size: 4rem;
  margin-bottom: 10px;
  margin-top: 10px;
}
.success-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}
.success-desc {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.success-time {
  background: rgba(255,255,255,0.7);
  color: #ff6a6a;
  border-radius: 12px;
  padding: 2px 14px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 4px;
}
.success-tip {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 18px;
}
.btn-yellow {
  width: 85%;
  padding: 15px 0;
  margin: 0 auto 12px auto;
  border: none;
  border-radius: 14px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #333;
  background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
  box-shadow: 0 2px 8px rgba(255, 200, 80, 0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-yellow:active {
  background: linear-gradient(90deg, #ffa751 0%, #ffe259 100%);
}
.btn-share {
  width: 85%;
  padding: 13px 0;
  margin: 0 auto 0 auto;
  border: 2px solid #fff;
  border-radius: 14px;
  font-size: 1.13rem;
  color: #fff;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.btn-share:active {
  background: rgba(255,255,255,0.08);
}
.confetti {
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  z-index: 1;
}
.confetti-piece {
  position: absolute;
  top: -30px;
  width: 16px;
  height: 8px;
  border-radius: 4px;
  opacity: 0.85;
  animation: confetti-fall 1.8s cubic-bezier(.62,.01,.47,1) forwards;
}
@keyframes confetti-fall {
  0% { top: -30px; opacity: 0.9; transform: translateY(0) rotate(0deg) scale(1); }
  80% { opacity: 1; }
  100% { top: 340px; opacity: 0.2; transform: translateY(60px) rotate(360deg) scale(0.7); }
}
@media (max-width: 700px) {
  html, body {
    height: 100%;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    background: #f5f6fa;
  }
  body {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    position: relative;
  }
  .container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10;
  }
  .result-section, .success-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 20;
  }
  .container, .result-section, .success-section {
    width: 96vw;
    max-width: 99vw;
    min-width: 0;
    border-radius: 22px;
    padding: 0 0 18px 0;
    margin: 0 auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10), 0 1.5px 4px rgba(44,62,80,0.08);
  }
  .avatar {
    width: 72px;
    height: 72px;
    margin-top: -40px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  }
  .title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #5a5a5a;
    letter-spacing: 1px;
    text-align: center;
  }
  .progress-bar-bg {
    width: 90vw;
    max-width: 98vw;
    min-width: 0;
    height: 13px;
  }
  .btn, .btn-exit, .btn-yellow, .btn-share {
    width: 90vw;
    min-width: 0;
    font-size: 1.18rem;
    padding: 15px 0;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
  }
  .btn {
    margin-top: 22px;
  }
  .btn-exit {
    margin-top: 14px;
  }
  .success-section, .result-section {
    padding: 12px 0 12px 0;
    border-radius: 22px;
  }
  .success-emoji {
    font-size: 2.4rem;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .fun-link-box {
    right: 3vw;
    bottom: 3vw;
  }
  .fun-link-btn {
    width: 54px;
    height: 54px;
    font-size: 2rem;
    border-radius: 16px;
  }
  .fun-link-label {
    font-size: 1.08rem;
    padding: 2px 10px;
  }
  .fun-link-modal-content {
    padding: 10px 2vw 8px 2vw;
    min-width: 0;
    max-width: 98vw;
    font-size: 1.08rem;
    border-radius: 16px;
  }
  .emoji-bg-item {
    font-size: 1.1rem !important;
    opacity: 0.09 !important;
  }
}
.emoji-bg {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.emoji-bg-item {
  position: absolute;
  opacity: 0.13;
  filter: blur(0.2px);
  pointer-events: none;
  user-select: none;
  font-family: 'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;
}
.fun-link-box {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fun-link-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
  border: none;
  font-size: 2rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 200, 80, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: box-shadow 0.2s, background 0.2s;
}
.fun-link-btn:active {
  box-shadow: 0 1px 3px rgba(255, 200, 80, 0.10);
  background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
}
.fun-link-label {
  font-size: 0.98rem;
  color: #888;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 2px 10px;
  margin-top: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fun-link-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fun-link-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  padding: 32px 28px 22px 28px;
  min-width: 260px;
  max-width: 90vw;
  text-align: center;
}
.fun-link-modal-title {
  font-size: 1.18rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #ff6a6a;
}
.fun-link-modal-desc {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 18px;
}
.fun-link-modal-close {
  padding: 7px 22px;
  border-radius: 8px;
  border: none;
  background: #ffe259;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(255, 200, 80, 0.10);
} 