/* ==========================================================================
   University Portal — 传统高校门户样式
   ========================================================================== */

:root {
	--up-navy: #0a3d7a;
	--up-blue: #1259a8;
	--up-blue-2: #1a6cbb;
	--up-blue-light: #eaf3fb;
	--up-blue-lighter: #f5f9fd;
	--up-line: #d6e3f0;
	--up-line-soft: #e8f0f8;
	--up-text: #2f3a45;
	--up-text-2: #55636f;
	--up-muted: #8b98a6;
	--up-bg: #f2f5f9;
	--up-white: #fff;
	--up-footer-bg: #0a3260;
	--up-footer-bg-2: #082a52;
	--up-accent: #1259a8;
	--up-radius: 2px;
	--up-container: 1200px;
	--up-gap: 14px;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--up-bg);
	color: var(--up-text);
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--up-blue);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

button {
	font-family: inherit;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.up-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: #fff;
	padding: 8px 16px;
}

.up-skip-link:focus {
	left: 8px;
	top: 8px;
}

.up-container {
	width: 100%;
	max-width: var(--up-container);
	margin: 0 auto;
	padding: 0 12px;
}

/* ---------- 顶部辅助条 ---------- */
.up-topbar {
	background: #eef1f5;
	border-bottom: 1px solid #e2e7ee;
	font-size: 12px;
	color: #5b6875;
}

.up-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 30px;
}

.up-topbar__menu {
	display: flex;
	align-items: center;
	gap: 0;
}

.up-topbar__menu li {
	position: relative;
	padding: 0 10px;
}

.up-topbar__menu li + li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 10px;
	margin-top: -5px;
	background: #cfd7e0;
}

.up-topbar__menu a:hover {
	color: var(--up-blue);
}

/* ---------- 品牌行 ---------- */
.up-brand {
	background: #fff;
	border-bottom: 1px solid var(--up-line);
}

.up-brand__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.up-brand__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	max-width: 180px;
	height: 72px;
	color: var(--up-navy);
	overflow: hidden;
}

/* 无论上传多大的 Logo，都等比缩进 180×72 的盒子里，绝不撑破页头 */
.up-brand__logo img,
.up-brand__logo .custom-logo,
.up-brand__logo .up-brand__logo-img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
}

.up-brand__logo .custom-logo-link {
	display: flex;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
}

.up-brand__text {
	flex: 1 1 auto;
	min-width: 0;
}

.up-brand__name {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--up-navy);
	font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.up-brand__name a:hover {
	color: var(--up-blue);
}

.up-brand__motto {
	margin-top: 4px;
	font-size: 14px;
	letter-spacing: 6px;
	color: #6d7b8a;
}

.up-brand__search {
	flex: 0 0 auto;
	width: 300px;
}

/* 搜索框 */
.up-search {
	display: flex;
	align-items: stretch;
	border: 1px solid #cdd9e6;
	background: #fff;
	height: 34px;
}

.up-search__field {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	padding: 0 10px;
	font-size: 13px;
	color: var(--up-text);
	background: transparent;
}

.up-search__field::placeholder {
	color: #a8b4c1;
}

.up-search__submit {
	flex: 0 0 44px;
	border: 0;
	background: var(--up-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.up-search__submit:hover {
	background: var(--up-navy);
}

/* ---------- 主导航 ---------- */
.up-nav {
	background: var(--up-blue);
	background: linear-gradient(180deg, #1a67b0 0%, #12559e 100%);
	position: relative;
	z-index: 40;
}

.up-nav__inner {
	display: flex;
	align-items: stretch;
	position: relative;
}

.up-nav__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.up-nav__menu > li {
	position: relative;
}

.up-nav__menu > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 0 22px;
	color: #fff;
	font-size: 15px;
	letter-spacing: 1px;
	position: relative;
	white-space: nowrap;
}

.up-nav__menu > li > a::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1px;
	height: 14px;
	margin-top: -7px;
	background: rgba(255, 255, 255, 0.18);
}

.up-nav__menu > li:last-child > a::after {
	display: none;
}

.up-nav__menu > li > a:hover,
.up-nav__menu > li.current-menu-item > a,
.up-nav__menu > li.current-menu-parent > a,
.up-nav__menu > li.current_page_item > a {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.up-nav__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid rgba(255, 255, 255, 0.75);
	margin-left: 2px;
}

/* 下拉 */
.up-submenu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--up-line);
	border-top: 3px solid var(--up-blue-2);
	box-shadow: 0 8px 18px rgba(10, 61, 122, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.18s ease;
	z-index: 50;
	padding: 6px 0;
}

.up-nav__menu > li:hover > .up-submenu,
.up-nav__menu > li:focus-within > .up-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.up-submenu li {
	position: relative;
}

.up-submenu a {
	display: block;
	padding: 8px 16px;
	font-size: 13.5px;
	color: var(--up-text);
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-submenu li:last-child a {
	border-bottom: 0;
}

.up-submenu a:hover {
	background: var(--up-blue-lighter);
	color: var(--up-blue);
}

.up-submenu .up-submenu {
	left: 100%;
	top: -9px;
	border-top-width: 1px;
}

.up-nav__toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	color: #fff;
	height: 44px;
	padding: 0 4px;
	font-size: 15px;
}

.up-nav__toggle-bar,
.up-nav__toggle-bar::before,
.up-nav__toggle-bar::after {
	display: block;
	width: 18px;
	height: 2px;
	background: #fff;
	content: "";
	position: relative;
}

.up-nav__toggle-bar::before {
	position: absolute;
	top: -6px;
}

.up-nav__toggle-bar::after {
	position: absolute;
	top: 6px;
}

/* ---------- 区域与网格 ---------- */
.up-content {
	flex: 1 0 auto;
	padding-bottom: 18px;
}

.up-region {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--up-gap);
	align-items: start;
}

.up-region--header,
.up-region--nav,
.up-region--footer {
	padding: 8px 0;
}

.up-region--carousel {
	display: block;
	padding: 0;
}

.up-region--topic,
.up-region--links {
	padding-top: 4px;
}

.up-main {
	padding-top: var(--up-gap);
}

.up-main__grid {
	display: grid;
	grid-template-columns: minmax(0, var(--up-left-ratio, 68%)) minmax(0, 1fr);
	gap: var(--up-gap);
	align-items: start;
}

