body,
input,
select,
textarea,
button {
	font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
#header nav ul li a,
input[type="submit"],
input[type="reset"] {
	letter-spacing: 0;
}

#header .content .inner p {
	line-height: 2;
}

#main article p {
	line-height: 1.9;
}

#main article {
	background-color: rgba(17, 22, 30, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.image.main {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
}

.image.main img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.personal-feature {
	position: relative;
	width: min(100%, 30rem);
	margin: 1.75rem auto 2rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 4px;
	background: #0d1118;
}

.personal-feature img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.personal-feature figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	gap: 0.22rem;
	padding: 3rem 1.15rem 1rem;
	background: linear-gradient(to top, rgba(6, 9, 14, 0.92), rgba(6, 9, 14, 0));
}

.personal-feature figcaption span {
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.72rem;
}

.personal-feature figcaption strong {
	font-size: 1rem;
}

.gallery-article {
	width: min(58rem, 95vw) !important;
}

.gallery-intro {
	margin-bottom: 1.5rem;
	padding: 1rem 1.1rem;
	border-left: 3px solid rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.055);
}

#main article .gallery-intro p {
	margin: 0;
}

.gallery-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	width: min(100%, 28rem);
	margin-bottom: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 4px;
	overflow: hidden;
}

.gallery-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: auto;
	min-height: 3.2rem;
	margin-bottom: 0;
	padding: 0.75rem 1rem;
	border-color: rgba(255, 255, 255, 0.32);
	text-align: left;
}

.gallery-toggle .icon {
	transition: transform 240ms ease;
}

.gallery-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.gallery-drawer {
	overflow: hidden;
}

.gallery-drawer[hidden] {
	display: none;
}

.gallery-drawer.is-opening {
	animation: gallery-drawer-open 280ms ease both;
}

.gallery-drawer.is-closing {
	animation: gallery-drawer-close 220ms ease both;
}

.gallery-drawer-inner {
	padding-top: 1.25rem;
}

@keyframes gallery-drawer-open {
	from { max-height: 0; opacity: 0; transform: translateY(-0.5rem); }
	to { max-height: 140rem; opacity: 1; transform: translateY(0); }
}

@keyframes gallery-drawer-close {
	from { max-height: 140rem; opacity: 1; transform: translateY(0); }
	to { max-height: 0; opacity: 0; transform: translateY(-0.5rem); }
}

.gallery-tab {
	min-width: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	white-space: normal;
}

.gallery-tab + .gallery-tab {
	border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.gallery-tab.is-active {
	background: #ffffff;
	color: #111820 !important;
}

.gallery-tab span {
	margin-left: 0.3rem;
	opacity: 0.58;
}

.art-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.art-item {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.055);
}

.art-item[hidden] {
	display: none;
}

.art-open {
	display: block;
	width: 100%;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	background: #090d13;
}

.art-open img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 220ms ease, opacity 220ms ease;
}

.art-open:hover img,
.art-open:focus-visible img {
	transform: scale(1.025);
	opacity: 0.88;
}

.art-item figcaption {
	padding: 0.72rem 0.85rem;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.72rem;
}

.art-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(5, 8, 12, 0.96);
	color: #ffffff;
}

.art-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.82);
}

.lightbox-shell {
	position: relative;
	display: grid;
	grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 3.5rem 1.25rem 1.25rem;
}

.lightbox-shell figure {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	justify-items: center;
	min-width: 0;
	height: 100%;
	margin: 0;
}

.lightbox-shell img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 7rem);
	object-fit: contain;
}

.lightbox-shell figcaption {
	padding-top: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.76rem;
}

.lightbox-close,
.lightbox-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	padding: 0;
	border-radius: 4px;
}

.lightbox-close {
	position: absolute;
	top: 0.8rem;
	right: 1rem;
}

#bg:after {
	filter: saturate(0.9) contrast(1.08);
}

body.is-article-visible #bg:after {
	filter: blur(0.2rem) saturate(0.82) brightness(0.72);
}

.form-result {
	color: #ffffff;
	font-weight: 600;
	margin-top: 1rem;
}

.form-result.is-pending {
	color: #d7e8ff;
}

.form-result.is-success {
	color: #9ee6b4;
}

.form-result.is-error {
	color: #ffb0b0;
}

.form-honey {
	display: none !important;
}

.message-board-article {
	width: min(52rem, 95vw) !important;
	padding-bottom: 7rem !important;
}

.message-counter {
	margin-top: 0.35rem;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.76rem;
	text-align: right;
}

.message-wall {
	position: relative;
	margin-top: 0.8rem;
	padding: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.035);
}

#main article .message-lead {
	margin: 0 0 0.85rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	line-height: 1.6;
}

.message-wall-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.message-wall-header h3 {
	margin: 0;
	font-size: 1rem;
}

.message-total {
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.78rem;
	font-weight: 400;
}

.message-refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border-radius: 4px;
}

.message-refresh.is-loading .icon {
	animation: message-spin 0.8s linear infinite;
}

