/* 首页特有样式 */

/* 用户服务区 */
.user-service-section {
	background: #fff;
	padding: 20px 0;
	margin-bottom: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-panel {
	display: flex;
	gap: 20px;
}

.user-info {
	width: 200px;
	flex-shrink: 0;
	background: #f5f5f5;
	padding: 15px;
	border-radius: 8px;
}

.user-info img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-bottom: 10px;
}

.service-tabs {
	flex: 1;
	background: #f5f5f5;
	padding: 15px;
	border-radius: 8px;
}

.tab-head ul {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
}

.tab-head li {
	padding: 8px 20px;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
}

.tab-head li.active,
.tab-head li:hover {
	background: #1890ff;
	color: #fff;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.service-grid a {
	display: block;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 8px;
	text-align: center;
	transition: all 0.3s;
}

.service-grid a:hover {
	background: #1890ff;
	color: #fff;
	transform: translateY(-3px);
}

/* 市场区块 */
.market-section {
	background: #fff;
	padding: 30px;
	margin-bottom: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.market-block {
	margin-bottom: 30px;
}

.market-block:last-child {
	margin-bottom: 0;
}

.market-category {
	margin-bottom: 20px;
}

.market-category h3 {
	margin: 0 0 15px 0;
	font-size: 20px;
}

.market-category ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.market-category li {
	padding: 5px 15px;
	background: #f5f5f5;
	border-radius: 4px;
}

.market-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

/* 资讯区域 */
.news-section {
	background: #fff;
	padding: 30px;
	margin-bottom: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content {
	display: flex;
	gap: 20px;
}

.news-left {
	width: 300px;
	flex-shrink: 0;
}

.news-item-large {
	margin-bottom: 20px;
}

.news-item-large .news-img {
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 10px;
}

.news-item-large img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-item-large h3 {
	margin: 0;
	font-size: 16px;
}

.news-center {
	flex: 1;
}

.news-list ul li {
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.news-list ul li:last-child {
	border-bottom: none;
}

.news-right {
	width: 250px;
	flex-shrink: 0;
}

.side-item {
	margin-bottom: 15px;
}

.side-img {
	display: block;
	width: 100%;
	height: 120px;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 8px;
}

.side-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 品牌区块 */
.brand-block {
	margin-bottom: 30px;
}

.brand-block h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
}

.brand-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
}

.brand-item {
	text-align: center;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 8px;
	transition: all 0.3s;
}

.brand-item:hover {
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}

.brand-item img {
	max-width: 100%;
	height: auto;
	margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
	.user-panel {
		flex-direction: column;
	}

	.user-info {
		width: 100%;
	}

	.service-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.news-content {
		flex-direction: column;
	}

	.news-left,
	.news-right {
		width: 100%;
	}

	.market-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

