/* ====== 页面标题 ====== */
.page-header {
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: #fff;
	padding: 60px 0;
	text-align: center
}

.page-header h1 {
	font-size: 42px;
	margin-bottom: 15px
}

.page-header p {
	font-size: 18px;
	opacity: .9
}

/* ====== 布局 ====== */
.materials-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 30px;
	padding: 40px 0
}

/* ====== 左侧分类导航 ====== */
.category-nav {
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	position: sticky;
	top: 100px;
	height: fit-content
}

.nav-title {
	font-size: 18px;
	color: #2c3e50;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e74c3c;
	font-weight: bold
}

.category-list {
	list-style: none
}

.category-item {
	margin-bottom: 10px
}

.category-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	border-radius: 8px;
	cursor: pointer;
	transition: all .3s ease;
	font-weight: 500
}

.category-header:hover {
	background: #f8f9fa
}

.category-header.active {
	background: #e74c3c;
	color: #fff
}

.brand-list {
	display: none;
	list-style: none;
	padding-left: 20px;
	margin-top: 5px
}

.brand-list.show {
	display: block;
}

.brand-item {
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: all .3s ease;
	font-size: 14px;
	color: #666;
}

.brand-item:hover {
	background: #f0f0f0;
	color: #e74c3c
}

.brand-item.active {
	background: #f8f9fa;
	color: #e74c3c;
	font-weight: 500
}

/* ====== 右侧内容区 ====== */
.content-area {
	background: #fff;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	min-height: 600px
}

/* ====== 资讯卡片样式 ====== */
.news-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.news-item {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	border: 1px solid #eee;
}

.news-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	border-color: #e74c3c;
}

.news-img {
	width: 220px;
	height: 150px;
	flex-shrink: 0;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.news-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-body {
	flex: 1;
	padding: 20px 25px;
}

.news-title {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 10px;
	color: #2c3e50;
	line-height: 1.5;
}

.news-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.news-info {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 13px;
	color: #999;
}

.news-tag {
	background: #f0f0f0;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
}

/* ====== 分页 ====== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 30px 0
}

.page-btn {
	padding: 10px 15px;
	border: 1px solid #ddd;
	background: #fff;
	color: #666;
	border-radius: 6px;
	cursor: pointer;
	transition: all .3s ease;
	text-decoration: none;
	font-size: 14px
}

.page-btn:hover,
.page-btn.active {
	background: #e74c3c;
	color: #fff;
	border-color: #e74c3c
}


/* ====== 左侧分类导航 ====== */
.category-nav {
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	position: sticky;
	top: 100px;
	height: fit-content;
}

.nav-title {
	font-size: 18px;
	color: #2c3e50;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e74c3c;
	font-weight: bold
}

.category-list {
	list-style: none
}

.category-item {
	margin-bottom: 10px
}

.category-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	border-radius: 8px;
	cursor: pointer;
	transition: all .3s ease;
	font-weight: 500
}

.category-header:hover {
	background: #f8f9fa
}

.category-header.active {
	background: #e74c3c;
	color: #fff
}

.brand-list {
	display: none;
	list-style: none;
	padding-left: 20px;
	margin-top: 5px
}

.brand-list.show {
	display: block;
}

.brand-item {
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: all .3s ease;
	font-size: 14px;
	color: #666;
}

.brand-item:hover {
	background: #f0f0f0;
	color: #e74c3c
}

.brand-item.active {
	background: #f8f9fa;
	color: #e74c3c;
	font-weight: 500
}

/* ====== 右侧内容区 ====== */
.content-area {
	background: #fff;
	border-radius: 10px;
	padding: 40px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	min-height: 600px;
}

/* ====== 文章详情样式 ====== */
.article-header {
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
}

.article-title {
	font-size: 26px;
	line-height: 1.4;
	color: #2c3e50;
	margin-bottom: 15px;
	font-weight: 500;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	color: #999;
}

.article-tag {
	background: #fef0f0;
	color: #e74c3c;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
}

.article-cover {
	width: 100%;
	height: 400px;
	background: #f5f5f5;
	border-radius: 10px;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.article-cover img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.article-content {
	font-size: 16px;
	line-height: 1.9;
	color: #444;
}

.article-content p {
	margin-bottom: 20px;
}

.article-content h2 {
	font-size: 20px;
	margin: 30px 0 15px;
	color: #2c3e50;
	border-left: 4px solid #e74c3c;
	padding-left: 12px;
}

/* 相关文章 */
.related {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

.related-title {
	font-size: 18px;
	margin-bottom: 20px;
	color: #2c3e50;
	font-weight: 500;
}

.related-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.related-item {
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-left: 12px;
	position: relative;
}

.related-item:before {
	content: "";
	width: 4px;
	height: 4px;
	background: #e74c3c;
	border-radius: 50%;
	position: absolute;
	left: 0;
	top: 10px;
}