/**
 * 5G工厂展示页面样式
 * factory5g.css
 */

/* 5G工厂内容区 */
.factory5g-content {
	padding: 30px 0;
}

/* 头部：Logo + 标题（对应你给的头部 DOM） */
.factory5g-header {
	display: flex;
	align-items: center;
	margin-bottom: 32px;
	gap: 24px;
}

.factory5g-logo {
	flex-shrink: 0;
}

.factory5g-logo-img {
	max-width: 180px;
	max-height: 70px;
	display: block;
	object-fit: contain;
}

.factory5g-title {
	flex: 1;
	display: flex;
	align-items: center;
}

.factory5g-title-text {
	margin: 0;
	font-size: 28px;
	font-weight: bold;
	color: #1a365d;
	letter-spacing: 2px;
	position: relative;
	padding-left: 16px;
}

.factory5g-title-text::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 24px;
	background: linear-gradient(to bottom, #2563eb, #1d4ed8);
	border-radius: 2px;
}

/* 主卡片区域：大 tabs + 细分 tabs + 分组列表（对齐参考图） */
.f5g-main-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 16px 20px 20px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* 顶级行业 tabs（横向大标签） */
.f5g-main-tabs {
	display: flex;
	gap: 4px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 8px;
	margin-bottom: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	/* 默认隐藏各浏览器的滚动条 */
	scrollbar-width: none;        /* Firefox */
	-ms-overflow-style: none;     /* IE/Edge 旧版 */
}

/* WebKit：默认隐藏横向滚动条 */
.f5g-main-tabs::-webkit-scrollbar {
	height: 4px;
	background: transparent;
}

.f5g-main-tabs::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 2px;
}

/* 悬停时才显示横向滚动条 */
.f5g-main-tabs:hover {
	scrollbar-width: thin;
}

.f5g-main-tabs:hover::-webkit-scrollbar-thumb {
	background: #cbd5e1;
}

.f5g-main-tab {
	border: none;
	background: transparent;
	padding: 10px 6px;
	border-radius: 6px;
	font-size: 14px;
	color: #64748b;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.f5g-main-tab.active {
	background: #1d4ed8;
	color: #ffffff;
	font-weight: 600;
    padding: 10px 6px;
}

/* 细分领域行：左侧文字 + 右侧小 tabs */
.f5g-sub-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0 10px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 12px;
}

.f5g-sub-label {
	font-size: 13px;
	color: #9ca3af;
}

.f5g-sub-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.f5g-sub-tab {
	border: none;
	background: transparent;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	color: #64748b;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.f5g-sub-tab:hover {
	background: #e5e7eb;
}

.f5g-sub-tab.active {
	background: #1d4ed8;
	color: #ffffff;
}

/* 分组卡片列表（每块一组：石化化工 / 钢铁 / …） */
.f5g-group-list {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.f5g-group-card {
	background: #ffffff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	padding: 12px 16px 10px;
}

.f5g-group-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.f5g-group-title-line {
	display: flex;
	align-items: center;
	gap: 8px;
}

.f5g-group-bar {
	width: 3px;
	height: 18px;
	border-radius: 999px;
	background: #2563eb;
}

.f5g-group-title {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.f5g-group-badge {
	font-size: 11px;
	color: #2563eb;
	background: #eff6ff;
	padding: 2px 8px;
	border-radius: 999px;
}

.f5g-group-more {
	font-size: 12px;
	color: #9ca3af;
	text-decoration: none;
}

.f5g-group-more:hover {
	color: #2563eb;
}

.f5g-group-card-body {
	/* 每行固定 3 个工厂，自动换行，并留出间距 */
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 32px;
	row-gap: 8px;
	font-size: 13px;
}

/* 最后一层工厂名称（只这一层可点击） */
.factory5g-card {
	display: block;
	border: none;
	background: transparent;
	padding: 0;
	min-height: auto;
	text-decoration: none;
	color: #4b5563;
}

.factory5g-card-title {
	font-size: 13px;
	font-weight: 400;
	/* 单行溢出省略号 */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.factory5g-card:hover .factory5g-card-title {
	color: #1d4ed8;
}

.factory5g-card-icon {
	display: none;
}

/* 分组色条可根据组类型加 class 扩展，这里先用统一色 */

/* 底部两个信息块（互动交流 + 痛点及需求） */
.f5g-bottom-row {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.f5g-bottom-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 16px 18px;
}

.f5g-bottom-title {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 8px;
}

.f5g-bottom-text {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 12px;
}

.f5g-bottom-btn {
	display: inline-block;
	font-size: 13px;
	color: #ffffff;
	background: #2563eb;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
}

.f5g-bottom-btn:hover {
	background: #1d4ed8;
	color: #ffffff;
	text-decoration: none;
}

.f5g-bottom-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	color: #6b7280;
}

.f5g-bottom-more-wrap {
	margin-top: 10px;
	text-align: right;
}

.f5g-bottom-more {
	font-size: 13px;
	color: #2563eb;
	text-decoration: none;
	cursor: pointer;
}

.f5g-bottom-more:hover {
	text-decoration: underline;
}

/* 自定义滚动条（对应 custom-scrollbar 类） */
.custom-scrollbar::-webkit-scrollbar {
	width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
	/* 默认隐藏颜色，悬停时再显示 */
	background: transparent;
	border-radius: 2px;
}

/* 鼠标移入可滚动区域时才显示滚动条颜色 */
.custom-scrollbar:hover::-webkit-scrollbar-thumb {
	background: #cbd5e1;
}

/* 响应式：窄屏下布局收紧 */
@media (max-width: 768px) {
	.factory5g-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.factory5g-title-text {
		font-size: 22px;
		padding-left: 14px;
	}

	.f5g-main-card {
		padding: 12px 12px 14px;
	}

	.f5g-main-tabs {
		flex-wrap: wrap;
	}

	.f5g-bottom-row {
		grid-template-columns: 1fr;
	}

	/* 移动端工厂列表改为单列，避免过挤 */
	.f5g-group-card-body {
		grid-template-columns: repeat(1, minmax(0, 1fr));
		column-gap: 12px;
	}
}
