@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");

:root {
	--bg-main: #f4f7ff;
	--bg-soft: #fdf5ff;
	--card-bg: rgba(255, 255, 255, 0.9);
	--card-bg-strong: rgba(255, 255, 255, 0.95);
	--text-main: #675d7f;
	--text-soft: #9a8fb1;
	--accent-pink: #f8a5ca;
	--accent-purple: #bfa8f4;
	--accent-blue: #b6dcff;
	--border-soft: #efe4ff;
	--radius-lg: 20px;
	--radius-md: 14px;
	--shadow-soft: 0 10px 28px rgba(185, 165, 228, 0.15);
	--shadow-floating: 0 14px 36px rgba(184, 159, 222, 0.2);
	--layout-max: 2100px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	white-space: normal;
	word-wrap: anywhere;
}

html,
body {
	width: 100%;
	min-height: 100%;
	background:
		radial-gradient(circle at 12% 14%, rgba(255, 208, 233, 0.86), transparent 41%),
		radial-gradient(circle at 88% 10%, rgba(207, 230, 255, 0.82), transparent 34%),
		radial-gradient(circle at 74% 80%, rgba(234, 209, 255, 0.5), transparent 38%),
		radial-gradient(circle at 28% 88%, rgba(255, 231, 244, 0.62), transparent 34%),
		linear-gradient(165deg, #fff7fe 0%, #f7f9ff 46%, #eff7ff 100%);
	color: var(--text-main);
	font-family: "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
}

body.page-enter-from-login {
	opacity: 0;
	transform: translateY(8px) scale(1.005);
	filter: blur(2px);
	transition: opacity 0.56s ease, transform 0.56s ease, filter 0.56s ease;
}

body.page-enter-from-login.page-enter-active {
	opacity: 1;
	transform: translateY(0) scale(1);
	filter: blur(0);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.3;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(255, 186, 221, 0.42) 0 6px, transparent 7px),
		radial-gradient(circle at 72% 22%, rgba(244, 200, 236, 0.4) 0 5px, transparent 6px),
		radial-gradient(circle at 28% 72%, rgba(214, 190, 255, 0.36) 0 5px, transparent 6px),
		radial-gradient(circle at 88% 66%, rgba(255, 203, 227, 0.38) 0 6px, transparent 7px),
		radial-gradient(circle at 52% 88%, rgba(205, 224, 255, 0.34) 0 5px, transparent 6px);
	animation: sakuraDrift 9.3s ease-in-out infinite alternate;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.24;
	background-image:
		radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
		radial-gradient(circle at 34% 64%, rgba(255, 247, 253, 0.62) 0 2px, transparent 3px),
		radial-gradient(circle at 66% 38%, rgba(255, 247, 253, 0.58) 0 2px, transparent 3px),
		radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.66) 0 2px, transparent 3px),
		radial-gradient(circle at 52% 16%, rgba(246, 236, 255, 0.56) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 8% 84%, rgba(232, 245, 255, 0.5) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 26% 10%, rgba(255, 229, 241, 0.5) 0 1.8px, transparent 2.8px),
		radial-gradient(circle at 94% 42%, rgba(221, 234, 255, 0.48) 0 1.8px, transparent 2.8px);
	animation: sparkleFloat 11s linear infinite alternate;
}

@keyframes sakuraDrift {
	0% {
		transform: translateY(0) translateX(0);
	}
	100% {
		transform: translateY(10px) translateX(-8px);
	}
}

@keyframes sparkleFloat {
	0% {
		transform: translateY(0) translateX(0);
	}
	100% {
		transform: translateY(-8px) translateX(6px);
	}
}

#welcome-text {
	position: relative;
	z-index: 1;
	margin: 0;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
	background-image: url("/resource/img/welcome.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border-radius: 0;
	box-shadow: inset 0 -18px 42px rgba(70, 58, 105, 0.1);
}

