*{
    margin: 0 ;
    padding: 0;
}
body{
    background: rgb(244, 246, 250) !important;
}
nav{
    background: rgb(255, 255, 255);
    width: 100%;
    height: 60px;
    font-size: 20px;
    padding:  15px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}
.content-box{
    width: 60%;
    height: 20vh;
    background: #ffffff;
    margin: 1% 20%; 
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
textarea{
    width: 80% !important;
    resize: none !important;
    height: calc(20vh - 20px);
    border-radius: 10px;
    padding: 10px;
}
 .btn-contentbox{
    margin-left: 15px !important;
    width: 10vw;
}
.message-container{
    width: 60%;
    margin: 1% 20%; 
    height: calc(72vh - 60px);
    background: #ffffff;
    border-radius: 10px;
    overflow: auto;
    overflow-x: hidden;
    padding: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.card {
    margin-bottom: 20px;
    width: 100% !important;
}
.progress-bar{
    content: " ";
    height: 2px;
    width: 0;
    background: #3c9ff1;
}
.filebox{
    display: flex !important;
    padding: 10px;
    justify-content: space-between;
}
.filebox>p{
    display: block;
    margin: 0 10px !important;
    flex-grow:1 !important;
    word-break: break-all;
    word-wrap: break-word;
}
.filebox>a{
    text-decoration: none;
    color: black;
}
.imgfile{
    width: 40px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
}
.card-bar{
    padding: 0 8px;
    border-bottom: 2px dotted rgb(203, 203, 203);
}
.btns{
    margin: 3px;
    padding: 5px 6px;
    border-radius: 5px;
    background: #d4d3d300;
    border: none;
}
.btns:hover{
    background: rgba(13, 110, 253, 1);
    color: white;
}
.drag-box{
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90vw;
    height: 90vh;
    background: #6c6c6c6d;
    border-radius: 10px;
    font-size: 50px;
    color: #f0f0f0;
    padding: 25% 0 0 0;
    box-sizing: border-box;
    pointer-events: none; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.drag-box span{
    display: block;
    text-align: center;
    border: 3px dotted rgba(52, 52, 52, 0.808);
    margin: 10%;
    padding: 50px;
    border-radius: 10px;
}
/* 样式用于美化开关 */
.toggle-container {
    position: relative;
    display: inline-block;
    margin-top: 5px;
    width: 30px;
    height: 17px;
    float: right;
}

.toggle-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 17px;
    transition: background-color 0.3s;
}

.toggle-switch:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

input:checked + .toggle-switch {
    background-color: #2196F3;
}

input:checked + .toggle-switch:before {
    transform: translateX(13px);
}
input {
    display: none;
}
.message{
    font-size: medium;
}
@media screen and (max-width: 1100px) {
    .message-container{
        width: 98%;
        margin: 2% 1%; 
        height: auto;
    }
    .content-box{
        width: 98%;
        margin: 1% 1%; 
    }
    .btn-contentbox{
        margin-left: 6px !important;
        width: 15vw;
    }
    .mobile-toggle{
        display: none;
    }
    .filebox>p{
        width: calc(100% - 200px);
    }
}