@charset "utf-8";

/* ===== 模板选择页面左右布局 ===== */

.temp_main {
	display: flex;
	gap: 20px;
	background-color: #F9FAFB;

	margin: 0 auto;
	padding: 20px;
}

/* 左侧筛选栏 */
.temp_sidebar {
	width: 220px;
	flex-shrink: 0;
	background: #fff;
	border-radius: 4px;
	padding: 20px;
}

.filter_section {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.filter_section h4 {
	font-size: 0.95em;
	color: #333;
	margin-bottom: 12px;
	font-weight: 600;
}

/* 行业筛选 */
.filter_industry {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.filter_industry .industry {
	padding: 6px 0;
	text-align: center;
	border: 1px solid #ddd;
	font-size: 0.8em;
	cursor: pointer;
	transition: all 0.2s;
}

.filter_industry .industry.active,
.filter_industry .industry:hover {
	background: #36CFCE;
	color: #fff;
	border-color: #36CFCE;
}

.more_link {
	display: block;
	text-align: center;
	margin-top: 12px;
	color: #999;
	font-size: 0.8em;
	text-decoration: none;
}

.more_link:hover {
	color: #36CFCE;
}

/* 搜索框 */
.filter_search {
	display: flex;
	margin-bottom: 20px;
}

.filter_search input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-right: none;
	font-size: 0.85em;
}

.filter_search button {
	padding: 8px 12px;
	background: #36CFCE;
	color: #fff;
	border: none;
	cursor: pointer;
}

.filter_search button:hover {
	background: #2BB5B4;
}


/* 右侧模板展示区 */
.temp_content {
	flex: 1;
	background: #fff;
	padding: 20px;
	border-radius: 4px;
}

/* 顶部标题行 - 标题、统计、搜索一行显示 */
.temp_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	padding-top: 10px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.temp_header .flag {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	white-space: nowrap;
	
}

.temp_header .flag::before,
.temp_header .flag::after {
	display: none;
}
.temp_header .flag span {
	color: #36CFCE;
	font-size: 0.65em;
	margin-left: 16px;
}


.temp_header .filter_search {
	margin: 0;
	flex-shrink: 0;
}

/* 手机端断行各自一行 */
@media screen and (max-width: 900px) {
	.temp_header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.temp_header .flag,
	.temp_header .temp_count,
	.temp_header .filter_search {
		width: 100%;
		white-space: normal;
	}
	
	.temp_header .filter_search {
		margin-top: 5px;
	}
}

/* 模板网格 */
.temp_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	/* max-height: 520px; */
	overflow: hidden;
}

.temp_item {
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
}

.temp_item:hover {
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.temp_img {
	position: relative;
	padding-bottom: 75%;
	overflow: hidden;
}

.temp_img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s;
}

.temp_item:hover .temp_img img {
	transform: scale(1.05);
}

.temp_info {
	padding: 12px;
}

.temp_meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.designer {
	font-size: 1.2em;
	color: #666;
	transition: color 0.3s ease;
}

.temp_item:hover .designer {
	color: #36CFCE;
}


.temp_no,
.temp_ver {
	font-size: 0.8em;
	color: #999;
	margin-bottom: 4px;
}

/* 响应式适配 */
@media screen and (max-width: 1200px) {
	.temp_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 900px) {
	.temp_main {
		flex-direction: column;
	}
	
	.temp_sidebar {
		width: 100%;
	}
	
	.filter_industry {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.temp_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 600px) {
	.temp_grid {
		grid-template-columns: 1fr;
	}
	
	.filter_industry {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ===== 分页导航 ===== */
.page {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* PC端页码容器样式 */
.page-numbers {
	display: flex;
	gap: 8px;
}

.page a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #ddd;
	color: #666;
	text-decoration: none;
	font-size: 0.9em;
	transition: all 0.2s;
	border-radius: 4px;
}

.page a:hover {
	border-color: #36CFCE;
	color: #36CFCE;
}

.page a.active {
	background: #36CFCE;
	color: #fff;
	border-color: #36CFCE;
}

/* 手机端分页滑动样式 */
@media screen and (max-width: 768px) {
	.page {
		position: relative;
		overflow: hidden;
		touch-action: pan-x;
		user-select: none;
		-webkit-user-select: none;
	}
	
	.page::before,
	.page::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		width: 40px;
		pointer-events: none;
		z-index: 1;
	}
	
	.page::before {
		left: 0;
		background: linear-gradient(to right, #fff, transparent);
	}
	
	.page::after {
		right: 0;
		background: linear-gradient(to left, #fff, transparent);
	}
	
	.page a {
		flex-shrink: 0;
	}
	
	/* 滑动提示 */
	.page.swipeable {
		cursor: grab;
	}
	
	.page.swipeable:active {
		cursor: grabbing;
	}
	
	/* 页码滑动容器 */
	.page-numbers {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 0 30px;
	}
	
	.page-numbers::-webkit-scrollbar {
		display: none;
	}
}

/* 模板详情页图片 */
.info_main {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;

}

/* 页面加载渐变进入动效 - 标题和图片 */
.fade-in-section h2,
.fade-in-section .info_main {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.6s ease forwards;
}

.fade-in-section h2 {
	animation-delay: 0.1s;
}

.fade-in-section .info_main {
	animation-delay: 0.3s;
}

/* 按钮区域滚动触发动效 */
.fade-in-section .form_buttons.blur {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease;
}

.fade-in-section .form_buttons.blurstyle {
	opacity: 1;
	transform: translateY(0);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.info_main .temp_wid {
	max-width: 1200px;
	width: 100%;
}

.info_main .temp_wid img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}


