/* ==========================================================================
   中国边疆研究所 - 移动端样式文件

   覆盖页面: article.html (其他页面可按相同 .pc-only / .mob-only 结构扩展)

   切换逻辑：
   - 屏幕宽度 > 768px ：显示 .pc-only，隐藏 .mob-only
   - 屏幕宽度 ≤ 768px ：隐藏 .pc-only，显示 .mob-only
   ========================================================================== */


/* ==========================================================================
   显隐切换 - 默认（桌面端，> 768px）
   ========================================================================== */
.pc-only {
	display: block;
}

.mob-only {
	display: none;
}

.m-header {
	width: 100%;
	background-color: #9e0701;
	padding: 16px 16px 14px;
}

.m-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.m-logo {
	display: flex;
	align-items: center;
	flex: 1;
	overflow: hidden;
}

.m-logo-img {
	width: 295px;
	height: auto;
	flex-shrink: 0;
	margin-right: 10px;
}

.m-logo-text {
	flex: 1;
	min-width: 0;
}

.m-logo-text-row {
	display: flex;
	align-items: center;
	margin-bottom: 2px;
}

.m-logo-text-cn {
	font-size: 12px;
	font-weight: bold;
	color: #ffffff;
	line-height: 1.4;
	margin-right: 10px;
	white-space: nowrap;
}

.m-logo-title-cn {
	font-size: 18px;
	font-weight: bold;
	color: #ffffff;
	line-height: 1.4;
	white-space: nowrap;
}

.m-logo-title-en {
	font-size: 9px;
	color: #ffffff;
	line-height: 1.4;
	margin-top: 2px;
	letter-spacing: 0.5px;
}

.m-search {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: 10px;
	flex-shrink: 0;
}

.m-search-icon {
	width: 30px;
	height: 30px;
}


/* ==========================================================================
   移动端 导航 (可横向滑动)
   ========================================================================== */
.m-nav {
	display: flex;
	align-items: stretch;
	width: 100%;
	/* background-color: #9e0701; */
	/* border-top: 1px solid rgba(255, 255, 255, 0.15); */
	background-color: #860a05;
	height: 45px;
}

.m-nav-list {
	display: flex;
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	/* 关键：横向滚动 */
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	/* iOS 顺滑滚动 */
	scrollbar-width: none;
	/* Firefox 隐藏滚动条 */
	-ms-overflow-style: none;
	/* IE 隐藏滚动条 */
	/* height: 100%; */
}

/* Chrome / Safari 隐藏滚动条 */
.m-nav-list::-webkit-scrollbar {
	display: none;
	height: 0;
}

.m-nav-item {
	/* 不再用 flex:1 平分宽度，改为按内容宽度 */
	flex-shrink: 0;
	/* 关键：不被压缩 */
	text-align: center;
	position: relative;
	height: 45px;
	background-color: #860a05;
}

.m-nav-link {
	display: block;
	padding: 0 18px;
	/* 左右内边距决定每项宽度 */
	font-size: 16px;
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
	white-space: nowrap;
	/* 关键：标题不换行 */
	height: 45px;
	line-height: 45px;
}

.m-nav-item-active .m-nav-link {
	color: #ffffff;
}

.m-nav-item-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
	width: 24px;
	height: 2px;
	background-color: #d4a85a;
	border-radius: 1px;
}

.m-nav-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 46px;
	flex-shrink: 0;
	/* 汉堡按钮固定在最右 不被挤压 */
	background-color: #7a0502;
	border: none;
	padding: 0;
	cursor: pointer;
	height: 45px;
}

.m-nav-menu-line {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #ffffff;
	margin: 3px 0;
	border-radius: 1px;
}



/* ==========================================================================
   移动端 全屏展开菜单样式 (还原图片效果)
   ========================================================================== */
.m-menu-mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 9999;
}

.m-menu-container {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	/* 侧边抽屉宽度 */
	height: 100%;
	background-color: #ffffff;
	display: flex;
	flex-direction: column;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
}

.m-menu-header {
	height: 50px;
	background-color: #9e0701;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 16px;
}

.m-menu-close {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
}

.m-menu-content {
	flex: 1;
	display: flex;
	overflow: hidden;
}

