* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;

	padding-top: 70px;

	background: #f7f7f9;
	color: #252525;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"PingFang SC",
		"Hiragino Sans GB",
		"Microsoft YaHei",
		sans-serif;
	line-height: 1.8;
}

.container {
	width: min(760px, calc(100% - 32px));
	margin: 0 auto;
	padding: 34px 0 70px;
}



.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;

	background: rgba(247, 247, 249, 0.92);
	border-bottom: 1px solid #e9e9ee;

	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;

	width: min(760px, calc(100% - 32px));
	margin: 0 auto;
	padding: 12px 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;

	color: inherit;
	text-decoration: none;
}

.brand:hover {
	text-decoration: none;
}


.brand .logo {
	display: block;
	margin: 0;
}

.brand .logo img {
	display: block;

	width: auto;
	height: 56px;
	max-width: 300px;

	object-fit: contain;
}

.brand-title {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.navbar-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;

	margin-left: auto;
}

.navbar-loading {
	color: #bbb;
	font-size: 13px;
}

.nav-link {
	padding: 6px 12px;

	border-radius: 9px;
	color: #555;
	font-size: 14px;

	transition: 0.2s;
}

.nav-link:hover {
	background: #f4f1ff;
	color: #5b3fd0;
	text-decoration: none;
}

.nav-link.is-current {
	background: #f0ecff;
	color: #5b3fd0;
	font-weight: 600;
}



.card {
	background: white;
	border: 1px solid #e9e9ee;
	border-radius: 18px;
	padding: 28px;
	margin-bottom: 18px;

	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
}

.card h2 {
	margin: 0 0 18px;
	font-size: 21px;
}

.card p {
	margin: 0 0 16px;
}

.card p:last-child {
	margin-bottom: 0;
}



.header {
	padding: 26px 4px 30px;
}

.header-title {
	margin: 0 0 10px;
	font-size: 30px;
	letter-spacing: 1px;
	line-height: 1.4;
}

.header-subtitle {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
}



.post-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.post-head-text {
	flex: 1;
	min-width: 0;
}

.author-avatar {
	flex: none;
	width: 56px;
	height: 56px;

	border-radius: 16px;
	overflow: hidden;

	box-shadow: 0 8px 20px rgba(155, 124, 255, 0.25);
}

.author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}



.post {
	display: block;
	cursor: pointer;

	background: white;
	border: 1px solid #e9e9ee;
	border-radius: 18px;
	padding: 28px;
	margin-bottom: 18px;

	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);

	color: inherit;
	text-decoration: none;

	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.post:hover {
	transform: translateY(-2px);
	border-color: #cfc4ff;
	box-shadow: 0 12px 32px rgba(100, 80, 180, 0.1);
	text-decoration: none;
}



.post-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.45;
}


.post .post-title {
	color: #7658e8;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;

	margin-bottom: 16px;

	color: #888;
	font-size: 13px;
}

.post-meta span + span::before {
	content: "·";
	margin-right: 12px;
}

.post-preview > *:last-child {
	margin-bottom: 0;
}


.post-preview > *:first-child {
	margin-top: 0;
}


.post-more {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;

	margin-top: 16px;

	color: #7658e8;
	font-size: 14px;
	font-weight: 600;

	transition: gap 0.2s ease;
}

.post:hover .post-more {
	gap: 10px;
}

.post-body > *:first-child {
	margin-top: 0;
}



.post-detail {
	display: block;
}

.post-body {
	display: block;
}

.post-nav {
	padding-top: 18px;
	border-top: 1px solid #eee;
}


.post-detail > .post-nav:first-child {
	margin-top: 26px;
}

.back-link {
	font-weight: 600;
}



.post-note {
	margin: 0;
	color: #888;
	font-size: 13px;
	white-space: pre-wrap;
	word-break: break-word;
}

small {
	color: #777;
}

.card small {
	display: inline-block;
	margin-top: 4px;
}



.post-preview > p,
.post-preview > ul,
.post-preview > ol,
.post-preview > blockquote,
.post-preview > h2,
.post-preview > h3 {
	margin: 0 0 16px;
}



.post blockquote,
.post-detail blockquote {
	margin: 0 0 16px;
	padding: 12px 18px;

	background: #faf9ff;
	border-left: 3px solid #d8cfff;
	border-radius: 0 12px 12px 0;

	color: #666;
	font-size: 14px;
}

.post blockquote p,
.post-detail blockquote p {
	margin: 0;
}

pre {
	margin: 0 0 16px;
	padding: 16px 18px;

	background: #f6f6f9;
	border: 1px solid #ececf1;
	border-radius: 12px;

	overflow-x: auto;
	font-size: 13px;
	line-height: 1.6;
}

pre code {
	font-family: ui-monospace, Consolas, monospace;
}

