/* 链接点击时的过渡效果 */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: lighter;
  font-family: 'OPPOSans', 'Noto Sans SC', sans-serif;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.1));
  backdrop-filter: blur(5px);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-link:hover {
  color: rgba(255, 182, 193, 1);
  background: rgba(173, 216, 230, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* 全局样式重置和基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 页面过渡效果 */
html {
  background-color: #000; /* 设置默认背景色为黑色 */
}

body {
  height: 100%;
  font-family: 'Noto Sans SC', sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* 页面加载时的淡入效果 */
@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 确保页面正常显示 */
body:not(.page-transition) {
  opacity: 1 !important;
}

/* 页面跳转时的淡出效果 */
body.page-transition {
  opacity: 0;
}

/* 跳转覆盖层样式 */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* 确保覆盖层不会阻挡页面交互 */
}

/* 现代简洁的加载动效 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.8) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: logoFadeIn 1.2s ease-out 0.3s forwards;
}

.loading-svg {
  height: 80px; /* 加载界面中的SVG尺寸 */
  margin: 0 -6px; /* 紧密排列，保持与主页一致 */
  vertical-align: middle;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  transition: all 0.3s ease;
}

.loading-progress {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.loading-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 0.5px;
  animation: progressLoad 2.2s ease-out 0.8s forwards;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0;
  animation: textFadeIn 1s ease-out 1.5s forwards;
}

/* 加载动画关键帧 */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressLoad {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes textFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

/* 加载界面响应式设计 */
@media (max-width: 768px) {
  .loading-svg {
    height: 60px; /* 平板设备缩小 */
    margin: 0 -4px;
  }
  
  .loading-progress {
    width: 160px; /* 缩小进度条宽度 */
  }
}

@media (max-width: 576px) {
  .title-svg {
    height: 80px; /* 手机端进一步缩小 */
    margin: 0 -4px; /* 调整间距保持紧密 */
  }
  
  .site-subtitle {
    font-size: 1rem;
    min-height: 4em; /* 增加高度以适应多行 */
    height: 4em;
    max-width: 95vw;
    line-height: 1.4em; /* 调整行高 */
    font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
    font-weight: lighter; /* 使用较细的字重 */
  }
  
  .content {
    padding: 0 10px; /* 进一步减少内边距 */
    margin-top: -30px; /* 微调位置 */
  }
  
  /* 手机端悬停效果调整 */
  .title-link:hover .title-svg {
    transform: scale(1.05) translateY(-2px); /* 减小悬停效果 */
  }
  
  /* 手机端导航样式调整 */
  .nav-list {
    gap: 12px; /* 调整间距 */
  }
  
  /* 减少手机端云雾效果强度 */
  .hero::after {
    opacity: 0.4; /* 降低云雾效果强度 */
  }
  
  .nav-link {
    font-size: 0.85rem; /* 调整字体大小 */
    padding: 5px 12px; /* 调整内边距 */
    backdrop-filter: blur(3px);
    color: rgba(255, 255, 255, 0.5); /* 保持文字透明度为50% */
    font-weight: lighter; /* 使用较细的字重 */
    font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
    letter-spacing: 2px; /* 增大字间距 */
  }
  
  /* 减少手机端动画效果以提高性能 */
  .nav-link {
    animation: none;
  }
  
  .nav-item::before {
    display: none;
  }
}

/* 加载指示器样式 */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1rem;
  z-index: 1000;
  opacity: 0.8;
  pointer-events: none;
}

.loading-indicator.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* 头部导航样式 */
.header {
  position: relative;
  width: 100%;
}

/* 标题SVG图标样式 */
.title-svg {
  height: 120px; /* 进一步放大尺寸 */
  margin: 0 -8px; /* 大幅负边距让文字尽可能靠近 */
  vertical-align: middle;
  transition: all 0.3s ease;
  /* 添加呼吸效果动画 */
  animation: breathe 3s ease-in-out infinite;
}

/* 呼吸效果关键帧 */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
}