/* 左侧二级栏目导航栏 */
.m-menu-left {
	width: 40%;
	background-color: #fcf7f2;
	/* 浅米色底色 */
	margin: 0;
	padding: 10px 0;
	list-style: none;
	overflow-y: auto;
}

.m-menu-left-item {
	padding: 18px 15px 18px 25px;
	font-size: 16px;
	color: #333333;
	cursor: pointer;
	position: relative;
}

.m-menu-left-item a {
	text-decoration: none;
	color: inherit;
}

/* 左侧选中激活状态 (带红色小三角) */
.m-menu-left-item.active {
	background-color: #ffffff;
	color: #9e0701;
	font-weight: bold;
}

.m-menu-left-item.active::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	border-style: solid;
	border-width: 5px 0 5px 6px;
	border-color: transparent transparent transparent #9e0701;
}

/* 右侧三级栏目展示区 */
.m-menu-right {
	width: 60%;
	background-color: #ffffff;
	padding: 15px 20px;
	overflow-y: auto;
}

.m-menu-right-group {
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-menu-right-group li {
	padding: 14px 0;
}

.m-menu-right-group li a {
	font-size: 16px;
	color: #444444;
	text-decoration: none;
	position: relative;
	padding-left: 15px;
	display: block;
}

/* 右侧列表前的金色小圆点 */
.m-menu-right-group li a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	background-color: #d4a85a;
	border-radius: 50%;
}




.mob-only .no-trs-content .TRS_Editor * {

	font-size: 15px;
	line-height: 30px;
	letter-spacing: 0px;
	color: #333333;
}