.up-main__grid--left-only {
	grid-template-columns: minmax(0, 1fr);
}

.up-main__grid--right-only {
	grid-template-columns: minmax(0, 1fr);
}

/* 无侧栏时限制正文宽度，避免长行影响阅读。
   必须写 width:100%，否则在 flex 列容器里 margin:auto 会把元素压成内容宽度。 */
.up-main__grid--left-only .up-single,
.up-main__grid--left-only .up-page,
.up-main__grid--left-only .up-404 {
	width: 100%;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

.up-col {
	display: flex;
	flex-direction: column;
	gap: var(--up-gap);
	min-width: 0;
}

/* ---------- 模块外壳 ---------- */
.up-module {
	grid-column: span var(--up-span, 4);
	position: relative;
	background: var(--up-module-bg, #fff);
	border: 1px solid var(--up-line);
	border-radius: var(--up-radius);
	overflow: hidden;
	min-width: 0;
	margin-bottom: var(--up-module-gap, 0);
}

.up-module--shell-bare {
	border: 0;
	background: transparent;
	overflow: visible;
}

.up-module--shell-bare .up-module__body {
	padding: 0;
}

.up-module--carousel,
.up-module--banner {
	grid-column: 1 / -1;
}

.up-module__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 38px;
	padding: 0 12px;
	background: linear-gradient(180deg, #f7fbff 0%, #e9f2fb 100%);
	border-bottom: 1px solid var(--up-line);
	position: relative;
}

.up-module__head::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--up-accent);
}

.up-module__title {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 16px;
	font-weight: 700;
	color: var(--up-accent);
	letter-spacing: 0.5px;
	line-height: 1;
}

.up-module__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 2px;
	background: var(--up-accent);
	color: #fff;
	flex: 0 0 auto;
}

.up-module__icon .up-icon {
	stroke-width: 2;
}

.up-module__more {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	color: var(--up-muted);
	flex: 0 0 auto;
}

.up-module__more:hover {
	color: var(--up-accent);
}

.up-module__more-icon {
	display: flex;
	align-items: center;
}

.up-module__body {
	padding: var(--up-module-pad, 10px 12px);
	min-height: var(--up-module-min-h, 0);
}

.up-module__flag,
.up-module__edit {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 5;
	font-size: 11px;
	line-height: 1;
	padding: 3px 6px;
	background: #d94f4f;
	color: #fff;
	border-radius: 2px;
}

.up-module__edit {
	top: auto;
	bottom: 6px;
	right: 6px;
	background: var(--up-navy);
	opacity: 0;
	transition: opacity 0.15s;
}

.up-module:hover .up-module__edit {
	opacity: 1;
}

.up-module--off {
	opacity: 0.65;
	outline: 1px dashed #d94f4f;
}

.up-empty {
	padding: 14px 0;
	text-align: center;
	color: var(--up-muted);
	font-size: 13px;
}

.up-hint {
	margin-top: 10px;
	padding: 8px 10px;
	background: #fff8e5;
	border: 1px solid #f0dfa8;
	font-size: 12px;
	color: #7a6520;
}

/* ---------- 列表 ---------- */
.up-list {
	display: block;
}

.up-list--multi {
	display: grid;
	grid-template-columns: repeat(var(--up-inner-cols, 1), minmax(0, 1fr));
	gap: 0 18px;
}

.up-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.up-list--compact .up-item {
	height: 28px;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-list--compact .up-item:last-child {
	border-bottom: 0;
}

.up-item__body {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.up-item__title {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	color: var(--up-text);
}

.up-item__title:hover {
	color: var(--up-blue);
}

.up-item__dot {
	flex: 0 0 auto;
	width: 4px;
	height: 4px;
	background: var(--up-blue-2);
	opacity: 0.85;
	margin-right: 2px;
}

.up-item__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.up-item__date {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 12px;
	color: var(--up-muted);
	font-variant-numeric: tabular-nums;
}

.up-item__badge {
	flex: 0 0 auto;
	font-size: 10px;
	line-height: 1;
	padding: 2px 4px;
	background: #e8f1fb;
	color: var(--up-blue);
	border: 1px solid #cfe1f4;
}

.up-item__excerpt {
	font-size: 12.5px;
	color: var(--up-text-2);
	margin-top: 4px;
	line-height: 1.7;
}

/* 归档 / 列表页：点 + 标题 + 日期 */
.up-list--archive {
	padding-top: 2px;
}

.up-list--archive .up-item {
	height: 40px;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-list--archive .up-item:last-child {
	border-bottom: 0;
}

.up-list--archive .up-item__title {
	font-size: 14.5px;
}

.up-list--archive .up-item__date {
	font-size: 12.5px;
}

/* 带缩略图 */
.up-list--thumb .up-item {
	align-items: flex-start;
	padding: 8px 0;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-list--thumb .up-item__thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 64px;
	overflow: hidden;
	background: #eef3f8;
}

.up-list--thumb .up-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-list--thumb .up-item__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.up-list--thumb .up-item__date {
	align-self: flex-start;
}

/* 卡片 */
.up-list--card .up-item {
	display: block;
	border: 1px solid var(--up-line-soft);
	padding-bottom: 8px;
	margin-bottom: 10px;
	background: #fff;
}

.up-list--card .up-item__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef3f8;
	margin-bottom: 8px;
}

.up-list--card .up-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-list--card .up-item__body {
	padding: 0 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.up-list--card .up-item__title {
	display: block;
	white-space: normal;
}

.up-list--card .up-item__text {
	display: block;
	white-space: normal;
	line-height: 1.6;
	font-size: 13.5px;
}

.up-list--card .up-item__date {
	align-self: flex-start;
}

/* 占位图 */
.up-thumb-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 60px;
	background: #eef3f8;
	color: #b6c6d6;
}

/* 右侧窄栏字号微调 */
.up-col--right .up-item__title {
	font-size: 13px;
}

.up-col--right .up-module__body {
	padding: 8px 10px;
}

/* 部门前缀 */
.up-dept__name {
	flex: 0 0 auto;
	color: var(--up-blue);
	font-weight: 700;
}

/* ---------- 轮播 ---------- */
.up-carousel {
	position: relative;
	overflow: hidden;
	background: #dfe8f1;
}

.up-carousel__viewport {
	overflow: hidden;
	transition: height 0.35s ease;
}

.up-carousel__track {
	position: relative;
	width: 100%;
}

.up-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease;
	aspect-ratio: var(--up-ratio, 3/1);
}

.up-carousel__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.up-carousel__link {
	display: block;
	width: 100%;
	height: 100%;
}

.up-carousel__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 自适应高度模式：不裁切，容器高度跟随当前图片 */
.up-carousel--auto .up-carousel__slide {
	aspect-ratio: auto;
}

.up-carousel--auto .up-carousel__link {
	height: auto;
}

.up-carousel--auto .up-carousel__img {
	height: auto;
	object-fit: contain;
}

.up-carousel__img--mobile {
	display: none;
}

.up-carousel__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 46px 24px 16px;
	background: linear-gradient(180deg, rgba(6, 30, 60, 0) 0%, rgba(6, 30, 60, 0.72) 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 4px;
	pointer-events: none;
}

.up-carousel__title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.up-carousel__text {
	font-size: 13.5px;
	opacity: 0.92;
	max-width: 900px;
}

.up-carousel__arrow {
	position: absolute;
	top: 50%;
	margin-top: -22px;
	width: 34px;
	height: 44px;
	border: 0;
	background: rgba(6, 30, 60, 0.32);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s, background 0.2s;
	z-index: 6;
}

.up-carousel:hover .up-carousel__arrow {
	opacity: 1;
}

.up-carousel__arrow:hover {
	background: rgba(6, 30, 60, 0.62);
}

.up-carousel__arrow--prev {
	left: 0;
}

.up-carousel__arrow--prev .up-icon {
	transform: rotate(180deg);
}

.up-carousel__arrow--next {
	right: 0;
}

.up-carousel__dots {
	position: absolute;
	right: 18px;
	bottom: 14px;
	display: flex;
	gap: 6px;
	z-index: 6;
}

.up-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: transparent;
	border-radius: 50%;
}

