/* 导航 */

#banner {
    position: relative;
    /* height: 898px; */
}

#banner div.banner-item {
    position: relative;
    height: 100%;
}

#banner div.banner-item:nth-of-type(1) {
    background: url("imgs/b1.jpg?v=20201210") no-repeat center center fixed;
    background-size: cover;
}

#banner div.banner-item:nth-of-type(2) {
    background: url("imgs/b2.jpg?v=20201214") no-repeat center center fixed;
    background-size: cover;
}

#banner div.banner-item .panel {
    /* 容器相对窗口居中对齐 */
    position: absolute;
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* background-color: #000; */
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    font-size: 24px;
    line-height: 48px;
    color: #fff;
    /* display: none; */
}

#banner div.banner-item .panel p {
    /* P 元素居中对齐 */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: .5s;
    /* display: none; */
    /* display: block; */
    /* float: left;
    margin: 0 10px; */
    /* width: 56px; */
}


/* 定义 .p-item1内 p img a a:hover 元素的样式 */

#banner .panel.p-item1 p:nth-child(1) {
    /* 创建文明城市 */
    transform: translate(-150%, 0%);
}

#banner .panel.p-item1 p:nth-child(2) {
    /* 共建和谐社会 */
    transform: translate(50%, 30%);
    opacity: 0;
}

#banner .panel.p-item1 p:nth-child(1) img,
#banner .panel.p-item1 p:nth-child(2) img {
    width: 42px;
}

#banner .panel.p-item1 p:nth-child(3) {
    /* 云彩 */
    transform: translate(-80%, -50%);
}

#banner .panel.p-item1 p:nth-child(3) img {
    width: 480px;
}

#banner .panel.p-item1 p:nth-child(4) {
    /* 气球 */
    transform: translate(30%, -20%);
}

#banner .panel.p-item1 p:nth-child(4) img {
    width: 300px;
}

#banner .panel.p-item1 p:nth-child(5) {
    /* 品牌 */
    bottom: 36%;
    opacity: 0;
}

#banner .panel.p-item1 p:nth-child(5) a {
    display: block;
    width: 240px;
    height: 36px;
    line-height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(30, 71, 114, 0.5);
    color: #1e4772;
    font-size: 20px;
    text-align: center;
    background-color: rgba(235, 240, 245, 0.5);
}

#banner .panel.p-item1 p:nth-child(5) a:hover {
    border: 1px solid rgba(30, 71, 114, 0.8);
    background-color: rgba(235, 240, 245, 0.8);
}


/* 定义 .p-item2 内 p img 元素的样式 */

#banner .panel.p-item2 p:nth-child(1) {
    /* LOGO */
    /* transform: translate(-54%, -34%); */
    transform: translate(-54%, 0);
    top: -7.6%;
}

#banner .panel.p-item2 p:nth-child(1) img {
    width: 110px;
}

#banner .panel.p-item2 p:nth-child(2) {
    /* 钰尚远 */
    opacity: 0;
    top: 12.2%;
}

#banner .panel.p-item2 p:nth-child(2) img {
    width: 220px;
}

#banner .panel.p-item2 p:nth-child(3) {
    /* slogan */
    opacity: 0;
    top: 22.6%;
}

#banner .panel.p-item2 p:nth-child(3) img {
    width: 320px;
}


/* 定义 .p-item1.active 内 p 元素动画 */

#banner .panel.p-item1.active p:nth-child(1) {
    /* 创建文明城市 */
    /* transform: translate(-240%, -50%); */
    /* animation: name   duration timing-function delay iteration-count direction fill-mode play-state; */
    animation: pmove11 1s 0s forwards;
}

#banner .panel.p-item1.active p:nth-child(2) {
    /* 共建和谐社会 */
    animation: pmove12 1s 0.5s forwards;
}

#banner .panel.p-item1.active p:nth-child(3) {
    /* 云彩 */
    animation: pmove13 20s forwards;
}

#banner .panel.p-item1.active p:nth-child(4) {
    /* 气球 */
    animation: pmove14 20s forwards;
}

#banner .panel.p-item1.active p:nth-child(5) {
    /* 钰尚远 品牌 */
    animation: pmove15 4s 1s forwards;
}

@keyframes pmove11 {
    0% {
        transform: translate(-150%, -30%);
        opacity: 0;
    }
    100% {
        transform: translate(-150%, 0%);
        /* transform: scale(2); */
        opacity: 1;
    }
}

@keyframes pmove12 {
    0% {
        transform: translate(50%, 0%);
        opacity: 0;
    }
    100% {
        transform: translate(50%, 20%);
        opacity: 1;
    }
}

@keyframes pmove13 {
    0% {
        transform: translate(-80%, -50%);
        opacity: 0.8;
    }
    100% {
        transform: translate(-100%, -50%);
        opacity: .9;
    }
}

