@font-face {
    font-family: 'DeYiHei';
    src: url('../font/SmileySans-Oblique-3.otf') format('opentype');
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: #ffffff;
}
  
::-webkit-scrollbar {
    display: none; /* 针对 Chrome、Safari 和 Opera */
}

.appbar {
    background-color: #f8f8f8;
    height: 6rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.appbar > img {
    width: 15rem;
    float: left;
    margin-left: 2rem;
}


.content {
    margin-top: 4rem;
    padding: 2rem;
    padding-top: 3rem;
    flex: 1;
}

.content__title {
    width: 100%;

    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    margin-left: 0.5rem;
}
.content__title > svg {
    height: 1.25rem;
}


.content__card {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    overflow: hidden;
    box-sizing: border-box;

    background-color: #f8fafd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

    border-radius: 0.5rem;
    border-color: #dddddd;
    border-width: 1px;
    border-style: solid;
}

.content__card-title {
    font-weight: 600;
    color: #333;
}
.content__card-date {
    font-weight: normal;
    color: #666666;
}
.content__card-content {
    font-weight: 600;
    color: #666666;
}
.content__card-content img {
    width: 100%;
    border-radius: 0.25rem;
}

.content__form {
    display: flex;
    align-items: center;
}

.content__card-spacing {
    margin-right: 50px;
}

.content__card-input {
    flex: 4;
    height: 4rem;
    border-radius: 0.25rem;
    opacity: 0.5;
    line-height: 4rem;
    font-size: 1.5rem;
    color: #666666;
}

.content__card-button {
    flex: 1;
    height: 3.8rem;
    border-radius: 0.25rem;
    background-color: #f8f8f8;
    border-color: #dddddd;
    border-width: 1px;
    border-style: solid;
    opacity: 0.5;
    font-size: 1.5rem;
    color: #666666;
    cursor: pointer;
}

.footer {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: large;
    padding: 2rem 2rem;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    color: #666;
    background-color: #f8f8f8;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

a:link, a:visited {
    color: #666;
}

@media (prefers-color-scheme:dark) {
    body {
        background-color: #1f1f1f;
        color: #f8f8ff;
    }
    .appbar {
        background-color: #303030;
    }
    .content__title, .content__title svg {
        color: #f8f8ff;
    }
    .content__card {
        background-color: #303030;
    }
    .content__card-title {
        color: #ffffff;
    }
    .content__card-date, .content__card-content {
        color: #dddddd;
    }
    .footer {
        background-color: #303030;
        color: #cccccc;
    }
    a:link, a:visited {
        color: #cccccc;
    }
    
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9999; /* 设置一个足够高的 z-index 值，以确保在其他内容之上 */
}
  