.up-carousel__dot.is-active {
	background: #fff;
}

.up-carousel--empty {
	padding: 30px 0;
	text-align: center;
}

/* ---------- 图片新闻 ---------- */
.up-imnews {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.up-imnews__main {
	flex: 0 0 var(--up-img-width, 56%);
	width: var(--up-img-width, 56%);
	min-width: 0;
}

.up-imnews__side {
	flex: 1 1 auto;
	min-width: 0;
	border-left: 1px dashed var(--up-line);
	padding-left: 14px;
}

.up-imnews--image-right {
	flex-direction: row-reverse;
}

.up-imnews--image-top {
	flex-direction: column;
}

.up-imnews--image-top .up-imnews__main,
.up-imnews--image-top .up-imnews__side {
	flex: 0 0 auto;
	width: 100%;
}

.up-imnews--image-top .up-imnews__side {
	border-left: 0;
	padding-left: 0;
	border-top: 1px dashed var(--up-line);
	padding-top: 8px;
}

.up-imnews__item {
	display: block;
}

.up-imnews__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #eef3f8;
	aspect-ratio: var(--up-ratio, 16/9);
}

.up-imnews__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-imnews__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px 10px 8px;
	background: linear-gradient(180deg, rgba(6, 30, 60, 0) 0%, rgba(6, 30, 60, 0.72) 100%);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}

.up-imnews__body {
	padding-top: 8px;
}

.up-imnews__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--up-navy);
}

.up-imnews__title a:hover {
	color: var(--up-blue);
}

.up-imnews__meta {
	font-size: 12px;
	color: var(--up-muted);
	margin-top: 2px;
}

.up-imnews__excerpt {
	margin-top: 6px;
	font-size: 13px;
	color: var(--up-text-2);
	line-height: 1.8;
	text-align: justify;
}

/* ---------- 智慧校园 ---------- */
.up-quick {
	display: grid;
	grid-template-columns: repeat(var(--up-quick-cols, 4), minmax(0, 1fr));
	gap: 12px 6px;
}

.up-quick__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 4px 2px;
	color: var(--up-text);
	text-align: center;
}

.up-quick__item:hover .up-quick__label {
	color: var(--up-blue);
}

