/* 字体 */

@font-face {
    font-family: KumbhSans; 
    src: url(../fonts/Kumbh_Sans/KumbhSans-VariableFont_YOPQ\,wght.ttf);
    /* 设计类的标题，字母之间有间距 */
}

@font-face {
    font-family: NeutralFace-Bold;
    src: url(../fonts/neutral_face/Neutralface/NeutralFace-Bold.otf);
    /* 适合设计类的标题 */
}

@font-face {
    font-family: NeutralFace;
    src: url(../fonts/neutral_face/Neutralface/NeutralFace.otf);
    /* 适合设计类的副标题 */
}

@font-face {
    font-family: SpaceGrotesk; 
    src: url(../fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf);
    /* 适合英语正文 */
}

/* 字体 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
  background: #f0f0f0;
}

.navbar {
  height: 60px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: fixed; /* 关键点：固定顶部 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li {
  cursor: pointer;
  color: #dfe6e9;
}

.nav-links li:hover {
  color: #00cec9;
}

.nav-links li.active {
  color: #145a32 !important; /* 墨绿色 */
  font-weight: bold;
  text-shadow: 0 0 2px #145a32;
}

.logo {
  font-weight: bolder;
  font-size: 35px;
  font-family: KumbhSans;
}

.container {
  width: 100%;
  height: calc(100% - 60px);
  overflow: hidden;
  margin-top: 60px; /* 让内容自然在导航栏下方 */
  padding-top: 0;
  position: static; /* 取消 relative */
}

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
  /* flex-direction: column; */
  /* align-items: center; */
  justify-content: center;
  transition: transform 0.6s ease;
}

/* 每页背景色：低色温灰调 */
#page1 {
  background: #2c3e50;
}

#page2 {
  background: #3d3d3d;
}

#page3 {
  background: #444f5a;
}
#page4 {
  background: #302f2e;
}
#page5 {
  background: #867869;
}

.page.active {
  display: flex;
  z-index: 1;
}

.page.slide-left {
  transform: translateX(-100%);
  z-index: 2;
}

.page.slide-right {
  transform: translateX(100%);
  z-index: 2;
}

.page h1,
.page p { 
  color: #ecf0f1;
  text-align: center;
}

.Item , .Item_{
  font-weight: bolder;
  font-size: 18px;
}