html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Microsoft Yahei", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Helvetica Neue", sans-serif;
    background: #79a8ae;
    color: #CFEBE4;
    font-size: 18px;
    line-height: 2;
    letter-spacing: 1.2px;
    margin: 0;
    min-height: 100%;
    overflow: hidden;
}

a {
    color: #ebf7f4;
}

.body--ready {
    background: -webkit-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
    background: -moz-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
    background: -o-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
    background: -ms-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
    background: linear-gradient(to bottom, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 100%);
}

.canvas {
    position: fixed;
    top: var(--site-header-height, 64px);
    left: 0;
    z-index: 0;
    display: block;
    width: 100vw;
    height: calc(100vh - var(--site-header-height, 64px) - var(--site-footer-height, 56px));
    transform-origin: 0 0;
}

img#logo {
    width: 128px;
    background-size: cover;
    border-radius: 200px;
    box-shadow: 0px 0px 40px rgba(63, 81, 181, 0.72);
    border: 3px solid #00a0ff;
    opacity: 1;
    display: block;
    margin: 0 auto;
    transition: all 1.0s;
}

.avatar-button:hover #logo,
.avatar-button:focus-visible #logo {
    box-shadow: 0 0 10px #fff;
    -webkit-box-shadow: 0 0 19px #fff;
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    /* IE 9 */
    -moz-transform: rotate(360deg);
    /* Firefox */
    -webkit-transform: rotate(360deg);
    /* Safari 和 Chrome */
    -o-transform: rotate(360deg);
    /* Opera */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.cs {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: fixed;
    inset: calc(var(--site-header-height, 64px) + 20px) 0 auto;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.avatar-button {
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.avatar-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 5px;
}

.site-counter {
    position: fixed;
    right: 12px;
    bottom: calc(var(--site-footer-height, 56px) + 8px);
    left: 12px;
    z-index: 5;
    margin: 0;
    color: #d4fbff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .site-counter {
        font-size: 12px;
    }

}

@media (max-width: 900px) and (orientation: portrait) {
    .canvas {
        width: calc(100vh - var(--site-header-height, 64px) - var(--site-footer-height, 88px));
        height: 100vw;
        transform: translateX(100vw) rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
