/* =========================================================
 * BS Swiper — 主题样式
 * ======================================================= */

/* ---------- 头部 / 导航 ---------- */
.site-header { z-index: 1030; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header:not(.is-overlay),
.site-header.is-overlay.scrolled {
	background: rgba(17, 24, 39, .94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.site-header.is-overlay { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
body.admin-bar .site-header.is-overlay,
body.admin-bar .site-header.sticky-top { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header.is-overlay,
	body.admin-bar .site-header.sticky-top { top: 46px; }
}
.site-logo { max-height: 40px; width: auto; }
.navbar .nav-link { transition: color .2s; }

/* 桌面：下拉菜单淡入 */
@media (min-width: 992px) {
	.navbar .dropdown-menu {
		margin-top: 0;
		border: 0;
		box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .2);
		animation: bssDrop .2s ease;
	}
	.navbar .dropdown-toggle::after { transition: transform .2s; }
	.navbar .dropdown-toggle.show::after { transform: rotate(180deg); }
}
@keyframes bssDrop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 移动：抽屉里的下拉改为内嵌展开 */
@media (max-width: 991.98px) {
	.navbar .dropdown-menu { background: transparent; border: 0; padding-left: 1rem; }
	.navbar .nav-link { padding-top: .6rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.offcanvas { max-width: 82vw; }
}

/* ---------- Hero Swiper ---------- */
.hero-wrap { position: relative; }
.hero-swiper {
	--swiper-theme-color: #fff;
	--swiper-navigation-color: #fff;
	--swiper-pagination-bullet-inactive-color: #fff;
	--swiper-pagination-bullet-inactive-opacity: .5;
	height: var(--hero-h, 80vh);
	min-height: 520px;
	background: #111827;
}
.hero-slide { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; }
.hero-bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transform: scale(1);
	transition: transform 9s ease-out;     /* Ken Burns 缓慢放大 */
}
.hero-slide.swiper-slide-active .hero-bg { transform: scale(1.1); }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 70%);
}
.hero-content { position: relative; z-index: 2; height: 100%; padding-top: 5rem; padding-bottom: 3rem; }
.hero-slide h2 { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-layer { max-height: 58vh; width: auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .4)); }
@media (max-width: 991.98px) {
	.hero-swiper { min-height: 560px; }
	.hero-layer { max-height: 30vh; }
	.hero-slide h2 { font-size: calc(1.5rem + 2vw); }
	.hero-slide .lead { font-size: 1rem; }
}
@media (max-width: 767.98px) {
	.hero-swiper .swiper-button-prev,
	.hero-swiper .swiper-button-next { display: none; }
}

/* ---------- 动画文字/图片 ----------
 * 有 JS 时：未播放动画的元素先隐藏；JS 添加 animate__animated 后显示。
 * 没有 JS / 用户偏好减少动态：直接显示。 */
.js .hero-slide [data-animate]:not(.animate__animated) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.js .hero-slide [data-animate] { opacity: 1 !important; animation: none !important; }
	.hero-bg { transition: none; transform: none !important; }
}

/* ---------- 内容 ---------- */
.entry-content img { max-width: 100%; height: auto; }
.entry-content .alignleft { float: left; margin: 0 1rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1rem; }
.entry-content .aligncenter { display: block; margin: 0 auto 1rem; }
.entry-content table { width: 100%; margin-bottom: 1rem; }
.entry-content table th, .entry-content table td { border: 1px solid var(--bs-border-color); padding: .5rem; }
.card .ratio img { transition: transform .4s ease; }
.card:hover .ratio img { transform: scale(1.05); }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .12) !important; }
.screen-reader-text { position: absolute; left: -9999px; }
.wp-caption { max-width: 100%; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .375rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; }
.comment-body { margin-bottom: 1.5rem; }
.pagination .page-link { color: inherit; }
.pagination .active .page-link { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
