body {padding: 0;border: 0;margin: 0;background-color: #eee;overflow: hidden;}
::-webkit-scrollbar {width: 0;}
::-webkit-scrollbar:horizontal {height: 0;}

#topbar {position: absolute;width: 100vw;height: 7vh;left: 0;top: 0;z-index: 1000;}
#topbar .waves-effect {position: absolute;width: 7vh;height: 7vh;}
#topbar .waves-effect img {position: absolute;width: 4vh;height: 4vh;left: 1.5vh;top: 1.5vh;}
#menu {left: 0;top: 0;}
#logo {position: absolute;width: calc(100vw - 35vh) !important;height: 7vh;left: 7vh;top: 0;font-size: 3vh;display: flex;justify-content: center;align-items: center;}
#blog_page {width: 0 !important;height: 0 !important;right: 28vh;top: 0;}
#search {right: 21vh;top: 0;}
#submit {right: 14vh;top: 0;}
#message {right: 7vh;top: 0;}
#user {right: 0;top: 0;}
#new_message_num {
    position: absolute;width: 3.5vh;height: 2.5vh;right: 7.5vh;bottom: 1vh;
    font-size: 2vh;border-radius: 0.7vh;display: flex;justify-content: center;align-items: center;z-index: 998;pointer-events: none;
}

#choicebar {
    position: absolute;width: 100vw;height: 5.5vh;left: 0;top: 7vh;
    border-bottom: 1px solid #e0e0e0;overflow-y: hidden;overflow-x: auto;display: flex;padding: 0.9vh 0.5vh;z-index: 999;
}
#choicebar .waves-effect  {
    position: relative;height: 100%;left: 0;top: 0;
    font-size: 2.2vh;margin-left: 0.5vh;margin-right: 0.5vh;padding-left: 1vh;padding-right: 1vh;border-radius: 0.7vh;display: flex;justify-content: center;align-items: center;white-space: nowrap;flex-shrink: 0;
}
#choicebar .waves-effect.selected {background-color: #81d4fa;color: white !important;padding-left: 1.3vh;padding-right: 1.3vh;}

#videobar {
    position: absolute;width: 100vw;height: 87.5vh;left: 0;top: 12.5vh;
    display: flex;flex-wrap: wrap;align-content: flex-start;overflow-x: hidden;overflow-y: auto;padding: 0 1vw;
}
.video_card {position: relative;width: 49vw;height: calc(30vw + 9vh);left: 0;top: 0;}
.video_cover {position: absolute;width: 47vw;height: 27vw;left: 1vw;top: 2vw;border-radius: 1vw;overflow: hidden;}
.video_cover img {position: absolute;width: 100%;height: 100%;left: 0;top: 0;object-fit: cover;}
.video_avatar {position: absolute;width: 5vh;height: 5vh;left: 1vw;top: calc(30vw + 0.5vh);border-radius: 1vw;overflow: hidden;}
.video_avatar img {position: absolute;width: 100%;height: 100%;left: 0;top: 0;object-fit: cover;}
.data {position: absolute;width: 12vw;height: 5vw;font-size: 3vw;background-color: rgba(0, 0, 0, 0.3);border-radius: 1vw;display: flex;justify-content: center;align-items: center;white-space: nowrap;}
.video_view_count {left: 2vw;top: 23vw;}
.video_like_count {left: 15vw;top: 23vw;}
.video_favorite_count {left: 28vw;top: 23vw;}
.video_title {
    position: absolute;width: calc(47vw - 6vh);height: 6vh;left: calc(1vw + 6vh);top: 30vw;
    line-height: 1.5;font-size: 2vh;overflow: hidden;word-wrap: break-word;overflow-wrap: break-word;word-break: break-all;white-space: pre-wrap;
}
.video_subtitle {
    position: absolute;width: 47vw;height: 3vh;left: 1vw;top: calc(30vw + 6vh);
    font-size: 2vh;overflow: auto;white-space: nowrap;overflow-x: auto;overflow-y: hidden;display: flex;align-items: center;
}
#bottom {position: relative;width: 98vw;height: 4vh;left: 0;top: 0;}

#mask {position: absolute;width: 100vw;height: 100vh;left: 0;top: 0;background-color: rgba(0, 0, 0, 0.2);z-index: 1001;}

#sidebar {
    position: absolute;width: 80vw;height: 100vh;left: -80vw;top: 0;z-index: 1002;
    display: flex;flex-wrap: wrap;align-content: flex-start;
}
#cover {position: relative;width: 100%;height: 22vh;left: 0;top: 0;}
#cover img {width: 100%;height: 100%;object-fit: cover;}
.sidebar_button {position: relative;width: 100%;height: 6vh;left: 0;top: 0;}
.sidebar_button img {position: absolute;width: 4vh;height: 4vh;left: 1vh;top: 1vh;}
.sidebar_button span {position: absolute;width: calc(100% - 7vh);height: 4vh;left: 6vh;top: 1vh;font-size: 2.2vh;display: flex;align-items: center;}

.swiper-container {position: relative;width: 96vw;height: calc(30vw + 9vh);left: 1vw;top: 0;margin-top: 2vw;border-radius: 1vw;overflow: hidden;}
.swiper-container img {width: 100%;height: 100%;object-fit: contain;cursor: pointer;}
.swiper-container .swiper-title {
    position: absolute;width: 100%;height: 15%;left: 0;bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);color: white;font-size: 2.2vh;padding: 2vw;;display: flex;justify-content: start;align-items: center;white-space: nowrap;overflow-x: auto;
}
/* 分页器样式 */
.swiper-pagination-bullet {background-color: #81d4fa !important;opacity: 0.5;} 
.swiper-pagination-bullet-active {background-color: #81d4fa !important;opacity: 1;}
/* 导航按钮样式 */
.swiper-button-next,.swiper-button-prev {color: #81d4fa !important;}
.swiper-button-next::after,.swiper-button-prev::after {font-size: 20px;}

.toast {background-color: #81d4fa !important;color: white !important;}