* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: file, serif;
    background-color: #000;
    height: 100vh;
    position: relative; /* Establish a stacking context */
}

/* 导航栏样式 */
#nav-bar {
    background-color: transparent; /* 导航栏背景颜色 */
    overflow: hidden; /* 超出部分隐藏 */
    position: fixed; /* 固定在顶部 */
    top: 0; /* 顶部对齐 */
    width: 100%; /* 宽度占满屏幕 */
    z-index: 1000; /* 确保导航栏在最上层 */
    display: flex; /* 使用 Flexbox */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

#nav-bar a {
    font-family: file, serif;
    float: left; /* 使链接水平排列 */
    color: white; /* 链接文字颜色 */
    text-align: center; /* 文字居中 */
    padding: 14px 16px; /* 内边距 */
    text-decoration: none; /* 去除下划线 */
    font-size: 17px; /* 字体大小 */
    margin-right: 75px; /* 设置链接之间的间距为 150px */
}

#nav-bar a:last-child {
    margin-right: 0; /* 最后一个链接不需要右边距 */
}

#nav-bar a:hover {
    background-color: transparent; /* 鼠标悬停时的背景颜色 */
    color: #00eeff; /* 鼠标悬停时的文字颜色 */
}

/* 文本容器样式 */
#text-container {
    position: relative; /* Establish a new stacking context */
    z-index: 2; /* Ensure it's above the stars */
    padding-top: 50px; /* 添加顶部内边距，避免被导航栏遮挡 */
}

h1 {
    color: #fff;
    font-size: 42px;
    text-transform: uppercase;
    text-align: center;
    padding-top: 20vh;
    letter-spacing: 10px;
}

h2 {
    color: #fff;
    font-size: 72px;
    text-transform: uppercase;
    text-align: center;
    padding-top: 0vh;
    letter-spacing: 25px;
    position: relative;
    left: 9px;
}


.responsive-image {
    width: 70vh;
    height: 70vh;
}


#star-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Set background to transparent */
    overflow: hidden;
    z-index: 1; /* Ensure it's below the text */
}


.star {
    position: absolute;
    border-radius: 50%;
    background-color: #00eeff;
    opacity: 0.8;
    animation: twinkle linear infinite, move linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

@keyframes move {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

@font-face {
    font-family: 'file';
    src: url('./file.woff2') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@media (max-width: 600px) {
    h1 {
        font-size: 15px; /* 较小屏幕上的字体大小调小 */
        letter-spacing: 5px; /* 较小屏幕上减少字母间距 */
        padding-top: 10vh; /* 较小屏幕上减少上边距 */
    }

    h2 {
        font-size: 24px; /* 较小屏幕上的字体大小调小 */
        letter-spacing: 12px; /* 较小屏幕上减少字母间距 */
        left: 0; /* 较小屏幕上不需要左偏移 */
    }

    .responsive-image {
        width: 50vh;
        height: 50vh;
    }
}