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

body,html {
  height: 100%;
  /* iOS Safari 全屏支持 */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: 'SF Pro Text',
    '-apple-system',
    'BlinkMacSystemFont',
    'Segoe UI',
    'Roboto',
    'Helvetica Neue',
    'Arial',
    'Noto Sans',
    'sans-serif',
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #FFFFFF;
  /* 防止iOS Safari滚动弹跳 */
  -webkit-overflow-scrolling: touch;
  /* 隐藏滚动条 */
  -webkit-scrollbar: none;
}

/* iOS Safari 全屏样式 */
@media screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* 为所有iOS设备添加安全区域支持 */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* 使用动态视口高度 */
.container {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* PWA 全屏模式样式 */
body.standalone {
  padding-top: 0;
}

body.standalone .header {
  top: env(safe-area-inset-top, 0);
  padding-top: env(safe-area-inset-top, 0);
}

/* 优化触摸滚动 */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 允许文本选择的元素 */
input, textarea, [contenteditable] {
  -webkit-user-select: auto;
  user-select: auto;
}

@keyframes skeleton-loading {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #e2e2e2;
}

.skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s infinite linear;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  padding-top: 44px;
  padding-bottom: 90px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  background-color: #FFFFFF;
  z-index: 100;
}


.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo .logo-img {
  width: 28px;
  height: 28px;
  border-radius: 100%;
}

.logo .chat-img {
  width: 62px;
}

.header .btn {
  height: 28px;
  border-radius: 20px;
  padding-right: 9px;
  padding-left: 9px;
  font-weight: 600;
  font-size: 12px;
  line-height: 28px;
  letter-spacing: 0px;
  color: #FFFFFF;
  border: none;
  background-color: #00CB42;
}

.live-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 78px;
  color: #FFFFFF;
  margin-bottom: 44px;
}

.live-area img {
  width: 198px;
  height: 164px;
}

.live-area h1 {
  font-weight: 900;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
  margin-top: 14px;
}

.live-area .title {
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  text-align: center;
  margin-top: 14px;
}

.card {
  width: 315px;
  padding: 24px;
  margin: 0 auto;
  border-radius: 20px;
  border: 0.5px solid #FFFFFF66;
  background-color: #FFFFFF;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.avatar.skeleton {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
  opacity: 0;
  border-radius: 50%;
  background-color: #F5F5F5;
  transition: opacity 0.3s ease;
}

.avatar img.loaded {
  opacity: 1;
}

.user-text {
  flex: 1;
  padding: 4px 0;
  color: #222222;
  overflow: hidden;
}

.username {
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.levelDesc {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #222222;
  opacity: 0.7;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0px;
}

.levelDesc img {
  width: 12px;
  height: 12px;
}

.message {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  opacity: .7;
}

.open-button {
  color: #FFFFFF;
  border-radius: 10px;
  width: 100%;
  font-weight: 700;
  font-size: 18px;
  line-height: 58px;
  letter-spacing: 0%;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background-color 0.2s;
  background-color: #00CB42;
}

.down-btn:hover {
  opacity: 0.8;
}

/* Activity Page Styles */
.activity-content {
  color: white;
  position: relative;
  z-index: 1;
}

.activity-hero {
  height: 432px;
  padding-top: 17px;
  text-align: center;
  position: relative;
  background: url(./img/activity/hero_bg.jpg) no-repeat;
  background-size: 100% 100%;
}

.activity-title {
  font-weight: 600;
  font-size: 26px;
  line-height: 31px;
  letter-spacing: -0.3px;
  text-align: center;
  font-style: Semibold;
  letter-spacing: -0.3px;
}

.reward-badge {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.content-box{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06C755;
  height: 34px;
  line-height: 34px;
  border-radius: 8px;
  padding: 0 8px;
  gap: 4px;
  background-color: white;
}

.reward-badge .amount {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0px;
}

.reward-badge .text {
  font-weight: 800;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: 0px;
}


.reward-amount {
  font-size: 24px;
  font-weight: 700;
  margin-right: 8px;
}

.reward-text {
  font-size: 16px;
  font-weight: 500;
}

.phone-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  margin: 40px 0;
}

.phone-container {
  width: 120px;
  height: 200px;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.phone-screen {
  text-align: center;
}

.usdt-reward {
  color: #00CB42;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.confirm-btn {
  background: #00CB42;
  color: white;
  padding: 8px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-coin {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  animation: float 3s ease-in-out infinite;
}

.coin-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.coin-2 {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}

.coin-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.coin-4 {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-section {
  padding: 22px 16px;
  background-color: white;
}

.card-title {
  height: 46px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #000000;
  font-weight: 600;
  font-size: 22px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}

.exchange {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.card-description {
  color: #000000;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  margin-bottom: 22px;
}

.virtual-cards {
  display: flex;
  justify-content: center;
  height: 206px;
  margin-bottom: 30px;
}

.virtual-cards >img{
  width: 100%;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 4px;
}

.partner-logo {
  height: 36px;
  width: auto;
  border-radius: 20px;
}

.line{
  height: 1px;
  background-color: #E8E8E8;
  margin: 30px 16px 8px;
}

.usage-section {
  padding: 0 16px 60px;
}

.usage-title {
  margin-bottom: 30px;
  color: #000000;
  font-weight: 600;
  font-size: 22px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
}

.usage-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon img{
  width: 100%;
  height: 100%;
}

.step-content h3 {
  color: #333;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 8px;
}

.step-content p {
  color: #666;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0%;
  vertical-align: middle;
}

.logo-list{
  display: flex;
  align-items: center;
  gap: 4px;
}

.invite-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 16px 20px;
  text-align: center;
  background-color: #FFFFFF;
}

.invite-text {
  display: flex;
  align-items: center;
  color: #949494;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  margin-bottom: 6px;
}

.invite-text img{
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.claim-btn {
  height: 48px;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  background: #06C755;
  transition: background-color 0.2s;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
}

.claim-btn:hover {
  background: #00A836;
}


.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  border: 4px solid #000;
  border-top-color: rgba(0, 0, 0, 0.2);
  border-right-color: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.2);
  border-radius: 100%;

  animation: circle infinite 0.75s linear;
}

@keyframes circle {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}
