/* 设置封面容器的相对定位，以便子元素可以使用绝对定位 */
.cover {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;


}

/* 设置封面图片的样式 */
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* 保持图片的原始比例，并填充整个容器 */
    top: 0;
    left: 0;
    z-index: -1; /* 将图片置于底层 */
}

/* 设置封面文字内容的样式 */
.cover .cover-main {
    position: relative;
    z-index: 1; /* 将文字内容置于上层 */
    color: rgb(240, 235, 235); /* 设置文字颜色，根据需要调整 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 添加文字阴影，增强可读性 */
}




/* custom.css */
#gitalk-container {
    position: fixed;
    top: 0;
    right: -40%; /* 初始时评论区隐藏在屏幕右侧 */
    width: 40%;
    height: 100vh;
    overflow-y: auto;
    border-left: 1px solid #ddd;
    background-color: #fff;
    z-index: 1000;
    transition: right 0.3s ease; /* 添加过渡效果，使滑动更平滑 */
}

#gitalk-container.open {
    right: 0; /* 展开时显示评论区 */
}

#toggle-comments {
    position: fixed;
    top: 0px;
    right: 5px;
    z-index: 1001;
    background-color: #052c8f;
    color: white;
    border: none;
    padding: 25px 15px;
    cursor: pointer;
    border-radius: 5px;
}

#app {
    width: 100%; /* 主内容区域初始占满宽度 */
    transition: width 0.3s ease; /* 添加过渡效果 */
}

#app.shrink {
    width: 70%; /* 评论区展开时，主内容区域宽度调整 */
}
.navbar {
    background-color: blue;
}