/* Copyright (C) 2022-2026 fly6022. */

@import "https://fonts.googleapis.com/css?family=Noto+Sans+SC:300,500,800";
@import "https://fonts.googleapis.com/css?family=Inter";

* {
	-webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

body {
	overflow-x: hidden;
	line-height: 1;
	transition: 1.5s;
	font-size: 1em;
	font-family: 'Inter', 'Noto Sans SC';
}

a, a:hover {
	color: #66CCFF;
	transition: .5s;
	text-decoration: none;

}



.social a {
	color: #F5F5F5;
	transition: .5s;
	text-decoration: none;

}

#bg {
	position:fixed;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	-o-background-size: cover;
	background-position: center 0;
	background-attachment: fixed;
	background-size: cover;
	transition: background-image 1s ease-in-out;
}

.masking {
	position:fixed;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	zoom: 1;
	background-color: rgba(27, 27, 27, 0.05);
	background-repeat: no-repeat;
	background-size: cover;
	-webkit-background-size: cover;
	-o-background-size: cover;
	background-position: center 0;
}

.container {
	width: 100%;
	margin: 0;
  	position: absolute;
  	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
}

.card {
	box-shadow: 0 8px 39px 0 rgba(255, 255, 255, 0.37) !important;
	width: 40%;
	height: 50%;
	}

.card {
	-webkit-backdrop-filter: blur(8px);
	border-radius: 15px;
	border: 1px solid rgba( 255, 255, 255, 0.18 );
	margin: 0 auto;
	padding: 10px;
	transition: 0.3s;
	background: rgba(255, 255, 255, 0);
	backdrop-filter: blur(5px);
	text-align: center;
	line-height: 1.5;
}

@media only screen and (max-width: 500px) {
	.card {
		width: 75%;
	}
}

@media only screen and (min-width: 500px) {
	.card {
		width: 60%;
	}
}

@media only screen and (min-width: 750px) {
	.card {
		width: 50%;
	}
}

@media only screen and (min-width: 1000px) {
	.card {
		width: 40%;
	}
}

@media only screen and (min-width: 1250px) {
	.card {
		width: 30%;
	}
}

@media only screen and (min-width: 2000px) {
	.card {
		width: 20%;
	}
}

.sidebar {
	box-shadow: 0 8px 39px 0 rgba(0, 0, 0, 0.37) !important;
	background-color: rgba(10, 10, 10, 0.2) !important;
	color: #F5F5F5;
	box-shadow: 0 8px 32px 0 rgba( 0, 0, 0, 0.37 );
	-webkit-backdrop-filter: blur(8px);
	border-radius: 5px;
	border: 1px solid rgba( 255, 255, 255, 0.18 );
	margin: 0 auto;
	padding: 10px;
	transition: 0s;
	backdrop-filter: blur(5px);
	text-align: center;
	line-height: 1.5;
}

@media (prefers-color-scheme:dark) {
	.sidebar {
		color: #F5F5F5;
		background-color: rgba(0, 0, 0, .5) !important;
		backdrop-filter: blur(5px)
	}
	.card {
		color: #F5F5F5;
		box-shadow: 0 8px 39px 0 rgba(0, 0, 0, 0.37) !important;
		background-color: rgba(0, 0, 0, .3) !important;
		border: 1px solid rgba( 0, 0, 0, 0.18 );
		backdrop-filter: blur(5px)
	}
}

.logo {
	width: 100px;
	height: 100px;
	margin-top: -50px;
	border:1px soild white;
	background: url(../images/avatar.jpg) no-repeat center;
	border-radius: 50px;
	background-size: 100px;
}

.nickname {
	font-size: 2.5em;
	font-weight: 800;
	margin: 20px auto;
	color: #F5F5F5;
	font-family: 'Inter';
}

.motto {
	font-size: 1em;
	font-weight: 500;
	margin: 20px auto;
	color: #F5F5F5;
}

hr {
	margin: 10px auto;
	width: 0%;
}

.footer {
	position: absolute;
	right: 5px;
	bottom: 0;
	padding-right: 0.5em;
	padding-bottom: 0.5em;
	color: #F5F5F5;
	text-align: center;
	letter-spacing: -3px;
	font-size: 16px;
	opacity: .6 !important;
}

.remark {
	display: inline-block;
	margin: 0;
	color: #F5F5F5 !important;
	vertical-align: middle;
	letter-spacing: 0;
	font-size: 9px;
	line-height: 1.2em;
}

.overlay-shown {
	visibility: hidden;
	opacity: 1;
}

/* ===== 博客双栏布局（文章 / 归档 / 独立页面） ===== */
.blog-container {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	max-width: 1280px;
	margin: 24px auto 70px;
	padding: 0 16px;
}

.blog-sidebar,
.blog-main {
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(5px);
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	padding: 18px;
}

.blog-sidebar {
	flex: 0 1 280px;
	min-width: 240px;
	text-align: left;
	color: #F5F5F5;
	position: sticky;
	top: 80px;
}