#welcome-text::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 92px;
	pointer-events: none;
	z-index: 1;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f8ff' d='M0,66 C130,108 248,20 364,46 C482,74 594,126 720,96 C844,66 958,8 1082,24 C1204,40 1324,102 1440,80 L1440,120 L0,120 Z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23eff7ff' fill-opacity='1' d='M0,76 C114,34 238,102 360,86 C484,70 604,16 720,36 C836,56 962,114 1084,98 C1208,82 1328,34 1440,56 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
	background-size: 100% 100%, 100% 92%;
	background-position: center bottom, center bottom;
	background-repeat: no-repeat, no-repeat;
	animation: waveFlow 4.7s ease-in-out infinite alternate;
}

@keyframes waveFlow {
	0% {
		background-position: 0 bottom, 8% bottom;
	}
	100% {
		background-position: 12% bottom, -4% bottom;
	}
}

#welcome-text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 220px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 247, 254, 0) 0%, rgba(247, 249, 255, 0.34) 38%, rgba(247, 249, 255, 0.68) 68%, rgba(239, 247, 255, 0.92) 86%, rgba(239, 247, 255, 1) 100%);
}

#welcome-text #welcome-typing {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffd9ea;
	-webkit-text-stroke: 0.8px rgba(175, 126, 162, 0.48);
	text-shadow: 0 3px 10px rgba(118, 80, 124, 0.2);
	font-size: clamp(2.1rem, 4.8vw, 3.8rem);
	letter-spacing: 1px;
	padding: 0 20px;
	white-space: nowrap;
	min-height: 1.4em;
}

#welcome-text #welcome-typing::after {
	content: ".";
	display: inline-block;
	margin-left: 0.1em;
	opacity: 0;
}

#welcome-text #welcome-typing.is-complete::after {
	opacity: 1;
	animation: typingDotBlink 1.8s steps(1, end) infinite;
}

@keyframes typingDotBlink {
	0%,
	49% {
		opacity: 1;
	}
	50%,
	100% {
		opacity: 0;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#cards-container {
	position: relative;
	z-index: 1;
	max-width: min(var(--layout-max), 98vw);
	margin: 0 auto 48px;
	padding: 24px 8px 0;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(920px, 3.8fr) minmax(260px, 1fr);
	align-items: start;
	gap: 20px;
	width: 100%;
}

.site-footer {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 4px 0 22px;
	text-align: center;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 0.86rem;
	color: #8f7ea9;
	line-height: 1.8;
}

.policy-link,
.beian-link {
	color: #8f7ea9;
	text-decoration: none;
	border-bottom: 1px dashed rgba(143, 126, 169, 0.5);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.policy-link:hover,
.beian-link:hover {
	color: #7a6596;
	border-bottom-color: rgba(122, 101, 150, 0.72);
}

.site-footer-sep {
	display: inline-block;
	margin: 0 8px;
	color: rgba(143, 126, 169, 0.7);
}

.beian-link {
	white-space: nowrap;
}

.article-publish-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(1320px, 100%);
	margin: 0 auto;
	padding: 26px 28px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(238, 228, 255, 0.92);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(8px);
}

.article-read-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(1320px, 100%);
	margin: 0 auto;
	padding: 26px 28px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(238, 228, 255, 0.92);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(8px);
}

.article-read-head {
	margin-bottom: 14px;
}

.read-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	height: 34px;
	margin-bottom: 10px;
	padding: 0 12px;
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 999px;
	background: rgba(255, 251, 255, 0.92);
	color: #8b72a4;
	font-size: 0.86rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.read-back-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 14px rgba(186, 160, 226, 0.2);
}

.article-read-head h2 {
	font-size: clamp(1.45rem, 2.3vw, 2rem);
	color: #65557c;
	margin-bottom: 8px;
}

.article-read-meta {
	font-size: 0.88rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	color: #a393b8;
}

.article-read-nav {
	margin-top: 12px;
	display: flex;
	gap: 10px;
}

.read-nav-btn {
	min-width: 92px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 999px;
	background: rgba(255, 251, 255, 0.92);
	color: #8b72a4;
	font-size: 0.84rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.read-nav-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 7px 14px rgba(186, 160, 226, 0.2);
}

