
/* 明确重置链接样式 */
a {
    text-decoration: none;
    color: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}


.intro-banner {
	margin-top: var(--nav-height);
	max-width: 100%;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* --- 页面标题图（REAL FACTORY PHOTOS） --- */
.page-title {
	margin: 20px 0 60px;
	text-align: center;
	line-height: 1;
}

.page-title img {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 auto;
}

/* --- 列表容器：一排三个卡片（仿 chanpin） --- */
.project-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

/* --- 单个项目卡片：上图下文 --- */
.project-item {
	background-color: #f5f5f5;
	padding: 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.project-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	background-color: #fff;
}

/* 图片区域 */
.img-box {
	width: 100%;
	height: 220px;
	margin-bottom: 20px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.img-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.5s;
}

.project-item:hover .img-box img {
	transform: scale(1.05);
	/* 悬停微放大 */
}

/* 标题与简介 */
.project-name {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin-bottom: 5px;
	width: 100%;
	box-sizing: border-box;
	/* 最多两行，超出省略，避免长标题撑乱排版 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.project-desc {
	font-size: 14px;
	color: #888;
	line-height: 1.5;
	margin-top: 5px;
	width: 100%;
	box-sizing: border-box;
	/* 最多两行 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}


/* --- 分页样式 --- */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style: none;
}

.pagination li {
	display: inline-block;
}

.pagination a {
	display: block;
	min-width: 40px;
	height: 40px;
	line-height: 38px;
	text-align: center;
	border: 1px solid #ddd;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s;
	background: #fff;
}

.pagination a:hover,
.pagination .active a {
	border-color: #d93025;
	color: #d93025;
	font-weight: bold;
}

.pagination .disabled a {
	border-color: #eee;
	color: #ccc;
	cursor: not-allowed;
	background: #f9f9f9;
}

/* --- 响应式适配 --- */
@media (max-width: 992px) {
	.project-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.page-title {
		margin-bottom: 30px;
	}

	.project-list {
		grid-template-columns: 1fr;
	}

	.img-box {
		height: 200px;
	}
}
