/* ===================== 贵州医科大学基建处 - 公共样式 ===================== */

/* 移除Safari浏览器focus-visible的蓝色外框 */
*:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
:root {
	--primary: #6a190b;
	--primary-dark: #521409;
	--primary-light: #8a2a15;
	--primary-lighter: #d4756a;
	--primary-bg: #faf0ee;
	--primary-bg-deep: #f5e0dc;
	--text: #475568;
	--text-light: #8a95a5;
	--border: #ebebeb;
	--bg: #f5f7fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
	height: 100%;
	font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--text);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { text-decoration: none; color: var(--text); transition: color .25s ease; }
a:hover { color: var(--primary); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===================== 顶部导航 ===================== */
.full-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	height: 90px;
	background: linear-gradient(to bottom, rgba(10, 31, 60, 0.7), rgba(10, 31, 60, 0));
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}

/* 首屏：半透明渐变（默认）；非首屏：实体主色 */
body[data-fp-index="1"] .full-header,
body[data-fp-index="2"] .full-header,
body[data-fp-index="3"] .full-header {
	background: var(--primary);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-cont {
	max-width: 1400px;
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-logo img {
	height: 80px;
	width: auto;
	transition: filter .35s ease, opacity .25s ease;
}
.header-logo:hover { opacity: .85; }

.header-menu { flex: 1; display: flex; justify-content: flex-end; }

.header-menu .navbar { background: transparent !important; }
.header-menu .navbar-nav { align-items: center; }
.header-menu .navbar-nav > .nav-item > .nav-link {
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	padding: 0 12px;
	line-height: 90px;
	letter-spacing: 1px;
	position: relative;
}
.header-menu .navbar-nav > .nav-item > .nav-link:hover,
.header-menu .navbar-nav > .nav-item > .nav-link.active {
	color: #fff;
	background: transparent;
}
.header-menu .navbar-nav > .nav-item > .nav-link::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 24px;
	width: 0; height: 2px;
	background: #fff;
	transition: width .3s ease, left .3s ease;
}
.header-menu .navbar-nav > .nav-item > .nav-link:hover::after {
	width: 50px; left: calc(50% - 25px);
}
.header-menu .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
	border: none;
	margin: 0;
	vertical-align: baseline;
}
.header-menu .navbar-nav > .nav-item > .nav-link.dropdown-toggle {
	padding-right: 20px;
}
.header-menu .navbar-nav > .nav-item > .nav-link.dropdown-toggle::before {
	content: "\F282";
	font-family: "bootstrap-icons";
	font-size: 11px;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform .3s ease;
}
.header-menu .navbar-nav > .nav-item.show > .nav-link.dropdown-toggle::before {
	transform: translateY(-50%) rotate(180deg);
}

.header-menu .dropdown-menu {
	border: none;
	border-radius: 0 0 6px 6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
	min-width: 200px;
	margin-top: 0;
}
.header-menu .dropdown-item {
	color: var(--text);
	font-size: 15px;
	padding: 10px 20px;
	transition: all .25s ease;
}
.header-menu .dropdown-item:hover {
	color: var(--primary);
	background: var(--primary-bg);
	padding-left: 26px;
}

/* 移动端折叠按钮 */
.header-menu .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
	padding: 4px 10px;
}
.header-menu .navbar-toggler-icon {
	filter: invert(1);
}