/* ==========================================================================
   移动端样式 (≤ 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

	/* ---- 切换显隐 ---- */
	.pc-only {
		display: none !important;
	}

	.mob-only {
		display: block !important;
	}

	/* ---- 基础设置 ---- */
	body {
		font-family: "Microsoft YaHei", "MicrosoftYaHei", "微软雅黑", Arial, sans-serif;
		background-color: #ffffff;
		font-size: 14px;
		color: #333;
		-webkit-text-size-adjust: 100%;
	}


	/* ==========================================================================
       移动端 顶部 Header
       ========================================================================== */


	/* ==========================================================================
       移动端 导航
       ========================================================================== */

	/* ==========================================================================
       移动端 组织机构页面
       ========================================================================== */
	.m-content {
		padding: 20px 16px 40px;
		background-color: #ffffff;
	}

	.m-page-header {
		padding-bottom: 16px;
		border-bottom: 1px solid #e8e8e8;
		position: relative;
		margin-bottom: 20px;
	}

	.m-page-title {
		font-size: 20px;
		font-weight: bold;
		color: #333333;
		line-height: 1.4;
	}

	.m-page-header ::after {
		content: "";
		display: block;
		width: 73px;
		height: 3px;
		background-color: #ca9850;
		position: absolute;
		left: 0;
		bottom: 0;
	}


	.m-section {
		margin-bottom: 30px;
	}

	.m-section-header {
		display: flex;
		align-items: center;
		margin-bottom: 16px;
	}

	.m-section-line {
		width: 3px;
		height: 16px;
		background-color: #9e0701;
		margin-right: 8px;
		flex-shrink: 0;
	}

	.m-section-title {
		font-size: 16px;
		font-weight: bold;
		color: #333333;
		line-height: 1.4;
	}

	.m-section-content {
		font-size: 14px;
		line-height: 1.8;
		color: #333333;
	}

	.m-section-content p {
		/* margin-bottom: 12px; */
		text-align: justify;
		/* text-indent: 2em; */
	}

	.m-section-content p:last-child {
		/* margin-bottom: 0; */
	}

	.m-section-content .TRS_Editor * {
		font-size: 15px;
		line-height: 1.8;
		color: #333333;
	}

	/* 移动端成员列表 */
	.m-member-list {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		justify-content: flex-start;
		/* grid-template-columns: repeat(3, 1fr); */
		/* overflow: hidden; */
	}

	.m-member-item {
		width: calc((100% - 20px) / 2);
		background-color: #fdf9f4;
		border: 1px solid #f2dcbc;
		overflow: hidden;
		/* width: 161px; */
		/* height: 279px; */
		/* float: left; */
		/* margin-right: 20px; */
		/* margin-bottom: 20px; */
		padding: 10px;
	}

	.m-member-item a {
		display: block;
		text-decoration: none;
		color: inherit;
	}

	.m-member-photo {
		width: 100%;
		/* padding-top: 130%; */
		/* position: relative; */
		/* overflow: hidden; */
		/* background-color: #f5f5f5; */
	}
	
	.m-member-photo  img{
		width:100%; height: auto ;
	}

	.m-member-img {
		/* position: absolute; */
		/* top: 0; */
		/* left: 0; */
		width: 100%;
		height: auto;
		/* object-fit: cover; */
		text-align: center;
	}

	.m-member-img img {
		display: inline;	width: 100%;
	}

	.m-member-info {
		 
		text-align: center;
	}
	
	.m-member-info .m-member-img img {
		width: 50%;
	}

	.m-member-name {
		font-size: 15px;
		font-weight: bold;
		color: #333333;
		line-height: 1.4;margin-top: 10px;
		
	}

	.m-member-title {
		margin-top: 5px;
		font-size: 14px;
		color: #ca9850;
		line-height: 1.4;
	}

	/* ==========================================================================
       移动端 文章
       ========================================================================== */
	.m-article {
		padding: 28px 18px 40px;
		background-color: #ffffff;
	}

	.m-article-title {
		font-size: 18px;
		font-weight: bold;
		color: #222;
		line-height: 1.5;
		margin-bottom: 20px;
		text-align: center;
	}

	.m-article-meta {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		font-size: 14px;
		color: #999;
		margin-bottom: 18px;
		justify-content: center;
	}

	.m-article-meta-item {
		margin-right: 30px;
	}

	.m-article-meta-item:last-child {
		margin-right: 0;
	}

	.m-article-divider {
		width: 100%;
		height: 1px;
		background-color: #e8e8e8;
		margin-bottom: 24px;
	}

	.m-article-body {
		font-size: 15px;
		line-height: 2;
		color: #333;
	}

	.m-article-body p {
		margin-bottom: 16px;
		/* text-indent: 2em; */
		text-align: justify;
	}


	.m-article-body .TRS_Editor * {
		font-size: 15px;
		color: #333333;
	}

	.m-article-body .TRS_Editor img {
		display: block;
		        max-width: 100%;
		        height: auto;
	}

	/* ==========================================================================
       移动端 页脚
       ========================================================================== */
	.m-footer {
		background-color: #9e0701;
		padding: 30px 16px 28px;
		color: #ffffff;
		text-align: center;
	}

	.m-footer-links {
		font-size: 14px;
		line-height: 1.8;
		margin-bottom: 16px;
		padding-bottom: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
		text-align: left;
	}


	.m-footer-links-label {
		margin-right: 4px;
	}

	.m-footer-links .m-link-group {}

	.m-footer-link {
		color: #ffffff;
		/* margin: 0 10px; */
		text-decoration: none;
		margin-right: 24px;
	}

	.m-footer-qrcode {
		display: flex;
		justify-content: center;
		align-items: flex-start;
		gap: 36px;
		margin-bottom: 16px;
		/* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
	}

	.m-qrcode-item {
		text-align: center;
	}

	.m-qrcode-img {
		width: 110px;
		height: 110px;
		display: block;
		margin: 0 auto 8px;
		background-color: #ffffff;
	}

	.m-qrcode-text {
		font-size: 13px;
		color: #ffffff;
		line-height: 1.4;
	}

	.m-footer-copyright {
		padding-top: 16px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.m-footer-text {
		font-size: 13px;
		color: #ffffff;
		line-height: 1.9;
		margin: 0;
	}




	/* ==========================================================================
   移动端 历任领导页面样式
   ========================================================================== */

	.m-old-leaders {
		margin-top: 20px;
	}

	.m-leader-section {
		margin-bottom: 35px;
		padding-bottom: 25px;
		border-bottom: 1px solid #f0f0f0;
	}

	.m-leader-section:last-child {
		border-bottom: none;
	}

	.m-leader-header {
		display: flex;
		align-items: center;
		margin-bottom: 12px;
	}

	.m-leader-rank {
		font-size: 16px;
		font-weight: bold;
		color: #333333;
		line-height: 1.4;
	}

	.m-leader-position {
		font-size: 14px;
		color: #666666;
		line-height: 1.6;
		margin-bottom: 18px;
	}

	.m-leader-card {
		background-color: #fdf9f4;
		border: 1px solid #f2dcbc;
		padding: 10px;
		margin-bottom: 20px;
		text-align: center;
		width: 161px;
		margin: 0 auto;
	}

	.m-leader-photo-wrap {
		display: inline-block;
	}

	.m-leader-photo-wrap img {
		width: 100%;
		height: auto;
		display: block;
		margin: 0 auto 10px;
		border: 1px solid #e5e5e5;
	}

	.m-leader-name-label {
		font-size: 15px;
		color: #333333;
		font-weight: bold;
		text-align: center;
		line-height: 1.4;
	}

	.m-leader-intro {
		/* background-color: #fafafa; */
		padding: 15px;
		font-size: 15px;
		color: #333333;
		line-height: 1.8;
		text-align: justify;
		margin-top: 15px;
	}

	.m-leader-intro-title {
		font-size: 15px;
		font-weight: bold;
		color: #333333;
		line-height: 1.6;
		margin-bottom: 8px;
	}

	.m-leader-intro-text {
		font-size: 14px;
		color: #333333;
		line-height: 1.8;
		text-align: justify;
	}


	.m-news-list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.m-news-item {
		display: flex;
		flex-direction: column;
		padding: 16px 0 16px 20px;
		/* 左侧留出圆点空间 */
		border-bottom: 1px solid #eeeeee;
		position: relative;
	}

	.m-news-item:last-child {
		border-bottom: none;
	}

	/* 每条新闻前的实心圆点 */
	.m-news-item::before {
		content: "";
		position: absolute;
		left: 4px;
		top: 26px;
		/* 与标题第一行垂直居中 */
		width: 4px;
		height: 4px;
		border-radius: 50%;
		background-color: #9e0701;
		flex-shrink: 0;
	}

	/* 新闻标题 */
	.m-news-title {
		display: block;
		font-size: 15px;
		/* font-weight: bold; */
		color: #222222;
		line-height: 1.6;
		margin-bottom: 8px;
		text-decoration: none;
		/* 完整显示，不截断 */
		white-space: normal;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		word-break: break-word;
	}

	.m-news-title:active {
		color: #9e0701;
	}

	/* 新闻日期 */
	.m-news-date {
		display: block;
		font-size: 13px;
		color: #999999;
		line-height: 1.4;
	}
}