.read-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.article-read-content {
	min-height: 340px;
	padding: 14px 6px 2px;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 1.05rem;
	line-height: 1.85;
	color: #5d5372;
}

.article-read-content .md-heading {
	margin: 0.75em 0 0.45em;
}

.article-read-content .md-paragraph,
.article-read-content .md-list,
.article-read-content .md-quote,
.article-read-content .md-code-block,
.article-read-content .md-hr {
	margin: 0.65em 0;
}

.article-read-content .md-list {
	padding-left: 1.45em;
}

.article-read-content .md-image {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(226, 212, 247, 0.9);
}

.article-view-toolbar {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1200;
}

#toggle-publish-view-btn {
	width: 54px;
	height: 54px;
	padding: 0;
	border: 1px solid rgba(255, 200, 223, 0.95);
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 241, 248, 0.96) 0%, rgba(245, 237, 255, 0.96) 100%);
	color: #ab5f84;
	font-size: 1.6rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-weight: 600;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(203, 173, 232, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#toggle-publish-view-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 9px 18px rgba(203, 173, 232, 0.3);
}

#toggle-publish-view-btn:disabled {
	opacity: 0.56;
	cursor: not-allowed;
}

#article-list-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

#article-list-wrap[hidden],
#article-publish-card[hidden],
#article-read-card[hidden] {
	display: none !important;
}

.article-publish-card.is-disabled {
	opacity: 0.82;
}

.article-publish-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.publish-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	height: 34px;
	margin-bottom: 8px;
	padding: 0 12px;
	border: 1px solid rgba(229, 210, 252, 0.95);
	border-radius: 999px;
	background: rgba(255, 251, 255, 0.92);
	color: #8b72a4;
	font-size: 0.86rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publish-back-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 14px rgba(186, 160, 226, 0.2);
}

.publish-kicker {
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: var(--accent-pink);
	letter-spacing: 0.3px;
}

.article-publish-head h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	color: #69597f;
}

.publish-permission {
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.85rem;
	color: #8a6ea6;
	background: rgba(253, 247, 255, 0.9);
	border: 1px solid rgba(241, 234, 252, 0.8);
	white-space: nowrap;
}

