* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background: #f5f7fa;
	color: #333;
	line-height: 1.6;
	min-height: 100vh;
	padding-bottom: 30px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

header {
	text-align: center;
	padding: 30px 0 20px;
	position: relative;
}

header h1 {
	font-size: 2.2rem;
	margin-bottom: 12px;
	color: #4a6ee0;
}

header p {
	font-size: 1rem;
	max-width: 800px;
	margin: 0 auto 20px;
	color: #666;
}

/* 增大头像滚动区域 */
.avatar-scroll-container {
	overflow: hidden;
	width: 100%;
	margin: 20px auto 25px;
	position: relative;
	height: 140px;
}

.avatar-row {
	display: flex;
	width: 200%;
	margin-bottom: 15px;
}

.avatar-row.top {
	animation: scroll-left 25s linear infinite;
}

.avatar-row.bottom {
	animation: scroll-right 30s linear infinite;
	margin-left: -80px;
}

.avatar-item {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	margin: 0 10px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.8);
	transition: transform 0.3s, border-color 0.3s;
	position: relative;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-item:hover {
	transform: scale(1.1);
	border-color: rgba(138, 76, 224, 0.5);
}

.avatar-item i {
	font-size: 1.8rem;
	color: #8a4ce0;
}

@keyframes scroll-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@keyframes scroll-right {
	0% {
		transform: translateX(-50%);
	}
	100% {
		transform: translateX(0);
	}
}

/* 跳转按钮 */
.jump-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 0 0 30px;
}

.jump-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	background: #8a4ce0;
	color: white;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 3px 8px rgba(138, 76, 224, 0.2);
}

.jump-btn i {
	margin-right: 8px;
}

.jump-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(138, 76, 224, 0.3);
}

.jump-btn.patch-btn {
	background: #4a6ee0;
}

/* 友情链接风格卡片布局 - 紧凑型，一行三个 */
.links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.link-card {
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 10px;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, 0.05);
	height: 160px;
}

.link-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
	border-color: rgba(138, 76, 224, 0.3);
	text-decoration: none;
	color: inherit;
}

.link-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 12px;
	border: 2px solid rgba(138, 76, 224, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(138, 76, 224, 0.1), rgba(74, 110, 224, 0.1));
}

.link-avatar1 {
	width:40px;
	height: 40px;
	border-radius: 50%;
		overflow:hidden;
	border: 2px solid rgba(138, 76, 224, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(138, 76, 224, 0.1), rgba(74, 110, 224, 0.1));
}

.link-avatar i {
	font-size: 1.8rem;
	color: #8a4ce0;
}

.link-name {
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	text-align: center;
	margin-bottom: 5px;
}

.link-name1 {
	font-size: 10px;
	font-weight: 600;
	color: #333;
	text-align: center;
	margin-bottom: 1px;
}

.link-type {
	font-size: 0.75rem;
	color: #666;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.05);
}

.link-type.resource {
	background: rgba(74, 110, 224, 0.1);
	color: #4a6ee0;
}

.link-type.patch {
	background: rgba(224, 76, 177, 0.1);
	color: #e04cb1;
}

/* 修改标题区域，防止数字与标题重叠 */
.section-title-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 30px 0 20px;
	position: relative;
}

.section-title {
	font-size: 1.6rem;
	color: #4a6ee0;
	position: relative;
	padding-bottom: 8px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #4a6ee0, transparent);
}

.section-title.patch-title {
	color: #8a4ce0;
}

.section-title.patch-title::after {
	background: linear-gradient(90deg, #8a4ce0, transparent);
}

.counter {
	width: 28px;
	height: 28px;
	background: #4a6ee0;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 0.9rem;
	margin-left: 10px;
}

.patch-counter {
	background: #8a4ce0;
}

footer {
	text-align: center;
	margin-top: 40px;
	padding: 20px;
	color: #888;
	font-size: 0.85rem;
}

/* 新增样式：使用说明按钮 */
.help-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #8a4ce0;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transition: all 0.3s;
	z-index: 100;
}

.help-btn:hover {
	background: #7a3cd0;
	transform: scale(1.1);
}

/* 新增样式：GitHub按钮 */
.github-btn {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #333;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transition: all 0.3s;
	z-index: 100;
	text-decoration: none;
}

.github-btn:hover {
	background: #444;
	transform: scale(1.1);
}

/* 新增样式：使用说明模态框 */
.help-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.help-modal.active {
	display: flex;
}

.modal-content {
	background: white;
	border-radius: 10px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

.modal-header {
	padding: 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
	color: #4a6ee0;
}

.close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
}

.close-btn:hover {
	color: #333;
}

.modal-body {
	padding: 20px;
}

.instruction-item {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
}

.instruction-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.instruction-item h4 {
	margin-bottom: 8px;
	color: #8a4ce0;
	display: flex;
	align-items: center;
}

.instruction-item h4 i {
	margin-right: 8px;
}

.instruction-item p {
	margin: 0;
	color: #666;
	font-size: 0.9rem;
}

/* 新增样式：返回顶部按钮 */
.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #4a6ee0;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(74, 110, 224, 0.3);
	transition: all 0.3s;
	opacity: 0;
	visibility: hidden;
	z-index: 99;
}

.back-to-top.active {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: #3a5ed0;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(74, 110, 224, 0.4);
}

@media (max-width: 768px) {
	header h1 {
		font-size: 1.8rem;
	}
	
	.links-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 12px;
	}
	
	.avatar-item {
		width: 70px;
		height: 70px;
	}
	
	.avatar-row.bottom {
		margin-left: -60px;
	}
	
	.jump-buttons {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
	
	.jump-btn {
		width: 200px;
		justify-content: center;
	}
	
	.link-card {
		height: 150px;
		padding: 15px 8px;
	}
	
	.link-avatar {
		width: 50px;
		height: 50px;
	}
	
	.link-name {
		font-size: 0.9rem;
	}
	
	.help-btn, .github-btn {
		top: 10px;
		width: 35px;
		height: 35px;
	}
	
	.github-btn {
		left: 10px;
	}
	
	.help-btn {
		right: 10px;
	}
	
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
	}
}

@media (max-width: 480px) {
	.links-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	
	.link-card {
		height: 140px;
		padding: 12px 5px;
	}
	
	.avatar-scroll-container {
		height: 140px;
	}
	
	.avatar-item {
		width: 60px;
		height: 60px;
		margin: 0 8px;
	}
	
	.avatar-row.bottom {
		margin-left: -40px;
	}
}