/* ============================================================
   企算子官网 - 排版美化层（在原 style.css/tk.css 之后加载）
   1. 首页新闻/服务卡片统一比例
   2. 文章详情页正文排版优化
   3. 列表页缩略图统一
   ============================================================ */

/* ---------- 通用：图片自适应 ---------- */
img { max-width: 100%; }

/* ---------- 首页新闻模块（NEWS） ---------- */
#index-news .blog-post .thumb-link {
	display: block;
	overflow: hidden;
	-webkit-border-top-left-radius: 27px;
	-webkit-border-bottom-right-radius: 27px;
	-moz-border-radius-topleft: 27px;
	-moz-border-radius-bottomright: 27px;
	border-top-left-radius: 27px;
	border-bottom-right-radius: 27px;
	aspect-ratio: 4 / 3;
	background: #f4f4f8;
	margin-bottom: 20px;
}
#index-news .blog-post .thumb-link img.corner-rounding {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
	transition: transform .35s ease;
}
#index-news .blog-post .thumb-link:hover img.corner-rounding {
	transform: scale(1.05);
}
#index-news .blog-post .content {
	min-height: 148px;
}
#index-news .blog-post .title {
	font-size: 15px;
	font-weight: bold;
	line-height: 22px;
	margin-bottom: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#index-news .blog-post .text {
	font-size: 13px;
	line-height: 22px;
	color: #777;
	height: 44px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin-bottom: 14px;
}
#index-news .blog-post .meta-entry {
	border-top: 1px solid #f0f0f5;
	padding-top: 10px;
}

/* ---------- 首页服务范围 / 成功案例 ---------- */
#index-team .clients-entry,
#index-portfolio .clients-entry {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: rgba(255,255,255,.08);
}
#index-team .clients-entry img,
#index-portfolio .clients-entry img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
#index-team .clients-entry:hover img,
#index-portfolio .clients-entry:hover img {
	transform: scale(1.05);
}
#index-team .iteam-h3-title,
#index-portfolio .iteam-h3-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- 首页关于我们图片 ---------- */
#index-about .iabout-right img {
	border-radius: 8px;
}

/* ---------- 新闻列表页（图文列表） ---------- */
.blog-article.hentry figure {
	overflow: hidden;
}
.blog-article.hentry figure a {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f4f4f8;
}
.blog-article.hentry figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.blog-article.hentry figure a:hover img {
	transform: scale(1.04);
}
.blog-article .entry-content.post-content p {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- 网格列表（服务/相册/案例） ---------- */
.prolist-wrap .portfolio-item figure.glass-animation {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f4f4f8;
}
.prolist-wrap .portfolio-item figure.glass-animation img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.prolist-wrap .portfolio-item .item-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============================================================
   文章详情页 / 单页 正文排版
   ============================================================ */
.blog-post-wrap {
	background: #fff;
}
.blog-post-wrap .bp-title {
	font-size: 26px;
	line-height: 1.5;
	color: #242434;
	font-weight: bold;
	margin: 10px 0 14px;
	padding: 0 10px;
}
.blog-post-wrap .bp-desc {
	display: block;
	color: #999;
	font-size: 13px;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f5;
}
/* 正文 */
.com-cnt.page-content,
.bp-content {
	font-size: 16px;
	line-height: 1.9;
	color: #333;
	word-break: break-word;
}
.com-cnt.page-content p,
.bp-content p {
	font-size: 16px;
	line-height: 1.9;
	color: #333;
	margin: 0 0 1em;
}
.com-cnt.page-content span,
.bp-content span {
	line-height: 1.9;
}
/* 文内小标题（清洗后为 20px 加粗 span） */
.com-cnt.page-content p > span[style*="bold"],
.bp-content p > span[style*="bold"] {
	display: inline-block;
	color: #1e6db1;
}
/* 正文图片 */
.com-cnt.page-content img,
.bp-content img,
img.cnt-img {
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 14px auto;
	border-radius: 6px;
}
/* 表格 / 引用 / 分割线 */
.com-cnt.page-content table,
.bp-content table {
	max-width: 100%;
	border-collapse: collapse;
	margin: 14px 0;
}
.com-cnt.page-content hr,
.bp-content hr {
	border: none;
	border-top: 1px solid #e8e8ee;
	margin: 22px 0;
}
.com-cnt.page-content blockquote,
.bp-content blockquote {
	margin: 14px 0;
	padding: 12px 18px;
	background: #f7f9fc;
	border-left: 4px solid #1e6db1;
	color: #555;
}
/* 上一篇 / 下一篇 */
.bp-prev-next {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid #f0f0f5;
	font-size: 14px;
	line-height: 2;
}
.bp-prev-next a {
	color: #1e6db1;
}
.bp-prev-next a:hover {
	color: #155a96;
	text-decoration: underline;
}
.bp-prev-next .gray {
	color: #bbb;
}

/* ---------- 侧边栏热点新闻 ---------- */
.side-news .widget-list figure {
	overflow: hidden;
}
.side-news .widget-list figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 750px) {
	.blog-post-wrap .bp-title { font-size: 20px; }
	.com-cnt.page-content p, .bp-content p { font-size: 15px; }
	#index-news .blog-post .content { min-height: 0; }
}
/* 侧边菜单外层容器 */
#mmenu{
    position:fixed;
    top:0;
    right:-100%;
    width:85%;
    max-width:360px;
    height:100vh;
    background:#0f2447 !important;
    z-index:99999;
    transition:right 0.28s ease;
    overflow-y:auto;
}
#mmenu.noDis{
    right:-100%;
}
#mmenu:not(.noDis){
    right:0;
}
body.mm-open{
    overflow:hidden;
}

/* 菜单内部容器 */
#mmenu .mmDiv{
    padding:20px;
    color:#fff;
}
/* 顶部关闭栏 */
#mmenu .MMhead{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}
#mmenu .MMhead a{
    color:#fff;
    font-size:22px;
}
/* 搜索框样式 */
.mm-search-form input{
    width:100%;
    padding:10px 14px;
    border-radius:4px;
    border:none;
    font-size:14px;
    margin-bottom:20px;
}
/* 一级菜单 */
#mmenu ul{
    list-style:none;
    padding:0;
    margin:0;
}
#mmenu .m-Lev1 > a{
    display:block;
    padding:14px 0;
    color:#ffffff;
    font-size:16px;
    border-bottom:1px solid rgba(255,255,255,0.15);
    text-decoration:none;
}
/* 二级子菜单 */
#mmenu .m-submenu{
    padding-left:16px;
}
#mmenu .m-submenu li a{
    display:block;
    padding:10px 0;
    color:#dddddd;
    font-size:14px;
    text-decoration:none;
}
/* 汉堡按钮保障点击 */
.navbar-toggle.mmenu-btn {
    z-index:9999;
    pointer-events:auto !important;
}