@font-face {
    font-family: 'PixelFont';
    src: url('assets/font/PixelFont.ttf') format('truetype');
}

/* 设置根元素字体大小，默认 16px 对应 1rem */
html {
    font-size: 16px;
    font-family: 'PixelFont', sans-serif;
}

/* 在不同屏幕尺寸下调整根元素字体大小 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
    color: #213547;
    margin-top: 4.5rem; /* 设置与导航栏高度相等的上外边距 */
    font-family: 'PixelFont', sans-serif;
    background-color: #313131;
}

/* 新增滚动容器 */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory; 
}

.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-family: 'PixelFont', sans-serif;
    scroll-snap-align: start; /* 居中吸附 */
    flex-direction: column;
    color: white;
    text-align: center;
    background-color: #313131;
    background-image: radial-gradient(rgba(255, 255, 255, 0.171) 2px, transparent 0);
    background-size: 30px 30px;
    background-position: -5px -5px;
    /* opacity: 0;  */
    /* transition: opacity 0.5s; */
}

.section .large-text {
    font-size: 5rem;
    font-weight: bold;
    font-family: 'PixelFont', sans-serif;
    opacity: 0;
    transition: opacity 0.5s;
    margin-left: 8px;
}



#section1 {
    background-color: #101010;
    background-image: url('assets/bg1.jpg');
    background-size: cover;
    background-position: center;
    /* flex-direction: column;
    color: white;
    text-align: center; */
}

#section2 {
    /* background-color: #2196F3; */
    /* background-color: #313131;
    background-image: radial-gradient(rgba(255, 255, 255, 0.171) 2px, transparent 0);
    background-size: 30px 30px;
    background-position: -5px -5px;
    flex-direction: column;
    color: white;
    text-align: center; */
}

#section3 {
    /* --color: rgba(114, 114, 114, 0.3);
    background-color: #191a1a;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
    background-size: 55px 55px; */
    /* flex-direction: column;
    color: white;
    text-align: center; */
}

#section4 {
    /* background: #000000;
    --gap: 5em;
    --line: 1px;
    --color: rgba(255, 255, 255, 0.2);

    background-image: linear-gradient(
        -90deg,
        transparent calc(var(--gap) - var(--line)),
        var(--color) calc(var(--gap) - var(--line) + 1px),
        var(--color) var(--gap)
        ),
        linear-gradient(
        0deg,
        transparent calc(var(--gap) - var(--line)),
        var(--color) calc(var(--gap) - var(--line) + 1px),
        var(--color) var(--gap)
        );
    background-size: var(--gap) var(--gap);
    flex-direction: column;
    color: white;
    text-align: center; */
}

#section5 {
    /* background-color: #101010;
    background-image: linear-gradient(45deg, #444 25%, transparent 25%),
        linear-gradient(-45deg, #444 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #444 75%),
        linear-gradient(-45deg, transparent 75%, #444 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px; */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    color: #213547;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem; /* 20px 转换为 1.25rem，40px 转换为 2.5rem */
    height: 4.5rem; /* 60px 转换为 3.75rem */
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1); /* 2px 转换为 0.125rem，4px 转换为 0.25rem */
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-icon {
    width: 2.5rem; /* 30px 转换为 1.875rem */
    height: 2.5rem; /* 30px 转换为 1.875rem */
    margin-right: 0.625rem; /* 10px 转换为 0.625rem */
    filter: drop-shadow(0px 0px 10px #409eff);
}

.nav-title {
    font-size: 1.5rem; /* 16px 转换为 1rem */
    cursor: pointer; /* 鼠标悬停显示手型 */
    font-weight: bold;
    font-family: 'PixelFont', sans-serif;
}

.nav-item {
    margin-left: 1.5rem; /* 增大导航右边链接的间隔 */
    cursor: pointer;
    font-size: 0.875rem;
    position: relative; /* 为选中标识定位 */
    font-family: 'PixelFont', sans-serif;
}

.nav-item.active {
    color: #0052d9; /* 选中文字颜色 */
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem; /* 进一步减小 bottom 值，让小圆点再往下移动 */
    left: 50%;
    transform: translateX(-50%);
    width: 0.3125rem; /* 小圆点宽度 */
    height: 0.3125rem; /* 小圆点高度 */
    background-color: #0052d9; /* 小圆点颜色 */
    border-radius: 50%; /* 使小圆点变为圆形 */
}

.nav-right {
    display: flex;
    flex-wrap: wrap; /* 允许链接换行 */
    justify-content: flex-end; /* 靠右对齐 */
}

.nav-item {
    margin-left: 2rem; /* 增大导航右边链接的间隔 */
    cursor: pointer; /* 鼠标悬停显示手型 */
}

.nav-item:hover {
    color: #0052d9; /* 鼠标悬停颜色 */
}

@media (max-width: 768px) {
    .nav-item {
        margin-left: 2rem; /* 小屏幕下也适当增大间隔 */
        font-size: 1rem; /* 缩小字体大小 */
    }
}

.nav-right a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#section1 .large-text {
    font-size: 5rem;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: forwards;
    font-family: 'PixelFont', sans-serif;
}

#section1 .description {
    font-size: 1.8rem;
    /* margin-top: 0.5em; */
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s;
    animation-fill-mode: forwards;
    font-family: 'PixelFont', sans-serif;
}

#section1 img {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    margin-top: 2rem;
    display: block;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 1.5s;
    animation-fill-mode: forwards;
}

.section img {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    margin-top: 2rem;
    display: block;
}

@media (max-width: 768px) {
    .section img {
        max-height: 40vh;
    }
}

.flex-column-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-links {
    /* background-color: #111; */
    color: white;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.footer-links h3 {
    color: white;
}

.youlian a {
    font-size: 14px;
    color: #999;
    margin: 5px 8px;
}

a {
    text-decoration: inherit;
}



.footer-links li img {
    width: 24px;
    height: 24px;
}

.footer-record {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    color: #808080;

    a {
        color:#00a870;
    }

    p {
        margin: 10px 0;
    }
}

.flex {
    display: flex;
}

/* From Uiverse.io by adamgiebl */ 
button {
    font-family: 'PixelFont', sans-serif;
    padding: 10px 40px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: .8rem 1.5rem;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.7s cubic-bezier(0,.8,.26,.99);
  }
  
  button:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    transition: .7s cubic-bezier(0,.8,.26,.99);
    z-index: -1;
    background-color: #333!important;
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset, -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
  }
  
  button:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: .7s cubic-bezier(0,.8,.26,.99);
  }
  
  button:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset, -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
  }
  
  button:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
  }
  
  button:active {
    transform: translateY(4px);
  }
  
  button:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
  }