.slideshow {
    height: 400px;
    object-fit: cover;
}

.m-no-scroll {
	overflow: hidden;
}

.m-topbar {
	height: 48px;
	background: #2f7de1;
	color: #fff;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
	z-index: 1040;
}

.m-topbar-title {
	flex: 1;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.m-topbar-btn {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 18px;
	padding: 0;
	transition: transform 0.2s;
}

.m-topbar-btn.is-open {
	transform: rotate(90deg);
}

.m-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	z-index: 1039;
}

.m-drawer-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.m-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 78%;
	max-width: 300px;
	height: 100vh;
	background: #3b3f45;
	transform: translateX(-100%);
	transition: transform .2s ease;
	z-index: 1041;
	box-shadow: 2px 0 10px rgba(0,0,0,.15);
}

.m-drawer.is-open {
	transform: translateX(0);
}

.m-drawer-body {
	padding: 0;
}

.m-drawer-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.10);
	text-decoration: none;
	transition: background-color 0.2s;
}

.m-drawer-item:active {
	background-color: rgba(255,255,255,.08);
}

.m-drawer-item .m-drawer-left {
	display: flex;
	align-items: center;
	min-width: 0;
}

.m-drawer-item .m-drawer-ico {
	width: 22px;
	text-align: center;
	margin-right: 12px;
	opacity: .95;
}

.m-drawer-item .m-drawer-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.m-drawer-item .m-drawer-arrow {
	opacity: .75;
}

.m-swiper .swiper-pagination-bullet {
	background: rgba(255,255,255,.75);
	opacity: 1;
}

.m-swiper .swiper-pagination-bullet-active {
	background: #fff;
}

.m-slideshow {
	height: 40vw;
	max-height: 300px;
	object-fit: cover;
}

.m-home {
	background: #f4f4f4;
	min-height: 80px;
	margin-top:48px;
}

.m-quick-grid {
	background: #f8f9fa;
	padding: 12px 0 12px;
}

.m-quick-item {
	background: #fff;
	border-radius: 8px;
	padding: 10px 12px;
	text-align: left;
	box-shadow: none;
	transition: transform 0.2s, background-color 0.2s;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	min-height: 72px;
}

.m-quick-item:active {
	transform: scale(0.96);
}

.m-quick-thumb {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	flex: 0 0 56px;
	background: #e9ecef;
}

.m-quick-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.m-quick-title {
	margin-left: 12px;
	font-size: 15px;
	color: #222;
	font-weight: 600;
}

.m-section {
	background: #fff;
	padding: 0 0 8px;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.m-section-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	color: inherit;
	padding: 10px;
    border-bottom: 1px solid #F1F1F1;
}

.m-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #1f60d0;
	border-left: 4px solid #1f60d0;
	padding-left: 8px;
}

.m-section-more {
	color: #1f60d0;
	font-size: 18px;
	line-height: 1;
	padding: 0 6px;
}

.m-card {
	display: flex;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
	overflow: hidden;
	margin: 12px 12px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.m-card:active {
	transform: scale(0.98);
}

.m-card-thumb {
	width: 120px;
	height: 80px;
	flex: 0 0 120px;
	background: #e9ecef;
}

.m-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.m-card-bd {
	padding: 10px 12px;
	flex: 1;
	min-width: 0;
}

.m-card-title {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	line-height: 1.35;
	max-height: 2.7em;
	overflow: hidden;
}

.m-card-meta {
	font-size: 12px;
	color: #8a8f98;
	margin-top: 6px;
}

.m-bottomnav {
	background: #2f7de1 !important;
	background-color: #2f7de1 !important;
	background-image: none !important;
}

.m-bottomnav a {
	font-size: 12px;
	line-height: 1.2;
}

.m-bottomnav a i {
	display: block;
	font-size: 18px;
	margin-bottom: 4px;
}

.m-article {
	padding: 12px;
}

.m-article-meta {
	font-size: 13px;
	color: #8a8f98;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
}

.m-article-visits {
	color: #8a8f98;
}

.m-article-body {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
	word-break: break-word;
}

.m-article-body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 12px 0;
}

.m-article-nav {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid #eee;
	font-size: 14px;
}

.m-article-prev,
.m-article-next {
	margin-bottom: 8px;
}

.m-article-prev a,
.m-article-next a {
	color: #2f7de1;
}

.m-article-prev a:hover,
.m-article-next a:hover {
	text-decoration: underline;
}

.m-contact {
	padding: 12px;
}

