/* 超小手机屏幕配置 */ p { margin: 0; padding: 0; } ul, li { list-style: none; margin: 0; padding: 0; text-decoration: none; } .main { width: 100%; max-width: 100%; } @media screen and (max-width: 768px) { .container-fluid > .navbar-collapse, .container-fluid > .navbar-header, .container > .navbar-collapse, .container > .navbar-header { margin-left: -0.15rem; margin-right: -0.15rem; } .navbar-toggle { padding: 0.15rem 0; } .navbar-brand { padding-top: 5px; } .navbar-brand img { width: 3.1rem; object-fit: contain; } .navbar-toggle img { width: 0.3rem; } } /* 常规手机配置 */ @media screen and (max-width: 767px) { .container-fluid > .navbar-collapse, .container-fluid > .navbar-header, .container > .navbar-collapse, .container > .navbar-header { margin-left: -0.15rem; margin-right: -0.15rem; } .navbar-toggle { padding: 0.15rem 0; } .navbar-brand { padding-top: 5px; } .navbar-brand img { width: 3.1rem; object-fit: contain; } .navbar-toggle img { width: 0.4rem; } .index_nav .navbar_index_header .navbar-brand img { object-fit: contain; margin-top: 0.1rem !important; } .index_nav .nav_ul .dropdown { display: block; } /* 轮播图 */ .newList { background-image: url(/static/zhuanye/images/bg1.jpg); background-size: cover; padding-top: 0.5rem; padding-bottom: 0.7rem; box-sizing: border-box; .xinwen { margin: 0 0 0.5rem; display: flex; justify-content: center; align-items: center; position: relative; h1 { font-size: 0.44rem; font-weight: 700; color: #000; } .icon { position: absolute; top: 0.35rem; left: 50%; transform: translate(-50%, -50%); width: 0.1rem; height: 0.1rem; border-radius: 0.05rem; background-color: #0e3a76; } .h1active { color: #003277; } } .new-flex { width: 100%; padding: 0 0.28rem 0.6rem; box-sizing: border-box; .tabs { display: none; width: 100%; padding: 0 0.2rem; background: #ffffff; box-shadow: 0rem 0.06rem 0.2rem 0rem rgba(191, 192, 199, 0.14); box-sizing: border-box; .swiper1 { width: 100%; .mySwiper { .swiper-pagination-bullet-active { background-color: #e18f0b !important; } .swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction { bottom: 0.4rem !important; } .swiper-wrapper { .swiper-slide { width: 100%; text-align: center; font-size: 0.18rem; background: #fff; /* Center slide text vertically */ display: -webkit-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; position: relative; img { display: block; width: 100%; height: 4.7rem; object-fit: cover; } p { width: 100%; font-size: 0.3rem; color: #ffffff; font-weight: 700; color: #272727; line-height: 0.28rem; letter-spacing: -0.01rem; margin-top: 0.39rem; margin-bottom: 0.94rem; } } } } } .flex { display: none; } } } .more-m { margin: 0 auto; width: 3rem; height: 0.74rem; line-height: 0.74rem; border: 0.01rem solid #003277; border-radius: 0.38rem; box-sizing: border-box; a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; text-align: center; font-size: 0.28rem; color: #003277; img { margin-left: 0.1rem; width: 0.26rem; height: 0.24rem; } } } } /* 党建文化 */ .second_model { padding-top: 0.75rem; box-sizing: border-box; background-image: url(/static/zhuanye/images/mbg.png); background-size: cover; .xinwen { margin: 0 0 0.5rem; display: flex; justify-content: center; align-items: center; position: relative; h1 { font-size: 0.44rem !important; font-weight: bold; } .icon { position: absolute; top: 0.35rem; left: 50%; transform: translate(-50%, -50%); width: 0.1rem; height: 0.1rem; border-radius: 0.05rem; background-color: #000 !important; } .h1active-red { color: #ca0413; } } .announcement { width: 100%; padding: 0 0.28rem 0.7rem; box-sizing: border-box; .tabs-content { display: none; width: 100%; ul { width: 100%; li { width: 100%; background: #ffffff; box-shadow: 0rem 0.06rem 0.24rem 0rem rgba(191, 192, 199, 0.41); background-image: url(/static/zhuanye/images/1.png); background-size: 100% 100%; border-bottom: 0.04rem solid #c89646; box-sizing: border-box; margin-bottom: 0.2rem; /* 获取前两个以外的所有li类名 */ &:not(:nth-of-type(-n + 2)) { display: none; } a { display: block; width: 100%; height: 100%; padding: 0.4rem 0.34rem 0.3rem; box-sizing: border-box; p { max-width: 6.25rem; font-size: 0.3rem; font-weight: 500; color: #272727; line-height: 0.44rem; letter-spacing: -0.01rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } div { margin-top: 0.3rem; display: flex; align-items: center; i { width: 0.3rem; height: 0.3rem; background-image: url(/static/zhuanye/images/click.png); background-size: cover; // background: #aa8e60; margin-right: 0.13rem; } span { font-size: 0.26rem; color: #aa8e60; } } } } } .more { width: 3rem; margin: 0.5rem auto 0; height: 0.74rem; line-height: 0.74rem; border: 0.01rem solid #003277; border-radius: 0.38rem; font-size: 0.28rem; color: #003277; display: flex; justify-content: center; text-align: center; align-items: center; svg { width: 0.26rem; height: 0.22rem; object-fit: cover; fill: #003277; } } } } } .third_model { background-image: url(/static/zhuanye/images/mbg2.png); background-size: cover; padding-top: 0.81rem; box-sizing: border-box; .block-model { h1 { text-align: center; font-size: 0.44rem; font-weight: 700; color: #ffffff; } h4 { text-align: center; font-size: 0.26rem; margin-top: 0.1rem; color: #ffffff; margin-bottom: 0.6rem; } ul { display: grid; width: 100%; height: 6.3rem; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 20% 20% 20% 20% 20%; li { &:nth-child(1) { grid-row-start: 3; grid-row-end: 6; background-image: url(/static/zhuanye/images/wl1.png); // background:#094aa660; } &:nth-child(2) { grid-row-start: 1; grid-row-end: 3; background-color: rgba(9, 74, 166, 0.6); } &:nth-child(3) { grid-row-start: 1; grid-row-end: 4; background-image: url(/static/zhuanye/images/w12.png); } &:nth-child(4) { grid-row-start: 4; grid-row-end: 6; background-color: rgba(9, 74, 166, 0.5); } &:nth-child(5) { grid-row-start: 1; grid-row-end: 3; background-color: rgba(22, 111, 204, 0.8); } &:nth-child(6) { grid-row-start: 3; grid-row-end: 6; background-color: rgba(3, 75, 171, 0.85); } a { width: 100%; height: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; img { width: 0.71rem; object-fit: cover; } p { margin-top: 0.3rem; text-align: center; width: 100%; } } } } } } .fourth_model { background-image: url(/static/zhuanye/images/mbg3.jpg); background-size: cover; padding-top: 0.7rem; padding-bottom: 0.76rem; box-sizing: border-box; .xinwen { display: flex; justify-content: center; align-items: center; position: relative; .h1active-black { font-size: 0.44rem; font-weight: 700; text-align: center; color: #000; line-height: 0.48rem; margin-bottom: 0.5rem; } } .mediaViewp { padding: 0 0.28rem; box-sizing: border-box; .left { background: #ffffff; box-shadow: 0rem 0.02rem 0.49rem 0rem rgba(70, 70, 70, 0.26); padding: 0.25rem; box-sizing: border-box; .title-link { display: flex; width: 100%; img { width: 2.22rem; } div { flex: 1; h2 { display: none; color: #000; } p { color: #000; margin-left: 0.3rem; } } } ul { li { width: 100%; a { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; padding: 0.2rem 0; display: block; width: 100%; height: 100%; border-top: 1px solid #e2e2e2; font-size: 0.3rem; color: #151515; line-height: 0.46rem; } &:not(:nth-of-type(-n + 3)) { display: none; } } } } .right { margin-top: 20px; ul { width: 100%; display: grid; grid-template-columns: 1fr 1fr; justify-content: center; grid-column-gap: 0.2rem; margin-bottom: 0.5rem; li { margin-bottom: 0.2rem; &:not(:nth-of-type(-n + 2)) { display: none; } a { width: 100%; display: block; height: 100%; div { position: relative; height: 120px; overflow: hidden; img { width: 100%; height: 100%; margin-bottom: 0.21rem; } i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 0.67rem; height: 0.67rem; background-image: url(/static/zhuanye/images/stop.png); background-size: cover; display: none; } } p { color: #fff; margin-top: 10px; } } } } } } .more { display: flex; width: 3rem; height: 0.74rem; font-size: 0.28rem; color: #fff; border: 1px solid #fff; border-radius: 0.38rem; margin: 0 auto; text-align: center; justify-content: center; align-items: center; svg { fill: #fff; width: 0.26rem; height: 0.22rem; } } } .fifth_model { width: 100%; padding: 0.65rem 0 0; box-sizing: border-box; background-size: cover; background-repeat: no-repeat; .xinwen { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; position: relative; .h1active-black { font-size: 0.44rem; font-weight: 700; text-align: center; color: #2f2f2f; line-height: 0.48rem; } h4 { display: none; } } .fastTrack { margin-top: .5rem; ul { display: flex; flex-wrap: wrap; li { width: 50%; height: 3.2rem; box-shadow: 0rem 0rem 0.38rem 0rem rgba(93, 93, 93, 0.22); box-sizing: border-box; &:nth-child(1) { background: #135eca; } &:nth-child(2) { // display: none; } &:nth-child(3) { background-color: #ad0b15; } &:nth-child(4) { background-image: none !important; background-color: #a38452; } &:nth-child(5) { background: url(/static/zhuanye/images/32.png) no-repeat center !important; background-size: cover !important; } &:nth-child(7) { background-color: #135eca; } &:nth-child(8) { background-image: none !important; background-color: #a38452; } &:nth-child(9) { // background-color: #000; a { p{ color: #444444; } } } &:nth-child(10) { display: none; } a { width: 100%; height: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; text-align: center; img { width: 0.76rem; height: auto; object-fit: cover; } p { font-size: 0.32rem; font-weight: 500; color: #ffffff; margin-top: 0.36rem; width: 100%; } } } } } } footer{ margin-top: .5rem; .friendlyLinks{ display: none !important; } .copyright{ width: 100%; height: 1.2rem; background: #003277 !important; min-width: none !important; display: flex; align-items: center; justify-content: center; a{ &:not(:first-child){ display: none; } &::before{ display: none; } } } } }