.up-quick__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--up-quick-icon, 40px);
	height: var(--up-quick-icon, 40px);
	background: var(--up-quick-bg, #eef5fc);
	color: var(--up-quick-color, var(--up-blue));
	border: 1px solid var(--up-quick-bg, #dbe9f7);
	border-radius: 3px;
}

.up-quick__img {
	width: 60%;
	height: 60%;
	object-fit: contain;
}

.up-quick__label {
	font-size: 12.5px;
	line-height: 1.2;
	color: var(--up-text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* ---------- 分类目录 ---------- */
.up-cats {
	display: block;
}

.up-cats--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.up-cats__item {
	position: relative;
	padding: 6px 0;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-cats__item:last-child {
	border-bottom: 0;
}

.up-cats__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13.5px;
	color: var(--up-text);
}

.up-cats__link:hover {
	color: var(--up-blue);
}

.up-cats__link:hover .up-cats__name {
	color: var(--up-blue);
}

.up-cats__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.up-cats__count {
	flex: 0 0 auto;
	min-width: 22px;
	padding: 0 6px;
	line-height: 18px;
	text-align: center;
	font-size: 11.5px;
	color: #6b7c8d;
	background: #eef3f8;
	border-radius: 9px;
}

.up-cats__bar {
	display: block;
	height: 3px;
	margin-top: 5px;
	background: var(--up-line-soft);
	position: relative;
	overflow: hidden;
}

.up-cats__bar::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--up-bar, 10%);
	background: var(--up-accent);
	opacity: 0.55;
}

.up-cats__latest {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: var(--up-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.up-cats__latest:hover {
	color: var(--up-blue);
}

/* ---------- 标签云 ---------- */
.up-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.up-tags--list {
	flex-direction: column;
	gap: 0;
}

.up-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	font-size: var(--up-tag-size, 12px);
	line-height: 1.5;
	color: var(--up-text-2);
	background: #f4f8fc;
	border: 1px solid var(--up-line-soft);
}

.up-tag:hover {
	color: #fff;
	background: var(--up-blue);
	border-color: var(--up-blue);
}

.up-tag__count {
	font-size: 10.5px;
	opacity: 0.65;
}

.up-tags--list .up-tag {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	background: none;
	border: 0;
	border-bottom: 1px dashed var(--up-line-soft);
	font-size: 13px;
}

.up-tags--list .up-tag:hover {
	background: none;
	color: var(--up-blue);
}

/* ---------- 专题宣讲 ---------- */
.up-topic-featured {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
}

.up-topic-featured__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	background: linear-gradient(90deg, #eef5fc 0%, #f8fbff 100%);
	border-left: 3px solid var(--up-accent);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--up-navy);
}

.up-topic-featured__item:hover {
	background: #e6f0fa;
}

.up-topic-featured__tag {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 400;
	line-height: 1;
	padding: 2px 4px;
	background: var(--up-accent);
	color: #fff;
}

.up-topic-featured__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- 专题网站 / 横幅 ---------- */
.up-topics {
	display: grid;
	grid-template-columns: repeat(var(--up-topics-cols, 4), minmax(0, 1fr));
	gap: 10px;
}

.up-topics--scroll {
	display: flex;
	overflow-x: auto;
	gap: 10px;
	padding-bottom: 6px;
	scrollbar-width: thin;
}

.up-topics--scroll .up-topics__item {
	flex: 0 0 calc((100% - 30px) / 4);
}

.up-topics__item {
	display: block;
	position: relative;
	overflow: hidden;
	background: #eef3f8;
	aspect-ratio: var(--up-ratio, 3/1);
	border: 1px solid var(--up-line-soft);
}

.up-topics__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.up-topics__item:hover .up-topics__img {
	transform: scale(1.04);
}

.up-topics__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 8px 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	background: linear-gradient(180deg, rgba(6, 30, 60, 0) 0%, rgba(6, 30, 60, 0.82) 100%);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.up-topics--slide {
	display: block;
}

.up-topics--slide .up-carousel__slide {
	aspect-ratio: auto;
}

.up-topics--slide .up-carousel__arrow {
	width: 28px;
	height: 36px;
	margin-top: -18px;
}

.up-banner {
	display: grid;
	grid-template-columns: repeat(var(--up-banner-cols, 4), minmax(0, 1fr));
	gap: 10px;
}

.up-banner__item {
	display: block;
	overflow: hidden;
	aspect-ratio: var(--up-ratio, 3/1);
	background: #eef3f8;
}

.up-banner__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- 友情链接 ---------- */
.up-links--select {
	display: grid;
	grid-template-columns: repeat(var(--up-links-cols, 4), minmax(0, 1fr));
	gap: 10px;
}

.up-links__select {
	display: block;
}

.up-links__select select {
	width: 100%;
	height: 32px;
	padding: 0 26px 0 10px;
	border: 1px solid var(--up-line);
	background: #fff;
	color: var(--up-text-2);
	font-size: 13px;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #8b98a6 50%), linear-gradient(135deg, #8b98a6 50%, transparent 50%);
	background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.up-links--grid {
	display: grid;
	grid-template-columns: repeat(var(--up-links-cols, 4), minmax(0, 1fr));
	gap: 8px;
}

.up-links--grid a {
	display: block;
	padding: 6px 10px;
	border: 1px solid var(--up-line-soft);
	background: #fafcfe;
	font-size: 13px;
	color: var(--up-text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.up-links--grid a:hover {
	border-color: #bcd6ef;
	background: var(--up-blue-lighter);
	color: var(--up-blue);
}

/* ---------- 自定义图文 / HTML ---------- */
.up-imgtext {
	display: flex;
	gap: 14px;
}

.up-imgtext--top {
	flex-direction: column;
}

.up-imgtext--right {
	flex-direction: row-reverse;
}

.up-imgtext__media {
	flex: 0 0 42%;
	overflow: hidden;
	background: #eef3f8;
	aspect-ratio: var(--up-ratio, 16/9);
}

.up-imgtext--top .up-imgtext__media {
	flex: 0 0 auto;
	width: 100%;
}

.up-imgtext__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-imgtext__body {
	flex: 1 1 auto;
	min-width: 0;
}

.up-imgtext__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--up-navy);
}

.up-imgtext__text {
	margin-top: 6px;
	font-size: 13px;
	color: var(--up-text-2);
	line-height: 1.8;
}

.up-html {
	font-size: 13.5px;
	line-height: 1.8;
}

/* ---------- 页脚 ---------- */
.up-footer {
	flex: 0 0 auto;
	background: var(--up-footer-bg);
	background: linear-gradient(180deg, #0c3a6c 0%, #082a52 100%);
	color: #c3d5e8;
	font-size: 13px;
	margin-top: 16px;
}

.up-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.up-footer__info {
	min-width: 0;
}

.up-footer__row {
	line-height: 1.9;
}

.up-footer__label {
	color: #8fadcb;
}

.up-footer__copy {
	margin-top: 6px;
	color: #a8c0d8;
}

.up-footer__licenses {
	margin-top: 2px;
	color: #8fadcb;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.up-footer__qr {
	display: flex;
	gap: 16px;
	flex: 0 0 auto;
}

.up-footer__qr-item {
	margin: 0;
	text-align: center;
}

.up-footer__qr-item img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	background: #fff;
	padding: 3px;
}

.up-footer__qr-item figcaption {
	margin-top: 4px;
	font-size: 12px;
	color: #a8c0d8;
}

/* ---------- 内页 ---------- */
.up-crumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 12.5px;
	color: var(--up-muted);
	padding: 10px 0;
}

.up-crumb__label {
	color: var(--up-muted);
}

.up-crumb a:hover {
	color: var(--up-blue);
}

.up-crumb__current {
	color: var(--up-text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 60%;
}

.up-page {
	background: #fff;
	border: 1px solid var(--up-line);
	padding: 18px 20px 24px;
}

.up-page__head {
	border-bottom: 1px solid var(--up-line);
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.up-page__title {
	font-size: 22px;
	font-weight: 700;
	color: #1f2329;
	letter-spacing: 1px;
}

.up-page__desc {
	margin-top: 6px;
	font-size: 13px;
	color: var(--up-text-2);
}

.up-cards {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.up-card {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--up-line);
}

.up-card__thumb {
	flex: 0 0 160px;
	width: 160px;
	height: 100px;
	overflow: hidden;
	background: #eef3f8;
}

.up-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-card__main {
	min-width: 0;
	flex: 1 1 auto;
}

.up-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #1f2329;
}

.up-card__title a:hover {
	color: var(--up-blue);
}

.up-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	font-size: 12px;
	color: var(--up-muted);
}

.up-card__cat {
	padding: 1px 6px;
	background: var(--up-blue-light);
	color: var(--up-blue);
}

.up-card__excerpt {
	margin-top: 6px;
	font-size: 13px;
	color: var(--up-text-2);
	line-height: 1.8;
}

.up-pagination {
	margin-top: 20px;
}

.up-pagination .nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.up-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--up-line);
	background: #fff;
	font-size: 13px;
	color: var(--up-text-2);
}

