header {
    position: sticky;
    top: 0;
    background: #588593;
    left: 0;
    right: 0;
    box-shadow: 0 0 2rem #0005;
}

div#titles {
    width: 100%;
}

div#titles h1 {
    font-size: 1.2rem;
    position: relative;
    left: 1.2rem;
    margin-bottom: 0.2rem;
    color: white;
}

div#titles h2 {
    font-size: .95rem;
    position: relative;
    left: 1.2rem;
    color: white;
}

h1,h2,h3,h4,h5,h6 {
    margin: 0;
    padding: 0;
    font-weight: 100;
}

div#page-chooses {
    border-top: 1px solid #0002;
    min-height: 3.2rem;
}

content {
    background: #06061c;
    color: white;
}

body {
    margin: 0;
    padding: 0;
}

content {
    min-height: 100vh;
    display: block;
}

body {
    overflow-x: hidden;
}

div#page-title {
    font-size: 2rem;
    border-bottom: 1px solid white;
    height: 3rem;
    padding: 0 .5rem;
    font-weight: 900;
}

div#page-content {
    min-height: 100vh;
}

div#page-tags {
    height: 2rem;
    width: 100%;
}

div#page-bottom-buttons {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 1rem;
    padding-bottom: 1rem;
}

div#page-button {
    background: #8abbcb;
    padding: .2rem .5rem;
    border-radius: .2rem;
    font-weight: 100;
    transition: background-color .2s;
}

div#page-button:hover {
    background: #8de0fb;
}

header {
    height: /* OLD: 16vh*/ 9.142857rem; /* FIXED THE MOBILE ERROR*/
}

div#titles {
    height: 65%;
}

div#titles h1 {
    font-size: 3vh;
}

p {
    padding: 0;
    margin: 0;
}

div#page-title {
    text-align: center;
}

blockquote {
    background: lightblue;
    color: black;
    padding: 1.2rem 1.5rem;
    width: 50%;
    margin: auto;
    line-height: 2;
    font-weight: 100;
}

*[data-type=loading]::before {
    background: #fff8;
    content: '';
    width: 11rem;
    height: 2rem;
    position: absolute;
    opacity: 1;
    top: .2rem;
    left: 2rem;
}

*[data-type=loading] {
    position: relative;
    overflow: hidden;
}

div#page-tags {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: yellow;
    font-weight: 100;
}

a:hover {
    color: lightyellow;
}
header .NAV-TOP {
    display: flex;
    justify-content: center;
}

header .NAV-TOP>.NAV-TOP-COM>span {
    font-size: 1.5rem;
    font-weight: 100;
    line-height: 2;
    color: white;
    text-align: center;
}

header .NAV-TOP .NAV-TOP-COM span ~ .NAV-TOP-COM {
    height: 0;
    background: #eee;
    left: -3em;
    text-align: center;
    width: 9rem;
    transition: height .5s;
}

header .NAV-TOP .NAV-TOP-COM span ~ .NAV-TOP-COM {
    overflow-y: hidden;
    overflow-x: hidden;
}

header .NAV-TOP > .NAV-TOP-COM> span:hover ~ .NAV-TOP-COM, .NAV-TOP > .NAV-TOP-COM > span ~ .NAV-TOP-COM:hover, .NAV-TOP-COM > span ~ .NAV-TOP-COM:has(span:hover), .NAV-TOP-COM > span ~ .NAV-TOP-COM:has(.NAV-TOP-COM:hover) {
    height: 100%;
}

header .NAV-TOP>.NAV-TOP-COM>.NAV-TOP-COM>:is(span,a) {
    border-bottom: 1px solid #0002;
    width: 100%;
    display: block;
    padding: .2rem .3rem;
}

