::-webkit-scrollbar {
    width: 10px;
    /* 设置滚动条宽度 */
}

/* 设置滚动条滑块的样式 */
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgb(var(--mdui-color-primary), 0.5);
    /* 设置滚动条滑块的圆角 */
}

/* 鼠标悬停在滚动条滑块上时的样式 */
::-webkit-scrollbar-thumb:hover {
    background-color: rgb(var(--mdui-color-primary), 0.8);
    /* 设置鼠标悬停时滚动条滑块的颜色 */
}

mdui-tabs::part(container) {
    background-color: unset;
}

:root,
:host {
    font-family: system-ui;
}

html,
body,
mdui-layout {
    margin: 0;
    padding: 0;

    width: 100vw;
    height: 100vh;

    display: flex;

}

mdui-layout-main {
    margin: 0;
    text-align: center;
}

mdui-top-app-bar {
    font-family: 'Product Sans';
}

.bkg {
    width: 100%;
    height: 36vh;
    background: url(../assets/image/bkg.jpg);
    background-size: cover;
    opacity: 0.8;
}

.home-avatar {
    width: 15vw;
    height: 15vw;
    max-width: 10rem;
    max-height: 10rem;

    margin-top: -3.5rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
    background-size: cover;
}

message-container {
    max-width: 40rem;
}

div#message-container-detail {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    margin-top: 2em;
    box-shadow: 0 2.75px 9px 5px rgba(var(--mdui-color-shadow), 19%), 0 0.25px 3px 6px rgba(var(--mdui-color-shadow), 3.9%);

    mdui-card.msgContainer {
        padding: 2rem;
        box-shadow: none;
        border-radius: 2rem;
        border: 2px solid rgb(var(--mdui-color-inverse-on-surface));
        max-width: none;
    }

    h2 {
        margin-bottom: 1rem;
    }

    mdui-divider {
        margin: 1rem 0;
    }
}

@media (min-width: 616px) {
    mdui-navigation-bar {
        background-color: rgb(var(--mdui-color-surface-container));
        max-width: 600px;
        border-radius: 1.5rem 1.5rem 0 0;
        margin: 0 auto;
        box-shadow: 0 2.75px 9px 5px rgba(var(--mdui-color-shadow), 19%), 0 0.25px 3px 6px rgba(var(--mdui-color-shadow), 3.9%);
    }

    .bkg {
        height: 50vh;
    }

    .home-avatar {
        border-radius: 4vw;
    }

    massage-container {
        max-width: 40%;
    }
}

@media (max-width: 616px) {
    mdui-navigation-bar {
        background-color: rgb(var(--mdui-color-surface-container));
        max-width: 100%;
        margin: 0 auto;
    }

    .home-avatar {
        border-radius: 5vw;
    }

    div#message-container-detail {
        width: 100vw;
    }
}

mdui-card.list {
    width: 80%;
    max-width: 800px;
    /* max-width: 32rem; */
    margin: 0.5rem;
    padding: 1rem;
    box-shadow: var(--mdui-elevation-level2);
}

mdui-collapse {
    text-align: left;
}

mdui-card.msgContainer {
    width: 90%;
    max-width: 36rem;
    margin: 1rem;
    padding: 1rem;

    text-align: left;

    .photo-area {
        margin-top: 1rem;
    }
}

.avatarBox {
    margin-bottom: 1rem;
    padding: 0.5rem;
    width: 100%;

    text-align: left;
    box-shadow: none;

    display: flex;
    align-items: center;

    font-family: 'Product Sans';
    background-color: #ffffff00;

    display: flex;
    align-items: center;

    mdui-avatar {
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            width: 50%;
            margin-left: 0.1rem;
            color: rgb(var(--mdui-color-primary));
        }
    }
}

.msgContext {
    margin: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

/* .msgBottom {
    margin: 0.5rem;
    display: flex;
    align-items: center;
}

.moreInfo {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
} */

.showPhoto {
    margin-right: 1rem;
    width: 10vw;
    height: 10vw;
    min-width: 124px;
    min-height: 124px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-area {
    width: 100%;
    display: flex;
    justify-content: left;
}

mdui-navigation-bar {
    border: 2px solid rgb(var(--mdui-color-inverse-on-surface));
}

.title {
    font-family: 'Product Sans';
    letter-spacing: 0.2rem;
    font-size: 2rem;

    margin: 0;
    margin-top: 1rem;
    color: rgb(var(--mdui-color-primary));
}

.topic {
    width: 70vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;

    word-spacing: 0.3rem;
    line-height: 2rem;

    font-family: 'Harmony Sans SC M';
}