.article-publish-form label {
	display: block;
	color: #7b6b90;
	font-size: 1.02rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.publish-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.publish-grid input,
.publish-content-label textarea {
	width: 100%;
	margin-top: 8px;
	border: 1px solid #e6d9f5;
	border-radius: 14px;
	padding: 14px 16px;
	font-size: 1.06rem;
	color: #594c6f;
	background: #fff;
	outline: none;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.publish-grid input[type="file"] {
	padding: 10px 12px;
	font-size: 0.95rem;
	line-height: 1.4;
	background: rgba(255, 252, 255, 0.95);
	cursor: pointer;
}

.publish-grid input[type="file"]::file-selector-button {
	border: 1px solid rgba(232, 209, 251, 0.95);
	border-radius: 999px;
	padding: 6px 12px;
	margin-right: 10px;
	background: linear-gradient(135deg, rgba(255, 241, 248, 0.96) 0%, rgba(245, 237, 255, 0.96) 100%);
	color: #98618a;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 0.86rem;
	cursor: pointer;
}

.publish-cover-preview-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px dashed rgba(225, 206, 248, 0.9);
	border-radius: 14px;
	background: rgba(255, 251, 255, 0.8);
}

.publish-cover-preview-label {
	font-size: 0.92rem;
	color: #8e74ac;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	white-space: nowrap;
}

.publish-cover-preview {
	width: 136px;
	height: 78px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid rgba(225, 206, 248, 0.9);
	box-shadow: 0 6px 14px rgba(197, 172, 232, 0.16);
	background: rgba(255, 255, 255, 0.94);
}

.publish-grid input:focus,
.publish-content-label textarea:focus {
	border-color: #cfb3ff;
	box-shadow: 0 0 0 3px rgba(207, 179, 255, 0.18);
}

.publish-content-label {
	display: block;
	margin-bottom: 14px;
}

.publish-content-label textarea {
	resize: vertical;
	min-height: 300px;
	line-height: 1.7;
	border-radius: 18px;
}

.publish-preview-card {
	margin-bottom: 14px;
	padding: 14px;
	border-radius: 16px;
	border: 1px solid rgba(232, 219, 251, 0.92);
	background: rgba(255, 252, 255, 0.86);
}

.publish-preview-head {
	margin-bottom: 10px;
}

.publish-preview-head h3 {
	font-size: 0.98rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	color: #856ea1;
	font-weight: 600;
}

.publish-preview {
	min-height: 220px;
	max-height: 460px;
	overflow: auto;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px dashed rgba(222, 203, 246, 0.9);
	background: rgba(255, 255, 255, 0.95);
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	color: #615778;
	line-height: 1.72;
}

.md-content .md-preview-placeholder {
	color: #a191b8;
}

.md-content .md-heading {
	margin: 0.6em 0;
	line-height: 1.4;
	color: #5f5376;
}

.md-content .md-heading-1 {
	font-size: 1.5rem;
}

.md-content .md-heading-2 {
	font-size: 1.28rem;
}

.md-content .md-heading-3 {
	font-size: 1.12rem;
}

.md-content .md-paragraph,
.md-content .md-list,
.md-content .md-quote,
.md-content .md-code-block,
.md-content .md-hr {
	margin: 0.55em 0;
}

.md-content .md-list {
	padding-left: 1.35em;
}

.md-content .md-quote {
	padding: 0.5em 0.8em;
	border-left: 3px solid rgba(201, 174, 234, 0.8);
	border-radius: 10px;
	background: rgba(247, 240, 255, 0.72);
	color: #726588;
}

.md-content .md-code-block {
	padding: 0.7em 0.9em;
	border-radius: 10px;
	background: rgba(244, 237, 255, 0.88);
	overflow-x: auto;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.92rem;
}

.md-content .md-inline-code {
	padding: 0.08em 0.35em;
	border-radius: 6px;
	background: rgba(237, 226, 253, 0.78);
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.92em;
}

.md-content .md-link {
	color: #7a59a9;
	text-decoration: none;
	border-bottom: 1px dashed rgba(140, 108, 186, 0.55);
}

.md-content .md-link:hover {
	color: #6b4f95;
	border-bottom-color: rgba(107, 79, 149, 0.75);
}

.md-content .md-image {
	max-width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(226, 212, 247, 0.9);
}

.publish-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.publish-form-error {
	min-height: 1.4em;
	color: #c07a9b;
	font-size: 0.9rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

#publish-submit {
	min-width: 124px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(255, 200, 223, 0.95);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 241, 248, 0.96) 0%, rgba(245, 237, 255, 0.96) 100%);
	color: #ab5f84;
	font-size: 0.95rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(203, 173, 232, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#publish-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(203, 173, 232, 0.32);
}

#publish-submit:disabled {
	opacity: 0.58;
	cursor: not-allowed;
}

.aside-card {
	background: var(--card-bg-strong);
	border: 1px solid rgba(240, 228, 255, 0.92);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.aside-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-floating);
	border-color: rgba(228, 201, 250, 0.95);
}

@media (prefers-reduced-motion: reduce) {
	body.page-enter-from-login,
	body.page-enter-from-login.page-enter-active {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}

	body::before {
		animation: none;
	}

	body::after {
		animation: none;
	}

	#welcome-text::before {
		animation: none;
	}

	#welcome-text #welcome-typing.is-complete::after {
		animation: none;
	}
}

#cards-center {
	grid-column: 2;
	gap: 2rem;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.article-query-card {
	width: 100%;
	padding: 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(236, 220, 255, 0.9);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.article-query-head {
	margin-bottom: 2px;
}

#article-query-card .article-query-head {
	justify-content: center;
}

