* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	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: 55px 0 70px;
}

/* 顶部 */

.header {
	display: flex;
	text-align: center;
	margin-bottom: 32px;
}

.header h1 {
	margin: 8px;
	font-size: 30px;
	letter-spacing: 1px;
}

.logo {
	width: 128px;
	height: 128px;
	margin: 0 20px 20px;

	border-radius: 20px;
	/* 方形但带一点圆角 */
	overflow: hidden;

	box-shadow: 0 10px 30px rgba(155, 124, 255, 0.25);
}

.logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.subtitle {
	margin: 8px 20px 8px;
	color: #888;
	font-size: 14px;
}

/* 卡片 */

.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;
}

/* 链接 */

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: block;
	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:hover {
	background: #f0ecff;
	text-decoration: none;
	transform: translateY(-2px);
}

/* 最后的欢迎 */

.welcome {
	text-align: center;
	padding: 35px 20px;
	margin-top: 12px;
}

.welcome-title {
	font-size: 27px;
	font-weight: 700;
	margin-bottom: 8px;
}

.welcome-text {
	color: #888;
	font-size: 14px;
}

/* 页脚 */

footer {
	text-align: center;
	color: #aaa;
	font-size: 12px;
	margin-top: 25px;
}

/* 手机 */

@media (max-width: 600px) {
	.container {
		padding-top: 35px;
	}

	.header h1 {
		font-size: 26px;
	}

	.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;
	}

	.subtitle,
	.welcome-text,
	footer {
		color: #888;
	}

	.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;
	}
}