::selection {
    background: rgba(128,16,16,0.05);
}

*{
    -webkit-tap-highlight-color:rgba(0,0,0,0);
    transition: filter 0.1s;
}

body {
    margin: 0 auto;
    font-family: "fusion-pixel","Consolas","Microsoft Yahei";
    background:
      radial-gradient(circle at 50% 0,
        rgba(255,232,216,.4),
        rgba(255,232,216,0) 70.71%),
      radial-gradient(circle at 6.7% 75%,
        rgba(216,255,216,.4),
        rgba(216,255,216,0) 70.71%),
      radial-gradient(circle at 93.3% 75%,
        rgba(216,232,255,.4),
        rgba(216,232,255,0) 70.71%) #fff;
    background-attachment: fixed;
}

@font-face{
    font-family: "fusion-pixel";
    src: url("/assets/FusionPixelMonoPatched.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

a,a:link,a:active,a:visited,a:hover,a:focus{
	color:#f60;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
	outline:none;
	border: none;
	background:none;
	text-decoration: none;
}

div{
    margin: 0;
    padding: 0;
}

.dark {
    background: #202020;
}
.dark::after {
	content: '';
	position: fixed;
    z-index: 99999;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.switchbar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 50px;
    display: flex;
    text-align: center;
    justify-content: space-evenly;
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
}
.switchbar a {
    width: 25%;
    line-height: 50px;
    display: inline-block;
    cursor: pointer;
}
.switchbar .active {
    border-bottom: solid 2px #0af;
}

.search_box {
    z-index: 999;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 42px;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
}
.search_box input {
    outline: none;
    border: solid 1px rgba(128, 128, 128, 0.4);
    height: 40px;
    vertical-align: middle;
    pointer-events: auto;
}

#kw {
    width: calc(90% - 60px);
    max-width: 320px;
    padding: 0 10px;
    font-size: 16px;
    border-right: none;
    border-radius: 16px 0 0 16px;
}

#btn {
    width: 10%;
    min-width: 56px;
    max-width: 80px;
    border-left: none;
    border-radius: 0 16px 16px 0;
    color: #fff;
    background: #0bf;
    transition: background 0.1s;
}
#btn:active {
    background: #0ad;
    color: #ddd;
}

#main{
    max-width: 1200px;
    min-height: calc(100vh - 252px);
    margin: auto;
    margin-top: 114px;
}

.details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

summary {
    margin: 5px 20px;
    font-size: 20px;
    color: #0bf;
    font-weight: bold;
    cursor: pointer;
}

hr {
    border: none;
    height: 1px;
    background-color: #ccc;
}

.list, .middle {
    width: calc(100% - 40px);
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 10px;
    padding: 10px;
    line-height: 1.7;
    font-size: 16px;
    border-radius: 16px;
}

.list {
    background-color: #fff;
    box-shadow: 0 0 1px 1px rgba(128, 128, 128, 0.05);
    transition: background-color 0.1s;
}
.list:active {
    background-color: #eee;
}

.list .title {
    height: 32px;
    line-height: 32px;
    overflow: hidden;
}
.list .title .logo {
    height: 32px;
    vertical-align: top;
}
.list .title strong {
    color: #f66;
}

.version{
    font-size: 18px;
    color: #0af;
    font-weight: bold;
    cursor: pointer;
}

.content {
    list-style-type: none;
    counter-reset: sectioncounter;
    margin: 0;
    padding: 0;
    padding-left: 22px;
    display: none;
    font-size: 16px;
    max-height: calc(90vh - 167px);
    overflow-y: auto;
}

.content li:before {
    content: counter(sectioncounter) ".";
    counter-increment: sectioncounter;
}

.content li {
    text-indent: -1rem;
}

.content li div {
     color: #666;
     text-indent: 0;
     font-size: 14px;
}

.right-box {
    float:right;
    margin-right: 6px;
}

.date {
    color: #888;
}

.arrow {
    color: #0af;
    margin-right: 5px;
}

.highlight {
    padding: 4px;
    background: rgba(200, 200, 120, 0.3);
    color: #f60;
}
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}
#loading img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    max-width: 195px;
}

.corner_button {
    z-index: 999;
    position: fixed;
    right: 10px;
    bottom: 10px;
    cursor: default;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: solid 1px #fff;
    border-radius: 12px;
    background: rgba(255,255,255,0.3);
    transition: all 0.1s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.corner_button:active {
    transform: scale(0.9);
}
#toLogout {
    bottom: 100px;
    display: none;
}
#theme {
    bottom: 55px;
}
#theme img {
    width: 60%;
    margin: 20%;
}
#copyright {
    padding: 30px;
    line-height: 24px;
    font-size:14px;
    color: #fff;
    background: #1A1C26;
    text-align: center;
}

#toLogin {
    color: #0af;
    cursor: pointer;
}

.shadow {
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(64, 64, 64, 0.3);
	opacity: 0;
	transition: opacity 0.2s;
}
.login_box{
	position: fixed;
	left: 50%;
	top: 40%;
	transform: translate(-50%, -40%);
    width: calc(100% - 60px);
    max-width: 420px;
    margin: 5vw auto;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}
.login_box .close {
	position: absolute;
	z-index: 1999;
	top: -9px;
	right: -9px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	font-size: 20px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.1);
	cursor: pointer;
}
.login_box .title{
    font-size: 28px;
    font-weight: bold;
    color: #0af;
}
#form div{
	margin: 25px 0;
}
label{
    width: 80px;
    display: inline-block;
    text-align: right;
}
input{
	outline: none;
	border: none;
	border-radius: 4px;
}
.input{
	height: 32px;
	width: 65%;
	border: solid 1px #ccc;
	padding: 0 5px;
}
input[type=button]{
	height: 40px;
	width: 90%;
	background: #0cf;
    color: #fff;
}
input[type=button]:active{
    background: #0af;
    color: #ddd;
}
.below{
	height: 36px;
	padding: 0 25px;
	line-height: 36px;
}

@media (any-hover: hover) {
    /*定义滚动条*/
    .content::-webkit-scrollbar{
        width: 8px;
        background-color: transparent;
    }
    /*定义滚动条滑块*/
    .content::-webkit-scrollbar-thumb{
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
    }
    .content:hover::-webkit-scrollbar-thumb{
        background: rgba(0,0,0,0.1);
    }

    .switchbar a:hover {
        background: rgba(64,64,64,0.05);
        border-bottom: solid 2px #aaa;
    }
    .switchbar .active:hover {
        border-bottom: solid 2px #0db;
    }
    .corner_button:hover {
        background: rgba(255,255,255,0.5);
    }
    
    .frame .close:hover {
    	background-color: rgba(0, 0, 0, 0.2);
    }
}
.switchbar a:active {
    background: rgba(64,64,64,0.1);
    border-bottom: solid 2px #0db;
}
.switchbar .active:active {
    border-bottom: solid 2px #f66;
}
.corner_button:active {
    background: rgba(224,224,224,0.5);
}