/* NBBJ Cookie Consent — 样式对齐 nbbj.com（CookieYes 黑底白字 + 描边按钮） */
.nbbj-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}
.nbbj-cc[hidden] { display: none !important; }

.nbbj-cc__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 16px 40px;
	display: flex;
	align-items: center;
	gap: 40px;
}
.nbbj-cc__copy { flex: 0 1 795px; min-width: 0; }
.nbbj-cc__copy h2 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.33;
	font-weight: 700;
	letter-spacing: 0;
	color: #fff;
}
.nbbj-cc .nbbj-cc__text { font-size: 14px; color: #fff; }
.nbbj-cc .nbbj-cc__text p { margin: 0; }
.nbbj-cc .nbbj-cc__link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.nbbj-cc__actions {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}
.nbbj-cc__btn {
	appearance: none;
	background: transparent;
	border: 1px solid #fff;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 10px 32px;
	min-width: 157px;
	min-height: 38px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.nbbj-cc__btn:hover { background: #fff; color: #000; }
.nbbj-cc__btn--solid,
.nbbj-cc__btn--ghost { background: transparent; color: #fff; }
.nbbj-cc__btn--solid:hover,
.nbbj-cc__btn--ghost:hover { background: #fff; color: #000; }
.nbbj-cc__btn[hidden] { display: none !important; }

/* 设置模式：分类占整行，操作按钮挪到底部右对齐 */
.nbbj-cc.is-settings .nbbj-cc__inner { flex-wrap: wrap; }
.nbbj-cc.is-settings .nbbj-cc__cats { flex: 1 0 100%; order: 4; }
.nbbj-cc.is-settings .nbbj-cc__actions { flex: 1 0 100%; order: 5; justify-content: flex-end; }

/* 分类面板 */
.nbbj-cc__cats {
	margin-top: 4px;
	border-top: 1px solid rgba(255, 255, 255, .25);
	padding-top: 16px;
	display: grid;
	gap: 14px;
}
.nbbj-cc__cats[hidden] { display: none !important; }
.nbbj-cc__cat { display: block; }
.nbbj-cc__cat-head { display: flex; align-items: center; gap: 8px; }
.nbbj-cc__cat-head input { margin: 0; accent-color: #fff; }
.nbbj-cc__cat-head strong { font-weight: 700; color: #fff; }
.nbbj-cc__cat-head em {
	font-style: normal;
	font-size: 12px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .6);
	padding: 1px 6px;
}
.nbbj-cc__cat-desc { display: block; margin: 6px 0 0 24px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.nbbj-cc__cat-desc code { font-size: 12px; color: #fff; }

/* 页脚 / 短代码入口 */
.nbbj-cc__reopen-wrap { text-align: center; padding: 12px 0; }
.nbbj-cc__reopen {
	appearance: none; background: none; border: 0; padding: 0;
	font: inherit; font-size: 13px; color: #555;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.nbbj-cc__reopen:hover { color: #000; }

@media (max-width: 900px) {
	.nbbj-cc { font-size: 13px; }
	.nbbj-cc__inner { flex-direction: column; align-items: stretch; padding: 14px 16px 12px; gap: 12px; }
	.nbbj-cc__copy { flex: 0 0 auto; }   /* 竖向排版时 flex-basis 会变成高度，必须归零 */
	.nbbj-cc__actions { flex: 0 0 auto; }
	.nbbj-cc__copy h2 { font-size: 16px; margin-bottom: 5px; }
	.nbbj-cc .nbbj-cc__text { font-size: 13px; line-height: 1.45; }
	.nbbj-cc__actions { width: 100%; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
	.nbbj-cc__btn { flex: 1 1 auto; padding: 10px 12px; text-align: center; font-size: 13px; }
}