.m-contact-info {
	margin-bottom: 16px;
}

.m-contact-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	font-size: 14px;
	color: #333;
}

.m-contact-item i {
	width: 20px;
	margin-right: 10px;
	margin-top: 2px;
	color: #2f7de1;
}

.m-contact-text {
	flex: 1;
	line-height: 1.5;
}

.m-contact-map {
	height: 240px;
	background: #f1f1f1;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.m-contact-map::before {
	content: '地图加载中...';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #999;
	font-size: 14px;
}

@media (max-width: 767.98px) {
	.slideshow {
		height: 180px;
	}
}

@media (max-width: 375px) {
	.m-quick-item {
		padding: 12px 8px;
		min-height: 80px;
	}
	.m-quick-thumb {
		width: 38px;
		height: 38px;
		flex: 0 0 38px;
	}
	.m-quick-title {
		font-size: 14px;
		margin-left: 8px;
	}
	.m-card-thumb {
		width: 100px;
		height: 68px;
		flex: 0 0 100px;
	}
	.m-card-title {
		font-size: 14px;
	}
	.m-card-meta {
		font-size: 11px;
	}
	.m-article-body {
		font-size: 14px;
	}
}

/* 全局移动端样式 - 强制所有设备使用移动端布局 */
body {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
}

/* 隐藏所有桌面端专用元素 */
.d-none.d-md-block,
.d-block.d-sm-none,
.d-none.d-lg-block,
.d-lg-block,
.d-md-flex,
.d-flex.d-md-none {
    display: none !important;
}

/* 强制显示移动端专用元素 */
.d-block.d-sm-none,
.d-block.d-md-none,
.d-flex.d-md-none {
    display: block !important;
}

.d-flex.d-md-none {
    display: flex !important;
}

/* 移动端导航栏始终显示 */
.m-topbar {
    display: flex !important;
}

.m-drawer {
    display: block !important;
}

/* 移动端底部导航始终显示 */
.m-bottomnav {
    display: block !important;
}

/* 隐藏所有可能的PC端导航 */
.navbar,
.navbar-expand,
.navbar-expand-lg,
.navbar-expand-md {
    display: none !important;
}

/* 全局响应式控制 */
body.is-mobile .d-none.d-md-block {
	display: none !important;
}

body.is-mobile .d-block.d-sm-none {
	display: block !important;
}

body.is-desktop .d-block.d-sm-none {
	display: none !important;
}

body.is-desktop .d-none.d-md-block {
	display: block !important;
}

/* PC端分享样式 */
.pc-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-share-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.pc-share-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.pc-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pc-share-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pc-share-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pc-share-close:hover {
    background: #f5f5f5;
    color: #666;
}

.pc-share-body {
    padding: 24px;
}

.pc-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.pc-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.pc-share-item:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pc-share-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

.pc-share-item span {
    font-size: 14px;
    font-weight: 500;
}

/* PC端分享图标颜色 */
.pc-share-item:nth-child(1) { color: #07c160; } /* 微信 */
.pc-share-item:nth-child(2) { color: #e6162d; } /* 微博 */
.pc-share-item:nth-child(3) { color: #12b7f5; } /* QQ */
.pc-share-item:nth-child(4) { color: #ffc20e; } /* QQ空间 */
.pc-share-item:nth-child(5) { color: #007722; } /* 豆瓣 */
.pc-share-item:nth-child(6) { color: #3385ff; } /* 贴吧 */
.pc-share-item:nth-child(7) { color: #666; } /* 复制链接 */

/* PC端微信二维码 */
.pc-wechat-qr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.qr-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.qr-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.qr-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qr-close:hover {
    background: #f5f5f5;
    color: #666;
}

.qr-body {
    text-align: center;
}

.qr-body img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
}

.qr-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Toast提示 */
.share-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 响应式适配 */
@media (max-width: 576px) {
    .pc-share-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .pc-share-item {
        padding: 12px 8px;
    }
    
    .pc-share-item i {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .pc-share-item span {
        font-size: 12px;
    }
}

/* 移动端分享面板 */
.mobile-share-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.mobile-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-share-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-share-panel.show .mobile-share-content {
    transform: translateY(0);
}

.mobile-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mobile-share-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-share-close:hover {
    background: #f5f5f5;
    color: #666;
}

.mobile-share-body {
    padding: 20px 0;
}

.mobile-share-panel.show {
    display: block;
}

.social-share-wechat-qrcode{
	z-index: 99999 !important;
}