﻿/* 默认导航栏样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
}
#navbar {
  position: fixed;
  top: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  

}



/* 滚动后导航栏样式 */
.nav-scrolled {



  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  

  
}

/* 隐藏状态 */
.nav-hidden {
  transform: translateY(-100%);
  
}


.navbarbg{
	
	padding:0px 10px;
	
	width: 100%;

 height: 40px;
 
}
.logo {
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  text-indent: -9999px;
 
  
  background: url(images/logo20.png) no-repeat;
  background-size:170px 30px ;

   width: 40%;
   float: left;
   margin-top: 5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  
      width: 30%;
	  float: right;
	  line-height: 38px;
	  
	
	
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;

}

/* 滚动后颜色变化 */
.nav-scrolled .logo{
 
  background: url(images/logo10.png) no-repeat;
  background-size:170px 30px ;
}


.nav-scrolled .nav-links a {
  color: green;

  
}

.nav-scrolled .navbarbg{ background: #fff; width: 100%; height: 40px;  	}


/* 测试内容区域（长页面） */
.section {
  height: 100vh; /* 每屏高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}