/*欢迎卡片*/
.welcome h1{
    font-size: clamp(20px, 1vw, 30px);
}

.welcome h2 {
    font-size: clamp(15px, 1vw, 25px);
}

/*组织简介卡片*/
#org_introduction {
    display: flex;
}

#org_introduction p {
    font-size: clamp(15px, 3vw, 20px);
    line-height: 1.5;
    text-indent: 2em;
    text-align: justify;
    letter-spacing: 0.3px;
}

/*首行卡片组*/
#video_and_news_frame {
    display: flex;
}

/*帖子/公告卡片*/
#news_box {
    width: 28%;
    margin: 15px auto;
}

#news_box ul {
    margin: 5px;
}

.news_button {
    transition: all 0.1s ease;
    background: rgba(200, 200, 200, 0);
    text-decoration: none;
    margin: 5px;
    display:block;
}

.news_button:hover {
    color: var(--theme-a-hover);
    text-decoration: underline;
    font-weight: bold;
}

/*视频卡片*/
#video_box {
    display: flex;
    width: 68%;
    /*aspect-ratio: 24/9;*/
    padding: 5px;
    margin: 15px auto;
}

/*视频窗口包裹*/
#video_window {
    background: black;
    width: 60%;
    aspect-ratio: 16/9;
    padding: 0px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*以自身蒙版限制iframe*/
    -webkit-mask-image: linear-gradient(#fff, #fff);
    -webkit-mask-clip: padding-box;
    mask-image: linear-gradient(#fff, #fff);
    border-radius: 20px;
}

/*内嵌B站视频*/
#video {
    display: flex;
    border: none;
    width: 100%;
    aspect-ratio: 16/9;
    align-items: center;
    /* 移除定位偏移，交由父容器居中 */
}

/*视频选择器*/
#video_list {
    margin: 10px;
    width: 40%;
    align-items: flex-start; 
    /*以自身蒙版限制iframe*/
    -webkit-mask-image: linear-gradient(#fff, #fff);
    -webkit-mask-clip: padding-box;
    mask-image: linear-gradient(#fff, #fff);
}

#video_list ul {
    margin: 5px;
}

.video_button {
    transition: all 0.15s ease;
    background: rgba(200, 200, 200, 0);
    align-self:flex-start;
    margin-bottom: 5px;
}

.video_button:hover {
    background: rgba(200, 200, 200, 0.5);
    font-size: 18px;
    font-weight: 500;
    color: red;
}



/*入口卡片*/
#entrance {
    display: block;
}

#entrance ul {
    display: flex;
    width: calc(100% - 20px);
    margin: 10px;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.empty {
    height: 600px;
}


/*.text {
    text-indent: 2em;
    padding: 5px;
}*/





/*移动端适配*/
@media(max-width:768px) {
    #video_and_news_frame {
        display: block;
    }

    #video_box {
        width: 96%;
        display: block;
    }

    #video_window {
        /* 防止 width:100% 与外边距合计超出父容器导致偏移 */
        width: calc(100% - 10px);
        margin: 5px auto;
        box-sizing: border-box;
    }

    #video_list {
        width: calc(100% - 20px);
    }

    #news_box {
        width: 96%;
        display: block;
    }
}