@media (max-width: 991.98px) {
	.full-header {
		height: 70px;
		background: var(--primary);
	}
	.header-logo img { height: 55px; }
	.header-menu .navbar {
		width: 100%;
		position: relative;
	}
	.header-menu .container-fluid {
		display: flex;
		justify-content: center;
		padding: 0;
	}
	.header-menu .navbar-toggler:focus { box-shadow: none; }
	.header-menu .navbar-collapse {
		background: rgba(106, 25, 11, 0.9);
		padding: 10px 20px 20px;
		max-height: 70vh;
		overflow-y: auto;
		overflow-x: hidden;
		position: fixed;
		top: 70px;
		left: 0;
		z-index: 999;
		width: 100%;
	}
	.header-menu .navbar-nav {
		width: 100%;
		align-items: stretch;
	}
	.header-menu .navbar-nav > .nav-item {
		width: 100%;
	}
	.header-menu .navbar-nav > .nav-item > .nav-link {
		line-height: 44px;
		padding: 0 34px 0 20px;
		width: 100%;
	}
	.header-menu .navbar-nav > .nav-item > .nav-link::after {
		display: none;
	}
	.header-menu .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
		display: none;
	}
	.header-menu .navbar-nav > .nav-item > .nav-link.dropdown-toggle::before {
		right: 14px;
		font-size: 14px;
	}
	.header-menu .dropdown-menu {
		position: static !important;
		transform: none !important;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.08);
		width: 100%;
		min-width: 100%;
		border-radius: 0;
		padding: 0;
		margin: 0;
	}
	.header-menu .dropdown-item {
		color: #fff;
		font-size: 15px;
		padding: 8px 20px 8px 36px;
		white-space: normal;
	}
	.header-menu .dropdown-item:hover {
		background: rgba(255, 255, 255, 0.15);
		color: #fff;
		padding-left: 36px;
	}
}

/* ===================== 通用板块标题 ===================== */
.section-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.section-head {
	text-align: center;
	position: relative;
	margin-bottom: 28px;
	padding-top: 8px;
}
.section-head h2 {
	font-size: 30px;
	font-weight: 700;
	color: var(--primary);
	letter-spacing: 2px;
	display: inline-block;
	position: relative;
	padding: 0 30px;
	margin-bottom: 20px;
}
.section-head h2::before,
.section-head h2::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 40px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--primary-lighter));
}
.section-head h2::before { right: 100%; background: linear-gradient(90deg, transparent, var(--primary-lighter)); }
.section-head h2::after  { left: 100%;  background: linear-gradient(90deg, var(--primary-lighter), transparent); }
.section-head p {
	margin-top: 10px;
	color: var(--text-light);
	font-size: 15px;
	letter-spacing: 1px;
}
.section-head .more-link {
	position: absolute;
	right: 0;
	top: 12px;
	font-size: 13px;
	color: var(--text-light);
}
.section-head .more-link:hover { color: var(--primary); }
.section-head .more-link i { font-size: 12px; }

/* ===================== 通用 Tabs ===================== */
.nav-underline { gap: 4px; border: none; }
.nav-underline > .nav-item > .nav-link {
	font-size: 19px;
	padding: 6px 14px;
	color: var(--primary);
	border: none;
	position: relative;
	z-index: 2;
	background: transparent;
}
.nav-underline > .nav-item > .nav-link.active {
	color: var(--primary);
	font-weight: 600;
}
.nav-underline > .nav-item > .nav-link.active::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 0;
	height: 3px;
	background: var(--primary);
	border-radius: 2px;
}
.nav-underline .more-cont { align-self: center; margin-left: auto; }
.nav-underline .more-cont a {
	color: var(--text-light);
	font-size: 12px;
}
.nav-underline .more-cont a:hover { color: var(--primary); }
.nav-underline .more-cont a i { font-size: 12px; }

.bottom-line {
	display: block;
	height: 1px;
	background: var(--border);
	margin-top: -1px;
}

