/* 尼斯分类扩展 — 页面样式（与商标分类表界面一致） */
.nc-page {
	margin: 0;
	font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
	font-size: 14px;
	color: #222;
	background: #fff;
}

/* 顶栏：返回首页 + 标题，居中、舒适行高 */
.nc-site-header {
	background: linear-gradient(180deg, #fffaf5 0%, #ffffff 45%, #f9f9f9 100%);
	border-bottom: 1px solid #f0e4d8;
	box-shadow: 0 6px 18px rgba(255, 102, 0, 0.07);
	box-sizing: border-box;
}

.nc-site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 28px;
	box-sizing: border-box;
	text-align: center;
}

.nc-site-center {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: left;
	gap: 16px;
	line-height: 1.65;
}

.nc-site-title {
	margin: 0;
	max-width: 36em;
	font-size: 22px;
	font-weight: 700;
	color: #2a2a2a;
	letter-spacing: 0.12em;
	line-height: 1.55;
	text-wrap: balance;
}

.nc-site-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 26px;
	border-radius: 999px;
	background: linear-gradient(180deg, peru 0%, #c1550d 100%);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	border: 1px solid peru;
	box-shadow: 0 2px 8px rgba(255, 102, 0, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nc-site-home:hover {
	background: linear-gradient(180deg, #ff7722 0%, #e85a00 100%);
	color: #fff !important;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(255, 102, 0, 0.38);
	transform: translateY(-1px);
}

.nc-site-home:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(255, 102, 0, 0.25);
}

@media (max-width: 600px) {
	.nc-site-header-inner {
		padding: 20px 14px 22px;
	}

	.nc-site-center {
		gap: 12px;
	}

	.nc-site-title {
		font-size: 18px;
		letter-spacing: 0.08em;
		line-height: 1.6;
	}

	.nc-site-home {
		min-height: 38px;
		padding: 0 22px;
		font-size: 14px;
	}
}

/* 全站搜索（与 /e/search 对接），位于群组+表格区域上一行 */
.nc-search-section {
	margin: 14px 0 16px;
	padding: 16px 14px 18px;
	background: #eceef1;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.nc-search-section .search {
	clear: both;
}

.nc-search-section .sh_form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #334;
	text-align: center;
	line-height: 1.5;
}

.nc-search-section .sh_form input[name="keyboard"] {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 420px;
	height: 40px;
	line-height: 40px;
	padding: 0 12px;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
	box-sizing: border-box;
}

.nc-search-section .sh_form select {
	height: 40px;
	line-height: 38px;
	padding: 0 8px;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
	color: #333;
	box-sizing: border-box;
}

.nc-search-section .sh_form button[type="submit"] {
	height: 40px;
	line-height: 38px;
	padding: 0 18px;
	margin: 0;
	border: 1px solid peru;
	border-radius: 3px;
	background: peru;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-sizing: border-box;
}

.nc-search-section .sh_form button[type="submit"]:hover {
	background: #e65c00;
	border-color: #e65c00;
}

.nc-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 12px 48px;
	box-sizing: border-box;
}

.nc-top {
	display: flex;
	align-items: flex-start;
	gap: 10px 16px;
}

.nc-top-label {
	flex: 0 0 auto;
	font-weight: 600;
	padding-top: 6px;
	white-space: nowrap;
}

.nc-class-grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	gap: 6px 8px;
}

.nc-class-cell {
	display: block;
	padding: 6px 8px;
	border: 1px solid #e5e5e5;
	border-radius: 2px;
	text-decoration: none;
	color: #222;
	background: #fff;
	line-height: 1.35;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nc-class-cell:hover {
	border-color: peru;
}

.nc-class-cell.is-active {
	background: peru;
	border-color: peru;
	color: #fff;
}

.nc-class-cell.is-active .nc-class-no,
.nc-class-cell.is-active .nc-class-name {
	color: #fff;
}

.nc-class-no {
	font-weight: 600;
}

.nc-divider {
	height: 3px;
	background: peru;
	margin: 14px 0 12px;
	border: 0;
}

.nc-detail-head {
	margin-bottom: 12px;
}

.nc-detail-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.nc-detail-sub {
	margin: 0 0 8px;
	color: #444;
	line-height: 1.5;
}

.nc-detail-notes {
	font-size: 13px;
	color: #555;
	line-height: 1.55;
}

.nc-detail-notes strong {
	color: #333;
}

.nc-detail-notes-inner {
	display: block;
	margin-top: 4px;
	white-space: pre-wrap;
	word-break: break-word;
}

.nc-main {
	display: flex;
	align-items: flex-start;
	gap: 0;
	border: 1px solid #ddd;
	min-height: 0;
}

.nc-side {
	width: 280px;
	flex-shrink: 0;
	border-right: 1px solid #ddd;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: min(88vh, 920px);
}

.nc-side-head {
	flex: 0 0 auto;
	padding: 10px 12px;
	background: #e8e8e8;
	font-weight: 600;
	color: #333;
	border-bottom: 1px solid #ddd;
	overflow: hidden;
}

.nc-side-count {
	float: right;
	font-weight: 400;
	font-size: 12px;
	color: #666;
}

.nc-group-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.nc-group-item {
	margin: 0;
	padding: 0;
}

.nc-group-link {
	display: block;
	padding: 8px 12px 8px 22px;
	color: #222;
	text-decoration: none;
	position: relative;
	line-height: 1.45;
	border-left: 3px solid transparent;
}

.nc-group-link:hover {
	background: #f0f0f0;
}

.nc-group-item.is-active .nc-group-link {
	color: peru;
	font-weight: 600;
	border-left-color: peru;
	background: #fff;
}

.nc-group-item.is-active .nc-group-link::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	margin-top: -5px;
	border-style: solid;
	border-width: 5px 0 5px 6px;
	border-color: transparent transparent transparent peru;
}

