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

:root {
  --primary: #3498db;
  --nav-height: 60px;
  --app-height: calc(100vh - var(--nav-height));
  --app-height: calc(100dvh - var(--nav-height));
  --message-m: #005f9e;
  --bg-0: #04070f;
  --bg-1: #0b1220;
  --bg-2: #0f1a33;
}

body {
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
  line-height: 1.6;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: fill-available;
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(49, 97, 224, .20), transparent 60%),
    radial-gradient(800px 400px at 10% 90%, rgba(25, 0, 61, 0.4), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
  z-index: -1000;
  background: transparent
}

/* 导航样式 */
.navbar {
  height: var(--nav-height);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-items: center;
  height: 100%;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  margin: 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #eee;
  font-size: 18px;
  font-weight: 550;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 95%;
}

.app-container {
  height: var(--app-height);
  overflow: hidden;
}

.loading-i {
  display: none;
  width: 100vw;
  height: var(--app-height);
}


/* 页面内容 */
.page {
  width: 100%;
  height: var(--app-height);
  overflow: auto;
  margin: auto;
  -webkit-tap-highlight-color: transparent;
  animation: fadeIn 0.3s ease;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.page-title {
  margin-bottom: 30px;
  color: var(--dark);
  position: relative;
  padding-bottom: 15px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* 响应式设计 */

@media (max-width: 700px) {
  .nav-links {
    display: flex;
    gap: 22px;
  }

  .nav-link {
    font-size: 16px;
    font-weight: 600;
  }

  .nav-link::after {
    bottom: -2px;
    height: 1.5px;
  }

  .page {
    padding: 0;
  }

}

@media (min-width: 700px) {

  /* 滚动条 */
  ::-webkit-scrollbar {
    width: 6px;
    height: 60px;

  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);

  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .nav-link {
    min-width: 36px;
  }
}