.message-list {
	display: grid;
	gap: 0.48rem;
	max-height: min(62vh, 40rem);
	overflow-y: auto;
	padding-right: 0.2rem;
}

.message-load-more {
	display: block;
	width: 100%;
	margin-top: 0.55rem;
}

.message-load-more[hidden] {
	display: none;
}

.message-item {
	padding: 0.58rem 0.72rem;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.055);
}

.message-item.is-pending,
.reply-item.is-pending {
	opacity: 0.72;
}

.message-item.is-failed,
.reply-item.is-failed {
	border-color: rgba(255, 120, 120, 0.45);
	background: rgba(255, 70, 70, 0.08);
}

.message-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.32rem;
}

.reply-button {
	height: 1.65rem;
	line-height: 1.65rem;
	padding: 0 0.65rem;
	border-radius: 4px;
	font-size: 0.68rem;
}

.reply-list {
	display: grid;
	gap: 0.45rem;
	margin-top: 0.42rem;
	padding-left: 0.65rem;
	border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.reply-list:empty {
	display: none;
}

.reply-item {
	padding: 0.36rem 0 0.03rem;
}

.reply-item + .reply-item {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.message-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.24rem;
}

.message-author {
	font-size: 0.82rem;
	font-weight: 700;
	word-break: break-word;
}

.message-time {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.66rem;
}

#main article .message-content {
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.86rem;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

#main article .message-empty {
	margin: 0;
	padding: 1.5rem 0;
	color: rgba(255, 255, 255, 0.58);
	text-align: center;
}

.message-composer {
	position: fixed;
	right: auto;
	bottom: max(0.72rem, env(safe-area-inset-bottom));
	left: 50%;
	z-index: 10002;
	width: min(50.5rem, calc(95vw - 1.5rem));
	margin: 0;
	padding: 0.52rem 0.62rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	background: linear-gradient(180deg, rgba(20, 27, 37, 0.97), rgba(13, 18, 26, 0.97));
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transform: translateX(-50%);
}

.message-composer:before {
	content: "";
	position: absolute;
	right: 0.8rem;
	top: -1px;
	left: 0.8rem;
	height: 1px;
	background: rgba(255, 255, 255, 0.18);
}

.composer-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.34rem;
}

.composer-head strong {
	font-size: 0.82rem;
}

.composer-head span {
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.64rem;
}

.composer-row {
	display: grid;
	grid-template-columns: minmax(6.5rem, 0.86fr) minmax(0, 2.55fr) auto;
	gap: 0.38rem;
	align-items: end;
}

.composer-row label {
	margin: 0;
}

.composer-row label > span {
	display: block;
	margin-bottom: 0.2rem;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.64rem;
}

.message-composer input[type="text"],
.message-composer textarea {
	min-height: 2rem;
	padding: 0.36rem 0.56rem;
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(5, 8, 12, 0.36);
	font-size: 0.78rem;
}

.message-composer input[type="text"]:focus,
.message-composer textarea:focus {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(5, 8, 12, 0.52);
}

.message-composer textarea {
	max-height: 5.2rem;
	resize: none;
}

.composer-submit {
	width: 4.3rem;
	height: 2rem;
	padding: 0;
}

.composer-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.18rem;
}

#main article .composer-status .form-result {
	min-height: 1rem;
	margin: 0;
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.4;
}

.composer-status .message-counter {
	flex: 0 0 auto;
	margin-top: 0;
}

.reply-target {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
	padding: 0.36rem 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(255, 255, 255, 0.045);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.7rem;
}

.reply-target[hidden] {
	display: none;
}

.reply-target button {
	height: 1.55rem;
	line-height: 1.55rem;
	padding: 0 0.55rem;
	border-radius: 4px;
	font-size: 0.64rem;
}

@keyframes message-spin {
	to { transform: rotate(360deg); }
}

@media screen and (max-width: 480px) {
	#bg:after {
		background-position: 68% center;
		filter: saturate(0.92) contrast(1.04) brightness(1.18);
	}

	#header .content .inner h1 {
		font-size: 2rem;
	}

	#header nav ul li a {
		padding: 0 0.7rem;
	}

	#main article {
		border-radius: 0;
	}

	.art-gallery {
		grid-template-columns: 1fr;
	}

	.lightbox-shell {
		grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem;
		padding-right: 0.35rem;
		padding-left: 0.35rem;
	}

	.message-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.2rem;
	}

	.message-board-article {
		padding-bottom: 11.8rem !important;
	}

	.message-composer {
		width: calc(100vw - 1rem);
		padding: 0.48rem;
	}

	.composer-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.1rem;
	}

	.composer-row {
		grid-template-columns: 1fr 4rem;
	}

	.composer-name {
		grid-column: 1 / -1;
	}

	.composer-message {
		min-width: 0;
	}

	.composer-submit {
		width: 4rem;
	}
}

@media screen and (min-width: 481px) and (max-width: 736px) {
	.art-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
