/**
 * package_table 组件样式
 *
 * 版本配置表格：包含区块头部、配置包摘要、图例、表格、注释和"查看更多"按钮。
 * 仅作用于 .rfzj_package_section / .rfzj_package_table 命名空间，避免影响历史样式。
 */

/* ===== 区块容器 ===== */
.rfzj_package_section {
	display: block;
	width: 100%;
	background: #fff;
}

/* ===== 区块头部 ===== */
.rfzj_package_section__header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.rfzj_package_section__title {
	align-items: center;
	color: #111827;
	display: flex;
	font-size: 18px;
	font-weight: 700;
	gap: 8px;
	margin: 0;
}

.rfzj_package_section__icon {
	height: 28px;
	width: 28px;
	object-fit: contain;
}

.rfzj_package_section__link {
	align-items: center;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #4b5563;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 4px;
	padding: 6px 14px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.rfzj_package_section__link:hover,
.rfzj_package_section__link:focus {
	background: #fff1f2;
	border-color: #fecaca;
	color: #d1191a;
	text-decoration: none;
}

.rfzj_package_section__link svg {
	height: 14px;
	width: 14px;
}

/* ===== 配置包摘要 ===== */
.rfzj_package_section__summary {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.7;
	margin-bottom: 14px;
	padding: 10px 14px;
}

.rfzj_package_section__summary strong {
	color: #d1191a;
	font-weight: 700;
}

/* ===== 表格容器 ===== */
.rfzj_package_table {
	display: block;
	width: 100%;
	background: #fff;
}

/* ===== 图例 ===== */
.rfzj_package_table__legend {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 10px 12px;
	font-size: 12px;
	color: #6b7280;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.rfzj_package_table__legend-item {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

.rfzj_package_table__legend-item i {
	font-size: 11px;
}

.rfzj_package_table__legend-item--standard i {
	color: #10b981;
}

.rfzj_package_table__legend-item--partial i {
	color: #f59e0b;
}

.rfzj_package_table__legend-item--optional i {
	color: #9ca3af;
}

.rfzj_package_table__legend-item--none span {
	color: #9ca3af;
	font-weight: 700;
}

/* ===== 视口：折叠状态下限制最大高度，始终允许横向滚动 ===== */
.rfzj_package_table__viewport {
	background-color: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

/* ===== 滚动内容容器 ===== */
.rfzj_package_table__scroll {
	min-width: 100%;
}

/* ===== 表格本身 ===== */
.rfzj_package_table__table {
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	margin: 0;
	width: 100%;
}

/* ===== 表头 ===== */
.rfzj_package_table__table thead {
	position: sticky;
	top: 0;
	z-index: 2;
}

.rfzj_package_table__table thead tr {
	background-color: #f1f5f9;
}

.rfzj_package_table__th {
	border-bottom: 2px solid #cbd5e1;
	color: #1e293b;
	font-size: 13px;
	font-weight: 700;
	padding: 12px 10px;
	text-align: center;
	white-space: nowrap;
}

.rfzj_package_table__th--name {
	text-align: left;
	width: 200px;
	min-width: 160px;
}

.rfzj_package_table__th--package {
	min-width: 100px;
	max-width: 160px;
}

/* 表头链接 */
.rfzj_package_table__th-link {
	border-bottom: 2px solid #2563eb;
	color: #2563eb;
	display: inline-block;
	max-width: 140px;
	overflow: hidden;
	padding-bottom: 1px;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rfzj_package_table__th-link:hover,
.rfzj_package_table__th-link:focus {
	color: #1d4ed8;
	border-bottom-color: #1d4ed8;
	text-decoration: none;
}

/* ===== 表体行 ===== */
.rfzj_package_table__table tbody > tr {
	transition: background-color .15s ease;
}

.rfzj_package_table__table tbody > tr:nth-of-type(even) {
	background-color: #f9fafb;
}

.rfzj_package_table__table tbody > tr:nth-of-type(odd) {
	background-color: #fff;
}

.rfzj_package_table__table tbody > tr:hover {
	background-color: #eff6ff;
}

/* 模块组行：加粗强调 */
.rfzj_package_table__row--group {
	border-top: 2px solid #e2e8f0;
}

.rfzj_package_table__row--group .rfzj_package_table__td--name {
	font-weight: 700;
}

/* 子模块行：缩进 */
.rfzj_package_table__row--submodule .rfzj_package_table__td--name {
	padding-left: 24px;
}

/* ===== 单元格 ===== */
.rfzj_package_table__td {
	border-bottom: 1px solid #e5e7eb;
	color: #374151;
	font-size: 13px;
	padding: 10px;
	vertical-align: middle;
}

/* 首列：功能模块名称 */
.rfzj_package_table__td--name {
	color: #1f2937;
	text-align: left;
}

.rfzj_package_table__module-link {
	color: #2563eb;
	text-decoration: none;
}

.rfzj_package_table__module-link:hover,
.rfzj_package_table__module-link:focus {
	color: #1d4ed8;
	text-decoration: underline;
}

.rfzj_package_table__module-link--sub {
	font-weight: 400;
}

.rfzj_package_table__module-link--sub i {
	color: #9ca3af;
	font-size: 11px;
	margin-right: 2px;
}

/* 配置单元格：居中 */
.rfzj_package_table__td--config {
	text-align: center;
}

.rfzj_package_table__td--config > div {
	align-items: center;
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	justify-content: center;
}

.rfzj_package_table__td--config i {
	font-size: 14px;
}

.rfzj_package_table__remark {
	color: #9ca3af;
	display: block;
	font-size: 11px;
	line-height: 1.4;
}

/* 配置类型颜色 */
.rfzj_package_table__td--standard i {
	color: #10b981;
}

.rfzj_package_table__td--partial i {
	color: #f59e0b;
}

.rfzj_package_table__td--optional i {
	color: #9ca3af;
}

.rfzj_package_table__td--none span {
	color: #d1d5db;
	font-size: 15px;
	font-weight: 700;
}

/* 备注型单元格 */
.rfzj_package_table__td--remark {
	color: #6b7280;
	font-size: 12px;
	text-align: center;
}

/* ===== 首列吸顶（横向滚动时保持功能模块列可见） ===== */
.rfzj_package_table__table thead tr > th:first-child,
.rfzj_package_table__table tbody tr > td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	box-shadow: 2px 0 4px rgba(0, 0, 0, .04);
}

.rfzj_package_table__table thead tr > th:first-child {
	background-color: #f1f5f9;
	z-index: 3;
}

.rfzj_package_table__table tbody > tr:nth-of-type(even) > td:first-child {
	background-color: #f9fafb;
}

.rfzj_package_table__table tbody > tr:nth-of-type(odd) > td:first-child {
	background-color: #fff;
}

.rfzj_package_table__table tbody > tr:hover > td:first-child {
	background-color: #eff6ff;
}

/* ===== 注释 ===== */
.rfzj_package_table__note {
	color: #9ca3af;
	font-size: 12px;
	line-height: 1.6;
	margin: 10px 0 0;
	padding: 0 4px;
}

/* ===== "查看更多"按钮 ===== */
.rfzj_package_table__more {
	align-items: center;
	border-radius: 8px;
	color: #1366ec;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	line-height: 40px;
	margin: 12px auto 0;
	min-height: 40px;
	padding: 0 16px;
	text-align: center;
	text-decoration: none;
	background: rgba(48, 114, 246, .06);
	transition: background .2s ease, color .2s ease;
	user-select: none;
	-webkit-user-select: none;
}

.rfzj_package_table__more:hover,
.rfzj_package_table__more:focus {
	background: rgba(209, 25, 26, .08);
	color: #d1191a;
	text-decoration: none;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
	.rfzj_package_section__header {
		margin-bottom: 10px;
	}

	.rfzj_package_section__title {
		font-size: 16px;
	}

	.rfzj_package_section__icon {
		height: 24px;
		width: 24px;
	}

	.rfzj_package_section__link {
		font-size: 12px;
		padding: 5px 10px;
	}

	.rfzj_package_section__summary {
		font-size: 12px;
		padding: 8px 10px;
	}

	.rfzj_package_table__legend {
		font-size: 11px;
		gap: 4px 10px;
		padding: 8px 10px;
	}

	.rfzj_package_table__th {
		font-size: 12px;
		padding: 10px 6px;
	}

	.rfzj_package_table__th--name {
		width: 140px;
		min-width: 120px;
	}

	.rfzj_package_table__th--package {
		min-width: 80px;
	}

	.rfzj_package_table__td {
		font-size: 12px;
		padding: 8px 6px;
	}

	.rfzj_package_table__row--submodule .rfzj_package_table__td--name {
		padding-left: 18px;
	}

	.rfzj_package_table__remark {
		font-size: 10px;
	}

	.rfzj_package_table__more {
		min-height: 44px;
		line-height: 44px;
	}
}

@media (max-width: 480px) {
	.rfzj_package_table__th--name {
		width: 110px;
		min-width: 100px;
	}

	.rfzj_package_table__th--package {
		min-width: 70px;
	}

	.rfzj_package_table__td {
		padding: 8px 4px;
	}

	.rfzj_package_table__td--config i {
		font-size: 12px;
	}
}