#article-query-card .article-query-head > span {
	display: block;
	width: 100%;
	text-align: center;
	font-family: "Fredoka One", "ZCOOL KuaiLe", cursive;
	font-size: 1.24rem;
	letter-spacing: 0.6px;
	color: #8a6ea6;
}

.page-size-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.84rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	color: #8f79aa;
	white-space: nowrap;
}

.page-size-inline input {
	width: 74px;
	height: 34px;
	padding: 0 8px;
	text-align: center;
	border: 1px solid rgba(228, 210, 248, 0.92);
	border-radius: 999px;
	background: rgba(255, 253, 255, 0.95);
	color: #6f6085;
	font-size: 0.88rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	outline: none;
}

.page-size-inline input:focus {
	border-color: #ceb0f6;
	box-shadow: 0 0 0 3px rgba(206, 176, 246, 0.2);
}

.article-query-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.query-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #8b78a4;
	font-size: 0.86rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.query-field input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(228, 210, 248, 0.92);
	border-radius: 12px;
	background: rgba(255, 253, 255, 0.95);
	color: #6f6085;
	font-size: 0.9rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.query-field input:focus,
.page-num-wrap input:focus {
	border-color: #ceb0f6;
	box-shadow: 0 0 0 3px rgba(206, 176, 246, 0.2);
}

.query-field-size input {
	text-align: center;
}

.query-datetime-trigger {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(228, 210, 248, 0.92);
	border-radius: 12px;
	background: linear-gradient(140deg, rgba(255, 252, 255, 0.95) 0%, rgba(248, 244, 255, 0.94) 100%);
	color: #725f89;
	font-size: 0.88rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.query-datetime-trigger:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(192, 165, 226, 0.2);
}

.query-datetime-trigger.is-active {
	border-color: #ceb0f6;
	box-shadow: 0 0 0 3px rgba(206, 176, 246, 0.2);
}

.query-actions {
	display: flex;
	gap: 8px;
	justify-content: stretch;
}

.query-actions button {
	flex: 1;
}

.query-actions button,
.article-pagination-row button {
	border: 1px solid rgba(236, 211, 251, 0.95);
	background: linear-gradient(135deg, rgba(255, 241, 248, 0.96) 0%, rgba(245, 237, 255, 0.96) 100%);
	color: #966793;
	border-radius: 999px;
	padding: 0 14px;
	height: 36px;
	font-size: 0.84rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 6px 14px rgba(199, 169, 231, 0.2);
}

.query-actions button:hover,
.article-pagination-row button:hover {
	transform: translateY(-1px);
	box-shadow: 0 9px 18px rgba(199, 169, 231, 0.28);
}

.query-actions button:disabled,
.article-pagination-row button:disabled {
	opacity: 0.52;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.article-pagination-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.page-num-wrap input {
	width: 100%;
	height: 36px;
	text-align: center;
	border: 1px solid rgba(228, 210, 248, 0.92);
	border-radius: 999px;
	background: rgba(255, 253, 255, 0.95);
	color: #6f6085;
	font-size: 0.9rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	outline: none;
	padding: 0 10px;
}

.page-num-wrap {
	width: 82px;
}

.article-page-meta {
	width: 100%;
	text-align: center;
	font-size: 0.84rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	color: #a28ebc;
	line-height: 1.45;
}

#article-pagination-wrap {
	width: 100%;
	max-width: min(1320px, 100%);
	margin: 2px auto 8px;
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid rgba(233, 216, 252, 0.9);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 8px 18px rgba(188, 158, 227, 0.15);
	transition: box-shadow 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

body:not(.publish-mode):not(.read-mode) #article-pagination-wrap {
	position: sticky;
	bottom: 10px;
	z-index: 12;
	backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 26px rgba(188, 158, 227, 0.2);
}

body:not(.publish-mode):not(.read-mode) #article-pagination-wrap:hover {
	transform: translateY(-1px);
}

#article-pagination-wrap[hidden] {
	display: none !important;
}

