/* styles.css */
@font-face {
    font-family: 'Adagio-Pro';
    src: url('./font/Adagio Pro.otf') format('opentype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHan';
    src: url('./font/SourceHanSerifCN-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SourceHanSemiBold';
    src: url('./font/SourceHanSerifCN-SemiBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('img/main_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    cursor: default;
    height: 100vh;
    overflow: hidden;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/main_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}

.background-overlay {
    position: fixed;
    top: 20%;
    left: 30%;
    width: 1304px;
    height: 1319px;
    background-image: url('img/background.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: -2;
    animation: rotateBackground 120s linear infinite;
}

/* 第一层粒子容器 */
#sand-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 85%;
    z-index: -2;
}

/* 第二层粒子容器 */
#sand-particles-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 34%;
    height: 95%;
    z-index: -1;
}

/* 全屏滚动容器 */
.page-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.pages-wrapper {
    height: 100%;
    transition: transform 0.8s ease;
}

.page {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    text-align: center;
}

/* 鼠标轨迹粒子容器 */
#mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* 首页容器 */
.home-page-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Logo样式 */
.logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo img {
    width: 422px;
    height: 126px;
    transition: all 0.3s ease;
}

/* 固定导航栏容器 */
#fixed-navigator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    transition: all 0.5s ease;
}

#fixed-navigator > div {
    pointer-events: auto;
}

/* 导航容器 */
.navigator-container {
    position: absolute;
    top: -4305px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 4550px;
    height: 4550px;
    overflow: hidden;
    pointer-events: none;
}

/* 蓝色圆环 */
.navigator-blue {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 4000px;
    height: 4000px;
    overflow: hidden;
    animation: rotateRing 360s linear infinite;
    transition: all 0.5s ease;
}
/* 蓝色圆环显示状态 */
.navigator-blue.show {
    width: 4546px;
    height: 4546px;
}

.navigator-blue img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 蓝色圆环装饰 */
.navigator-blue-element {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 4000px;
    height: 4000px;
    overflow: hidden;
    transition: all 0.5s ease;
}
/* 蓝色圆环装饰动画 */
.navigator-blue-element.show {
    width: 4546px;
    height: 4546px;
}

.navigator-blue-element-animation-1 {
    animation: rotateRing 220s linear infinite;
}

.navigator-blue-element-animation-2 {
    animation: rotateRing 140s linear infinite;
}

.navigator-blue-element img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 黑色圆环 */
.navigator-black {
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 4000px;
    height: 4000px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid rgba(131, 88, 41, 1);
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
    transition-delay: 0.2s;
}
/* 黑色圆环显示状态 */
.navigator-black.show {
    width: 4434px;
    height: 4434px;
}

.navigator-black img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 菜单按钮容器 */
.navigator-menu-container {
    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 1010px;
    height: 81px;
    z-index: 31;
    transition: all 0.5s ease;
    transition-delay: 0.3s;
    opacity: 0;
    /* 添加硬件加速 */
    will-change: opacity;
    pointer-events: auto;
}
/* 菜单按钮显示状态 */
.navigator-menu-container.show {
    opacity: 1;
}
/* 菜单按钮隐藏状态 */
.navigator-menu-container.hiding {
    transition: all 0.2s ease;
    transition-delay: 0s;
    opacity: 0;
}

/* 菜单项容器 */
.nav-items-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 800px;
    height: 60px;
    margin: 0 auto;
    margin-top: 47px;
}

/* 导航背景图片容器 */
.nav-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 导航背景图片 */
.nav-bg-img {
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* 添加硬件加速 */
    will-change: opacity;
    backface-visibility: hidden;
}

/* 默认显示黄色图片 */
.nav-bg-img.yellow {
    opacity: 1;
}

/* 隐藏黄色图片 */
.nav-bg-img.yellow.hidden {
    opacity: 0;
}

/* 隐藏蓝色图片 */
.nav-bg-img.blue {
    opacity: 0;
}

/* 显示蓝色图片 */
.nav-bg-img.blue.active {
    opacity: 1;
}

/* 活动状态样式 */
.nav-bg-img.yellow:not(.active) {
    opacity: 1;
}

.nav-bg-img.yellow.active {
    opacity: 0;
}

.nav-bg-img.blue:not(.active) {
    opacity: 0;
}

.nav-bg-img.blue.active {
    opacity: 1;
}

/* 为每个背景图片设置独立的位置 */
.nav-bg-img[data-index="0"] {
    top: -61px;
    left: -95px;
    transform: rotate(14deg);
    width: 88px;
    height: 37px;
}

.nav-bg-img[data-index="1"] {
    top: -28px;
    left: 115px;
    transform: rotate(7deg);
    width: 114px;
    height: 38px;
}

.nav-bg-img[data-index="2"] {
    top: -17px;
    left: 318px;
    width: 157px;
    height: 38px;
}

.nav-bg-img[data-index="3"] {
    top: -25px;
    left: 567px;
    transform: rotate(-7deg);
    width: 105px;
    height: 36px;
}

.nav-bg-img[data-index="4"] {
    top: -60px;
    right: -85px;
    transform: rotate(-14deg);
    width: 99px;
    height: 37px;
}

/* 导航文字项容器 */
.nav-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 确保导航文字项有正确的指针事件 */
.nav-text-container .nav-item {
    pointer-events: auto;
}

/* 导航项 */
.nav-item {
    position: absolute;
    text-decoration: none;
    color: white;
    font-family: 'SourceHanSemiBold', serif;
    font-size: 26px;
    white-space: nowrap;
    pointer-events: auto;
    text-align: center;
    transform-origin: center center;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 0, 0, 1)
    , 0 0 8px rgba(0, 0, 0, 1);
    /* 添加硬件加速 */
    will-change: transform;
    backface-visibility: hidden;
}

/* 为每个导航项添加独立的旋转角度 */
.nav-item:nth-child(1) {
    top: -52px;
    left: -78px;
    transform: rotate(12deg);
}

.nav-item:nth-child(2) {
    top: -17px;
    left: 132px;
    transform: rotate(6deg);
}

.nav-item:nth-child(3) {
    top: -7px;
    left: 400px;
    transform: translateX(-50%) rotate(0deg);
}

.nav-item:nth-child(4) {
    top: -17px;
    left: 570px;
    transform: rotate(-5deg);
}

.nav-item:nth-child(5) {
    top: -51px;
    right: -96px;
    transform: rotate(-11deg);
}

/* 调整第二屏页面的对齐方式 */
.page:nth-child(2) {
    padding: 0;
    position: relative;
}

/* 为第二屏内容添加居中容器 */
.page:nth-child(2) .regular-student-container {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: absolute;
    top: 162px;
    left: 0;
}