header .NAV-TOP>.NAV-TOP-COM>.NAV-TOP-COM>.NAV-TOP-COM {
    position: absolute;
    left: 9rem;
    top: /* OLD: 5.5vh*/ 3rem;
    border-left: 1px solid #0002;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

header .NAV-TOP>.NAV-TOP-COM {
    position: relative;
}

header .NAV-TOP>.NAV-TOP-COM>.NAV-TOP-COM>.NAV-TOP-COM a {
    color: black;
    border-bottom: 1px solid black;
    width: 50%;
    height: max-content;
    width: 100%;
    padding: .2rem;
}

header .NAV-TOP > .NAV-TOP-COM > .NAV-TOP-COM > span:hover + .NAV-TOP-COM, .NAV-TOP > .NAV-TOP-COM > .NAV-TOP-COM > .NAV-TOP-COM:hover {
    height: 100%;
    transition: height .5s;
}

header .NAV-TOP > .NAV-TOP-COM > .NAV-TOP-COM > span + .NAV-TOP-COM {
    transition: height 1s .5s;
}

header .NAV-TOP > .NAV-TOP-COM {
    width: 18rem;
}

header .NAV-TOP a {
    color: #222;
}
/* 2025/5/28 */

div#page-title {
    padding-top: 2rem;
    font-weight: 100;
}

header .NAV-TOP>.NAV-TOP-COM>span {font-size:150%}

header .NAV-TOP>.NAV-TOP-COM>.NAV-TOP-COM>:is(span,a) {font-weight:100}

header .NAV-TOP>.NAV-TOP-COM>.NAV-TOP-COM>:is(span,a):hover {
    background: #ddd;
}

header .NAV-TOP>.NAV-TOP-COM>.NAV-TOP-COM>.NAV-TOP-COM a:hover {
    background: #ddd;
}

header .NAV-TOP > .NAV-TOP-COM > .NAV-TOP-COM > span + .NAV-TOP-COM {
    transition: height .5s;
}

div#login-status {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
}

div#headimage {
    height: 2rem;
    aspect-ratio: 1;
    background: white;
}

div#contentText {
    width: 5rem;
    border: 1px solid white;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 100;
}

div#edit-action {
    position: fixed;
    inset: 10vmin;
    background: #0002;
    backdrop-filter: blur(7rem) brightness(1.5);
    border: 3px solid white;
}

input#edit-title {
    width: 50%;
    padding: .7rem .5rem;
    display: flex;
    margin: 2rem auto;
    outline: none;
    font-weight: 100;
    font-family: none;
}

textarea#edit-content {
    width: 50%;
    height: 50%;
    margin: auto;
    display: flex;
    font-family: auto;
    font-weight: 199;
}

/* 2025/5/30 */
div#tools {
    padding: 0 2rem;
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 10vh;
}

div#tools button {
    width: 100%;
    padding: .35rem 1.2rem;
    background: darkblue;
    border: none;
    color: white;
    margin: 2rem;
    font-weight: 100;
    transition: all .5s;
}

div#tools button:hover {
    background: #0606b5;
    box-shadow: 0 0 .5rem #fff2;
}

div#page-button {
    min-width: 10vw;
    text-align: center;
    min-height: 2.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 2025/5/31 */
div#edit-action.closed {
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    left: 95vw;
    top: 2vh;
    box-shadow: 0 0 2rem #0002;
    border-radius: 50%;
    transition: all .5s;
}

div#edit-action {
    transition: all .5s;
}

div#edit-action.closed::before {
    content: '↑';
    font-weight: 100;
    color: white;
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    height: 100%;
}

div#edit-action.closed:hover {
    background-color:aliceblue;
    color:black!important;
}

div#edit-action.closed:hover::before {
    color:black!important;
}
/* 2025/6/2 */
header {
    z-index: 9;
}
div#edit-action {
    z-index: calc(Infinity);
}
/* 2025/6/3 */
div#errorer-titles {
    text-align: center;
    padding: .6rem .5rem;
    background: indianred;
    width: 50%;
    margin: auto;
    margin-top: 1.5rem;
    border: 1px solid darkred;
    font-weight: 100;
    box-shadow: 0 0 .5rem indianred;
}
/* 2025/6/24 */
ui-alert {
    display: block;
    position: fixed;
    top: 45%;
    left: 20%;
    width: 60%;
    height: 4%;
    background: white;
    padding: .2rem .5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 100vw 100vw 200vw 200vw #00000033;
    z-index: 22222;
}

ui-cancel {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    background: indianred;
    font-size: 0.75rem;
    color: white;
    padding: .2rem;
}
div#editlist {
    margin: 1.2rem;
    box-shadow: 0 0 2rem #0002;
    height: 4rem;
}

div#editlist::before {
    content: '编辑辅助栏';
    color: white;
    font-size: .87rem;
    font-weight: 100;
    display: block;
    border-bottom: 1px solid white;
    text-align: center;
}