.query-calendar-panel {
	border: 1px solid rgba(232, 214, 252, 0.95);
	background: linear-gradient(160deg, rgba(255, 249, 255, 0.98) 0%, rgba(247, 243, 255, 0.98) 100%);
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 10px 20px rgba(188, 158, 227, 0.2);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.query-calendar-panel[hidden] {
	display: none !important;
}

.query-calendar-head {
	display: grid;
	grid-template-columns: 34px 1fr 34px;
	gap: 8px;
	align-items: center;
}

.query-calendar-head button {
	height: 32px;
	border: 1px solid rgba(234, 213, 251, 0.95);
	border-radius: 10px;
	background: rgba(255, 245, 252, 0.95);
	color: #8f6aac;
	font-size: 1rem;
	cursor: pointer;
}

#query-calendar-title {
	text-align: center;
	color: #83649f;
	font-size: 0.9rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-weight: 600;
}

.query-calendar-weekdays,
.query-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.query-calendar-weekdays span {
	font-size: 0.72rem;
	color: #a086ba;
	text-align: center;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.query-calendar-day {
	height: 30px;
	border: 1px solid rgba(236, 221, 252, 0.9);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.92);
	color: #7f6b98;
	font-size: 0.8rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
	transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.query-calendar-day:hover {
	transform: translateY(-1px);
	border-color: #d8b8fb;
	box-shadow: 0 5px 12px rgba(189, 157, 229, 0.18);
}

.query-calendar-day.is-muted {
	opacity: 0.45;
}

.query-calendar-day.is-selected {
	border-color: #cfaff8;
	background: linear-gradient(140deg, rgba(255, 239, 248, 0.95) 0%, rgba(244, 234, 255, 0.95) 100%);
	color: #7d53a1;
	font-weight: 600;
}

.query-calendar-time {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: #8f79aa;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.query-calendar-time select {
	height: 34px;
	border: 1px solid rgba(228, 210, 248, 0.92);
	border-radius: 10px;
	padding: 0 8px;
	background: rgba(255, 255, 255, 0.95);
	color: #6f6085;
	font-size: 0.85rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	outline: none;
}

.query-calendar-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.query-calendar-actions button {
	height: 32px;
	border: 1px solid rgba(236, 211, 251, 0.95);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 241, 248, 0.96) 0%, rgba(245, 237, 255, 0.96) 100%);
	color: #966793;
	font-size: 0.8rem;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	cursor: pointer;
}

body.publish-mode #article-list-wrap {
	display: none !important;
}

body.publish-mode #article-pagination-wrap,
body.read-mode #article-pagination-wrap {
	display: none !important;
}

body.read-mode #article-list-wrap {
	display: none !important;
}

@media (max-width: 900px) {
	.article-view-toolbar {
		right: 14px;
		bottom: 14px;
	}

	body:not(.publish-mode):not(.read-mode) #article-pagination-wrap {
		position: static;
		bottom: auto;
		z-index: auto;
		backdrop-filter: none;
	}
}

#cards-left,
#cards-right {
	position: sticky;
	top: 84px;
	align-self: start;
	align-items: center;
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 14px;
}

#cards-left {
	grid-column: 1;
	font-size: 1.08rem;
}

#cards-left .filter-card-head {
	font-size: 1.08rem;
}

#cards-left .filter-option {
	font-size: 0.94rem;
}

#cards-left .filter-option .filter-count {
	font-size: 0.84rem;
}

#cards-right {
	grid-column: 3;
}

#myself {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: fit-content;
	padding: 16px 20px;
}

#myself img {
	width: min(100%, 210px);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 20%;
	border: 2px solid #f0e6ff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#myself img:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(196, 169, 245, 0.25);
}

#myself i {
	display: inline-block;
	width: 28px;
	height: 28px;
	background-image: url("/resource/img/GitHub-Mark.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
	opacity: 0.88;
}

#myself a:hover i {
	transform: translateY(-2px);
	opacity: 1;
}

#myself .kiyuu {
	margin-top: 10px;
	font-size: 1.25rem;
	font-family: "Fredoka One", "Cambria Math", cursive;
	color: var(--accent-pink);
	letter-spacing: 0.5px;
}

