.main {
    position: relative;
}

.slide {
    padding-left: 10px;
}

.slide ul.nav {
    margin-top: 5px;
    /* min-height: 500px; */
}

.slide ul.nav>li {
    margin-top: 5px;
}

.slide ul > input[type=checkbox] {
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    position: absolute;
}

.slide ul > input[type=checkbox]:before {
    display: block;
    content: '';
    width: 100%;
    height: 15px;
    position: absolute;
    z-index: 11;
    top: -17px;
    left: -20px;
}

.slide li:has(> ul>input[type=checkbox]:checked) {
    color: black;
}

.slide li:has(> ul>input[type=checkbox]) {
    color: #ff2e88;
}

.slide li:has(> ul>input[type=checkbox]):after {
    content: '>';
    color: #ff2e88;
    font-weight: bold;
}

.slide li:has(> ul>input[type=checkbox]:checked):after {
    content: '>';
    color: black;
    transform: rotate(90deg);
    font-weight: bold;
}

.slide ul:has(> input[type=checkbox]:checked) > li {
    height: auto;
}

.slide ul:has(> input[type=checkbox]) > li {
    height: 0;
    overflow: hidden;
}

.foot {
}

.foot h1 {
    width: 100%;
    display: block;
    margin: 0;
    padding-bottom: 10px;
    padding-top: 30px;
}

.foot p {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 0px;
}

.foot .beian {
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.beian a {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    color: #555;
    cursor: pointer;
    text-align: center;
    margin: 0 auto;
}

.beian a:hover {
    color: #333;
    border-bottom: 1px solid #333;
    background: none;
}

.content {
    padding: 0 10px;
}

.content>form {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .main {
        margin: 0 auto;
    }

    .right {
        display: none;
    }

    .left {
        display: none;
    }

    .hint {
        width: 350px;
        display: none;
        margin-bottom: 10px;
        position: fixed;
        top: 60px;
        right: 22px;
        background: white;
    }
}

@media (max-width: 1230px) and (min-width: 768px) {
    .main {
        margin: 0 auto;
    }

    .right {
        display: none;
    }

    .slide {
        border-right: 1px solid #ccc;
        min-height: 500px
    }

    .left {
        display: none;
    }

    .hint {
        position: fixed;
        width: 300px;
        right: 20px;
        top: 50px;
        background: white;
    }
}

pre.charimg {
    font-family: inherit;
    font-size: xx-small;
    text-align: center;
    padding: 0;
    border: 0;
    transform: scale(0.4);
    width: 250%;
    height: 250%;
    margin: -75% 0 -75% -75%;
}

@media (max-width: 1300px) and (min-width: 1230px) {
    .main {
        margin: 0 0 0 10px;
    }

    .right {
        width: 350px;
        position: absolute;
        margin: 20px 20px 0 20px;
        padding: 0px;
        text-align: center;
        right: 0px;
        max-height: 300px;
    }

    .slide {
        border-right: 1px solid #ccc;
        min-height: 500px
    }

    .left {
        width: 350px;
        position: absolute;
        margin: 20px 20px 0 20px;
        padding: 0px;
        text-align: center;
        right: 0px;
        top: 350px;
    }

    .hint {
        position: fixed;
        width: 350px;
        right: 20px;
        top: 50px;
        background: white;
    }

    pre.charimg {
        margin: -75% 0 -75% -75%;
    }
}

@media (min-width: 1300px) {
    /* Center the entire layout by centering the body content */
    body.hack {
        max-width: 1600px;
        margin: 0 auto; /* Center the body content */
        position: relative;
    }

    .container {
        width: 60%;
        margin: 0 auto; /* Center the main container */
    }

    .main {
        width: 60%;
        margin: 0 auto; /* Center the main container */
    }

    .left {
        width: 20%;
        min-height: 600px;
        position: absolute;
        left: 0px; /* Add gap from the edge */
        top: 0;
        margin: 20px 0 0 0; /* Remove horizontal margins to prevent overlap */
        padding: 0px;
    }

    #charimg {
        max-width: 300px;
        margin: 0 auto;
    }

    .right {
        width: 20%;
        min-height: 600px;
        position: absolute;
        right: 0px; /* Add gap from the edge */
        top: 0;
        margin: 20px 0 0 0; /* Remove horizontal margins to prevent overlap */
        padding: 0px;
        text-align: center;
    }

    .slide {
        border-right: 1px solid #ccc;
        min-height: 500px
    }

    .hint {
        position: fixed;
        width: 350px;
        right: 20px;
        top: 200px;
        background: white;
    }
}

#user {
    margin: 20px 0 20px 0;
}

#user header {
    display: flex;
    position: relative;
    justify-content: center;
}

#user header .pic {
    width: 75px;
    height: 75px;
    border: 1px solid #ccc;
    border-radius: 50%;
    position: absolute;
    top: -35px;
    box-shadow: 6px 6px 10px -5px #333;
}

#user .card-content {
    padding: 40px 20px 10px 20px;
    background-color: #eee;
}

#user p {
    text-align: left;
    margin: 5px 0;
}

#user hr {
    margin: 0 -20px 0 -20px;

}

#user .ops a {
    margin: 0 5px;
}

#user-edit .avatar {
}
