@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap'); /*font-family: 'Inter', sans-serif;*/

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

:root {
  --main-font: 'Inter', sans-serif;
  --main-color: #39BEFF;
  --secondary-color: #4AFF6B;
  --accent-color: #FFB830;
  --background-color: #24272B;
  --card-background: rgba(255, 255, 255, 0.03);
  --white-color: #FFFFFF;
  --black-color: #000000;
  --description-color: #D2D0D0;

  --green-color: #4AFF6B;
  --ip-copied-background: rgba(74, 255, 107, 0.17);
  --ip-copied-icon-background: rgba(74, 255, 107, 0.5);

  --copy-ip-button-background: rgba(57, 190, 255, 0.7);
  --how-to-join-button-background: rgba(210, 208, 208, 0.2);
  --stats-background: rgba(210, 208, 208, 0.05);
  --stat-icon-background-2: rgba(57, 190, 255, 0.5);

  --scroll-bar: rgba(210, 208, 208, 0.3);
  --scroll-bar-hover: #555555FF;

  --red-color: #FF7C7C;
  --warning-background: rgba(255, 124, 124, 0.17);
  --warning-icon-background: rgba(255, 124, 124, 0.5);
  --warning-color: #F5C1C1;

  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  --hover-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);

  /*Admin-Team rank colors*/
  --default-rank-color: rgba(210, 208, 208, 0.3);
}

body {
  background: var(--background-color);
  font-family: var(--main-font);
  padding-top: 80px; /* 根据导航栏高度调整此值 */
  overflow-x: hidden;
  color: var(--white-color);
}

/*Navbar*/
.navbar {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 150px;
  background: rgba(36, 39, 43, 0.85); /* 更透明以增强视觉效果 */
  transition: all 0.3s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px); /* 增强毛玻璃效果 */
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 滚动时导航栏变小的效果 */
.navbar.scrolled {
  padding: 12px 150px;
  background: rgba(36, 39, 43, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.navbar a {
  text-decoration: none;
}

.navbar .menu-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.navbar .menu-mobile .logo {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

.navbar .menu-mobile .logo img {
  max-width: 40px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(57, 190, 255, 0.5));
  transition: all 0.3s ease;
}

.navbar .menu-mobile .logo h3 {
  color: var(--white-color);
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(57, 190, 255, 0.5);
}

.navbar .links {
  display: flex;
  flex-direction: row;
  gap: 25px; /* 稍微减小间距以容纳更多链接 */
  transition: 0.3s ease-in-out;
  flex-wrap: wrap; /* 在小屏幕上允许链接换行 */
  justify-content: center; /* 居中链接 */
}

.navbar .links .link {
  color: var(--description-color);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.navbar .links .link.active {
  color: var(--white-color);
}

.navbar .links .link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--main-color) 0%, rgba(57, 190, 255, 0.3) 100%);
  box-shadow: 0 0 8px rgba(57, 190, 255, 0.5);
}

.navbar .links .link:not(.active):hover {
  color: var(--white-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar .menu-mobile .hamburger {
  color: var(--white-color);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  justify-content: center;
  align-items: center;
}

.navbar .menu-mobile .hamburger:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.navbar.scrolled .menu-mobile .hamburger {
  font-size: 20px; /* 滚动时汉堡图标变小 */
}

.navbar.active {
  max-height: 1000px;
}

.navbar.active .links {
  opacity: 1;
  z-index: 2;
}

/* 按钮样式优化 */
.join-server-btn, .how-to-join, .join-qq, .download-faq-btn, .wiki-faq-btn {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  outline: none;
  color: var(--white-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--main-color), rgba(57, 190, 255, 0.7));
  box-shadow: 0 4px 15px rgba(57, 190, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.join-server-btn:hover, .how-to-join:hover, .join-qq:hover, .download-faq-btn:hover, .wiki-faq-btn:hover {
  box-shadow: 0 8px 20px rgba(57, 190, 255, 0.5);
  transform: translateY(-3px);
}

.join-server-btn i, .how-to-join i, .join-qq i, .download-faq-btn i, .wiki-faq-btn i {
  margin-right: 8px;
}

/* 标签样式美化 */
.tag {
  display: inline-block;
  padding: 5px 15px;
  margin: 4px;
  background: rgba(57, 190, 255, 0.15);
  border-radius: 20px;
  color: var(--white-color);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(57, 190, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tag:hover {
  background: rgba(57, 190, 255, 0.3);
  border-color: var(--main-color);
}

/*Footer*/
#footer {
  padding: 2px 150px; /* 减少到最小内边距 */
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 0;
  background: rgba(20, 22, 25, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#footer p {
  color: var(--description-color);
  font-size: 17px;
}

#footer p span {
  color: var(--white-color);
}

#footer .social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px; /* 减少间距 */
  justify-content: center;
  padding: 2px 0; /* 极小的内边距 */
  line-height: 0.9; /* 更紧凑的行高 */
  margin: 0; /* 确保无外边距 */
}

#footer .owner-info {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#footer .owner-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.2);
}

#footer .owner-info i {
  font-size: 18px !important; /* 进一步放大图标 */
  margin-right: 6px !important;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

#footer .owner-info p {
  font-size: 18px !important; /* 进一步放大文字 */
  line-height: 1 !important;
  margin: 0 !important;
}

#footer .social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px; /* 减少间距 */
  line-height: 0.9; /* 更紧凑的行高 */
}

