/* 首页专属样式 */
/* 注意：全局重置、.btn、.section等基础样式已移至public.css */

/* 页面特有的按钮变体 */
.btn-secondary {
	margin-left: 10px;
	background-color: var(--secondary-color);
}

.btn-secondary:hover {
	background-color: #218838;
}

.btn-outline {
	background-color: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: white;
}

/* section-title的p元素样式 */
.section-title p {
	color: var(--gray-color);
	max-width: 700px;
	margin: 0 auto;
	font-size: 1.1rem;
}

/* Banner区域 */
.banner {
	height: 100vh;
	min-height: 700px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../img/banner/home-02.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	color: white;
	text-align: left;
	position: relative;
	background-repeat: no-repeat;
}

.banner-content {
	margin-top: 50px;
	max-width: 650px;
}

.banner h1 {
	font-size: 3.5rem;
	margin-bottom: 20px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	line-height: 1.8;
}

/* 产品类别 */
.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.product-card {
	background-color: white;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--box-shadow);
	transition: var(--transition);
	position: relative;
	padding-bottom: 50px;
}

.product-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .btn {
	padding: 8px 30px;
	position: absolute;
	bottom: 12px;
}

.product-card-m {
	display: none;
}

.product-img {
	display: flex;
	height: 280px;
	width: 100%;
	overflow: hidden;
	justify-content: center;
	align-items: center;
}
.product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.product-card:hover .product-img img {
	transform: scale(1.05);
}

.product-content {
	padding: 10px 20px;
}

.product-content h3 {
	font-size: 1.4rem;
	margin-bottom: 6px;
	color: var(--dark-color);
}

.product-content p {
	color: var(--gray-color);
	margin-bottom: 5px;
}

/* 优势展示 */
.advantages {
	background-color: var(--light-gray);
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.advantage-card {
	text-align: center;
	padding: 30px 20px;
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: var(--transition);
}

.advantage-card:hover {
	transform: translateY(-5px);
}

.advantage-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 30px;
}

/* 核心实力 */
.strengths-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	align-items: center;
}

.strength-left, .strength-right {
	width: 100%;
}

.strength-img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	overflow: hidden;
}

.strength-item {
	margin-bottom: 25px;
	display: flex;
}

.strength-icon {
	font-size: 1.8rem;
	color: var(--primary-color);
	margin-right: 20px;
	flex-shrink: 0;
}

/* 技术参数深度解析 */
.tech-specs {
	background-color: white;
}

.specs-tabs {
	background-color: white;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--box-shadow);
}

.tab-buttons {
	display: flex;
	background-color: var(--light-gray);
	border-bottom: 1px solid #ddd;
}

.tab-btn {
	flex: 1;
	padding: 18px 20px;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	color: var(--dark-color);
	cursor: pointer;
	transition: var(--transition);
	text-align: center;
}

.tab-btn:hover {
	background-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
	background-color: white;
	color: var(--primary-color);
	border-bottom: 3px solid var(--primary-color);
}

.tab-content {
	padding: 30px;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

.specs-table {
	overflow-x: auto;
}

.specs-table table {
	width: 100%;
	border-collapse: collapse;
}

.specs-table th {
	background-color: var(--light-gray);
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: var(--dark-color);
	border-bottom: 2px solid #ddd;
}

.specs-table td {
	padding: 15px;
	border-bottom: 1px solid #eee;
	color: var(--dark-color);
}

.specs-table tr:hover {
	background-color: #f9f9f9;
}

.specs-table tr:nth-child(even) {
	background-color: #fcfcfc;
}

/* 动态与知识库 */
.knowledge-base {
	background-color: white;
}

.knowledge-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.knowledge-item {
	background-color: #f9fafb;
	border-radius: var(--border-radius);
	padding: 25px;
	transition: var(--transition);
	border: 1px solid #eee;
}

.knowledge-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--box-shadow);
}

.knowledge-category {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 15px;
}

.knowledge-item h3 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	line-height: 1.5;
}

.knowledge-item h3 a {
	color: var(--dark-color);
	transition: var(--transition);
}

.knowledge-item h3 a:hover {
	color: var(--primary-color);
}

.knowledge-item p {
	color: var(--gray-color);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 20px;
}

.knowledge-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	color: var(--gray-color);
}

.knowledge-meta i {
	margin-right: 5px;
}

.read-more {
	color: var(--primary-color);
	font-weight: 500;
	text-decoration: none;
}

.read-more:hover {
	text-decoration: underline;
}


/* 响应式设计 */
@media (max-width: 1100px) {
	.knowledge-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.strength-item {
		margin-bottom: 20px;
	}
	.strength-item h3 {
		margin-bottom: 0.3rem;
	}
}

@media (max-width: 992px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.advantages-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.strengths-grid {
		grid-template-columns: 1fr;
	}
	.banner {
		height: 70vh;
	}
	
	.banner h1 {
		font-size: 2.8rem;
	}
	
	.product-card-pc {
		display: none;
	}
	
	.product-card-m {
		display: block;
	}
	
	.knowledge-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 970px) {
	.certificate-img {
		height: 160px;
	}
	
	.certificate-item h4, 
	.certificate-item p {
		font-size: 12px;
	}
}

@media (max-width: 770px) {
	.certificate-item {
		flex-basis: calc(50% - 15px);
	}
	
	.certificate-img {
		height: 180px;
	}
	
	.certificate-item h4, 
	.certificate-item p {
		font-size: 15px;
	}
	
	.knowledge-grid {
		grid-template-columns: 1fr;
	}
	
	.tab-buttons {
		flex-direction: column;
	}
	
	.tab-btn {
		border-bottom: 1px solid #ddd;
	}
	
	.tab-btn.active {
		border-bottom: 3px solid var(--primary-color);
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	
	.section-title h2 {
		font-size: 2rem;
	}
	
	.banner {
		min-height: 600px;
	}
	
	.banner h1 {
		font-size: 2.2rem;
	}
	
	.banner p {
		font-size: 1rem;
	}
}

@media (max-width: 576px) {
	.products-grid {
		grid-template-columns: 1fr;
	}
	
	.advantages-grid {
		grid-template-columns: 1fr;
	}
	
	.banner h1 {
		font-size: 2.2rem;
	}
	
	.banner-content {
		text-align: center;
	}
}