/* ========== 学员作品画廊 (Works Gallery) ========== */
.gt-wg {
	width: 100%;
}

.gt-wg-serif {
	font-family: 'Noto Serif SC', serif;
}

/* ---------- 筛选栏 ---------- */
.gt-wg-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 4rem;
}

@media (max-width: 767px) {
	.gt-wg-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 8px;
	}
	.gt-wg-filter::-webkit-scrollbar {
		display: none;
	}
}

.gt-wg-filter a {
	font-size: 14px;
	color: #6b7280;
	letter-spacing: 0.1em;
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
	transition: color 0.25s ease, border-color 0.25s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.gt-wg-filter a:hover {
	color: #000;
}

.gt-wg-filter a.is-active {
	color: #000;
	font-weight: 500;
	border-bottom-color: #000;
}

/* ---------- 网格 ---------- */
.gt-wg-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, 1fr);
}

.gt-wg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gt-wg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
	.gt-wg-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
	.gt-wg-grid.cols-3,
	.gt-wg-grid.cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.gt-wg-card:nth-child(even) {
		margin-top: 0 !important;
	}
}

/* ---------- 卡片 ---------- */
.gt-wg-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #f3f4f6;
	cursor: pointer;
	text-decoration: none;
}

.gt-wg-card--a {
	aspect-ratio: 4/5;
}

.gt-wg-card--b {
	aspect-ratio: 3/4;
}

.gt-wg .gt-wg-card .gt-wg-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	transition: transform 0.7s ease;
}

.gt-wg-card:hover .gt-wg-img {
	transform: scale(1.05);
}

/* ---------- 分类徽章 ---------- */
.gt-wg-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 10;
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #000;
	border: 1px solid rgba(0,0,0,0.1);
	font-size: 10px;
	padding: 4px 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ---------- 悬停遮罩 ---------- */
.gt-wg-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0,0,0,0.6);
	opacity: 0;
	transition: opacity 0.5s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.gt-wg-card:hover .gt-wg-overlay {
	opacity: 1;
}

.gt-wg-overlay-title {
	font-size: 1.25rem;
	color: #fff;
	letter-spacing: 0.2em;
	margin-bottom: 16px;
}

.gt-wg-overlay-author {
	font-size: 12px;
	color: #d1d5db;
	letter-spacing: 0.1em;
	margin: 0;
}

/* ---------- 筛选隐藏动画 ---------- */
.gt-wg-card.is-hidden {
	display: none;
}

/* ---------- 加载更多 ---------- */
.gt-wg-loadmore-wrap {
	margin-top: 80px;
	text-align: center;
}

.gt-wg-loadmore {
	display: inline-block;
	border: 1px solid #d1d5db;
	padding: 16px 48px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #4b5563;
	text-decoration: none;
	background: none;
	cursor: pointer;
	font-family: inherit;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.gt-wg-loadmore:hover {
	color: #000;
	border-color: #000;
}

.gt-wg-loadmore:disabled {
	cursor: wait;
	opacity: 0.6;
}
