/* 标签页面样式 */
.tags-container {
	padding: 20px 0;
}

.tags-title {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	margin-bottom: 30px;
	text-align: center;
}

.tags-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px;
	margin-bottom: 40px;
}

.tag-item {
	background: #fff;
	border-radius: 8px;
	padding: 15px 12px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	cursor: pointer;
	border: 1px solid #f0f0f0;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.tag-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s;
}

.tag-item:hover::before {
	left: 100%;
}

.tag-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border-color: #1890ff;
	text-decoration: none;
}

.tag-name {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
	transition: color 0.3s ease;
	line-height: 1.3;
	text-align: center;
	width: 100%;
}

.tag-count {
	font-size: 12px;
	color: #666;
	background: #f5f5f5;
	padding: 2px 8px;
	border-radius: 12px;
	display: inline-block;
	transition: all 0.3s ease;
}

.tag-item:hover .tag-name {
	color: #1890ff;
}

.tag-item:hover .tag-count {
	background: #e6f7ff;
	color: #1890ff;
}

/* 点击效果 */
.tag-item.clicked {
	animation: tagClick 0.3s ease;
}

@keyframes tagClick {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(0.95);
	}
	100% {
		transform: scale(1);
	}
}

/* 悬停动画 */
.tag-item.hover-active {
	animation: tagHover 0.6s ease;
}

@keyframes tagHover {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
	100% {
		transform: translateY(-5px);
	}
}

.empty-tags {
	text-align: center;
	padding: 60px 0;
	color: #999;
}

.empty-tags img {
	width: 120px;
	height: 120px;
	margin-bottom: 20px;
	opacity: 0.6;
}

.empty-tags p {
	font-size: 16px;
	margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.tags-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.tags-grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: 12px;
	}
	
	.tag-item {
		padding: 12px 10px;
	}
	
	.tag-name {
		font-size: 13px;
	}
	
	.tags-title {
		font-size: 20px;
		margin-bottom: 20px;
	}
}

@media (max-width: 480px) {
	.tags-grid {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
		gap: 10px;
	}
	
	.tag-item {
		padding: 10px 8px;
	}
	
	.tag-name {
		font-size: 12px;
	}
	
	.tag-count {
		font-size: 11px;
		padding: 2px 6px;
	}
}

/* 标签颜色变体 */
.tag-item:nth-child(6n+1):hover {
	border-color: #ff4d4f;
}

.tag-item:nth-child(6n+1):hover .tag-name {
	color: #ff4d4f;
}

.tag-item:nth-child(6n+1):hover .tag-count {
	background: #fff2f0;
	color: #ff4d4f;
}

.tag-item:nth-child(6n+2):hover {
	border-color: #52c41a;
}

.tag-item:nth-child(6n+2):hover .tag-name {
	color: #52c41a;
}

.tag-item:nth-child(6n+2):hover .tag-count {
	background: #f6ffed;
	color: #52c41a;
}

.tag-item:nth-child(6n+3):hover {
	border-color: #faad14;
}

.tag-item:nth-child(6n+3):hover .tag-name {
	color: #faad14;
}

.tag-item:nth-child(6n+3):hover .tag-count {
	background: #fffbe6;
	color: #faad14;
}

.tag-item:nth-child(6n+4):hover {
	border-color: #722ed1;
}

.tag-item:nth-child(6n+4):hover .tag-name {
	color: #722ed1;
}

.tag-item:nth-child(6n+4):hover .tag-count {
	background: #f9f0ff;
	color: #722ed1;
}

.tag-item:nth-child(6n+5):hover {
	border-color: #13c2c2;
}

.tag-item:nth-child(6n+5):hover .tag-name {
	color: #13c2c2;
}

.tag-item:nth-child(6n+5):hover .tag-count {
	background: #e6fffb;
	color: #13c2c2;
}