code {
	padding: 2px 6px;

	background: #f3f2f8;
	border-radius: 6px;

	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.9em;
}

pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}



.post ul,
.post ol,
.post-detail ul,
.post-detail ol {
	margin: 0 0 16px;
	padding-left: 22px;
}

.post li,
.post-detail li {
	margin-bottom: 6px;
}

.post h3,
.post-detail h3 {
	margin: 0 0 14px;
	font-size: 17px;
}

.post h4,
.post-detail h4 {
	margin: 0 0 12px;
	font-size: 15px;
}

.post hr,
.post-detail hr {
	margin: 22px 0;
	border: none;
	border-top: 1px solid #eee;
}

table {
	width: 100%;
	margin: 0 0 16px;

	border-collapse: collapse;
	font-size: 14px;
}

th,
td {
	padding: 9px 12px;
	border: 1px solid #ececf1;
	text-align: left;
}

th {
	background: #faf9ff;
	font-weight: 600;
}

.post img,
.post-detail img {
	max-width: 100%;
	border-radius: 12px;
}



a {
	color: #7658e8;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}



.groups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 20px;
}

.group {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding: 15px 17px;

	background: #faf9ff;
	border: 1px solid #ebe7ff;
	border-radius: 12px;

	text-decoration: none;
	color: #222;

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.group:hover {
	transform: translateY(-2px);
	border-color: #cfc4ff;
	box-shadow: 0 8px 20px rgba(100, 80, 180, 0.08);
	text-decoration: none;
}

.group-name {
	font-weight: 600;
}

.group-number {
	color: #888;
	font-size: 13px;
	font-family: monospace;
}



.main-link {
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 17px 20px;
	margin-top: 14px;

	border-radius: 12px;

	background: #f8f6ff;
	border: 1px solid #e7e1ff;

	text-align: center;
	font-weight: 600;

	transition: 0.2s;
}


.main-link br {
	display: none;
}

.main-link:hover {
	background: #f0ecff;
	text-decoration: none;
	transform: translateY(-2px);
}



footer {
	text-align: center;
	color: #aaa;
	font-size: 12px;
	margin-top: 25px;
}



@media (max-width: 600px) {
	body {

		padding-top: 58px;
	}

	.container {
		padding-top: 26px;
	}

	.navbar-inner {
		padding: 10px 0;
		gap: 10px 14px;
	}

	.brand .logo img {
		height: 36px;
		max-width: 190px;
	}

	.brand-title {
		font-size: 15px;
	}

	.header {
		padding: 20px 2px 24px;
	}

	.header-title {
		font-size: 24px;
	}

	.author-avatar {
		width: 50px;
		height: 50px;
		border-radius: 14px;
	}

	.navbar-links {
		margin-left: 0;
	}

	.nav-link {
		padding: 5px 10px;
		font-size: 13px;
	}

	.card {
		padding: 22px;
		border-radius: 15px;
	}

	.groups {
		grid-template-columns: 1fr;
	}
}



@media (prefers-color-scheme: dark) {
	body {
		background: #111114;
		color: #eee;
	}

	.card {
		background: #1a1a1e;
		border-color: #2a2a30;
		box-shadow: none;
	}

	.post {
		background: #1a1a1e;
		border-color: #2a2a30;
		box-shadow: none;
	}

	.post .post-title {
		color: #a895ff;
	}

	.post-more {
		color: #a895ff;
	}

	.post-nav,
	.post hr,
	.post-detail hr {
		border-color: #2a2a30;
	}

	.post blockquote,
	.post-detail blockquote {
		background: #1d1b26;
		border-left-color: #514878;
		color: #aaa;
	}

	pre {
		background: #16161a;
		border-color: #2a2a30;
	}

	code {
		background: #26262e;
	}

	pre code {
		background: none;
	}

	th,
	td {
		border-color: #2a2a30;
	}

	th {
		background: #1d1b26;
	}

	small {
		color: #999;
	}

	.navbar {
		background: rgba(17, 17, 20, 0.92);
		border-bottom-color: #2a2a30;
	}

	footer {
		color: #888;
	}

	.nav-link {
		color: #bbb;
	}

	.nav-link:hover {
		background: #24212f;
		color: #cbbcff;
	}

	.nav-link.is-current {
		background: #2a2540;
		color: #cbbcff;
	}

	.navbar-loading {
		color: #666;
	}

	.group {
		background: #1d1b26;
		border-color: #302b43;
		color: #eee;
	}

	.group:hover {
		border-color: #514878;
	}

	.group-number {
		color: #999;
	}

	.main-link {
		background: #1d1b26;
		border-color: #302b43;
	}

	.main-link:hover {
		background: #24212f;
	}

	a {
		color: #a895ff;
	}
}