.up-pagination .page-numbers.current,
.up-pagination .page-numbers:hover {
	background: var(--up-blue);
	border-color: var(--up-blue);
	color: #fff;
}

/* 分类切换条 / 子分类 / 归档页信息 */
.up-catstrip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--up-line);
}

.up-catstrip__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	font-size: 13px;
	color: var(--up-text-2);
	background: #f4f8fc;
	border: 1px solid var(--up-line-soft);
}

.up-catstrip__item:hover {
	color: var(--up-blue);
	border-color: #bcd6ef;
	background: var(--up-blue-lighter);
}

.up-catstrip__item.is-active {
	background: var(--up-blue);
	border-color: var(--up-blue);
	color: #fff;
}

.up-catstrip__count {
	font-size: 11px;
	opacity: 0.72;
}

.up-subcats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 12.5px;
}

.up-subcats__label {
	color: var(--up-muted);
}

.up-subcats__item {
	padding: 2px 9px;
	background: #eef5fc;
	color: var(--up-blue);
}

.up-subcats__item span {
	margin-left: 4px;
	font-size: 11px;
	opacity: 0.6;
}

.up-page__meta {
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--up-muted);
}

.up-page__meta a {
	color: var(--up-blue);
}

.up-card__author,
.up-card__comments {
	color: var(--up-muted);
}

/* 文章详情 */
.up-single {
	background: #fff;
	border: 1px solid var(--up-line);
	padding: 22px 26px 28px;
}

.up-single__head {
	text-align: center;
	border-bottom: 1px solid var(--up-line);
	padding-bottom: 14px;
	margin-bottom: 0;
}

.up-single__title {
	font-size: 26px;
	line-height: 1.55;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #1f2329;
}

.up-single__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 13px;
	color: var(--up-muted);
}

.up-single__meta-item {
	padding: 0 12px;
	border-right: 1px solid var(--up-line);
	line-height: 1.6;
}

.up-single__meta-item:last-child {
	border-right: 0;
}

.up-single__meta-item a {
	color: var(--up-blue);
}

.up-single__sep {
	color: #d3dce5;
}

.up-single__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	flex-wrap: wrap;
	padding: 9px 0;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--up-line);
	font-size: 13px;
	color: var(--up-muted);
}

.up-single__bar-left,
.up-single__bar-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.up-single__bar-sep {
	width: 1px;
	height: 12px;
	background: var(--up-line);
	display: inline-block;
}

.up-single__source a {
	color: var(--up-blue);
}

.up-fontsize {
	display: flex;
	align-items: center;
	gap: 3px;
}

.up-fontsize__label {
	margin-right: 2px;
}

.up-fontsize__btn {
	border: 0;
	background: none;
	padding: 2px 7px;
	font-family: inherit;
	font-size: 13px;
	color: var(--up-text-2);
	cursor: pointer;
	line-height: 1.4;
}

.up-fontsize__btn:hover {
	color: var(--up-blue);
}

.up-fontsize__btn.is-active {
	color: var(--up-blue);
	font-weight: 700;
}

.up-tool-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: none;
	padding: 2px 4px;
	font-family: inherit;
	font-size: 13px;
	color: var(--up-text-2);
	cursor: pointer;
}

.up-tool-btn:hover {
	color: var(--up-blue);
}

.up-share {
	display: flex;
	align-items: center;
	gap: 6px;
}

.up-share__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eff2f5;
	color: #66727f;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.up-share__item svg {
	display: block;
	width: 15px;
	height: 15px;
}

.up-share__item:hover {
	color: #fff;
}

.up-share__item--weibo:hover {
	background: #e6162d;
}

.up-share__item--wechat:hover {
	background: #07c160;
}

.up-share__item--qzone:hover {
	background: #12b7f5;
}

/* 微信二维码浮层（在按钮上方） */
.up-share__wechat {
	position: relative;
	display: inline-flex;
}

.up-share__qr {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: 176px;
	padding: 10px 10px 8px;
	background: #fff;
	border: 1px solid var(--up-line);
	box-shadow: 0 6px 20px rgba(10, 61, 122, 0.16);
	text-align: center;
	z-index: 40;
}

.up-share__qr::after {
	content: "";
	position: absolute;
	right: 8px;
	bottom: -6px;
	width: 10px;
	height: 10px;
	background: #fff;
	border-right: 1px solid var(--up-line);
	border-bottom: 1px solid var(--up-line);
	transform: rotate(45deg);
}

.up-share__qr-code {
	width: 148px;
	height: 148px;
	margin: 0 auto;
}

.up-share__qr-code img,
.up-share__qr-code canvas {
	display: block;
	width: 148px !important;
	height: 148px !important;
}

.up-share__qr-tip {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--up-muted);
}