.blog-sidebar .mdui-list-item,
.blog-sidebar .mdui-list-item-content {
	color: #F5F5F5;
}

.blog-sidebar .mdui-collapse-item-arrow {
	color: rgba(245, 245, 245, 0.7);
}

.blog-sidebar-profile {
	text-align: center;
	padding: 6px 0 16px;
}

.blog-sidebar-avatar {
	width: 88px;
	height: 88px;
	margin: 4px auto 12px;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border: 2px solid rgba(245, 245, 245, 0.45);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.blog-sidebar-nickname {
	font-size: 1.25em;
	font-weight: 800;
	color: #F5F5F5;
	font-family: 'Inter', 'Noto Sans SC';
	margin-bottom: 6px;
	line-height: 1.4;
}

.blog-sidebar-motto {
	font-size: 0.82em;
	line-height: 1.5;
	color: rgba(245, 245, 245, 0.8);
	margin: 0 auto 12px;
}

.blog-sidebar-social {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.blog-sidebar-social a {
	color: #F5F5F5;
	font-size: 1.15em;
	opacity: 0.9;
	text-decoration: none;
	transition: 0.3s;
}

.blog-sidebar-social a:hover {
	color: #66CCFF;
	opacity: 1;
	transform: translateY(-2px);
}

.blog-sidebar-divider {
	border: none;
	border-top: 1px solid rgba(245, 245, 245, 0.25);
	width: 80%;
	margin: 16px auto 4px;
}

.blog-main {
	flex: 1 1 0;
	min-width: 0;
	text-align: left;
	line-height: 1.8;
	-webkit-user-select: text;
	user-select: text;
}

.blog-layout-footer {
	position: relative;
	margin-top: 28px;
}

@media only screen and (max-width: 900px) {
	.blog-container {
		flex-direction: column;
	}
	.blog-sidebar {
		flex: 1 1 auto;
		width: 100%;
		position: static;
	}
}

@media (prefers-color-scheme: dark) {
	.blog-sidebar,
	.blog-main {
		color: #F5F5F5;
		background-color: rgba(0, 0, 0, 0.3);
		border-color: rgba(0, 0, 0, 0.18);
	}
}

/* ===== 文章排版 ===== */
.post-title,
.archive-title {
	color: #F5F5F5;
	font-weight: 800;
	margin: 0 0 0.6em;
	line-height: 1.3;
}

.post-title {
	font-size: 1.8em;
}

.archive-title {
	font-size: 1.5em;
	border-bottom: 1px solid rgba(245, 245, 245, 0.25);
	padding-bottom: 0.5em;
}

.post-meta {
	color: rgba(245, 245, 245, 0.75);
	font-size: 0.9em;
	margin-bottom: 1.4em;
}

.post-tags a {
	margin-left: 0.6em;
}

.post-content {
	color: #F5F5F5;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
	color: #F5F5F5;
	margin: 1.4em 0 0.6em;
	line-height: 1.3;
}

.post-content h1 { font-size: 1.6em; }
.post-content h2 { font-size: 1.4em; }
.post-content h3 { font-size: 1.2em; }
.post-content h4 { font-size: 1.05em; }

.post-content p {
	margin: 0.9em 0;
}

.post-content a {
	color: #66CCFF;
}

.post-content img {
	max-width: 100%;
	border-radius: 8px;
}

.post-content code {
	background: rgba(0, 0, 0, 0.35);
	padding: 0.15em 0.45em;
	border-radius: 4px;
	font-size: 0.92em;
}

.post-content pre {
	background: rgba(0, 0, 0, 0.45);
	padding: 14px 16px;
	border-radius: 10px;
	overflow-x: auto;
	line-height: 1.5;
}

.post-content pre code {
	background: none;
	padding: 0;
}

.post-content blockquote {
	border-left: 4px solid #66CCFF;
	background: rgba(255, 255, 255, 0.06);
	margin: 1em 0;
	padding: 0.4em 1em;
	border-radius: 0 8px 8px 0;
}

.post-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1em 0;
}

.post-content th,
.post-content td {
	border: 1px solid rgba(245, 245, 245, 0.35);
	padding: 0.5em 0.8em;
}

.post-content hr {
	border: none;
	border-top: 1px solid rgba(245, 245, 245, 0.3);
	margin: 1.6em 0;
}

.post-content ul,
.post-content ol {
	padding-left: 1.6em;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid rgba(245, 245, 245, 0.25);
}

/* ===== 归档列表 ===== */
.archive-item {
	padding: 14px 0;
	border-bottom: 1px dashed rgba(245, 245, 245, 0.22);
}

.archive-item:last-child {
	border-bottom: none;
}

.archive-date {
	color: rgba(245, 245, 245, 0.7);
	font-size: 0.85em;
}

.archive-item-title {
	font-size: 1.2em;
	margin: 0.2em 0 0.4em;
}

.archive-excerpt {
	color: rgba(245, 245, 245, 0.85);
	font-size: 0.95em;
	margin-top: 0.3em;
}

.archive-pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5em;
}
