/* Loading 动画样式 */
#loading-box {
  position: fixed;
  z-index: 1001;
  width: 100vw;
  height: 100vh;
  cursor: pointer;
  background: var(--global-bg);
}

.loading-bg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: all 0.3s ease-out;
  background: linear-gradient(to bottom, #87CEEB, #E0FFFF);
}

.loading-wrap {
  text-align: center;
  transform: translateY(0);
  transition: all 0.3s ease-out;
  margin-bottom: 150px;
  position: relative;
  z-index: 2;
}

.loading-avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid #f0f0f0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  background: url('/img/avatar.jpg') center/cover;
  animation: avatar-breath 2s ease-in-out infinite;
  transition: all 0.3s ease;
  cursor: pointer;
}

.loading-avatar:hover {
  transform: rotate(360deg) scale(1.1);
  border-color: #49b1f5;
}

.loading-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--font-color);
  opacity: 0.8;
  animation: text-breath 2s ease-in-out infinite;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.loading-name:hover {
  transform: translateY(-5px);
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.loading-description {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--font-color);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.loading-description:hover {
  opacity: 1;
  transform: scale(1.1);
  letter-spacing: 2px;
}

.loading-circles {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-circles div {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--font-color);
  opacity: 0.4;
  animation: circles-breath 1s ease-in-out infinite;
  transition: all 0.3s ease;
}

.loading-circles:hover div {
  width: 12px;
  height: 12px;
  background: #49b1f5;
}

.loading-circles div:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-circles div:nth-child(3) {
  animation-delay: 0.4s;
}

#loading-box.loaded .loading-bg {
  opacity: 0;
  visibility: hidden;
}

#loading-box.loaded .loading-wrap {
  transform: translateY(-20px);
}

/* 鼠标移动轨迹效果 */
.cursor-effect {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #49b1f5;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1002;
  opacity: 0.6;
  transition: transform 0.1s;
}

@keyframes avatar-breath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  }
}

@keyframes text-breath {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes circles-breath {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* 添加渐变背景动画 */
.loading-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96e6a1);
  background-size: 400% 400%;
  opacity: 0.05;
  animation: gradient 15s ease infinite;
  z-index: -1;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 导航栏居中 */
#nav {
  padding: 0 20px;
}

#nav .menus_items {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  margin: auto;
}

.ocean { 
  height: 5%;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: #015871;
}

.wave {
  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNjYwIDMzOC4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxNjYwIDMzOC4zOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDojRkZGRkZGO30NCjwvc3R5bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTY2MCwxMTQuOGMtMTUuOS0xMi45LTM2LjYtMjMuNC02Mi40LTMxLjJjLTI1LjgtNy45LTU2LjctMTEuOC05Mi42LTExLjhjLTM1LjksMC02Ni44LDMuOS05Mi42LDExLjgNCgljLTI1LjgsNy45LTQ2LjUsMTguNC02Mi40LDMxLjJjLTE1LjksMTIuOS0yNy41LDI3LjUtMzQuOCw0My44Yy03LjMsMTYuMy0xMSwzMi44LTExLDQ5LjRjMCwxNi42LDMuNywzMy4xLDExLDQ5LjQNCgljNy4zLDE2LjMsMTguOSwzMC45LDM0LjgsNDMuOGMxNS45LDEyLjksMzYuNiwyMy40LDYyLjQsMzEuMmMyNS44LDcuOSw1Ni43LDExLjgsOTIuNiwxMS44YzM1LjksMCw2Ni44LTMuOSw5Mi42LTExLjgNCgljMjUuOC03LjksNDYuNS0xOC40LDYyLjQtMzEuMmMxNS45LTEyLjksMjcuNS0yNy41LDM0LjgtNDMuOGM3LjMtMTYuMywxMS0zMi44LDExLTQ5LjRjMC0xNi42LTMuNy0zMy4xLTExLTQ5LjQNCglDMTY4Ny41LDE0Mi4zLDE2NzUuOSwxMjcuNywxNjYwLDExNC44eiIvPg0KPC9zdmc+DQo=) repeat-x; 
  position: absolute;
  bottom: 0;
  width: 6400px;
  height: 198px;
  animation: wave 7s cubic-bezier( 0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
}

.wave:nth-of-type(2) {
  bottom: 0;
  animation: wave 7s cubic-bezier( 0.36, 0.45, 0.63, 0.53) -.125s infinite, swell 7s ease -1.25s infinite;
  opacity: 1;
}

@keyframes wave {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: -1600px;
  }
}

@keyframes swell {
  0%, 100% {
    transform: translate3d(0,-25px,0);
  }
  50% {
    transform: translate3d(0,5px,0);
  }
}

/* 添加沙滩效果 */
.loading-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(to bottom, #f4d03f, #ffd700);
  border-top: 2px solid rgba(255,255,255,0.5);
  z-index: -1;
}

/* 添加云朵效果 */
.cloud {
  width: 100px;
  height: 40px;
  background: #fff;
  border-radius: 20px;
  position: absolute;
  opacity: 0.8;
  animation: float 15s linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.cloud::before {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 10px;
}

.cloud::after {
  width: 30px;
  height: 30px;
  top: -10px;
  right: 10px;
}

@keyframes float {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100vw);
  }
}

/* 添加太阳效果 */
.sun {
  width: 60px;
  height: 60px;
  background: #FFD700;
  border-radius: 50%;
  position: absolute;
  top: 40px;
  right: 40px;
  box-shadow: 0 0 50px #FFD700;
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 50px #FFD700;
  }
  50% {
    box-shadow: 0 0 100px #FFD700;
  }
}