/* 轻提示 */
.up-toast {
	position: fixed;
	left: 50%;
	bottom: 40px;
	transform: translate(-50%, 12px);
	max-width: 86vw;
	width: max-content;
	padding: 11px 20px;
	background: rgba(20, 30, 45, 0.92);
	color: #fff;
	font-size: 13.5px;
	line-height: 1.6;
	border-radius: 3px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
	text-align: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.up-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.up-single__thumb {
	margin: 0 0 16px;
	text-align: center;
}

.up-single__content {
	font-size: var(--up-article-size, 16px);
	line-height: 2;
	color: #2f3a45;
	word-break: break-word;
}

.up-single__content p {
	margin: 0 0 16px;
}

.up-single--indent .up-single__content > p {
	text-indent: 2em;
}

.up-single__content h2,
.up-single__content h3,
.up-single__content h4 {
	margin: 26px 0 12px;
	padding-left: 10px;
	border-left: 4px solid var(--up-blue);
	/* 用 em 跟随正文字号缩放，否则点了"大/超大"标题反而比正文小 */
	font-size: 1.125em;
	line-height: 1.5;
	color: var(--up-navy);
}

.up-single__content h3 {
	font-size: 1.03em;
	border-left-width: 3px;
}

.up-single__content h4 {
	font-size: 0.97em;
	border-left-width: 3px;
}

.up-single__content img {
	margin: 12px auto;
	max-width: 100%;
	height: auto;
}

.up-single__content figure {
	margin: 16px 0;
}

.up-single__content figcaption {
	margin-top: 6px;
	text-align: center;
	font-size: 12.5px;
	color: var(--up-muted);
}

.up-single__content a {
	color: var(--up-blue);
	text-decoration: underline;
}

.up-single__content blockquote {
	margin: 14px 0;
	padding: 10px 14px;
	background: var(--up-blue-lighter);
	border-left: 3px solid var(--up-blue);
	color: var(--up-text-2);
}

.up-single__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.up-single__content th,
.up-single__content td {
	border: 1px solid var(--up-line);
	padding: 8px 10px;
}

.up-single__content ul,
.up-single__content ol {
	margin: 0 0 14px;
	padding-left: 22px;
	list-style: revert;
}

.up-single__tags {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px dashed var(--up-line);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.up-single__tags-label {
	font-size: 13px;
	color: var(--up-muted);
}

.up-single__tags a {
	padding: 3px 8px;
	background: var(--up-blue-light);
	color: var(--up-blue);
	font-size: 12px;
}

.up-single__nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--up-line);
	font-size: 13px;
}

.up-single__nav-item {
	min-width: 0;
	flex: 1 1 0;
}

.up-single__nav-item--next {
	text-align: right;
}

.up-single__nav-label {
	display: block;
	color: var(--up-muted);
	font-size: 12px;
	margin-bottom: 2px;
}

.up-single__nav-none {
	color: #b3bfcb;
}

/* 侧栏 widget（WordPress 小工具） */
.up-sidebar .up-widget {
	background: #fff;
	border: 1px solid var(--up-line);
	padding-bottom: 8px;
}

.up-sidebar .up-widget:not(.up-module) {
	padding: 0 0 8px;
}

.up-widget__title {
	margin: 0 0 6px;
	padding: 0 12px;
	height: 36px;
	line-height: 36px;
	font-size: 15px;
	font-weight: 700;
	color: var(--up-accent);
	background: linear-gradient(180deg, #f7fbff 0%, #e9f2fb 100%);
	border-bottom: 1px solid var(--up-line);
	border-left: 3px solid var(--up-accent);
}

.up-sidebar .up-widget:not(.up-module) > *:not(.up-widget__title) {
	margin-left: 12px;
	margin-right: 12px;
}

.up-widget ul {
	padding: 4px 12px 0;
}

.up-widget ul li {
	padding: 4px 0;
	font-size: 13px;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-widget ul li:last-child {
	border-bottom: 0;
}

.up-widget ul li a:hover {
	color: var(--up-blue);
}

.up-widget select,
.up-widget input[type="text"],
.up-widget input[type="search"] {
	width: 100%;
	max-width: 100%;
	height: 30px;
	font-size: 13px;
}

.up-widget .wp-block-search__button,
.up-widget input[type="submit"],
.up-widget button[type="submit"] {
	background: var(--up-blue);
	border: 0;
	color: #fff;
	padding: 6px 12px;
	font-size: 13px;
}

.up-widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 6px;
}

/* 评论（政企门户风格） */
.up-comments {
	margin-top: 30px;
}

.up-comments__title,
.comment-reply-title {
	display: flex;
	align-items: center;
	height: 38px;
	margin: 0 0 6px;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--up-accent);
	background: linear-gradient(180deg, #f7fbff 0%, #e9f2fb 100%);
	border: 1px solid var(--up-line);
	border-left: 3px solid var(--up-accent);
}

.comment-reply-title small {
	margin-left: auto;
	font-size: 12px;
	font-weight: 400;
}

.comment-reply-title small a {
	color: var(--up-muted);
}

.up-comments__list {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.up-comments__list .children {
	margin: 0 0 0 26px;
	padding: 0;
	list-style: none;
}

.up-comments__list li {
	padding: 14px 0;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-comments__list li:last-child {
	border-bottom: 0;
}

.comment-body {
	position: relative;
}

.comment-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 12.5px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.comment-author .avatar {
	width: 36px;
	height: 36px;
	border-radius: 2px;
	border: 1px solid var(--up-line-soft);
}

.comment-author .fn {
	font-style: normal;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--up-text);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	flex: 0 0 auto;
	color: var(--up-muted);
}

.comment-metadata a {
	color: var(--up-muted);
}

.comment-content {
	margin: 8px 0 0 44px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--up-text);
}

.comment-content p {
	margin: 0 0 8px;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-body .reply {
	margin: 4px 0 0 44px;
}

.comment-reply-link {
	font-size: 12px;
	color: var(--up-blue);
}

.up-comments__notes {
	font-size: 12px;
	color: var(--up-muted);
}

.comment-respond {
	margin-top: 22px;
}

/* 发表评论：默认折叠，按钮展开 */
.up-commentbox {
	margin-top: 22px;
}

.up-commentbox__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--up-line);
	border-left: 3px solid var(--up-accent);
	background: linear-gradient(180deg, #f7fbff 0%, #e9f2fb 100%);
	color: var(--up-accent);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.up-commentbox__toggle:hover,
.up-commentbox__toggle:focus-visible {
	background: #e3eef9;
}

.up-commentbox__toggle-icon {
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
}

.up-commentbox.is-collapsed .up-commentbox__body {
	display: none;
}

.up-commentbox__body .comment-respond {
	margin-top: 0;
}

/* 折叠按钮已承担标题，隐藏表单内重复的标题 */
.up-commentbox .comment-reply-title {
	display: none;
}

.up-commentbox .comment-form {
	border-top: 1px solid var(--up-line);
}

.up-comments__closed {
	margin-top: 18px;
	padding: 10px 12px;
	background: #f6f7f7;
	border-left: 3px solid #c3c4c7;
	font-size: 13px;
	color: var(--up-text-2);
}

.comment-form {
	padding: 16px 18px;
	background: #fafcfe;
	border: 1px solid var(--up-line);
	border-top: 0;
}

.comment-form p {
	margin: 0 0 12px;
}

.comment-form label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
	color: var(--up-text-2);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12.5px;
	color: var(--up-text-2);
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-size: 12.5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--up-line);
	border-radius: 2px;
	padding: 8px 10px;
	font-size: 13.5px;
	font-family: inherit;
	color: var(--up-text);
	background: #fff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	border-color: #9dc2e4;
	outline: 0;
	box-shadow: 0 0 0 1px rgba(18, 89, 168, 0.12);
}

