body {
    margin: 0;
    font-family: "San Francisco", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    background: #efefef;
}

/* extra font */
@font-face {
    font-family: 'ShangYa';
    src: url("../css/font/MFShangYa_Noncommercial-Regular.otf");
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

a {
    cursor: pointer;
}

a, a:hover, a:active, a:focus, a:visited {
    text-decoration: none;
}

a:focus {
    outline: none;
}

input, textarea {
    /* IE10 若设置了背景色为透明，会导致无法编辑 */
    /* \9\0是兼容IE9和IE10的CSS Hack */
    background-color: #fff\9\0!important;
}

/* content space */
div.content_space{
    height: 12vmin;
    min-height: 70px;
}

div#bubble_message {
    display: none;
    position: fixed;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: white;
    box-shadow: rgb(139 139 139 / 48%) 0 1px 10px 0;
    border-radius: 20px;
    z-index: 1007;
    font-size: 1.1vw;
}

/* vertical align center helper */
div.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

div.submit_button {
    color: #ffffff;
    float: right;
    margin-top: 10px;
    margin-right: 2.5%;
}

div.application_button {
    display: table;
    margin-top: 1vh;
    font-family: ShangYa;
    font-size: 1.1vw;
    color: #ffffff;
    background-color: #6e6e6e;
    padding: 1vh 1.5vh;
    border-radius: 6px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

div.get_ai_suggestion_button {
    padding: 1vh 1.3vh;
}

div.not_approved_application_button {
    display: table;
    margin-top: 1vh;
    font-family: ShangYa;
    font-size: 1.1vw;
    padding: 1vh 1.5vh;
    border-radius: 6px;
    border: 1px solid;
    cursor: not-allowed;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

textarea:focus, input:focus {
    outline-color: #ececec;
}

textarea {
    resize: none;
    border-color: #a7a7a7;
    font-family: "San Francisco";
    background: transparent;
}

p {
    font-size: 1.1vw;
    line-height: 1.42857143;
    margin: 0;
}

div.audio_add_to_playlist_and_filename {
    display: inline-block;
}

img.audio_disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

div.audio_disabled_name {
    color: grey;
}

/* pdf */
div.pdf_goto_previous_page {
    transition: 0.3s linear all;
    opacity: 0;
    width: 10vw;
    background: linear-gradient(to right, #eaeaea, rgba(0, 0, 0, 0));
    position: absolute;
    z-index: 1;
    cursor: pointer;
}

div.pdf_goto_next_page {
    transition: 0.3s linear all;
    opacity: 0;
    width: 10vw;
    background: linear-gradient(to left, #eaeaea, rgba(0, 0, 0, 0));
    position: absolute;
    right: 0;
    z-index: 1;
    cursor: pointer;
}

div.shake-little div.pdf_goto_previous_page,
div.shake-little div.pdf_goto_next_page {
    display: none;
}

div:not(.shake-little) div.pdf_goto_previous_page:hover,
div:not(.shake-little) div.pdf_goto_next_page:hover {
    opacity: 1;
}

img.download_icon {
    height: 1.3vw;
    margin-left: 0.3vw;
    vertical-align: middle;
}

img.compress_file_icon {
    display: inline-block;
    vertical-align: middle;
    width: 3.12vw;
    min-width: 14px;
}

img.delete_personal_work_icon {
    position: absolute;
    width: 2vw;
    right: -1vw;
    top: -1vh;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

img.delete_image_icon {
    position: absolute;
    width: 1.55vw;
    right: 0;
    top: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

img.delete_audio_icon {
    display: inline-block;
    vertical-align: top;
    height: 1vw;
    cursor: pointer;
}

img.delete_sheet_icon {
    position: absolute;
    width: 2vw;
    right: 0;
    top: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

img.delete_video_icon {
    position: absolute;
    width: 2vw;
    right: -1vw;
    top: -2vh;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* video */
div.video {
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

div.video:focus {
    outline: none;
}

video {
    height: 100%;
    width: 100%;
    line-height: 100%;
}

video::-webkit-media-controls-enclosure {
    display: none;
}

div.video_progress_bar_background {
    position: absolute;
    opacity: 0;
    transition: all 0.25s linear;
    left: 0;
    bottom: 0;
    height: 4vh;
    width: 100%;
    background-color: #bebebe;
}

video:-webkit-full-screen ~ div.video_progress_bar_background {
    z-index: 2147483647;
}

video:-moz-full-screen ~ div.video_progress_bar_background {
    z-index: 2147483647;
}

video:-ms-full-screen ~ div.video_progress_bar_background {
    z-index: 2147483647;
}

video:-o-full-screen ~ div.video_progress_bar_background {
    z-index: 2147483647;
}

video:full-screen ~ div.video_progress_bar_background {
    z-index: 2147483647;
}

div.video_progress_bar_background:hover {
    opacity: 0.8;
}

div.video_progress_bar {
    height: 100%;
    width: 0;
    background-color: rgb(255, 255, 255);
}

/* fixed background */
div#background_container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

img.add_to_playlist_icon {
    display: inline-block;
    width: 2.81vmax;
    height: 2.81vmax;
    min-width: 14px;
    min-height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

input[type=file].upload_file_container {
    display: none;
}

div.upload_file_label {
    display: inline-block;
    vertical-align: middle;
    font-family: ShangYa;
    font-size: 1.1vw;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

img.add_files_when_uploading_files {
    margin-top: 1.5vh;
    cursor: pointer;
    width: 7vw;
}

div.upload_file_name {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.1vw;
    margin-left: calc(2.5% - 3px);
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
}

img.delete_upload_file {
    display: inline-block;
    vertical-align: middle;
    height: 1vw;
    cursor: pointer;
}

img.substitute_icon, img.upload_substituted_audio_icon {
    display: inline-block;
    vertical-align: middle;
    height: 1vw;
    cursor: pointer;
}

div.file_uploading_container {
    display: inline-flex;
}

div.file_uploading_text {
    font-size: 1vw;
    color: #777;
    margin-left: 3px;
}

div.file_substitute_progress_and_cancel {
    margin-top: 1vh;
}

input.upload_input {
    display: none;
}

div.uploaded_file_progress_background {
    vertical-align: middle;
    background-color: #bcbcbc;
}

div.uploaded_file_progress {
    height: 100%;
    width: 0;
    background-color: #707070;
}

div.substituted_audio_progress_background {
    display: inline-block;
    height: 5px;
    width: 58%;
    vertical-align: middle;
    background-color: #bcbcbc;
}

div.substituted_audio_progress {
    height: 100%;
    width: 0;
    background-color: #707070;
}

div.substituted_file_filename {
    display: inline-block;
    vertical-align: middle;
    font-size: 1vw;
}

div.open_in_app_button {
    position: fixed;
    bottom: 102px;
    font-size: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 17px;
    border-radius: 20px;
    box-shadow: #444 0 0 2px 0px;
    user-select: none;
    cursor: pointer;
}

/*信息编辑*/
div.general_read_and_edit_container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.general_read_and_edit_container img.edit_button {
    display: none;
    width: 1.3vw;
    padding-left: 0.3vw;
    cursor: pointer;
}

div.general_read_and_edit_container:hover > img.edit_button {
    display: block;
}

div.general_read_and_edit_container div.finish_edit_button {
    flex-shrink: 0;
    margin-left: 0.4vw;
    padding: 0.3vw 0.6vw;
    background: #6e6e6e;
    color: white;
    border-radius: 0.3vw;
    font-size: 0.9vw;
    cursor: pointer;
}

/*鼠标悬浮，弹出图片*/
div.popup_image_container {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

div.popup_image_container img.popup_image {
    display: none;
    position: absolute;
    bottom: 2em;
    width: 250px;
    border: 1px solid #dadada;
    border-radius: 0.6vw;
    box-shadow: 0 1px 2px 1px #ddd;
}

div.popup_image_container:hover img.popup_image {
    display: block;
}

@media screen and (max-width: 1024px) {
    img.add_files_when_uploading_files {
        width: 71.672px;
    }
    img.delete_upload_file,
    img.substitute_icon,
    img.upload_substituted_audio_icon {
        height: 10px;
    }
    img.delete_sheet_icon {
        width: 20.469px;
    }
}

@media screen and (max-width: 768px) {
    p,
    div.upload_file_label {
        font-size: 12px;
        line-height: normal;
    }

    img.download_icon {
        height: 12px;
    }
}
