/*------------------------------------标题颜色------------------------------------*/
header, #page_title{color: #ab8f1e;}

/*------------------------------------背景图片------------------------------------*/

#background{
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: -30;
    overflow: hidden;
}

#pic_before_title{  height: 5rem; background-color: #ffec9f;}
#pic_after_title{
    background-color: #ffe477;
    height: 30vh;
    box-shadow: 0 -3rem 3rem #ffe477;
}
#pic_transition{
    background-image: linear-gradient(to bottom, #ffe477 0%, #fcd743 100%);
    height: 30vh;
    box-shadow: 0 -3rem 3rem #ffe477, 0 3rem 3rem #fcd743;
}

#pic_before_title, #pic_title, #pic_after_title, #pic_transition, #pic_bottom{
    width: 100%;
    flex-shrink: 0;
    /*height: auto;*/
}

/*------------------------------------文字内容------------------------------------*/

#page_title{
    position: relative;
    font-size: 8vw;
    margin-left: 10vw;
    float: right;
    margin-right: 2vw;
    margin-bottom: 20vw;
    font-family: Junicat, serif;
    z-index: -20;
}

#page_title>span{
    display: inline-block;
}
#page_title>span:first-child{
    transform: rotate(-8deg) translate(0.5vw, -1vw);
}

#page_title>span:last-child{
    transform: rotate(5deg) translate(0.5vw, 1vw);
}

#page_title::before{
    content: "";
    display: block;
    height: 6rem;
    width: 100%;
    /*background-color: pink;*/
}

#nav{
    position: sticky;
    display: block;
    user-select: none;
    font-size: 1.2rem;
    top: 7rem;
    /*transform: translateY(0rem);*/
    margin: 1rem;
    /*border: 0.5rem solid red;*/
    height: 30vh;
    width: 30vw;
    clear: both;
    z-index: 999;
}

.nav-item{
    color: #ab8f1e;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    margin: 0.4rem auto;
    width: 23vw;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 999;
}
.nav-item>span{
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 0.2rem solid #ab8f1e;
    z-index: 999;
    margin-right: 0.5rem;
    aspect-ratio: 1 !important;
}

.nav-item.active {
    background-color: rgba(171, 143, 30, 0.5);;/* 选中时的背景色 */
    color: white;
}
.nav-item.active>span {

    color: white;
}
.nav-item:hover {
    background: rgba(171, 143, 30, 0.3);
}

#main_content{
    /*position: relative;*/
    display: block;
    width: 52vw;
    word-wrap: inherit;
    margin: 3vw;
    /*border: 0.5rem solid red;*/
    padding: 2vw;
    border-radius: 3vw;
    background-color: rgba(255, 255, 255, 30%);
    transform: translateX(35vw) translateY(calc(-30vh - 20vw));
    /*left: 35vw;*/
    /*top: calc(-30vh - 20vw);*/
    z-index: -20;
}