@font-face {
    font-family: "FusionFont";
    src: url("Metarial/Fonts/fusion-pixel-10px-monospaced-zh_hans.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}
/* 基础样式 */ /* 设置基础页面样式 */  
body { /* 页面主体样式 */  
  margin: 0;
  min-height: 100vh;
  overflow: auto;
  background-color: #A57865;
}  

@keyframes glowMove {
    0% { background-position: 0% 0%, 100% 0%, 0% 0%, 100% 100%; }
    50% { background-position: 10% 5%, 90% 5%, 5% 10%, 95% 90%; }
    100% { background-position: 0% 0%, 100% 0%, 0% 0%, 100% 100%; }
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
  }

main { /* 主体内容区域样式 */  
    max-width: 800px; /* 最大宽度 */  
    margin: 0 auto; /* 居中 */  
    flex: 1; /* 占据剩余空间 */  
    padding: 0; /* 移除原来的padding，避免影响左边距 */  
    position: relative;
}  

footer { /* 页脚样式 */  
    text-align: center; /* 居中 */  
    padding: 30px 20px; /* 内边距 */  
    font-family: "FusionFont", sans-serif;
    color: #777; /* 字体颜色 */  
    z-index: 900;
}  

/* 动效 */ /* 动画效果样式 */  
.fade-in { /* 淡入动画类 */  
    animation: fadeIn 1s ease forwards; /* 应用淡入动画 */  
    z-index: 900;
}  

.slide-up { /* 上滑动画类 */  
    opacity: 0; /* 初始透明 */  
    transform: translateY(30px); /* 初始下移 */  
    animation: slideUp 0.8s ease forwards; /* 应用上滑动画 */  
}  

@keyframes fadeIn { /* 定义淡入动画 */  
    to { opacity: 1; } /* 结束时不透明 */  
}  

@keyframes slideUp { /* 定义上滑动画 */  
    to {  
        opacity: 1; /* 结束时不透明 */  
        transform: translateY(0); /* 结束时归位 */  
    }  
}  

/* 动画延迟设置 */ /* 不同模块动画延迟 */  
.about-me { /* “关于我”动画延迟 */  
    animation-delay: 0.2s; /* 延迟0.2秒 */  
}  
.works { /* “作品”动画延迟 */  
    animation-delay: 0.4s; /* 延迟0.4秒 */  
}  
.contact { /* “联系”动画延迟 */  
    animation-delay: 0.6s; /* 延迟0.6秒 */  
}

/* 顶栏样式 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #8B645A;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
}

.site-title {
    font-family: "FusionFont", sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    height: 60px; /* 与顶栏同高 */
    line-height: 60px;
    background-color: #57453F;
    color: #A47764;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px; /* 固定宽度以便文字居中 */
    margin-left: 0;
}

.nav-links {
    font-family: "FusionFont", sans-serif;
    list-style: none;
    display: flex;
    margin: 0;
    margin-left: 20px;
    padding: 0;
    gap: 20px;
}
.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}
.nav-links li a:hover {
    text-decoration: underline;
}

.poem-title {
    text-align: center;
    font-family: "FusionFont", sans-serif;
    font-size: 3rem;
    padding-top: 120px;
    margin-top: 0;
    font-weight: bold;
    z-index: 3;
    position: relative;
}

/* Poem 样式 */
.poem {
    position: relative;
    /* 左边距随屏幕宽度线性变化，窄屏自动贴左边 */
    padding-left: clamp(20px, 4vw, 150px);
  
    margin:5 5;
    text-align: left;
    font-family: "FusionFont", sans-serif;
    color: white;
    line-height: 2.2;
    font-size: 1.1rem;
    white-space: pre-line;
}