/* 鼠标悬停时的现代简洁效果 */
.title-link:hover .title-svg {
  transform: scale(1.08) translateY(-3px);
  filter: 
    brightness(1.3) 
    contrast(1.1)
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.3));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: none; /* 悬停时停止呼吸动画 */
}

/* 英雄区域样式 */
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 50px; /* 恢复原始底部内边距 */
  overflow: hidden; /* 确保云雾效果不超出容器 */
}

/* 背景图片叠加过渡效果 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 4s ease-in-out; /* 增加一倍时间，从2秒到4秒 */
  z-index: 0;
}

/* 背景叠加状态 */
.hero.transitioning::before {
  opacity: 1;
}



.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2; /* 确保覆盖在云雾效果之上 */
}



.content {
  position: relative;
  z-index: 3; /* 确保内容在所有背景效果之上 */
  text-align: center;
  color: #fff;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -50px; /* 整体向上移动 */
}

.site-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* 主导航样式 */
.main-nav {
  margin: 25px 0 15px 0; /* 调整上下边距 */
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 25px; /* 调整间距 */
  padding: 0;
  margin: 0;
}

.nav-item {
  list-style: none;
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.5); /* 默认文字透明度为50% */
  font-size: 1rem; /* 减小字体大小 */
  font-weight: lighter; /* 使用较细的字重 */
  font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
  text-decoration: none;
  padding: 6px 16px; /* 调整内边距，增加左右间距 */
  border-radius: 20px; /* 调整圆角 */
  transition: all 0.3s ease; /* 添加过渡效果 */
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.1)); /* 轻微的渐变背景 */
  backdrop-filter: blur(5px);
  border: none; /* 去掉默认的边框 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px; /* 增大字间距 */
  /* 字体优化 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-link:hover {
  color: rgba(255, 182, 193, 1); /* 悬停时文字变为淡粉色 */
  background: rgba(173, 216, 230, 0.3); /* 悬停时使用低饱和度的蓝色背景 */
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* 沿边描边效果 */
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(173, 216, 230, 0);
  transition: border 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.nav-link:hover::before {
  border: 1px solid rgba(173, 216, 230, 0.6);
  animation: border-draw 0.6s ease-in-out;
}

/* 沿边动画关键帧 */
@keyframes border-draw {
  0% {
    border-top-color: rgba(173, 216, 230, 0);
    border-right-color: rgba(173, 216, 230, 0);
    border-bottom-color: rgba(173, 216, 230, 0);
    border-left-color: rgba(173, 216, 230, 0);
  }
  25% {
    border-top-color: rgba(173, 216, 230, 0.6);
  }
  50% {
    border-top-color: rgba(173, 216, 230, 0.6);
    border-right-color: rgba(173, 216, 230, 0.6);
  }
  75% {
    border-top-color: rgba(173, 216, 230, 0.6);
    border-right-color: rgba(173, 216, 230, 0.6);
    border-bottom-color: rgba(173, 216, 230, 0.6);
  }
  100% {
    border-color: rgba(173, 216, 230, 0.6);
  }
}

/* 为每个链接设置统一的低饱和度蓝色悬停背景颜色 */
.nav-item:nth-child(1) .nav-link:hover,
.nav-item:nth-child(2) .nav-link:hover,
.nav-item:nth-child(3) .nav-link:hover {
  background: linear-gradient(135deg, rgba(173, 216, 230, 0.3), rgba(135, 206, 235, 0.3)); /* 低饱和度蓝色渐变背景 */
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.nav-link:active::after {
  width: 200px;
  height: 200px;
}

/* 大屏幕优化 */
@media (min-width: 992px) {
  .nav-link {
    font-size: 1.1rem; /* 大屏幕设备的字体大小 */
    animation: navBreathe 4s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.5); /* 保持文字透明度为50% */
    font-weight: lighter; /* 使用较细的字重 */
    font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
    letter-spacing: 2px; /* 增大字间距 */
    padding: 6px 18px; /* 调整内边距 */
  }
  
  .nav-link:hover {
    animation: none;
  }
  
  .site-subtitle {
    font-size: 1.3rem; /* 大屏幕设备的字体大小 */
  }
}

