@media only screen and (min-width: 768px) {

	/* 桌面端的样式 */
	#app {
		display: grid;
		grid-template-columns: 160px 1fr;
		grid-template-areas:
			"header  header"
			"sidebar container"
			"footer  footer";
	}

	.container::before {
		display: none;
	}
}

@media only screen and (max-width: 767px) {

	/* 小屏幕样式规则 */
	#app {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"sidebar"
			"container"
			"footer";
	}

	.sidebar {
		padding: 0;
		background-color: transparent;
		box-shadow: none;
		position: relative;
	}

	.category-item {
		display: none;
		margin: 0;
		border-radius: 0;
		border: none;
		border-bottom: 1px solid #e0f0ff;
	}

	.category-item.active {
		display: block;
	}

	.sidebar::before {
		content: "选择分类 \25BC";
		display: block;
		padding: 12px;
		background-color: #fff;
		border: 1px solid #e0f0ff;
		border-radius: 6px;
		color: #3399ff;
		cursor: pointer;
		text-align: center;
		font-size: 14px;
		font-weight: 500;
		margin-bottom: 5px;
	}

	.sidebar.active {
		background-color: #f8f9fa;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	.sidebar.active::before {
		content: "选择分类 \25B2";
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}

	.sidebar.active .category-item {
		display: block;
	}

	.search-input {
		display: none;
	}
}

@font-face {
	font-family: 'dyfont';
	src: url("./fonts/dyfontjj.ttf");
}

body {
	font-size: 14px;
	font-size: .875rem;
}

.sidebar {
	grid-area: sidebar;
	text-align: center;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.category-item {
	padding: 12px;
	margin: 8px 0;
	border-radius: 6px;
	color: #3399ff;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	background-color: #fff;
	border: 1px solid #e0f0ff;
	position: relative;
	overflow: hidden;
}

.category-item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background-color: #3399ff;
	transition: width 0.3s ease;
}

.category-item:hover {
	background-color: #e0f0ff;
	transform: translateX(5px);
	box-shadow: 2px 2px 8px rgba(51, 153, 255, 0.2);
}

.category-item:hover::after {
	width: 100%;
}

.category-item.active {
	background-color: #3399ff;
	color: #fff;
	border-color: #3399ff;
	box-shadow: 2px 2px 8px rgba(51, 153, 255, 0.3);
	font-weight: 600;
	position: relative;
}

.category-item.active::after {
	content: "";
	position: absolute;
	right: -10px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 8px;
	border-color: transparent transparent transparent #3399ff;
	transition: all 0.3s ease;
}

.category-item.active:hover {
	transform: translateX(5px);
	box-shadow: 3px 3px 10px rgba(51, 153, 255, 0.4);
}

.search-input {
	position: relative;
	top: -5px;
	left: 18px;
	width: 400px;
	padding: 10px 16px;
	border: 1px solid #e0f0ff;
	background: #fff;
	border-radius: 8px;
	color: #3399ff;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
}

.container {
	grid-area: container;
	position: relative;
	background-color: rgba(248, 248, 248, 0.5);
	background-image: linear-gradient(rgba(50, 0, 0, 0.05) 1px, transparent 0), linear-gradient(90deg, rgba(50, 0, 0, 0.05) 1px, transparent 0);
	background-size: 15px 15px;
	background-color: #dedede;
}

.header {
	grid-area: header;
	height: 60px;
	font-size: 30px;
	font-family: 'dyfont';
}

.logo {
	line-height: 60px;
	background: linear-gradient(to bottom, #00c4ff, #2990ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.footer {
	grid-area: footer;
	text-align: center;
}

#app {

	margin: 0 auto;

	grid-gap: 10px;
	background-color: #fff;
	color: #444;
}

.box {
	background-color: #f3f3f3;
	border-radius: 5px;
	padding: 10px;
}

.header,
.footer {
	background-color: #f3f3f3;
}

.content {
	display: grid;
	grid-gap: 10px 10px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	padding: 10px;
}

.focus {
	grid-row: 1/3;
	grid-column: 1/2;
}

.item {
	background-color: rgba(255, 255, 255, 0.8);
	position: relative;
	height: 60px;
	padding: 6px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.item:hover {
	transform: translateY(-3px);
	-webkit-transform: translateY(-3px);
	-moz-transform: translateY(-3px);
	box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
	-webkit-box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
	-moz-box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3);
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	background-color: #f5f5f5;
}

.item:active {
	background-color: #e0e0e0;
}

.item a {
	display: flex;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	align-items: center;
}

.siteico {
	flex: 0 0 40px;
	height: 40px;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
}

.site-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding-right: 30px; /* 为 remark-icons 留出空间 */
}

.siteico img {
	width: auto;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.sitetitle {
	font-size: 14px;
	font-weight: bold;
	line-height: 1.2;
	margin-bottom: 2px;
}

.sitecontent {
	font-size: 12px;
	color: #888888;
	line-height: 1.2;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* 角标样式 */


/* 系统图标容器 */
.remark-icons {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	gap: 4px;
}

/* 系统图标样式 */
.icon {
	font-size: 16px;
	opacity: 0.8;
}

.windows {
	color: #00ADEF;
}

.apple {
	color: #666;
}

.linux {
	color: #000;
}

.android {
	color: #3DDC84;
}

.fufei {
	color: #11ee11;
}

.kexue {
	color: #ee1111;
}

.heart {
	color: #ee1111;
}

/* 移动端样式调整 */
@media only screen and (max-width: 767px) {
	.sidebar {
		padding: 10px;
	}
	
	.category-item {
		padding: 10px;
		margin: 6px 0;
		font-size: 13px;
	}
}
.explanation-box {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 20%; /* 调整垂直位置，使其靠近 trigger */
    transform: translate(-50%, -50%);
    background: #b6b7b8; /* 更浅的背景色 */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6; /* 添加边框增加区分度 */
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 80%;
    width: 400px;
    color: #ffffff; /* 更深的文字颜色 */
    line-height: 1.6; /* 增加行高提高可读性 */
    font-size: 14px;
}

.explanation-box.show {
    display: block;
}

/* 遮罩层 */
.explanation-box::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(134, 185, 227, 0.3); /* 降低遮罩层透明度 */
    z-index: -1;
}

.trigger {
    cursor: pointer;
    margin-right: 15px;
    color: #2e2e2e; /* 更改触发器颜色 */
}

.trigger:hover {
    color: #ff3939;
}