#footer .social-icons a {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 17px; /* 进一步放大文字 */
  background: rgba(0,0,0,0.3);
  padding: 4px 12px; /* 调整内边距以适应更大的文字 */
  border-radius: 22px; /* 稍微增加圆角 */
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  min-height: 28px; /* 增加更多高度 */
  line-height: 1.1; /* 增加行高 */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#footer .social-icons a i, 
#footer .social-icons a svg {
  font-size: 18px; /* 进一步放大图标 */
  margin-right: 6px; /* 增加间距 */
}

#footer .social-icons a span {
  color: var(--white-color);
}

#footer .social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  filter: brightness(1.2);
}

#footer .tiktok-link i {
  margin-right: 5px;
  color: #fe2c55;
}

#footer .tiktok-link:hover {
  background: rgba(254,44,85,0.25);
}

#footer .bilibili-link svg {
  margin-right: 5px;
  fill: #00a1d6;
}

#footer .bilibili-link:hover {
  background: rgba(0,161,214,0.25);
}

#footer .qq-link-footer i {
  margin-right: 5px;
  color: #12b7f5;
}

#footer .qq-link-footer:hover {
  background: rgba(18,183,245,0.25);
}

/* 页脚备案信息 */
.footer-container {
  text-align: center;
  padding: 5px 0; /* 减少内边距 */
  width: 100%;
  background-color: rgba(36, 39, 43, 0.98);
  position: relative;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2); /* 减小阴影 */
  border-top: 1px solid rgba(210, 208, 208, 0.1);
}

.footer-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--description-color);
  font-size: 15px; /* 进一步放大文字 */
  line-height: 1;
}

.footer-text a {
  color: var(--description-color);
  text-decoration: none;
  transition: 0.2s;
}

.footer-text a:hover {
  color: var(--white-color);
}

/*Scrollbar*/
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--stats-background);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-bar);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-bar-hover);
}

/*Other*/
section:not(#header) .content {
  padding: 90px 150px;
  width: 100%;
}

/*Responsive*/
@media screen and (max-width: 1625px) {
  .navbar {
    padding: 20px 90px;
  }
  
  .navbar.scrolled {
    padding: 12px 90px;
  }
}

@media screen and (max-width: 819px) {
  .navbar {
    padding: 20px 30px;
  }
  
  .navbar.scrolled {
    padding: 12px 30px;
  }
}

@media screen and (max-width: 867px) {
  .navbar {
    flex-direction: column;
    gap: 20px; /* 减小间隙，使导航条在滚动时更紧凑 */
    max-height: 90px;
    overflow: hidden;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease-in-out;
  }
  
  /* 确保滚动效果在移动端也生效 */
  .navbar.scrolled {
    max-height: 70px; /* 滚动时高度变小 */
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(36, 39, 43, 0.98);
  }
  
  .navbar.active {
    max-height: 1000px;
    background: rgba(36, 39, 43, 0.98);
  }

  .navbar .menu-mobile {
    width: 100%;
    transition: all 0.3s ease-in-out; /* 添加过渡效果 */
  }
  
  /* 滚动时logo大小调整 */
  .navbar.scrolled .menu-mobile .logo img {
    max-width: 32px; /* 滚动时logo变小 */
  }
  
  .navbar.scrolled .menu-mobile .logo h3 {
    font-size: 18px; /* 滚动时标题变小 */
  }

  .navbar .menu-mobile .hamburger {
    display: flex;
  }

  .navbar .links {
    flex-direction: column;
    order: 2;
    width: 100%;
    opacity: 0;
    z-index: -1;
    flex-wrap: nowrap; /* 在移动端不需要换行 */
    justify-content: flex-start; /* 在移动端左对齐 */
  }
  
  body {
    padding-top: 70px; /* 在移动设备上适当减小顶部padding */
  }
}

@media screen and (max-width: 1625px) {
  section:not(#header) .content {
    padding: 90px;
  }

  #footer {
    padding: 2px 90px; /* 减少到最小内边距 */
  }
}

@media screen and (max-width: 819px) {
  section:not(#header) .content {
    padding: 50px 30px;
  }

  #footer {
    padding: 2px 30px; /* 减少到最小内边距 */
  }
}

@media screen and (max-width: 564px) {
  #footer {
    flex-direction: column;
    gap: 5px; /* 减少间距 */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px 15px; /* 减少内边距 */
  }
}

@media (max-width: 768px) {
  #footer .social-links {
    flex-direction: column;
    gap: 15px;
  }
  
  #footer .owner-info {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* 页脚社交链接样式 */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px; /* 减少间距 */
  width: 100%;
  padding: 2px 0; /* 极小的内边距 */
  line-height: 0.9; /* 更紧凑的行高 */
  margin: 0; /* 确保无外边距 */
}

.owner-info {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  min-height: 22px;
}

.social-icons {
  display: flex;
  gap: 5px; /* 减少间距 */
  flex-wrap: wrap;
  line-height: 0.9; /* 更紧凑的行高 */
}

.social-icons .link {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 17px; /* 进一步放大文字 */
  background: rgba(255,255,255,0.1);
  padding: 4px 12px; /* 进一步调整内边距 */
  border-radius: 22px; /* 稍微增加圆角 */
  transition: all 0.2s ease;
  color: var(--white-color);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-height: 28px; /* 增加更多高度 */
}

.social-icons .link i,
.social-icons .link svg {
  font-size: 18px; /* 进一步放大图标 */
  margin-right: 6px; /* 增加间距 */
}

.social-icons .link:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.tiktok-link:hover {
  color: #ff0050;
}

.bilibili-link:hover {
  color: #00a1d6;
}

.qq-link-footer:hover {
  color: #12b7f5;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .social-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .owner-info {
    margin-right: 0;
    margin-bottom: 10px;
  }
}