.comment-form textarea {
	min-height: 110px;
	resize: vertical;
}

.comment-form .submit {
	background: var(--up-blue);
	color: #fff;
	border: 0;
	border-radius: 2px;
	padding: 8px 24px;
	font-size: 14px;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--up-navy);
}

.comments-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	margin-right: 4px;
	border: 1px solid var(--up-line);
	font-size: 12.5px;
	color: var(--up-text-2);
}

.comments-pagination .page-numbers.current {
	background: var(--up-blue);
	border-color: var(--up-blue);
	color: #fff;
}

/* 404 */
.up-404 {
	background: #fff;
	border: 1px solid var(--up-line);
	padding: 60px 20px;
	text-align: center;
}

.up-404__code {
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
	color: var(--up-line);
}

.up-404__title {
	font-size: 22px;
	color: var(--up-navy);
	margin-top: 8px;
}

.up-404__text {
	color: var(--up-text-2);
	margin-top: 8px;
}

.up-404__search {
	max-width: 360px;
	margin: 18px auto;
}

.up-btn {
	display: inline-block;
	padding: 8px 22px;
	background: var(--up-blue);
	color: #fff;
	font-size: 14px;
}

.up-btn:hover {
	background: var(--up-navy);
	color: #fff;
}

/* 预览条 */
.up-preview-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 16px;
	justify-content: center;
	padding: 8px 16px;
	background: #0a3260;
	color: #fff;
	font-size: 13px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.up-preview-bar a {
	color: #9ec8f5;
	text-decoration: underline;
}

/* ---------- 博客扩展模块 ---------- */

/* 图文卡片网格 */
.up-cardgrid {
	display: grid;
	grid-template-columns: repeat(var(--up-inner-cols, 3), minmax(0, 1fr));
	gap: 12px;
}

.up-cardgrid .up-card {
	flex-direction: column;
	gap: 0;
	padding: 0;
	border: 1px solid var(--up-line);
	background: #fff;
	overflow: hidden;
}

.up-cardgrid .up-card__thumb {
	flex: 0 0 auto;
	width: 100%;
	height: 126px;
}

.up-cardgrid .up-card__main {
	padding: 10px 12px 12px;
}

.up-cardgrid .up-card__title {
	font-size: 14.5px;
	line-height: 1.5;
}

.up-cardgrid .up-card__excerpt {
	font-size: 12.5px;
	color: var(--up-text-2);
	line-height: 1.65;
}

/* 热门排行 */
.up-rank {
	list-style: none;
	margin: 0;
	padding: 0;
}

.up-rank__item {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-rank__item:last-child {
	border-bottom: 0;
}

.up-rank__no {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	font-size: 11px;
	color: var(--up-muted);
	background: #eef3f8;
	border-radius: 2px;
}

.up-rank__no.is-top {
	background: var(--up-blue);
	color: #fff;
	font-weight: 700;
}

.up-rank__body {
	display: block;
	min-width: 0;
}

.up-rank__title {
	display: block;
	font-size: 13.5px;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.up-rank__meta {
	display: flex;
	gap: 10px;
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--up-muted);
}

/* 时间线 */
.up-tl {
	position: relative;
}

.up-tl::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--up-line);
}

.up-tl__group {
	position: relative;
	padding-left: 20px;
	margin-bottom: 12px;
}

.up-tl__group:last-child {
	margin-bottom: 0;
}

.up-tl__group::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--up-blue);
	box-shadow: 0 0 0 3px #fff;
}

.up-tl__month {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--up-navy);
}

.up-tl__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.up-tl__item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 3px 0;
	font-size: 13px;
}

.up-tl__day {
	flex: 0 0 22px;
	font-size: 12px;
	color: var(--up-muted);
}

.up-tl__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 最近评论 */
.up-rc {
	list-style: none;
	margin: 0;
	padding: 0;
}

.up-rc__item {
	display: flex;
	gap: 9px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-rc__item:last-child {
	border-bottom: 0;
}

.up-rc__avatar {
	flex: 0 0 34px;
}

.up-rc__avatar img {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.up-rc__body {
	min-width: 0;
}

.up-rc__head strong {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--up-text-2);
}

.up-rc__text {
	display: block;
	margin: 1px 0 2px;
	font-size: 13px;
	line-height: 1.55;
	color: #2f3a45;
}

.up-rc__post {
	display: block;
	font-size: 12px;
	color: var(--up-blue);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 站点统计 */
.up-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
	gap: 8px;
}

.up-stats__item {
	padding: 10px 4px;
	text-align: center;
	background: var(--up-blue-lighter);
	border: 1px solid var(--up-line-soft);
}

.up-stats__num {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--up-blue);
}

.up-stats__label {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--up-muted);
}

/* 关于我 */
.up-author {
	padding: 4px 0 2px;
	text-align: center;
}

.up-author__avatar {
	width: 76px;
	height: 76px;
	margin: 0 auto 8px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef3f8;
}

.up-author__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-author__name {
	margin: 0 0 4px;
	font-size: 15px;
	color: #1f2329;
}

.up-author__bio {
	margin: 0 0 8px;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--up-text-2);
}

.up-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.up-author__link {
	padding: 3px 9px;
	font-size: 12px;
	color: var(--up-text-2);
	border: 1px solid var(--up-line);
}

.up-author__link:hover {
	border-color: var(--up-blue);
	color: var(--up-blue);
}

/* 订阅关注 */
.up-sub__text {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--up-text-2);
}

.up-sub__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.up-sub__btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 14px;
	font-size: 13px;
	color: var(--up-text-2);
	background: #fff;
	border: 1px solid var(--up-line);
}

.up-sub__btn:hover {
	border-color: var(--up-blue);
	color: var(--up-blue);
}

.up-sub__btn--rss {
	color: #fff;
	background: var(--up-blue);
	border-color: var(--up-blue);
}