@keyframes navBreathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.nav-link:hover {
  animation: none;
}

/* 三色动态效果 */
.tri-color {
  display: inline-block;
  position: relative;
  color: #fff;
  text-shadow: 
    -2px -2px 0 #ff00ff,
    2px 2px 0 #00ffff;
  animation: glitch 3s infinite;
  transition: all 0.3s ease;
}

.title-link {
  text-decoration: none;
  color: inherit;
}

.title-link:hover .tri-color {
  text-shadow: 
    0 0 10px #ff00ff,
    0 0 20px #00ffff,
    0 0 30px #ffffff;
  filter: brightness(1.5);
  transform: scale(1.05);
}

@keyframes glitch {
  0% {
    text-shadow: 
      -2px -2px 0 #ff00ff,
      2px 2px 0 #00ffff;
  }
  25% {
    text-shadow: 
      2px 2px 0 #ff00ff,
      -2px -2px 0 #00ffff;
  }
  50% {
    text-shadow: 
      -1px 1px 0 #ff00ff,
      1px -1px 0 #00ffff;
  }
  75% {
    text-shadow: 
      1px -1px 0 #ff00ff,
      -1px 1px 0 #00ffff;
  }
  100% {
    text-shadow: 
      -2px -2px 0 #ff00ff,
      2px 2px 0 #00ffff;
  }
}

.site-subtitle {
  font-size: 1.2rem;
  line-height: 1.5em;
  margin-top: 10px;
  white-space: normal; /* 允许文本自动换行 */
  max-width: 90vw; /* 最大宽度为视口宽度的90% */
  overflow-wrap: break-word; /* 确保长单词也能换行 */
  word-wrap: break-word;
  display: block;
  padding-right: 5px;
  min-height: 3em; /* 增加最小高度，确保有足够空间容纳多行文本 */
  position: relative; /* 添加定位 */
  height: 3em; /* 固定高度 */
  width: 100%; /* 占满容器宽度 */
  opacity: 0.7; /* 调整透明度为70% */
  font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
  font-weight: lighter; /* 使用较细的字重 */
  /* 字体优化 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .title-svg {
    height: 100px; /* 平板设备适当缩小 */
    margin: 0 -6px; /* 调整间距 */
  }
  
  .site-subtitle {
    font-size: 1.1rem;
    max-width: 95vw; /* 增加宽度利用率 */
    font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
    font-weight: lighter; /* 使用较细的字重 */
  }
  
  .content {
    padding: 0 15px; /* 减少内边距 */
  }
  
  /* 平板端云雾效果调整 */
  .hero::after {
    opacity: 0.5; /* 适度降低云雾效果强度 */
  }
  
  /* 平板设备导航样式调整 */
  .nav-list {
    gap: 18px; /* 调整间距 */
  }
  
  .nav-link {
    font-size: 0.9rem; /* 调整字体大小 */
    padding: 6px 14px; /* 调整内边距 */
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.5); /* 保持文字透明度为50% */
    font-weight: lighter; /* 使用较细的字重 */
    font-family: 'OPPOSans', 'Noto Sans SC', sans-serif; /* 使用OPPOSans字体 */
    letter-spacing: 2px; /* 增大字间距 */
  }
  
  /* 减少平板端动画效果 */
  .nav-link {
    animation: none;
  }
}

@media (max-width: 768px) and (min-width: 577px) {
  .nav-list {
    gap: 18px; /* 调整间距 */
  }
  
  .nav-link {
    font-size: 1.15rem; /* 调整字体大小 */
    padding: 6px 12px; /* 调整内边距 */
  }
  
  /* 减少平板端动画效果 */
  .nav-link {
    animation: none;
  }
}
