/**body {
  background-color: #ffffff;
}**/

.main_content_container {
    width: 100vw;
    margin:10vh 0px 5vh 0px;
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: flex-start; 
}

.flexrow {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: flex-start; 
}
/**.content_background {
  todo
}**/

/*  目录相关内容  */
.index_box {
    background-color: rgb(255, 255, 255);
    width: 100%;
    border: 2px solid rgb(37, 15, 94);
    border-radius: 15px;  

    padding:0px 50px 50px 30px; /* 上右下左 */
    margin: 30px 0px 5% 5%;

    position: relative;
}

.index_background {
    background-color: #f0f0f082;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* 增强阴影效果 */

    width: 75%;
    height: 100%;

    margin: -25px 0px 0px 0px;
    padding:30px 130px 0px 45px; /* 上右下左 */
    
}

.non_url_form {
    color: black;
    /*font-weight: bold;
    font-size: 20px;*/
    text-decoration: none
}
.centered {
    display: flex;
    justify-content: center; 
}

/*  右侧边栏  */
.righted_grid {
    display: grid;
    place-items: right; 
    height: 100vh;
    margin: 0;
}
.righted {
    display: flex;
    justify-content: right; 
}

.right_box {
    background-color: rgb(255, 255, 255);
    width: 50%;
    border: 3px solid rgb(37, 15, 94);
    border-radius: 15px;  

    padding:15% 5vw 15% 5vw; /* 上右下左 */
    margin:10vh 0px 5vh 0px;
    

    position: relative;
    left: +5vw; 
    text-align: center;
}

.author_name {

    color: black;
    font-weight: bold;
    font-size: 20px;


}
.profile_small {
    width: 80px;
    height: 80px; 
    border-radius: 50%; 
    object-fit: cover; 

    border: 4px solid rgb(37, 15, 94);
}


.top_bar_color {
    background-color: rgb(37, 15, 94);
    width: 200vw;
    height: 8vh;
    border: 3px solid rgb(37, 15, 94);

    left: -100%; 
    z-index: -1;

    text-align: center;
    position: absolute; 
}

.topbar_container {
    height: 8vh;
    display: flex;
    justify-content: center; 

    position: relative;
}

.top_bar_button {
    background-color: rgb(54, 22, 134);
    width: 10%; 
    height: 4vh; 
    border: 3px solid rgb(28, 12, 70);

    justify-content: center; 

    margin: 1vh 1% 1vh 0px;
}
.topbar_button_container {
    height: 6vh;
    width: 80vw; 
    display: flex;
    justify-content: right; 

    position: relative;
}
.top_bar_button_font {
    font-size: 2vh; 
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    justify-content: center; 
    padding: 3vh 0px 0px 0px; 
}
.hide_navs{
    display: flex;
    flex-direction: row; 


    z-index: -1;
    position: relative; /* 藏起来 */
    left: -100%; 
    font-size: 1px;
}

.post_context_background {
    background-color: rgba(0, 0, 0, 0.03);

    width: 700px;
    height: 100%;

    margin: -25px 0px 0px 0px;
    padding:30px 130px 50px 45px; /* 上右下左 */
    
}

.post_context_container {
    width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f0f082;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* 增强阴影效果 */
    border-radius: 8px; /* 圆角效果 */
}
.post_h1 {
    color: #333;
    text-align: center;
    font-size: 2.5em; /* 增大标题的字体 */
}

/* 设置段落样式 */
.post_p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1em; /* 增加段落的底部间距 */
}

.footer_container{
    width: 100vw;
    display: flex;
    justify-content: center; 
}


@media screen and (max-width: 800px) {
    .main_content_container{
        flex-direction: column; /* 在小屏设备上改为纵向排列 */
    }

    .index_box,
    .right_box,
    .post_context_container {
        width: 50%; /* 使元素在小屏上自适应 */
        margin: 5% auto;
    }

    .author_name {
        font-size: 4vw; /* 增大字体以适应小屏设备 */
    }

    .profile_small {
        width: 15vw;
        height: 15vw;
        left: -12.5vw; 
    }

    .post_h1 {
        font-size: 5vw; /* 在小屏上增大标题 */
    }

    .post_p {
        font-size: 5vw; /* 在小屏上增大段落字体 */
    }

    
    .index_background {
        width: 80%;
    }
    .index_box{
        width: 50%;
    }
}