/* AIHub Newsletter — 前台订阅框样式 */
.aihub-nl-box {
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 12px;
	padding: 22px 24px;
	max-width: 520px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.aihub-nl-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 6px;
	color: #1a1a1a;
}
.aihub-nl-desc {
	font-size: 14px;
	color: #666;
	margin-bottom: 14px;
	line-height: 1.6;
}
.aihub-nl-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.aihub-nl-email {
	flex: 1 1 200px;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid #d0d3d8;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	box-sizing: border-box;
}
.aihub-nl-email:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .12);
}
.aihub-nl-submit {
	padding: 10px 22px;
	background: #2271b1;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
}
.aihub-nl-submit:hover { background: #185a92; }
.aihub-nl-submit:disabled { opacity: .6; cursor: default; }
/* 蜜罐：彻底藏起来 */
.aihub-nl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.aihub-nl-msg {
	flex-basis: 100%;
	font-size: 13.5px;
	margin-top: 8px;
	min-height: 18px;
}
.aihub-nl-msg.ok { color: #1a7f37; }
.aihub-nl-msg.err { color: #d63638; }

/* 首页底部浮层 */
.aihub-nl-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	max-width: 360px;
	animation: aihub-nl-rise .3s ease;
}
.aihub-nl-float .aihub-nl-box {
	box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
}
.aihub-nl-float-x {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 1;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #aaa;
	cursor: pointer;
}
.aihub-nl-float-x:hover { color: #666; }
@keyframes aihub-nl-rise {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
/* 浮层退出动画 */
@keyframes aihub-nl-sink {
	from { transform: translateY(0); opacity: 1; }
	to { transform: translateY(24px); opacity: 0; }
}
.aihub-nl-float.aihub-nl-closing { animation: aihub-nl-sink .35s ease forwards; }
@media (max-width: 480px) {
	.aihub-nl-float { right: 10px; left: 10px; bottom: 10px; max-width: none; }
}

/* 首页顶部通栏（精致版） */
.aihub-nl-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9995;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 11px 48px 11px 20px;
	background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 18px rgba(15, 23, 42, .22);
	font-size: 14px;
	letter-spacing: .2px;
}
.aihub-nl-bar-text { font-weight: 600; opacity: .96; }
.aihub-nl-bar-form {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.aihub-nl-bar-form .aihub-nl-email {
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	font-size: 14px;
	min-width: 220px;
	background: rgba(255, 255, 255, .96);
	color: #1a1a1a;
	outline: none;
}
.aihub-nl-bar-form .aihub-nl-email:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.aihub-nl-bar-form .aihub-nl-submit {
	padding: 8px 20px;
	background: #fff;
	color: #1e40af;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: transform .12s, background .15s;
}
.aihub-nl-bar-form .aihub-nl-submit:hover { background: #eef2ff; transform: translateY(-1px); }
.aihub-nl-bar-form .aihub-nl-msg { color: #e8eeff; font-size: 13px; flex-basis: 100%; text-align: center; min-height: 0; }
.aihub-nl-bar-form .aihub-nl-msg.ok { color: #d7ffe2; }
.aihub-nl-bar-form .aihub-nl-msg.err { color: #ffe0e0; }
.aihub-nl-bar-x {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.aihub-nl-bar-x:hover { opacity: 1; }
@keyframes aihub-nl-bar-in {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
.aihub-nl-bar { animation: aihub-nl-bar-in .3s ease; }
@media (max-width: 600px) {
	.aihub-nl-bar { font-size: 13px; padding: 9px 42px 9px 14px; gap: 10px; }
	.aihub-nl-bar-text { flex-basis: 100%; text-align: center; }
	.aihub-nl-bar-form { width: 100%; justify-content: center; }
	.aihub-nl-bar-form .aihub-nl-email { min-width: 0; flex: 1 1 150px; }
}