/* ===================== 通用列表样式 ===================== */
/* 工作动态（图文列表） */
.news-text > ul > li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 12px 6px;
	border-bottom: 1px dashed #eef0f3;
	transition: background-color .25s ease;
}
.news-text > ul > li:hover { background-color: var(--primary-bg); }
.news-text > ul > li .news-list { flex: 1; min-width: 0; }
.news-text > ul > li .news-title {
	font-size: 17px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.news-text > ul > li:hover .news-title { color: var(--primary); }
.news-text > ul > li .news-abstract {
	font-size: 13px;
	color: var(--text-light);
	line-height: 1.5em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-text > ul > li .news-date {
	flex: 0 0 70px;
	width: 70px; height: 70px;
	border: 1px solid var(--primary-bg-deep);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: var(--primary);
	background: #fff;
}
.news-text > ul > li .news-date h2 { font-size: 24px; margin: 0; font-weight: 700; }
.news-text > ul > li .news-date h3 { font-size: 13px; margin: 2px 0 0; font-weight: 400; color: var(--text-light); }

/* 公告 / 决策平台 纯文字列表 */
.note-ul { padding: 6px 0 0; }
.note-ul > li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 6px 11px 18px;
	font-size: 16px;
	border-bottom: 1px dashed #eef0f3;
	background-image: url('../images/box_1.gif');
	background-repeat: no-repeat;
	background-position: 6px center;
	transition: background-color .25s ease;
}
.note-ul > li:hover { background-color: var(--primary-bg); }
.note-ul > li > a {
	flex: 1;
	min-width: 0;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.note-ul > li > a:hover { color: var(--primary); }
.note-ul > li > span {
	flex: 0 0 auto;
	color: var(--text-light);
	font-size: 13px;
	margin-left: 14px;
}

/* ===================== 底部 ===================== */
.footer {
	background: var(--primary);
	color: #fff;
}
.footer-cont {
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 20px 20px;
	display: grid;
	grid-template-columns: auto 1fr 1fr;
	gap: 40px;
}
.footer-intro {
	display: flex;
	align-items: center;
}
.footer-col h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-intro .footer-logo { margin-bottom: 4px; }
.footer-intro .footer-logo img { height: 80px; opacity: .6; }
.footer-intro p {
	font-size: 12px;
	line-height: 1.7em;
	color: rgba(255, 255, 255, 0.78);
}
.footer-contact p {
	font-size: 13px;
	line-height: 1.5em;
	color: rgba(255, 255, 255, 0.85);
}
.footer-contact p i {
	color: var(--primary-lighter);
	margin-right: 8px;
}
.footer-qrcode .qrcode-row { display: flex; gap: 14px; margin-top: 30px; }
.footer-qrcode .qrcode-item { text-align: center; }
.footer-qrcode .qrcode-item img {
	width: 76px; height: 76px;
	background: #fff;
	padding: 3px;
	border-radius: 6px;
}
.footer-qrcode .qrcode-item span {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.75);
}
.footer-bottom {
	background: var(--primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	min-height: 40px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0; }

/* ===================== 移动端通用适配 ===================== */
@media (max-width: 992px) {
	.footer-cont { grid-template-columns: 1fr; gap: 26px; }
	.footer-intro { justify-content: center; }
	.footer-qrcode .qrcode-row { justify-content: center; }
	.page-banner { margin-top: 70px; }
}

@media (max-width: 576px) {
	.footer-cont { grid-template-columns: 1fr; gap: 20px; }
	.gallery-swiper { padding: 0 4px; }
}

/* ===================== 基建风采 图片轮播（参照工作剪影） ===================== */
.gallery-section {
	padding: 20px 0 30px;
}
.gallery-swiper {
	padding: 0 40px;
}
.gallery-swiper .card {
	border: none;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,0.15);
	transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-swiper .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.gallery-swiper .card-img-top {
	height: 200px;
	object-fit: cover;
}
.gallery-swiper .card-body {
	padding: 12px 15px;
	text-align: center;
	background: #fff;
}
.gallery-swiper .card-title {
	font-size: 15px;
	color: #333;
	margin: 0;
	font-weight: 500;
}
.gallery-nav-btn {
	color: #fff;
	background: rgba(0,0,0,0.35);
	width: 36px !important;
	height: 36px !important;
	border-radius: 50%;
}
.gallery-nav-btn::after {
	font-size: 14px;
}
.gallery-nav-btn:hover {
	background: rgba(0,0,0,0.6);
}
.full-header {
	min-width: 1220px;
}

@media (max-width: 768px) {
	.full-header {
		min-width: 100% !important;
	}
}