@keyframes pmove14 {
    0% {
        transform: translate(30%, -20%);
        opacity: 0.8;
    }
    100% {
        transform: translate(30%, -50%);
        opacity: .9;
    }
}

@keyframes pmove15 {
    0% {
        /* transform: translate(-50%, 400px); */
        opacity: 0;
    }
    100% {
        /* transform: scale(2);
        transform: translateX(-50%); */
        opacity: 1;
    }
}


/* 定义 .p-item2.active 内 p 元素动画 */

#banner .panel.p-item2.active p:nth-child(1) {
    /* logo 向上移动 */
    animation: pmove21 1s 0s forwards;
}

#banner .panel.p-item2.active p:nth-child(2) {
    /* 共建和谐社会 */
    animation: pmove22 1s 0.5s forwards;
}

#banner .panel.p-item2.active p:nth-child(3) {
    /* 云彩 */
    animation: pmove23 1s 1s forwards;
}

@keyframes pmove21 {
    0% {
        /* transform: translate(-150%, -30%); */
        /* transform: translate(-54%, 0); */
        top: -6%;
        opacity: 0;
    }
    100% {
        top: -7.6%;
        opacity: 1;
    }
}

@keyframes pmove22 {
    0% {
        top: 13.8%;
        opacity: 0;
    }
    100% {
        top: 12.2%;
        opacity: 1;
    }
}

@keyframes pmove23 {
    0% {
        top: 24.2%;
        opacity: 0;
    }
    100% {
        top: 22.6%;
        opacity: 1;
    }
}


/*主体—产品 开始*/

.main-product {
    width: 100%;
    padding-bottom: 30px;
}

.main-product div.title {
    padding: 50px 0 20px;
    text-align: center;
    color: #1e4772;
    background-color: #fff;
}

.main-product div.title h2 {
    font-size: 24px;
    line-height: 48px;
    font-weight: 600;
}

.main-product div.title p {
    font-size: 14px;
    line-height: 20px;
    color: #666;
    position: relative;
}

.main-product div.title p::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    border-bottom: 1px solid #ccc;
}

.main-product div.main-wrap {
    margin-top: 30px;
}

.main-product div.pro-list {
    transition: all 0.3s;
}

.main-product div.pro-list h3 {
    position: relative;
    font-size: 18px;
    line-height: 56px;
    color: #fff;
    text-align: left;
    padding-left: 70px;
    background-color: #1e4772;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-product div.pro-list h3::before {
    content: "";
    display: block;
    position: absolute;
    top: 12px;
    left: 20px;
    width: 34px;
    height: 34px;
    background: url('imgs/icon.png') no-repeat 0 0;
}

.main-product div.pro-list h3::after {
    content: "";
    display: block;
    position: absolute;
    top: 16%;
    right: 0;
    width: 150px;
    height: 56px;
    overflow: hidden;
}

.main-product div.pro-list div {
    border: 1px solid #ebebe9;
    background-color: #fff;
    padding: 20px 30px;
}

.main-product div.pro-list div ul {
    text-align: center;
}

.main-product div.pro-list div ul li {
    font-size: 16px;
    height: 36px;
    line-height: 36px;
    color: #7e7e7e;
    border-bottom: 1px dashed #e6e6e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-product div.pro-list div a {
    display: block;
    margin-top: 30px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    font-size: 16px;
    color: #7e7e7e;
    background-color: #e5f2ff;
}

.main-product div.pro-list div a:hover {
    background-color: #a92f33;
    color: #fff;
}

.main-product div.pro-list:hover {
    box-shadow: 0 0 2px 1px rgba(169, 47, 51, 0.6);
    transition: all 0.5s;
}

.main-product div.pro-list:hover h3 {
    background-color: #a92f33;
}

.main-product div.pro-list:hover div {
    border: 1px solid rgba(169, 47, 51, 0.6);
}

.main-product div.pro-list:hover div li {
    color: #333;
}

.main-product div.pro-list:hover div a {
    background-color: #a92f33;
    color: #fff;
}