#myself .slogan {
	margin: 12px 0 16px;
	font-size: 0.95rem;
	font-weight: lighter;
	color: var(--text-soft);
}

.filter-card {
	width: 100%;
	padding: 14px;
	border-radius: 18px;
}

.filter-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	color: #8a6ea6;
	font-size: 1rem;
}

#clear-tag-filter {
	border: 1px solid #edd9fb;
	background: #fff6fd;
	color: #9e78b8;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.78rem;
	cursor: pointer;
}

#clear-tag-filter:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.category-filter-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tag-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.filter-option {
	width: 100%;
	border: 1px solid #efdefc;
	border-radius: 12px;
	background: linear-gradient(140deg, rgba(253, 246, 255, 0.88) 0%, rgba(248, 242, 255, 0.86) 100%);
	padding: 6px 10px;
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	color: #806b98;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
	font-size: 0.86rem;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-option:hover {
	transform: translateY(-1px) scale(1.01);
	border-color: #e1c6fb;
	box-shadow: 0 6px 12px rgba(186, 160, 226, 0.16);
}

.filter-option .filter-count {
	font-size: 0.78rem;
	min-width: 22px;
	text-align: center;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(237, 225, 250, 0.65);
	color: #8f79a8;
}

.filter-option.is-active {
	border-color: #dcb8fb;
	background: linear-gradient(135deg, #fff2fa 0%, #f5ebff 100%);
	color: #7b4da6;
	box-shadow: 0 6px 14px rgba(187, 154, 229, 0.2);
}

.tag-filter-option {
	width: auto;
	gap: 8px;
	padding: 6px 10px;
}

.filter-empty {
	font-size: 0.82rem;
	color: #a091b3;
}

.guest-hint {
	width: min(100%, 780px);
	text-align: center;
	padding: 18px 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--text-soft);
	border: 1px solid var(--border-soft);
	box-shadow: var(--shadow-soft);
}

.article-loading {
	width: min(100%, 780px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px 22px;
	border-radius: 16px;
	border: 1px solid rgba(236, 220, 252, 0.92);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow-soft);
}

.article-loading-text {
	font-family: "Fredoka One", "ZCOOL KuaiLe", cursive;
	font-size: 1.04rem;
	letter-spacing: 0.5px;
	color: #8a6ea6;
	animation: loadingTextBounce 1.35s ease-in-out infinite;
}

.article-loading-dots {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.article-loading-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d29cc6;
	animation: loadingDotJump 0.9s ease-in-out infinite;
}

.article-loading-dots i:nth-child(2) {
	animation-delay: 0.14s;
}

.article-loading-dots i:nth-child(3) {
	animation-delay: 0.28s;
}

@keyframes loadingTextBounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-3px);
	}
}

@keyframes loadingDotJump {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.55;
	}
	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

@media (max-width: 1200px) {
	#cards-container {
		grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
	}


	.article-query-row {
		width: 100%;
	}

	.query-actions {
		justify-content: stretch;
	}

	.article-pagination-row {
		justify-content: center;
	}
	#cards-left {
		display: none;
	}

	#cards-center {
		grid-column: 1;
	}

	#cards-right {
		grid-column: 2;
	}
}

@media (max-width: 900px) {
	#cards-container {
		grid-template-columns: 1fr;
		padding: 28px 12px 0;
	}

	#cards-center,
	#cards-right {
		grid-column: 1;
		position: static;
	}

	#cards-right {
		width: 100%;
	}

	.query-calendar-time {
		grid-template-columns: auto 1fr auto 1fr;
	}

}

@media (max-width: 640px) {
	#cards-container {
		margin-top: 0;
		gap: 14px;
	}

	.site-footer {
		margin-bottom: 16px;
		font-size: 0.8rem;
	}

	.publish-cover-preview-wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	#myself {
		padding: 14px;
	}

	#welcome-text #welcome-typing {
		font-size: clamp(1.4rem, 6vw, 2rem);
	}

}
