/* 用户模态容器 */
.user-modal {
  position: absolute;
  width: 300px;
  border-radius: 10px;
  background: #1e1e1e;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-size: 14px;
  display: none;
  transition: opacity 0.5s ease, visibility 0s 1s; /* 动画效果：0.5秒 */
}

/* 头部样式 */
.user-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #2e2e2e;
  border-bottom: 1px solid #3a3a3a;
  position: relative;
}

/* 用户头像 */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

/* 用户信息 */
.user-info {
  flex-grow: 1;
}

.user-name {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.user-emailorweb3 {
  margin: 5px 0 0;
  font-size: 13px;
  color: #aaa;
}

.user-method {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  color: #42c742;
}

/* 设置按钮 */
.settings-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 16px;
  position: absolute;
  top: 15px;
  right: 15px;
}

/* 主体样式 */
.user-body {
  padding: 15px;
}

/* 电子钱包区域 */
.wallet {
  margin-bottom: 15px;
}

.wallet h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: bold;
}

.rewards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  border-radius: 5px;
  padding: 10px;
}

.rewards-info span {
  font-size: 13px;
  color: #aaa;
}

.rewards-info strong {
  font-size: 16px;
  color: #fff;
}

.exchange-link {
  color: #42c742;
  text-decoration: none;
  font-size: 13px;
}

/* 按钮区域 */
.actions .action-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
}

.actions .action-btn:hover {
  background: #444;
}


/* 放大模态样式 */
.ImgOrName-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.ImgOrName-modal-content {
  position: relative;
  background-color: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-actions {
  margin-top: 20px;
}

.modal-actions button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin: 0 10px;
}

.modal-actions button:hover {
  background-color: #45a049;
}


.modal-actions input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}




/* 页面主要内容样式 */

main {
  padding: 50px;
  text-align: center;
}

/* 底部导航栏样式 */

/* 底部内容样式 */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 10%;
  background-color: #2a2a2a;
  color: white;
  border-top: 1px solid #333;
  margin-top: 40px;
}

.footer-left, .footer-middle {
  flex: 1;
  padding: 0 20px;
}

.footer-right {
  flex: 1.5; /* 占用 50% 的空间，其他两个占 25% */
  padding: 0 20px;
}

.footer-left h2, .footer-middle h2, .footer-right h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-left p, .footer-right p {
  font-size: 16px;
  line-height: 1.8;
  color: #bbb;
}

.footer-middle ul {
  list-style: none;
  padding: 0;
}

.footer-middle ul li {
  margin-bottom: 10px;
}

.footer-middle ul li a {
  text-decoration: none;
  color: #ddd;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
  color: #fff;
}

.footer-left .cta-button, .footer-right a {
  display: inline-block;
  background-color: #efefef;
  color: #000000;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.footer-left .cta-button:hover, .footer-right a:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* 頁腳 */
footer {
  background-color: #2a2a2a;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  width: 100%;
}

footer p {
  margin: 5px 0;
}























































/* 小屏幕（如手机）的布局调整 */
@media (max-width: 768px) {
  /* 底部内容 */
  .footer-content {
    flex-direction: column;
    padding: 20px 10%;
  }

  /* 左侧、中间、右侧部分 */
  .footer-left, .footer-middle, .footer-right {
    flex: none;
    width: 100%;
    padding: 15px 0;
    text-align: center;
  }

  .footer-left h2, .footer-middle h2, .footer-right h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .footer-left p, .footer-right p {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 15px;
  }

  /* 快速链接部分 */
  .footer-middle ul {
    padding: 0;
  }

  .footer-middle ul li {
    margin-bottom: 8px;
  }

  .footer-middle ul li a {
    font-size: 14px;
  }

  /* 按钮 */
  .footer-left .cta-button, .footer-right a {
    font-size: 14px;
    padding: 10px 25px;
    margin-top: 15px;
  }

  /* 修改 .footer-left 和 .footer-right 为图文分离，文字在上，图片在下 */
  .footer-left, .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 使文字和图片顺序分离：文字排在上面，图片排在下面 */
  .footer-left img, .footer-right img {
    order: 2; /* 将图片排在下方 */
    margin-top: 20px; /* 图片与文字间的间距 */
  }

  .footer-left p, .footer-right p {
    margin-bottom: 10px;
  }

  /* 图片部分的大小调整，确保不会太大 */
  .footer-left img, .footer-right img {
    max-width: 100%;
    height: auto;
  }
}



/* 超小屏幕（如小手机）的布局调整 */
@media (max-width: 480px) {
  .footer-content {
    padding: 15px 10%;
  }

  .footer-left h2, .footer-middle h2, .footer-right h2 {
    font-size: 20px;
  }

  .footer-left p, .footer-right p {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-middle ul li a {
    font-size: 12px;
  }

  .footer-left .cta-button, .footer-right a {
    font-size: 12px;
    padding: 8px 20px;
  }
}





