/* 原有样式保持不变 */
.allnr {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

.gonggao {
  width: auto;
  height: auto;
  margin-left: 20px;
  margin-right: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 25px;
}

.ggtile {
  font-size: 18px;
  color: #000000;
  font-weight: 900;
  display: block;
  margin-top: 0px;
}

.ggnr {
  color: #616264;
  font-weight: normal;
  font-size: 15px;
  margin: 15px 0px 20px;
  display: block;
}

.ggtj {
  color: #627be1;
  font-weight: normal;
  font-size: 15px;
  margin: 15px 0px 20px;
  display: block;
}

.jiaocheng {
  color: #3599ff;
  font-weight: 900;
  font-size: 14px;
  margin-top: 20px;
  display: block;
  text-decoration: none;
}

.gametit {
  font-size: 18px;
  color: #000000;
  font-weight: 900;
  display: block;
  margin-top: 0px;
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.gamelie {
  width: auto;
  height: auto;
  margin-left: 20px;
  margin-right: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 15px 25px 15px 25px;
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-block;
}

.gamename {
  margin-left: 20px;
  line-height: 50px;
  display: inline-block;
  position: absolute;
  left: 80px;

}

.wechat {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 70%;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .gonggao {
    background-color: #292e32;
  }

  .ggtile {
    color: #fefefe;
  }

  .ggnr {
    color: #abbdcf;
  }

  .gametit {
    color: #fefefe;
  }

  .gamelie {
    background-color: #292e32;
  }

  .gamename {
    color: #fefefe;
  }

}

/* 公告弹窗样式 - 确保在顶部 */
#announcement-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000; /* 提高层级 */
  display: flex;
  justify-content: center;
  align-items: center;
  display: none; /* 默认隐藏 */
}

.announcement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.announcement-content {
  position: relative;
  background-color: white;
  width: 85%;
  max-width: 400px;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 2001;
  animation: popup-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.announcement-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

.announcement-content p {
  color: #666;
  line-height: 1.6;
  margin: 15px 0;
  font-size: 1rem;
}

#close-announcement {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(135deg, #627be1, #8b6cf0);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(98, 123, 225, 0.3);
  transition: all 0.3s ease;
}

#close-announcement:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(98, 123, 225, 0.3);
}

/* 动画效果 */
@keyframes popup-appear {
  0% { 
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  100% { 
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
  .announcement-content {
    background-color: #1e1e1e;
  }
  
  .announcement-content h3 {
    color: #f0f0f0;
  }
  
  .announcement-content p {
    color: #d0d0d0;
  }
  
  #close-announcement {
    background: linear-gradient(135deg, #7a92eb, #a88ff5);
  }
}

/* ========== 新增：全局黑暗模式适配 ========== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212 !important;
    color: #e0e0e0;
  }
  
  /* 手动复制按钮 */
  .manual-copy-btn {
    background-color: #292e32;
    color: #fefefe;
  }
  
  /* 复制弹窗 */
  #copy-popup .copy-content {
    background-color: #1e1e1e;
    color: #f0f0f0;
  }
  
  #copy-popup .copy-content h3,
  #copy-popup .copy-content p {
    color: #f0f0f0;
  }
  
  #copy-popup .copy-content .source-link {
    background-color: #2d2d2d;
    color: #f0f0f0;
  }
  
  /* 浏览器提示层 */
  #browser-tip .tip-content {
    background-color: #1e1e1e;
    color: #f0f0f0;
  }
  
  #browser-tip .tip-title,
  #browser-tip .tip-text,
  #browser-tip .tip-steps {
    color: #f0f0f0;
  }
  
  /* 页脚文字颜色 */
  .footer,
  .footer a {
    color: #aaa !important;
  }
  
  /* 复制成功提示 */
  #copy-toast {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
  }
}