.nc-panel {
	flex: 1;
	min-width: 0;
	background: #fff;
	overflow: visible;
}

.nc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* 圆形复制按钮：固定于可视窗口，距视口底约 300px；横向与 .nc-wrap 右内边距对齐 */
.nc-page .nc-fab-slot {
	position: fixed;
	z-index: 500;
	bottom: 300px;
	left: auto;
	top: auto;
	right: max(12px, calc((100vw - min(1200px, 100vw)) / 2 + 12px));
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	pointer-events: none;
}

.nc-page .nc-fab-slot .nc-fab {
	pointer-events: auto;
}

@media (max-height: 520px) {
	.nc-page .nc-fab-slot {
		bottom: max(16px, calc(100vh - 90px));
	}
}

.nc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.nc-table thead th {
	background: Peru;
	color: #fff;
	font-weight: 600;
	padding: 10px 8px;
	text-align: left;
	border: 1px solid peru;
}

.nc-table tbody td {
	padding: 8px;
	border: 1px solid #ddd;
	vertical-align: top;
}

.nc-item-row {
	cursor: pointer;
}

.nc-item-row:hover {
	background: #fff9f4 !important;
}

.nc-col-title .nc-check {
	display: none;
	font-weight: 700;
	color: #19a15d;
	margin-left: 6px;
}

.nc-col-title.is-selected .nc-title-text {
	color: peru;
	font-weight: 600;
}

.nc-col-title.is-selected .nc-check {
	display: inline;
}

.nc-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.col-lscz { width: 88px; }
.col-code { width: 110px; }
.col-title { }
.col-note { width: 140px; }

.nc-page .nc-fab-slot .nc-fab,
.nc-fab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	min-height: 56px;
	padding: 0 8px;
	border-radius: 50%;
	border: 2px solid peru;
	background: #fff;
	color: peru;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	vertical-align: middle;
	text-align: center;
}

.nc-fab #ncFabText {
	display: block;
	max-width: 52px;
	word-break: keep-all;
}

.nc-fab:hover {
	background: #fff5f0;
}

@media (max-width: 900px) {
	.nc-class-grid {
		gap: 4px 5px;
	}

	.nc-class-cell {
		padding: 5px 4px;
		font-size: 12px;
	}

	.nc-main {
		flex-direction: column;
	}

	.nc-side {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #ddd;
	}
}

/* 已选小类弹窗 */
.nc-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.nc-modal.is-open {
	display: block;
}

.nc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.nc-modal-panel {
	position: relative;
	margin: 6vh auto 2vh;
	max-width: 760px;
	width: 92%;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	max-height: 82vh;
	display: flex;
	flex-direction: column;
	z-index: 1001;
}

.nc-modal-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
}

.nc-modal-head h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.nc-pick-modal-title-hint {
	font-size: 12px;
	font-weight: 600;
	color: #e65100;
	vertical-align: 0.05em;
	margin-left: 2px;
}

.nc-modal-close {
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 0 4px;
}

.nc-modal-close:hover {
	color: #333;
}

.nc-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px 16px 20px;
	-webkit-overflow-scrolling: touch;
}

.nc-modal-empty {
	margin: 12px 0;
	color: #666;
	text-align: center;
}

.nc-pick-block {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #ddd;
}

.nc-pick-block:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.nc-pick-block-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.nc-pick-classname {
	font-weight: 700;
	color: #222;
	flex: 1 1 auto;
	min-width: 200px;
}

.nc-pick-actions {
	white-space: nowrap;
}

.nc-pick-copy {
	color: #19a15d;
	font-weight: 600;
	text-decoration: none;
	margin-right: 14px;
}

.nc-pick-copy:hover {
	text-decoration: underline;
}

.nc-pick-clear {
	color: #e53935;
	font-weight: 600;
	text-decoration: none;
}

.nc-pick-clear:hover {
	text-decoration: underline;
}

.nc-pick-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nc-tag {
	display: inline-block;
	padding: 5px 10px;
	background: #1e6bd6;
	color: #fff;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

/* 删除确认（叠在已选商品弹窗之上） */
.nc-delete-modal {
	z-index: 1100;
}

.nc-delete-panel {
	max-width: 440px;
	width: 88%;
	margin: 12vh auto 2vh;
}

.nc-delete-body {
	padding-bottom: 20px;
}

.nc-delete-msg {
	margin: 8px 0 20px;
	font-size: 15px;
	color: #333;
	line-height: 1.55;
}

.nc-delete-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.nc-btn {
	display: inline-block;
	min-width: 88px;
	padding: 8px 18px;
	font-size: 14px;
	line-height: 1.3;
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
	box-sizing: border-box;
}

.nc-btn-cancel {
	background: #fff;
	color: #222;
	border: 1px solid #d9d9d9;
}

.nc-btn-cancel:hover {
	border-color: #ff8533;
	color: peru;
}

.nc-btn-danger {
	background: #f5222d;
	color: #fff;
	border: 1px solid #f5222d;
}

.nc-btn-danger:hover {
	background: #cf1322;
	border-color: #cf1322;
}

/* 复制成功等轻提示 */
.nc-toast {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translate(-50%, -8px);
	z-index: 1200;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 14px;
	border-radius: 6px;
	background: #f6ffed;
	border: 1px solid #b7eb8f;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.nc-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.nc-toast-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #52c41a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.nc-toast-text {
	font-size: 15px;
	font-weight: 500;
	color: #389e0d;
	white-space: nowrap;
}