.up-sub__btn--rss:hover {
	color: #fff;
	background: var(--up-navy);
	border-color: var(--up-navy);
}

/* 月度归档 */
.up-archive {
	list-style: none;
	margin: 0;
	padding: 0;
}

.up-archive li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px dashed var(--up-line-soft);
}

.up-archive li:last-child {
	border-bottom: 0;
}

.up-archive__count {
	font-size: 11.5px;
	color: var(--up-muted);
}

/* 置顶推荐 */
.up-featured {
	display: grid;
	grid-template-columns: repeat(var(--up-inner-cols, 2), minmax(0, 1fr));
	gap: 10px;
}

.up-featured__item {
	display: block;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--up-line);
}

.up-featured__media {
	display: block;
	height: 130px;
	background: #eef3f8;
}

.up-featured__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.up-featured__text {
	display: block;
	padding: 8px 10px 10px;
}

.up-featured__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #1f2329;
}

.up-featured__excerpt {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--up-muted);
}

/* ---------- 设备可见性 ---------- */
@media (min-width: 1025px) {
	.up-hide-desktop {
		display: none !important;
	}
}

@media (max-width: 1024px) {
	.up-hide-tablet {
		display: none !important;
	}

	:root {
		--up-container: 100%;
	}

	.up-brand__name {
		font-size: 24px;
	}

	.up-brand__search {
		width: 220px;
	}

	.up-main__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	}

	/* 无侧栏时仍保持单栏，避免正文被挤在左侧留白 */
	.up-main__grid--left-only,
	.up-main__grid--right-only {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-module__title {
		font-size: 15px;
	}

	.up-imnews {
		flex-direction: column;
	}

	.up-imnews__main {
		flex: 0 0 auto;
		width: 100%;
	}

	.up-imnews__side {
		border-left: 0;
		padding-left: 0;
		border-top: 1px dashed var(--up-line);
		padding-top: 8px;
		width: 100%;
	}

	.up-carousel__slide {
		aspect-ratio: var(--up-ratio, 2/1);
	}
}

@media (max-width: 767px) {
	.up-hide-mobile {
		display: none !important;
	}

	.up-container {
		padding: 0 10px;
	}

	.up-topbar__date {
		display: none;
	}

	.up-topbar__inner {
		justify-content: center;
	}

	.up-brand__inner {
		flex-wrap: wrap;
		gap: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.up-brand__logo {
		max-width: 120px;
		height: 52px;
	}

	.up-brand__name {
		font-size: 19px;
		letter-spacing: 0;
	}

	.up-brand__motto {
		font-size: 12px;
		letter-spacing: 3px;
	}

	.up-brand__search {
		width: 100%;
		order: 3;
	}

	.up-nav__toggle {
		display: flex;
	}

	.up-nav__menu {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 44px;
		background: #0f4d8e;
		flex-direction: column;
		z-index: 60;
		max-height: 70vh;
		overflow-y: auto;
	}

	.up-nav__menu.is-open {
		display: flex;
	}

	.up-nav__menu > li > a {
		height: 42px;
		padding: 0 14px;
		font-size: 14px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.up-nav__menu > li > a::after {
		display: none;
	}

	.up-submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-top: 0;
		background: rgba(0, 0, 0, 0.14);
		padding: 0;
		display: none;
	}

	.up-submenu.is-open {
		display: block;
	}

	.up-submenu a {
		color: #dbe9f8;
		border-bottom-color: rgba(255, 255, 255, 0.08);
		padding-left: 28px;
	}

	.up-submenu a:hover {
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}

	.up-submenu .up-submenu {
		position: static;
	}

	.up-region {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-module {
		grid-column: 1 / -1 !important;
	}

	.up-main__grid,
	.up-main__grid--left-only,
	.up-main__grid--right-only {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-carousel__slide {
		aspect-ratio: 16 / 9;
	}

	.up-carousel__img--desktop {
		display: none;
	}

	.up-carousel__img--mobile {
		display: block;
	}

	.up-carousel__caption {
		padding: 24px 12px 10px;
	}

	.up-carousel__title {
		font-size: 15px;
	}

	.up-carousel__text {
		font-size: 12px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.up-carousel__arrow {
		opacity: 0.75;
		width: 28px;
		height: 36px;
		margin-top: -18px;
	}

	.up-list--multi {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-quick {
		grid-template-columns: repeat(min(var(--up-quick-cols, 4), 4), minmax(0, 1fr));
	}

	.up-topics,
	.up-banner,
	.up-links--select,
	.up-links--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.up-card {
		flex-direction: column;
		gap: 8px;
	}

	.up-card__thumb {
		width: 100%;
		height: 160px;
		flex: 0 0 auto;
	}

	.up-cardgrid,
	.up-featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.up-cardgrid .up-card__thumb {
		height: 150px;
	}

	.up-featured__media {
		height: 160px;
	}

	.up-single {
		padding: 16px 14px 20px;
	}

	.up-single__title {
		font-size: 19px;
	}

	.up-single__content {
		/* 必须继承 --up-article-size，否则字号按钮在手机端无效 */
		font-size: calc(var(--up-article-size, 16px) * 0.9);
	}

	.up-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.up-footer__qr {
		align-self: center;
	}

	.up-page {
		padding: 14px 12px 18px;
	}

	.up-page__title {
		font-size: 18px;
	}
}

/* ---------- 打印样式 ---------- */
@media print {
	body {
		display: block;
		background: #fff;
	}

	.up-header,
	.up-footer,
	.up-sidebar,
	.up-crumb,
	.up-single__bar,
	.up-single__nav,
	.up-single__tags,
	.up-comments,
	.up-preview-bar {
		display: none !important;
	}

	.up-container {
		max-width: 100%;
		padding: 0;
	}

	.up-main {
		padding-top: 0;
	}

	.up-main__grid,
	.up-col {
		display: block;
	}

	.up-single {
		border: 0;
		padding: 0;
		max-width: 100%;
	}

	.up-single__head {
		border-bottom: 0;
		padding-bottom: 8px;
		margin-bottom: 12px;
	}

	.up-single__title {
		font-size: 22px;
		color: #000;
	}

	.up-single__content {
		font-size: 12pt;
		line-height: 1.9;
		color: #000;
	}

	.up-single__content a {
		color: #000;
		text-decoration: none;
	}

	.up-single__thumb img {
		max-width: 100%;
	}
}
