@import url("https://fontsapi.zeoseven.com/521/main/result.css");

*{
    padding: 0;
    margin: 0;
}
body{
    font-family: "JetBrains Maple Mono";
    font-weight: 100;
    background-color: #F8F4E1 !important;
    background-image:  radial-gradient(#FEBA17 2px, transparent 2px), radial-gradient(#FEBA17 2px, #F8F4E1 2px) !important;
    background-size: 80px 80px !important;
    background-position: 0 0,40px 40px !important;
    color: #4E1F00 !important;
    min-height: 100vh;
}
/*这个是加载动画的样式*/
#loading{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    background-color: #FAD961;
    background-image: linear-gradient(337deg, #FAD961 0%, #F76B1C 33%, #85d7ff 100%);
}
#loading .text{
    position: fixed;
    top: 38%;
    font-size: 14px;
    color: #ffffff
}
.sk-chase {
    width: 40px;
    height: 40px;
    position: fixed;
    top: 30%;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: #ffffff;
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
.sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }

@keyframes sk-chase {
    100% { transform: rotate(360deg); }
}

@keyframes sk-chase-dot {
    80%, 100% { transform: rotate(360deg); }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    } 100%, 0% {
        transform: scale(1.0);
    }
}
/*第二种加载动画*/
.sk-cube-grid {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.sk-cube-grid .sk-cube {
    width: 33%;
    height: 33%;
    background-color: #ffffff;
    float: left;
    -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
    animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}
.sk-cube-grid .sk-cube1 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 {
    -webkit-animation-delay: 0s;
    animation-delay: 0s; }
.sk-cube-grid .sk-cube8 {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    } 35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}

@keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    } 35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}
.glass-card{
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
    -webkit-box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
}
/*以下是上传图片的卡片样式*/
.image-body{
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 10px;
    margin: 0 auto;
    text-align: center;
}
.image-body img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.image-body input{
    display: none;
}
.image-body p{
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    margin-top: 10px;
}
.image-body small{
    font-size: 12px;
    color: #999;
}
.image-body .image-father{
    width: 100%;        /* 正方形边长 */
    aspect-ratio: 1/1;
    overflow: hidden;     /* 隐藏溢出部分 */
    position: relative;   /* 定位基准 */
    margin: 0 auto;
}
/*对模态框的调整*/
.modal-background{
    background-color:hsl(0deg 0% 37% / 65%);
    display: none;
}
.modal-card {
    width: 90%;
    max-height: 90vh; /* 限制最大高度 */
    display: flex;
    flex-direction: column;
    position: fixed; /* 保持模态卡定位 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
}

.modal-card-head {
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background-color: #fff;
    z-index: 1;
    /* 固定头部 */
    flex-shrink: 0; /* 禁止收缩 */
}

.modal-card-body {
    flex: 1; /* 占据剩余空间 */
    overflow-y: auto; /* 垂直滚动 */
    padding: 15px;
    /* 滚动条美化 */
    scrollbar-width: thin;
    scrollbar-color: #dbdbdb transparent;
}

.modal-card-body::-webkit-scrollbar {
    width: 6px;
}

.modal-card-body::-webkit-scrollbar-thumb {
    background: #dbdbdb;
    border-radius: 3px;
}

.modal-card-foot {
    padding: 15px;
    background-color: #fff;
    box-shadow: 0px -8px 10px #e6e6e6;
    /* 固定底部 */
    flex-shrink: 0; /* 禁止收缩 */
    justify-content: flex-end;
}
