html,
body {
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 2em;
	font-weight: 600;
	line-height: 1.2;
}

h2 {
	margin: 2em 0 0.8em;
	font-size: 1.125em;
	line-height: 1.1;
	font-weight: 600;
}

ul {
	list-style-type: square;
}

.container {
	-webkit-font-smoothing: antialiased;
	max-width: 860px;
	margin: 0 auto;
	padding: 0 20px;
	font: normal 400 16px/1.42 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, 'Lantinghei SC', 'Hiragino Sans GB', sans-serif;
}

.head {
	padding: 30px 0 0;
	text-align: center;
}

.head h1 {
	margin: 0;
	font-size: 32px;
	color: #000;
}

.head h2 {
	margin: 15px 0 0;
	font-size: 32px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.8);
}

.nav {
	padding: 10px 0 30px;
	text-align: center;
}

.nav a {
	font-size: 14px;
	color: #999;
	text-decoration: none;
}

.nav a:hover {
	text-decoration: underline;
}

.nav a+a {
	margin-left: 20px;
}

h3.end {
	font-weight: 400;
	margin: 20px 0 0;
	color: #ccc;
}

.section-intro {
	font-size: 13px;
	color: #999;
	line-height: 1.8;
	margin: 0 auto 80px;
	max-width: 600px;
	text-align: center;
	position: relative;
	letter-spacing: 0.01em;
	opacity: 0.8;
}

.section-intro::before {
	content: "—";
	display: block;
	color: #eee;
	margin-bottom: 2px;
	line-height: 1.2;
}

.grid-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, 80px);
	column-gap: 30px;
	row-gap: 0;
}

.grid-content .item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0;
	text-align: center;
	width: 100%;
}

.grid-content .item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	width: 100%;
}

.grid-content .item .img-box {
	position: relative;
	/* 为伪元素定位 */
	width: 60px;
	aspect-ratio: 1573 / 2406;
	/* 比例参考自 ./images/53.png (1573x2406) */
	background-color: #fff;
	border-radius: 8px;
	/* 稍微调整圆角以适应长方形 */
	overflow: hidden;
	display: block;
	margin: 0 auto 4px;
	/* 确保水平居中，并保持底部间距 */
}

/* 蓝色覆盖层基础定义 - 默认隐藏 */
.grid-content .item .img-box::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #2339f4;
	mix-blend-mode: multiply;
	opacity: 0.3;
	transition: opacity 0.3s ease;
	pointer-events: none;
	display: none;
	/* 默认不显示 */
}

/* 开启配置时的样式 */
.grid-content.mask-enabled .item .img-box::after {
	display: block;
}

.grid-content.mask-enabled .item img {
	filter: grayscale(100%) contrast(1.05);
}

/* 精确控制：强制遮罩 */
.grid-content .item[data-mask="true"] .img-box::after {
	display: block;
}

.grid-content .item[data-mask="true"] img {
	filter: grayscale(100%) contrast(1.05);
}

/* 精确控制：强制取消遮罩 */
.grid-content .item[data-mask="false"] .img-box::after {
	display: none;
}

.grid-content .item[data-mask="false"] img {
	filter: none;
}

.grid-content .item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.3s ease;
}

/* 鼠标悬停时：遮罩消失，恢复原色 */
.grid-content.mask-enabled .item:hover .img-box::after {
	opacity: 0;
}

.grid-content.mask-enabled .item:hover img {
	filter: none;
}

.grid-content .item strong {
	display: block;
	font-weight: 600;
	width: 100%;
	word-wrap: break-word;
	margin-top: 4px;
}

.copy {
	padding: 20px 0;
	font-size: 14px;
	color: #ccc;
	text-align: center;
}

.yue a {
	color: #db4d6d;
}

@media (max-width: 680px) {
	.nav a+a {
		margin-left: 10px;
	}
}

/* WeChat Tooltip Styles */
.wechat-link {
	position: relative;
	cursor: pointer;
}

.qr-container {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 150px;
	padding: 8px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	margin-top: 10px;
}

/* Arrow for the tooltip */
.qr-container::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: transparent transparent #fff transparent;
}

.qr-container img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
}

/* Show on hover and focus (click) */
.wechat-link:hover .qr-container,
.wechat-link:focus .qr-container {
	display: block;
}

/* Give Me Five Embed Styles */
.iframe-wrapper {
	width: 100%;
	overflow: hidden;
}

.notion-iframe {
	width: 100%;
	height: 1200px;
	/* Generous height to fit content without internal scrollbar */
	border: 0;
	margin-top: -44px;
	display: block;
	pointer-events: auto;
}

.notion-iframe::-webkit-scrollbar {
	display: none;
}