
.container {
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.row {
    margin-right: 0;
    margin-left: 0;
}
p {
    margin: 10px 0 10px;
}
.col-md-12 {
	padding-left: 0;
	padding-right: 0;
}
@media only screen and (min-width: 280px) and (max-width: 450px) {
    .main2-left img{
        width: 35px;
        height: 35px;
    }
    .main1-top {margin-top: 30px;padding: 0;}
    .main2-bg{background: #ebebeb;padding-bottom: 20px;}
    .main4-b {
    	display: block;
	    font-size: 20px;
	    font-weight: bold;
	    color: #fff;
	    margin: 8px 8px 0 12px;
	    padding-bottom: 10px;
	    border-bottom: 1px solid #fff;
	    width: 50%;
	    margin: 0 auto;
	    text-align: center;
	}
    .main4-bg{padding-bottom: 30px;}
    .main4-margin{padding: 20px 5px;}
    .main5-ul {
	    text-align: left;
	    list-style: none;
	    line-height: 40px;
	    font-size: 18px;
	    margin: 20px 0;
	    overflow-y: scroll;
	    margin-left: 0;
	    padding-left: 10px;
	    padding-right: 10px;
	}
	.main5-ul li{
	    background: url(../picture/news_icon01.png) no-repeat left center;
	    float: left;
        width: 50%;
        height: 40px;
        line-height: 40px;
        padding-left: 5%;
        background-size: 5%;
        box-sizing: border-box;
        border-bottom: 1px dotted #c5c5c5;
	}
	.main5-bg{
	    background: #ebebeb;
	}
	@keyframes mymove{
		10%{
			top:0px;
            animation: ani 1s;
		}
        25%{
            top:-50px;
            animation: ani 1s;
        }
        50%{
            top:-100px; 
            animation: ani 1s;
        }
        75%{
            top:-150px;
            animation: ani 1s;
        }
        100%{
            top:-200px;
            animation: ani 1s;
        }
    }
    .list {
		position:relative;
		top:0px;
		left:0px;
		height:100%;
		list-style:none;
		animation: mymove 10s infinite linear;
        padding-left: 0;
	}
    .list li {
		height:50px;
		float:left;
		vertical-align:middle;
		text-align:left;
		line-height:50px;
		overflow-x:scroll;
		width: 100%;
		overflow: hidden;
	    text-overflow: ellipsis;
	    white-space: nowrap;
	}
	.list li span{color: #1f9ee0;margin: 0 6px;}
	.main3-bg{
	    background: url(../picture/aboutbg01.jpg) no-repeat center; 
	    padding: 15px 0;
	    display: contents;
	}
	.main3-img{
    	width: 100%;
    }
	.main4-img{
    	/*height: 230px;*/
    	width: 100%;
    }
    .lawfirm-img{
        width: 100%;
    }
    .main1-dd {
    	text-align: center;
        font-size: 14px;
        color: #333;
        line-height: 0;
    }
    .main1-i {
       font-size: 18px;
        color: #0D4DA1;
        line-height: 60px;
        font-weight: bold;
    }	
    .main1-img img{
        width: 35px;
        height: 35px;
    }
    .main2-h3{
    	font-size: 20px;
    	font-weight: bold;
        color: #0D4DA1;
        text-align: center;
    }
    .main2-title{
    	width: 100%;
    	text-align: center;
    }
    .mobile-scroll{
        display: -webkit-box;
        overflow: auto;
        padding-bottom: 15px;
    }
    .main3-p{
    	font-size: 16px;
        color: #fff;
        line-height: 26px;
        height: 80px;
        overflow: hidden;
    }
    .main3-more{
    	display: block;
    	margin-top: 15px;
    }
    .main3-h3{
    	font-size: 20px;
    	font-weight: 600;
        color: #fff;
        margin: 0;
    }
    .main5-right{
        margin: 15px 0;
        /*border: 1px solid #ddd;*/
    }
    /*移动端底部选项卡*/
    .mobile-bottom{
        display: flex;
        position: fixed;
        bottom: 0;
        background: #024585;
        width: 100%;
        color: #fff;
        text-align: center;
        font-size: 14px;
    }
    .mobile-tab{
        flex: 1;
        padding: 10px;
        border-left: 1px solid #003466;
        border-right: 1px solid #125ea7;
    }
    .mobile-bottom img{
        display: block;
        margin: 5px auto;
        width: 20px;
        height: 20px;
    }
    .mobile-bottom a{
        color: #fff;
        text-decoration: none;
    }
    .main2-in{
     /*   width: 280px;*/
    	/*height: 150px;*/
    	background: #fff;
    	padding: 15px;
    	border: 1px solid #ccc;
    }
    .main2-right-h3{
    	font-size: 16px;
        color: #333333;
        /*text-align: left;*/
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-top: 5px;
    }
    .main2-out{
    	padding: 0;
    }
    .foot-margin{
    	/*text-align: left;*/
    	margin: 15px 0;
    }
    .foot-bg{
    	background: #ebebeb;
    	border-top: 3px solid #dddddd;
    	/*margin-top: 42px;*/
    	padding-bottom: 20px;
    }
}
@media only screen and (min-width: 450px) and (max-width: 3000px) {
    .main2-left img{
        width: 60px;
        height: 60px;
    }
    .main2-left{
    	width: 25%;
    	float: left;
    	padding: 20px 0;
    }
    .main1-top{margin-top: 30px;}
    .main2-bg{background: #ebebeb;padding: 50px 0;}
    .main4-b{display: block;font-size: 24px;font-weight: bold;color: #fff;margin: 8px 8px 0 12px;padding-bottom: 10px;border-bottom: 1px solid #fff;}
    .main4-bg{background: #ebebeb;padding: 50px 0;}
    /*.main4-margin{margin: 0 1% 0 2%;}*/
    .main5-bg{padding: 40px 0;}
    .main5-ul{
		text-align: left;
	    list-style: none;
	    line-height: 40px;
	    font-size: 18px;
	    margin: 20px 0;
	    min-height: 314px;
	    max-height: 314px;
	    overflow-y: scroll;
	}
	@-webkit-keyframes mymove {
		from {
		    left:0px;
		}
		to {
			left:-500px;
		}
	}
	.list {
		position:relative;
		top:0px;
		left:0px;
		width:200%;
		height:100%;
		list-style:none;
		animation:mymove 8s infinite linear;
	}
	.list li {
		height:50px;
		width: 300px;
		float:left;
		vertical-align:middle;
		text-align:center;
		line-height:50px;
		margin: 0 20px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.list li span{color: #1f9ee0;margin: 0 20px;}
	.main3-bg{
	    background: url(../picture/aboutbg01.jpg) no-repeat center; 
	    padding: 50px 0;
	}
	.main3-img{
    	/*width: 100%;*/
    	height: 365px;
    }
    .main4-img{
    	width: 100%;
    	height: 380px;
    }
    .lawfirm-img{
        width: 100%;
        height: 356px;
    }
    .main1-dd {
    	text-align: center;
        font-size: 18px;
        color: #333;
    }
    .main1-i {
        font-size: 36px;
        color: #0D4DA1;
        line-height: 60px;
        font-weight: bold;
    }	
    .main2-h3{
    	font-size: 28px;
        color: #0D4DA1;
        text-align: center;
    }
    .main2-title{
    	width: 100%;
    	text-align: center;
    	margin-bottom: 30px;
    }
    .main3-p{
    	font-size: 16px;
        color: #fff;
        line-height: 26px;
        margin-top: 24px;
        height: 180px;
        overflow: hidden;
    }
    .main3-more{
    	display: block;
    	margin-top: 34px;
    }
    .main3-h3{
    	font-size: 20px;
    	font-weight: 600;
        color: #fff;
    }
    .main5-right{
        border: 1px solid #ddd;
    }
    .main2-in{
    	height: 150px;
    	background: #fff;
    	padding: 15px;
    }
    .main2-right{
    	width: 75%;
    	float: right;
    	padding-left: 22px;
    	border-left: 1px dotted #cccccc;
    }
    .main2-right-h3{
    	font-size: 20px;
        color: #333333;
        text-align: left;
        margin: 0;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .main2-out{
    	margin-top: 15px;
    }
    .foot-margin{
    	text-align: left;
    	margin: 15px 0;
    }
    .foot-bg{
    	background: #ebebeb;
    	border-top: 3px solid #dddddd;
    	margin-top: 42px;
    }
}
.logo-title {
    text-align: left;
}
.main1-h3{
	width: 104px;
	float: left;
}
.wrap {
	overflow:hidden;
	height:50px;
	margin-top: 20px;
}
.main1-img {
	text-align: center;
}
.main2-in:hover{
	box-shadow: 6px 7px 4px 1px #ccc;
}
.main2-p{
	font-size: 14px;
    margin-bottom: 10px;
    color: #666666;
    margin-top: 11px;
}
.main2-right-p{
	font-size: 16px;
    color: #333;
    line-height: 20px;
    margin-top: 10px;
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.main3-right{
	background: #0D4DA1;
	text-align: left;
}
.main3-span{
	margin-top: 6px;
    font-size: 14px;
    color: #fff;
    font-family: arial;
    display: block;
    text-transform: uppercase;
}
.col-md-6{
	padding-left: 0;
	padding-right: 0;
}
.col-md-2{
	padding-left: 0;
	padding-right: 0;
}
.main4-p{
	height: 105px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}
.main5-p{
	width: 100%;
	float: left;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #333;
	font-size: 16px;
}
.main5-span{
	width: 25%;
	display: block;
	float: right;
    color: #999;
    font-size: 14px;
}
.link{
	padding: 0 0 20px 10px;
	background: #fff;
	float: left;
}
.foot-a{
	color: #333;
	padding: 0 10px;
	font-size: 16px;
}
.foot-p{
	font-size: 16px;
    color: #666666;
    margin-bottom: 9px;
}
.foot-part2{
	padding-left: 66px;
    background: url(../picture/footer_icon01.png) no-repeat left center;
}
.foot-span{
	display: block;
    font-size: 27px;
    color: #666666;
}

.nav-tabs>li>a{padding:10px 0;font-size:14px;border-left: 1px solid #0c59a3;}
.nav-item{padding:0;text-align:center;}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus{
    background: #ffcd32;
    color: #333;
}
.nav-tabs>li>a{
    background: #024585;
    color: #fff;
    border-radius: 0;
    margin-right: 0;
}
.n-right p{
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.n-right span{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ============================================================
   PbootCMS 站群 移动端适配层（2026-09-27）
   ------------------------------------------------------------
   适用：viplaw.cn 律师站群 705 站 / 59 种模板主题
   机制：追加到各主题 default/css/index.css 末尾（幂等，可重复执行）
   依据：全部主题同源 Bootstrap 3 + 共有类名（container / navbar /
         col-md-* / carousel / swiper / main3-box 等）

   修复的真实缺陷（实测 bjcq.viplaw.cn 390px）：
   1. 折叠菜单展开后 .navbar-collapse 的 max-height 停留在过渡中间值
      （340px），而菜单实际高 510px，overflow:auto 使最后 3 项
      （含「联系我们」）被裁成内部滚动区，用户看不到。
      → 展开态强制 max-height:none; overflow:visible
   2. 主题自带断点只覆盖 280~450px，451~768px 区间无适配。
      → 本层补 768px 断点
   3. 触屏 hover 位移/阴影抖动。
   ============================================================ */

/* ---------- 触屏优化：去掉 hover 位移与阴影抖动 ---------- */
@media (hover: none) {
  .nav-li:hover,
  .main3-box:hover,
  .swiper-slide:hover { transform: none; }
}

@media (max-width: 768px) {
  /* 1. 折叠菜单：展开态必须解除 max-height 限制，否则菜单项被裁切 */
  .navbar-collapse.collapse.in,
  .navbar-collapse.collapsing {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
  }
  .navbar-collapse.collapse.in .navbar-nav,
  .navbar-collapse.collapsing .navbar-nav {
    max-height: none !important;
    overflow: visible !important;
  }

  /* 2. 导航项：整行可点，加大触控热区
     注意：header.css 在 index.css 之后加载，且含
     `.navbar-default .navbar-nav > li > a`（特异性 0,3,1），
     故本层用 `html .navbar-default .navbar-nav > li > a`（0,3,2）压制。 */
  html .navbar-nav { width: 100%; margin: 0; }
  html .navbar-nav > li { float: none; width: 100%; }
  html .navbar-default .navbar-nav > li > a,
  html .navbar-nav > li > a,
  html .nav-a {
    display: block;
    padding: 13px 15px;
    font-size: 16px;
    line-height: 1.4;
  }

  /* 3. 头部：logo 与电话纵向排布，避免挤压 */
  html .navbar-header { width: 100%; margin: 0; }
  html .logo-div { float: none; width: 100%; padding-left: 15px; padding-right: 60px; }
  html .logo-img { float: left; width: 56px; margin: 0 8px 0 0; padding-right: 0; background: none; }
  html .logo-img img { max-width: 100%; height: auto; }
  html .logo-title { text-align: left; }
  html .logo-p1 { font-size: 15px; margin: 0; }
  html .logo-p2 { font-size: 13px; margin: 0; }
  html .key-word h1,
  html .logo-div h1 { float: none; font-size: 20px; margin: 0 0 4px; line-height: 1.3; }
  html .logo-tel { float: none; width: 100%; margin: 6px 0 0; text-align: left; }
  html .tel-p2 { font-size: 18px; height: auto; line-height: 1.4; }
  html .tel-p2 img { width: 22px; vertical-align: middle; }
  html .navbar-toggle { margin-top: 6px; margin-right: 8px; }

  /* 4. 容器与栅格：收窄内边距，栅格在窄屏一律整行 */
  html .container { padding-left: 12px; padding-right: 12px; }
  /* Bootstrap .row 默认 margin: 0 -15px，窄屏容器 padding 只有 10~12px，
     负边距会把内容顶出视口（实测 .row 宽 400px / left -5px 造成 5px 溢出）。 */
  html .row { margin-left: 0; margin-right: 0; }
  html .container > .col-md-6,
  html .container > .col-md-4,
  html .container > .col-md-3,
  html .container > .col-md-8,
  html .container > .col-md-9,
  html .container > .col-md-12 { width: 100%; float: none; }

  /* 5. 轮播：高度自适应，避免固定高导致图片裁切 */
  html .banner-size,
  html .carousel-inner > .item > img { width: 100%; height: auto; }
  html .carousel-inner > .item > img { max-height: 260px; object-fit: cover; }

  /* 6. 首页第三部分（分类宫格）：窄屏单列 */
  html .main3-box { width: 100%; float: none; margin-bottom: 12px; }
  html .main3-ul li { font-size: 14px; line-height: 1.7; }

  /* 7. 首页第一部分：图片与信息纵向 */
  html .main1-img { width: 100%; height: auto; }
  html .main1-left-ul li { font-size: 14px; line-height: 1.8; }
  html .main1-p { font-size: 14px; line-height: 1.8; }

  /* 7b. 图片全局兜底：主题把 .headImg 等尺寸规则只写在 450px+ 断点里，
     导致 390px 手机上按原始尺寸渲染（实测 headImg 311x443 撑满屏、
     列表图 215x180 被放大到 370x310）。此处统一约束。 */
  html img { max-width: 100%; height: auto; }
  html .headImg {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: top center;
    display: block;
  }
  html .main2-img { width: 90px; height: 65px; object-fit: cover; }
  html .main1-headbox { width: 100%; float: none; }
  html .main2-ul img,
  html .main2-ul .main2-img { max-width: 90px; }

  /* 7c. 移动端轮播：主题给 PC 轮播图写了 height:200px，但移动端轮播图
     只有内联 width:100%，无高度约束，图片按原始比例撑到 370x310。
     此处统一约束高度并裁切，与 PC 端视觉一致。 */
  html .mySwiperMobile .swiper-slide img,
  html .mySwiperMobile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
  html .mySwiperMobile .swiper-slide { height: auto; }
  /* PC 轮播在窄屏必须隐藏（主题用 hidden-xs，但 swiper 样式可能覆盖） */
  html .mySwiperPc.hidden-xs { display: none !important; }

  /* 8. 正文/详情：字号与内边距，长表格横向滚动 */
  html .content,
  html .article-content,
  html .main-content { font-size: 15px; line-height: 1.85; }
  html .content p,
  html .article-content p { text-indent: 0; }
  html .content img,
  html .article-content img { max-width: 100%; height: auto; }
  html .content table,
  html .article-content table,
  html .content pre,
  html .article-content pre {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 9. 列表页：标题允许换行，日期块收窄 */
  html .list-title,
  html .article-title { font-size: 17px; }
  html .news_index_date { width: 56px; }

  /* 10. 分页：换行居中 */
  html .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
  html .pagination > li > a,
  html .pagination > li > span { margin: 0; padding: 5px 10px; }

  /* 11. 底部固定拨号条：给正文留出安全间距 */
  html body { padding-bottom: 56px; }
}

@media (max-width: 480px) {
  html .navbar-default .navbar-nav > li > a,
  html .navbar-nav > li > a,
  html .nav-a { font-size: 15px; padding: 12px 12px; }
  html .key-word h1,
  html .logo-div h1 { font-size: 18px; }
  html .tel-p2 { font-size: 16px; }
  html .container { padding-left: 10px; padding-right: 10px; }
  html .carousel-inner > .item > img { max-height: 200px; }
  html .content,
  html .article-content,
  html .main-content { font-size: 14px; }
  html .list-title,
  html .article-title { font-size: 16px; }
  html .news_index_date { width: 48px; }
}
