/* ==========================================================================
   公告系统样式：顶部公告条 + 弹窗 + 公告详情/列表
   —— 复用站点既有设计语言（藏蓝 #184890 / 绿 #20a838 / 圆角 / 字体继承）
   ========================================================================== */

/* --------------------------------------------------------------------------
   一、顶部公告条（与「网站测试中」提示条共用同一位置，高度都是 36px）
   -------------------------------------------------------------------------- */
.nbar {
	position: relative; z-index: 60;
	height: 36px; line-height: 36px;
	display: flex; align-items: center; gap: 10px;
	padding: 0 14px;
	background: linear-gradient(90deg, #123a73 0%, #184890 48%, #1c5aa8 100%);
	color: #fff; font-size: 14px;
	overflow: hidden;
}
.nbar .tag {
	flex: 0 0 auto; font-size: 12px; letter-spacing: 1px;
	background: #20a838; color: #fff;
	padding: 1px 8px; border-radius: 4px;
}
.nbar-box { position: relative; flex: 1 1 auto; height: 36px; overflow: hidden; }
.nbar-it {
	position: absolute; inset: 0;
	display: flex; align-items: center; gap: 10px;
	color: #fff; text-decoration: none;
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nbar-it.on { opacity: 1; visibility: visible; }
.nbar-it b { font-weight: 600; }
.nbar-it .go { flex: 0 0 auto; color: #bcd8ff; font-size: 13px; }
.nbar-it:hover .go { color: #fff; text-decoration: underline; }
.nbar-prev, .nbar-next {
	flex: 0 0 auto; width: 24px; height: 24px; line-height: 22px;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255,255,255,.16); color: #fff; font-size: 15px;
	transition: background .18s ease;
}
.nbar-prev:hover, .nbar-next:hover { background: rgba(255,255,255,.34); }

@media (max-width: 640px) {
	.nbar { font-size: 13px; gap: 8px; padding: 0 10px; }
	.nbar-it .go { display: none; }        /* 手机上不占地方，整条都可点 */
}

/* --------------------------------------------------------------------------
   二、弹窗（重要公告）
   -------------------------------------------------------------------------- */
html.npop-open { overflow: hidden; }        /* 弹窗打开时锁住背景滚动 */

.npop {
	position: fixed; inset: 0; z-index: 9990;
	display: none;
	align-items: center; justify-content: center;
	padding: 16px;
}
.npop.on { display: flex; }
.npop-mask {
	position: absolute; inset: 0;
	background: rgba(11, 28, 51, .62);
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	animation: npop-fade .22s ease both;
}
.npop-card {
	position: relative;
	width: 520px; max-width: 100%;               /* 手机端由下面的媒体查询接管 */
	max-height: 70vh;                            /* ⭐ 不超过屏幕 70% */
	display: flex; flex-direction: column;
	background: #fff; border-radius: 16px;
	box-shadow: 0 30px 80px rgba(6,16,36,.42);
	overflow: hidden;
	animation: npop-up .24s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes npop-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes npop-up { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }

/* 顶部品牌细条 */
.npop-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, #184890 0%, #184890 62%, #20a838 100%);
	z-index: 2;
}

/* ⭐ 关闭按钮：固定不随内容滚动 + 够大够明显 */
.npop-x {
	position: absolute; top: 14px; right: 14px; z-index: 3;
	width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
	background: #eef3fa; color: #184890; font-size: 17px; line-height: 40px;
	transition: background .18s ease, transform .18s ease;
}
.npop-x:hover { background: #dde7f7; transform: rotate(90deg); }

.npop-head { flex: 0 0 auto; padding: 26px 68px 12px 26px; }   /* 右边留出关闭按钮的位置 */
.npop-head .tag {
	display: inline-block; font-size: 12px; letter-spacing: 1px;
	background: #20a838; color: #fff; padding: 1px 8px; border-radius: 4px; margin-bottom: 8px;
}
.npop-head h3 { margin: 0; font-size: 20px; line-height: 1.45; color: #141c2b; }
.npop-head .range { margin: 8px 0 0; font-size: 13px; color: #8a94a6; }

/* ⭐ 内容区：长内容自己滚动，弹窗本身不再长高 */
.npop-body {
	flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
	padding: 6px 26px 18px; color: #3c4a5e; font-size: 15px; line-height: 1.85;
}
.npop-body p { margin: 0 0 12px; }
.npop-body img { max-width: 100%; height: auto; border-radius: 10px; }
.npop-body .npop-img { margin: 6px 0 14px; }
/* 「查看完整公告」是次要动作 —— 文字链接就好，别和底部「知道了」抢主按钮 */
.npop-body .npop-more { margin: 14px 0 0; }
.npop-body .npop-more a {
	color: #184890; font-size: 14px; text-decoration: none;
	border-bottom: 1px dashed rgba(24,72,144,.45); padding-bottom: 1px;
}
.npop-body .npop-more a:hover { border-bottom-style: solid; }
.npop-body::-webkit-scrollbar { width: 8px; }
.npop-body::-webkit-scrollbar-thumb { background: #d7e2f3; border-radius: 8px; }

/* ⭐ 底部按钮：文字居中 + 尺寸收小（不再满宽）
   ⚠️ .btn 是 inline-flex，光加 width 不够 —— 必须显式 justify-content:center 才居中 */
.npop-foot {
	flex: 0 0 auto; padding: 12px 26px 16px;
	border-top: 1px solid #eef2f8;
	background: #fff;
	text-align: center;
}
.npop-ok {
	display: inline-flex; justify-content: center; align-items: center;
	width: auto; min-width: 132px;
	padding: 10px 26px; font-size: 14.5px; letter-spacing: .5px;
}

@media (max-width: 640px) {
	.npop { padding: 16px; align-items: center; }
	.npop-card { width: 100%; max-height: 70vh; border-radius: 14px; }   /* 手机：左右各留 16px */
	.npop-head { padding: 22px 62px 10px 20px; }
	.npop-head h3 { font-size: 18px; }
	.npop-body { padding: 4px 20px 16px; font-size: 14.5px; }
	.npop-foot { padding: 12px 20px 14px; }
	.npop-ok { min-width: 148px; }              /* 手机上略宽一点，好点；但不满宽 */
	.npop-x { top: 10px; right: 10px; width: 38px; height: 38px; line-height: 38px; }
}

/* --------------------------------------------------------------------------
   三、公告详情页 / 列表页
   -------------------------------------------------------------------------- */
.notice-range {
	display: inline-block; margin: 0 0 18px; padding: 6px 12px;
	background: #eef3fa; border-left: 3px solid #184890; border-radius: 0 8px 8px 0;
	color: #3c4a5e; font-size: 13.5px;
}
.nlist { display: grid; gap: 14px; }
.nlist a {
	display: block; text-decoration: none;
	background: #fff; border: 1px solid #e2e8f3; border-radius: 12px;
	padding: 18px 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nlist a:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,45,90,.10); border-color: #c9d8f5; }
.nlist b { display: block; color: #141c2b; font-size: 16.5px; margin-bottom: 6px; }
.nlist span { display: block; color: #7b8798; font-size: 13.5px; line-height: 1.7; }
.nlist em { display: block; margin-top: 8px; font-style: normal; color: #8a94a6; font-size: 12.5px; }
.nlist .exp { color: #b32d2e; }