/* ==========================================================================
   移动端 首页主体 (index.html)
   ========================================================================== */
@media screen and (max-width: 768px) {

	/* ----
       头条专题
    ---- */
	.m-index-topic {
		background-color: #fff;
		padding: 12px 16px;
		border-bottom: 1px solid #eeeeee;
	}

	.m-index-topic-title {
		display: block;
		font-size: 18px;
		font-weight: bold;
		color: #9e0701;
		line-height: 1.5;
		/* margin-bottom: 8px; */
		text-decoration: none;
		text-align: center;
	}

	.m-index-topic-list {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.m-index-topic-item {
		display: block;
		font-size: 13px;
		color: #555555;
		line-height: 1.6;
		padding: 4px 0;
		text-decoration: none;
		border-top: 1px dashed #e5e5e5;
	}

	.m-index-topic-item:first-child {
		border-top: none;
	}

	.m-index-topic-item:active {
		color: #9e0701;
	}

	/* ----
       轮播图 Banner
    ---- */
	.m-banner {
		width: 100%;
		overflow: hidden;
	}

	.m-banner .swiper-slide  img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* ----
       通用区块容器
    ---- */
	.m-index-section {
		padding: 18px 16px 4px;
		background-color: #ffffff;
		border-bottom: 8px solid #f4ede3;
	}

	/* 出版物区块背景稍有区别 */
	.m-index-section-publication {
		border-bottom: none;
		padding-bottom: 20px;

		background: url("./m_index_book_bg.jpg") no-repeat;
		background-size: 100% auto;
	}

	/* ----
       区块标题栏（通用：要闻动态 / 党建工作 / 学术研究 / 通知公告 / 出版物）
    ---- */
	.m-block-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}

	.m-block-title {
		font-size: 17px;
		font-weight: bold;
		color: #222222;
		line-height: 1.4;
		position: relative;
		padding-left: 10px;
	}

	/* 标题左侧红色竖线 */
	.m-block-title::before {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 3px;
		height: 16px;
		background-color: #9e0701;
		border-radius: 1px;
	}

	.m-block-title-top {
		width: 100px;
		height: 34px;
		background-color: #9e0701;
		text-align: center;
		/* font-size: 22px; */
		font-weight: bold;
		font-stretch: normal;
		line-height: 34px;
		letter-spacing: 2px;
		color: #ffffff;
		position: relative;
		padding: 0;
	}

	.m-block-title-top::before {
		content: '';
		position: absolute;
		right: -10px;
		top: 16px;
		width: 0;
		height: 0;
		border-top: 35px solid transparent;
		border-bottom: 0;
		border-left: 10px solid #ca9850;
		left: unset;
		background: none;
	}

	.m-block-more {
		font-size: 13px;
		color: #9e0701;
		text-decoration: none;
		white-space: nowrap;
	}

	.m-more-arrow {
		font-size: 13px;
	}

	/* ----
       要闻动态：带日期方块的列表
    ---- */
	.m-news-list-date {
		/* 覆盖基础 m-news-list 的圆点样式 */
	}

	.m-news-list-date .m-news-item {
		/* display: flex; */
		/* align-items: flex-start; */
		/* justify-content: flex-end; */
		/* gap: 12px; */
		padding: 12px 0;
		border-bottom: 1px solid #f0f0f0;
		display: block;
		overflow: hidden;
	}

	/* 去掉圆点伪元素 */
	.m-news-list-date .m-news-item::before {
		display: none;
	}

	.m-news-list-date .m-news-item:last-child {
		border-bottom: none;
	}

	/* 日期方块 */
	.m-news-date-box {
		flex-shrink: 0;
		width: 48px;
		background-color: #9e0701;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 6px 4px;
		min-height: 46px;
		float: left;
	}

	.m-news-date-day {
		display: block;
		font-size: 20px;
		font-weight: bold;
		color: #ffffff;
		line-height: 1.2;
	}

	.m-news-date-ym {
		display: block;
		font-size: 10px;
		color: rgba(255, 255, 255, 0.85);
		line-height: 1.4;
		margin-top: 2px;
	}

	/* 日期方块右侧内容 */
	.m-news-body {
		/* flex: 1; */
		/* min-width: 0; */
		width: calc(100% - 68px);
		float: right;
	}

	.m-news-body .m-news-title {
		font-size: 14px;
		font-weight: normal;
		/* overflow: visible; */
		-webkit-line-clamp: 2;
		/* white-space: normal; */
		color: #333333;
		margin-bottom: 0;
	}

	/* ----
       出版物列表
    ---- */
	.m-publication-list {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.m-publication-item {
		display: flex;
		align-items: flex-start;
		gap: 14px;
		padding: 15px 10px;
		border-bottom: 1px solid #f0f0f0;
		background-color: #ffffff;
		margin-bottom: 25px;
	}

	.m-publication-item:last-child {
		border-bottom: none;
	}

	.m-publication-cover {
		flex-shrink: 0;
		width: 125px;
		display: block;
	}

	.m-publication-cover img {
		width: 125px;
		height: auto;
		display: block;
		border: 1px solid #e8e8e8;
	}

	.m-publication-info {
		flex: 1;
		min-width: 0;
	}

	.m-publication-title {
		font-size: 16px;
		font-weight: bold;
		color: #9e0701;
		line-height: 1.5;
		margin-bottom: 8px;
	}

	.m-publication-title a {
		color: #9e0701;
		text-decoration: none;
	}

	.m-publication-desc {
		font-size: 14px;
		color: #666666;
		line-height: 1.7;
		/* 最多显示4行 */
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 6;
		-webkit-box-orient: vertical;
	}

	.m-news-list-date-no .m-news-item {
		border: 0;
		padding: 10px 0 10px 20px;
	}

	.m-news-list-date-no .m-news-title {
		margin-bottom: 0;
		display: block;
		-webkit-line-clamp: unset;
		/* word-break: keep-all; */
		white-space: nowrap;
	}

	.m-news-list-date-no .m-news-item::before {}
}