/* 内页白色页脚（学院、课程、期刊等子页） */
body.portal-layout-inner {
	background: #e4e7ec;
	min-height: 100vh;
}

.portal-footer {
	--portal-footer-ink: #1a1d21;
	--portal-footer-muted: #5c636a;
	--portal-footer-accent: #0875a5;
	--portal-footer-line: #e8e8e8;
	--portal-footer-surface: #ffffff;
	--portal-footer-surface-alt: #f6f8fb;
	background: linear-gradient(180deg, #d8f0ff 0%, #d0edff 100%);
	border: 1px solid rgb(25 102 209 / 36%);
	margin-top: 2rem;
	border-top: 1px solid var(--portal-footer-line);
	color: var(--portal-footer-ink);
}

.portal-footer__main {
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1rem, 2.5vw, 1.5rem);
}

.portal-footer__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	max-width: 1140px;
	margin: 0 auto;
}

.portal-footer__col {
	flex: 1 1 220px;
	min-width: min(100%, 220px);
	max-width: 100%;
}

.portal-footer__pair {
	display: contents;
}

.portal-footer__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--portal-footer-muted);
	text-wrap: pretty;
}

.portal-footer__label {
	font-weight: 600;
	color: var(--portal-footer-accent);
}

.portal-footer__meta {
	margin: 0;
}

.portal-footer__meta-row {
	display: grid;
	grid-template-columns: 4.25em minmax(0, 1fr);
	gap: 0.5rem 0.75rem;
	align-items: baseline;
	padding: 0.15rem 0;
}

.portal-footer__meta-row + .portal-footer__meta-row {
	border-top: 1px dashed rgba(8, 117, 165, 0.12);
}

.portal-footer__meta-row dt {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--portal-footer-accent);
	white-space: nowrap;
}

.portal-footer__meta-row dd {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--portal-footer-ink);
	word-break: break-all;
}

.portal-footer__meta-row dd a {
	color: var(--portal-footer-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.portal-footer__meta-row dd a:hover {
	color: #0d6efd;
	border-bottom-color: rgba(13, 110, 253, 0.3);
	text-decoration: none;
}

.portal-footer__col--qrcode {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
}

.portal-footer__qrcode {
	margin: 0;
	padding: 0.35rem;
	background: #fff;
	border: 1px solid var(--portal-footer-line);
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.portal-footer__qrcode img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.portal-footer__legal {
	background: var(--portal-footer-surface-alt);
	border-top: 1px solid var(--portal-footer-line);
	padding: 0.65rem 0;
}

.portal-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0.85rem;
	font-size: 0.84rem;
	line-height: 1.6;
	color: var(--portal-footer-muted);
	text-align: center;
}

.portal-footer__legal-item + .portal-footer__legal-item::before {
	content: "·";
	margin-right: 0.85rem;
	color: rgba(8, 117, 165, 0.4);
	font-weight: 700;
}

.portal-footer__bottom-spacer {
	height: 56px;
}

.portal-footer__dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #fff;
	border-top: 1px solid var(--portal-footer-line);
	box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.portal-footer__dock-inner {
	display: flex;
	align-items: stretch;
	max-width: 100%;
}

.portal-footer__dock-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-height: 52px;
	padding: 0.45rem 0.35rem;
	font-size: 0.72rem;
	line-height: 1.2;
	color: var(--portal-footer-muted);
	text-decoration: none;
	border-right: 1px solid var(--portal-footer-line);
	transition: color 0.2s ease, background 0.2s ease;
}

.portal-footer__dock-item:last-child {
	border-right: none;
}

.portal-footer__dock-item i {
	font-size: 1.1rem;
	color: #0d6efd;
}

.portal-footer__dock-item:hover,
.portal-footer__dock-item:focus {
	color: #0d6efd;
	background: rgba(13, 110, 253, 0.04);
	text-decoration: none;
}

.portal-footer,
.portal-footer *,
.portal-footer__dock,
.portal-footer__dock *,
.online,
.online * {
	border-radius: 0 !important;
}

@media (max-width: 991px) {
	.portal-footer__grid {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.portal-footer__col--address {
		width: 100%;
	}

	.portal-footer__pair {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem 1rem;
		width: 100%;
	}

	.portal-footer__col--contact {
		flex: 1 1 auto;
		min-width: 0;
	}

	.portal-footer__col--qrcode {
		justify-content: center;
	}

	.portal-footer__legal-inner {
		flex-direction: column;
		gap: 0.25rem;
		font-size: 0.82rem;
	}

	.portal-footer__legal-item + .portal-footer__legal-item::before {
		content: none;
		margin: 0;
	}
}

@media (max-width: 576px) {
	.portal-footer {
		margin-top: 1.25rem;
	}

	.portal-footer__main {
		padding: 1rem 0 0.85rem;
	}

	.portal-footer__meta-row {
		grid-template-columns: 4.25em minmax(0, 1fr);
		gap: 0.15rem 0.5rem;
	}
}