.main-product div.main-wrap>div>div:nth-child(1) h3::before {
    background: url('imgs/icon.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(1) h3::after {
    background: url('imgs/i_1.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(2) h3::before {
    background: url('imgs/icon.png') no-repeat -40px 0;
}

.main-product div.main-wrap>div>div:nth-child(2) h3::after {
    background: url('imgs/i_2.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(3) h3::before {
    background: url('imgs/icon.png') no-repeat -80px 0;
}

.main-product div.main-wrap>div>div:nth-child(3) h3::after {
    background: url('imgs/i_3.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(4) h3::before {
    background: url('imgs/icon.png') no-repeat -120px 0;
}

.main-product div.main-wrap>div>div:nth-child(4) h3::after {
    background: url('imgs/i_4.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(5) h3::before {
    background: url('imgs/icon.png') no-repeat -160px 0;
}

.main-product div.main-wrap>div>div:nth-child(5) h3::after {
    background: url('imgs/i_5.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(6) h3::before {
    background: url('imgs/icon.png') no-repeat -200px 0;
}

.main-product div.main-wrap>div>div:nth-child(6) h3::after {
    background: url('imgs/i_6.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(7) h3::before {
    background: url('imgs/icon.png') no-repeat -240px 0;
}

.main-product div.main-wrap>div>div:nth-child(7) h3::after {
    background: url('imgs/i_7.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(8) h3::before {
    background: url('imgs/icon.png') no-repeat -280px 0;
}

.main-product div.main-wrap>div>div:nth-child(8) h3::after {
    background: url('imgs/i_8.png') no-repeat 0 0;
}

.main-product div.main-wrap>div>div:nth-child(n+5) {
    display: none;
}

.main-product div.main-wrap div.main-view {
    margin-top: 20px;
}

.main-product div.main-wrap div.main-view p {
    margin: 0 auto;
    width: 50%;
    border: 1px solid #ccc;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.main-product-all div.main-wrap>div>div:nth-child(n+5) {
    display: block;
}


/*主体—产品 结束*/


/* 文章部分开始 */

.main-art {
    position: relative;
    /* margin-top: 30px; */
    background-color: #fff;
}

.main-art .title {
    padding: 0;
}

.main-art .title h2 {
    position: relative;
    height: 40px;
    line-height: 40px;
    color: #1e4773;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
}

.main-art .title h2:after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    background-color: #1e4772;
}

.main-art .title h2 span {
    /* display: block; */
    position: absolute;
    right: 0;
    font-size: 16px;
    font-weight: normal;
}

.main-art .title h2 span a {
    color: #1e4772;
}

.main-art .title h2 span a:hover {
    color: #a92f33;
}

.main-art .title div {
    margin-top: 20px;
    background-color: #ccc;
}


/* 经典案例开始 */

.main-art .ysy-case {
    margin-top: 30px;
}

.ysy-case .suc-list [carousel-item] img {
    /* margin-top: 20px;
    height: 150px; */
    width: 100%;
    height: 100%;
}

.ysy-case .suc-list .suc-art {
    width: 100%;
    height: auto;
}

.ysy-case .suc-list .suc-art ul {
    border: 1px solid #f0f0f0;
    border-top: none;
    /* background-color: #000; */
}

.ysy-case .suc-list .suc-art ul li {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    line-height: 48px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ysy-case .suc-list .suc-art ul li a {
    color: #666;
}

.ysy-case .suc-list .suc-art ul li a:hover {
    color: #a92f33;
}

.ysy-case .suc-list .suc-art ul li::before {
    position: absolute;
    top: 22px;
    left: 10px;
    content: '';
    width: 4px;
    height: 4px;
    background-color: #ccc;
}

.ysy-case .suc-list .suc-art ul li::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    content: '';
    height: 1px;
    width: 92%;
    background-color: #f0f0f0;
}

.ysy-case .suc-list .suc-art ul li:last-child:after {
    display: none;
}


/* 律所动态 */

.main-art .ysy-news {
    margin-top: 30px;
}

.ysy-news .news-list {
    width: 100%;
}

.ysy-news .news-list .news-con {
    background-color: #fcfcfc;
    /* background-color: #000; */
}

.ysy-news .news-list .news-con>div {
    padding: 0 12px 30px;
}

.ysy-news .news-list .layui-row>div:nth-child(n+2) {
    /* margin-top: 20px; */
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.ysy-news .news-list img {
    /* display: block; */
    width: 100%;
    max-height: 184px;
}

.ysy-news .news-list h3 {
    padding: 10px 0;
    font-size: 20px;
    line-height: 30px;
    /* height: 96px; */
}

.ysy-news .news-list h3 a {
    color: #1e4772;
}

.ysy-news .news-list h3 a:hover {
    color: #a92f33;
}

.ysy-news .news-list p {
    font-size: 14px;
    line-height: 26px;
    color: #666;
}

.ysy-news .news-list span {
    position: relative;
    display: block;
    margin-top: 20px;
    color: #1e4772;
    line-height: 32px;
}

.ysy-news .news-list span a {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    /* width: 80px; */
    padding: 0 16px;
    font-size: 16px;
    height: 32px;
    line-height: 32px;
    background-color: #1e4772;
    border-radius: 16px;
    color: #fff;
    text-align: center;
}

.ysy-news .news-list span a:hover {
    background-color: #a92f33;
}

.main-intro {
    width: 100%;
    padding-bottom: 30px;
    background-color: #fcfcfc;
}

.main-intro div.title {
    padding: 20px 0 20px;
    text-align: center;
    color: #1e4772;
    background-color: #fff;
}

.main-intro div.title h2 {
    font-size: 24px;
    line-height: 48px;
    font-weight: 600;
}

.main-intro div.title p {
    font-size: 14px;
    line-height: 20px;
    color: #666;
    position: relative;
}

.main-intro div.title p::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    border-bottom: 1px solid #ccc;
}

.main-intro .layui-container {
    padding-top: 30px;
}

.main-intro .ysy-intro div {
    /* background-color: #fff; */
}

.main-intro .ysy-intro p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 28px;
}

.main-intro .ysy-contact {
    margin-top: 20px;
}

.main-intro .ysy-contact p {
    padding-top: 20px;
    font-size: 16px;
    line-height: 28px;
}

.main-intro .ysy-contact form {
    margin-top: 20px;
}

.main-intro .ysy-contact label {
    display: none;
}

.main-intro .ysy-contact .layui-input-block {
    margin-left: 0;
}

.main-intro .ysy-contact .ysy-btn {
    background-color: #1e4772;
}

@media screen and (min-width: 768px) {
    .main-product {
        background: url(imgs/bg_product.jpg) no-repeat center bottom;
    }
    .main-product div.main-wrap>div>div:nth-child(n+5) {
        display: block;
    }
    .main-view {
        display: none;
    }
}

@media screen and (min-width: 992px) {
    .ysy-case .suc-list .suc-art ul li {
        position: relative;
        padding-left: 20px;
        font-size: 16px;
        line-height: 42px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .ysy-news .news-list .layui-row>div:nth-child(n+2) {
        margin-top: 0;
        padding-top: 15px;
        border-top: none;
        /* margin-left: 44px; */
    }
    .ysy-news .news-list h3 {
        height: 60px;
        overflow: hidden;
    }
    .footer .ysy-logo .logo-xs {
        display: none;
    }
    .footer .ysy-logo .logo-lg {
        display: block;
    }
}

@media screen and (min-width: 1200px) {
    .header {
        height: 80px;
    }
    .header .logo {
        line-height: 80px;
    }
    .header .logo img {
        height: 56px;
    }
    .header .pc-nav {
        /* height: 600px; */
        /* background-color: #069; */
    }
    #navToggle {
        display: none;
    }
    .header .layui-nav {
        display: inline-block;
        width: auto;
        /* width: 100%; */
        position: absolute;
        top: 0;
        padding: 0 5px;
        border-radius: 0;
        margin: 0;
        right: 0;
    }
    .header .layui-nav-item {
        line-height: 80px;
    }
    .header .layui-nav a {
        color: #1e4772;
        font-size: 16px;
    }
    .header .layui-nav a:hover {
        color: #a92f33;
    }
    .header .layui-this:after,
    .header .layui-nav-bar {
        background-color: #a92f33;
    }
    .header .layui-nav .layui-nav-more {
        border-color: #666 transparent transparent;
    }
    .header .layui-nav .layui-nav-mored,
    .header .layui-nav-itemed>a .layui-nav-more {
        border-color: transparent transparent #666;
    }
    .header .layui-nav-item .layui-nav-child {
        top: 85px;
    }
    /* 定义 .p-item1 p 里的 img 样式 */
    #banner .panel.p-item1 p:nth-child(1) img,
    #banner .panel.p-item1 p:nth-child(2) img {
        width: 56px;
    }
    #banner .panel.p-item1 p:nth-child(3) img {
        width: 690px;
    }
    #banner .panel.p-item1 p:nth-child(4) img {
        width: 350px;
    }
    #banner .panel.p-item1 p:nth-child(6) img {
        width: 250px;
    }
    /* 定义 .p-item2 p 里的 img 样式 */
    #banner .panel.p-item2 p:nth-child(1) img {
        /* LOGO */
        width: 150px;
    }
    #banner .panel.p-item2 p:nth-child(2) img {
        /* 钰尚远 */
        width: 298px;
    }
    #banner .panel.p-item2 p:nth-child(3) img {
        /* slogan */
        width: 439px;
    }
    .main-art .ysy-case {
        float: right;
        width: 368px;
    }
    .ysy-case .suc-list .suc-art ul li {
        position: relative;
        line-height: 43px;
    }
    .main-art .ysy-news {
        float: left;
        width: 742px;
    }
    .ysy-news .news-list .news-con {
        /* width: 398px; */
    }
    /* 简介部分 */
    .main-intro .ysy-intro {
        float: left;
        width: 742px;
    }
    .main-intro .ysy-contact {
        float: right;
        width: 368px;
        margin-top: 0;
    }
}