/*宽屏样式*/
*{
	margin: 0;
	padding: 0;
	overflow: hidden;
	scrollbar-color: rgba(255, 255, 255,0.5) inherit;
	/* No Selected */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
body{
	display: flex;
	justify-content: center;
	align-items: center;
	/* background */
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-image: url("https://static0.xesimg.com/programme/python_assets/47ac2f18e4252cbe2b227c1765b879d4.png");
}
pre.ql-syntax{
	background-color: rgba(255, 255, 255, 0.5);
	/* Allow Selected */
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}
blockquote{
	border-left: 4px solid grey !important;
	margin-bottom: 0px !important;
	margin-top: 0px !important;
	padding-left: 4px !important;
}
.article-content ol li{
	list-style-position:inside;
}
.article-content ul li::before{
	content: "\2022";
}
/* scroll bar */
::-webkit-scrollbar
{
	border: none;
	width: 10px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb
{
	border: none;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 10px;
}
/* font icon
没想到有一天如此大规模地用!important
不是因为自己的奇葩样式
而是对原CSS库的无可奈何...
*/
i.fa{
	display:inline;
	margin: 5px;
	padding: 0;
}
.fa-th{
    display:block !important;
    font-size: larger !important;
	margin: 8px;
}
.ficon-info{
    display: inline-block !important;
    font-size: x-small !important;
	margin-left: 10px;
	width: auto;
}
/* login */
.login-card{
	margin: 1vw;
	padding: 0.8vw;
	width: 40vw;
	text-align: center;
	background-color: rgba(0,0,0,0.5);
	color: white;
}
.login-card *{
	font-size: larger;
}
.login-card form .clickable-title{
	display: inline-block;
	cursor: pointer;
    font-size: xx-large !important;
	text-align: center;
}
#chatinput{
	width: 80%;
}
.login-input , #chatinput{
	text-align: center;
	margin: 5px;
	padding: 5px;
	border: 0;
	background-color: white;
	color: black;
	list-style: none;
	outline: 0;
}
.login-input{
	width: 60%;
}
.login-input::placeholder{
	color: #aab2bd;
}
#logintype{
	display: none !important;
	position: absolute !important;/* 保险起见加的 */
}
#submit{
	position: fixed;
	padding-top: 7.5px;
	padding-bottom: 10px;
	padding-left: 18px;
	padding-right: 18px;
	bottom: 10vh;
	left: 50%;
	background-color: rgba(0,0,0,0.5);
	color: white;
	border: none;
	box-shadow: none;
	transform: translateX(-50%);
	perspective: none;
	cursor: pointer;
}
#submit:hover{
	background-color: rgba(255,255,255,0.5);
	color: black;
}
/* editor */
#editor form{
	color: white;
}
#editor form *:not(.clickable-title,label,.submit-btn){
	color: black;
}
#editor form .clickable-title{
	font-size: xx-large;
}
#editor form textarea{
	text-align: start;
}
#editor form input::placeholder , #editor form textarea::placeholder{
	color: rgb(50, 50, 50);
}
/* Main */
main{
	display: table;
	position: absolute;
	margin: 0;
	padding: 3vw;
	height: 80vh;
	width: 85vw;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0,0,0,0.5);
	z-index: 1;
	border-radius: 15px !important;
}
#rightbar{
	max-height: 80vh;
	overflow-y: auto;
}
ul#leftbar,#rightbar ul{
	display: table-cell;
	margin: 1vw;
	height: auto;
	list-style-type:none;
}
li.presscard{
	font-style: normal;
}
i.fa{
	font-style: normal;
}
ul#leftbar li,#rightbar ul li#para,#rightbar ul .presscard{
	margin: 1vw;
	padding: 1vw;
	width: auto;
	background-color: rgba(0,0,0,0.5);
	color: white;
}
ul#leftbar li details summary{
	list-style: none;
	outline: 0;
}
ul#leftbar li details[open] summary{
	margin-bottom: 8px !important;
}
ul#leftbar li details[open]{
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 50vh;
}
ul#leftbar li.presscard{
	cursor: pointer;
}
*:not(.article-content) ul li.presscard:hover:not(#addarticle),#para{
	background-color: rgba(255,255,255,0.5) !important;
	color: black !important;
}
*:not(.article-content) ul li i.list-inner,*:not(.article-content) ul li i.chat,.opiclick{
	display: -webkit-box;
	margin: 2px;
	font-style: normal;
}
*:not(.article-content) ul li i.list-inner:not(.chat),*:not(.article-content) .opiclick{
	text-align: center;
	text-overflow: ellipsis;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
*:not(.article-content) ul li i.inner{
	display: -webkit-box;
	margin: 5px;
	text-indent: 2em;
	text-overflow: ellipsis;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.95em;
}
*:not(.article-content) ul li i.list-inner.chat,*:not(.article-content) ul li i.inner{
	word-break: break-all;
}
ul#leftbar{
	width: 20vw;
	margin-top: 0;
}
/* 右侧栏 */
#rightbar ul {
	display: block;
	height: 100%;
	margin: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
#username{
    font-size: larger !important;
}
.gotologin{
	text-decoration: underline;
}
.gotologin:hover{
	text-decoration: none;
}
label{
	color: white;
}
#fayan{
	display: block;
	width: calc(100% - 4px);
}
#article-content li{
	background-color: rgba(0, 0, 0, 0) !important;
	color: black !important;
	padding: 0% !important;
	margin: 0% !important;
}
.presscard{
    content: '\2022' !important;
}
.presscard a{
	color: black;
	text-decoration: none;
}
.presscard a:hover{
	text-decoration: underline;
}
li.presscard{
	border-radius: 10px;
}
.pagination {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	gap: 5px;
}
.pagination button {
	padding: 5px 10px;
	border: 1px solid white;
	background: white;
	border-radius: 4px;
	cursor: pointer;
}
.pagination button.active {
	background: rgba(0,0,0,0.5);
	color: white;
	border-color: rgba(0,0,0,0.5);
}
.pagination button:hover:not(.active) {
	background: #f0f0f0;
}
.pagination button:disabled {
	color: #ccc;
	cursor: not-allowed;
}
/***********************************/
/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-top-color: black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
.load-error {
    background: #ffeaea;
    color: #dc3545;
    border-color: #dc3545;
}

.load-error button {
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-error button:hover {
    background: #dc3545;
    color: white;
}

/* 内容结束标记 */
.end-marker {
    text-align: center;
    color: #28a745;
    background: #f8fff9;
    border-color: #28a745;
}
/* */
#para *{
	word-break:break-all;
}
.a-style:hover{
	text-decoration: underline;
}