body { color: #000; font-size: 16px; } a { color: #000; } a:hover { color: #ff1111; text-decoration: none; } .wrap-larger { width: 1260px; margin: 0 auto; } .header-img { position: relative; } .header-img img { width: auto; height: 90px; padding: 10px 0; } .header-right { float: right; } .header-right a:hover{ color: #ac3b3b; } /* 导航 */ .header{ background-color: #335578; } .header>.wrap{ position: relative; } .header-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background-color: transparent; z-index: 101; } .header-nav { width: 60%; } .header-nav ul li { flex: auto; } .nav-secondLevel { top: 90px; } .header-nav .nav-secondLevel li { width: 33.33%; margin-top: 10px; } .header-nav li a { box-sizing: content-box; position: relative; line-height: 90px; height: 90px; color: #fff; } .header-nav li:hover>a { background-color: #4a7c00; color: #fff; } .header-nav .nav-secondLevel li a{ background-image: none; padding-bottom: 0; text-align: left; } .header-nav .nav-secondLevel li a:hover{ background-color: rgba(233, 217, 217, 1) !important; } .header-nav>ul>li:hover .nav-secondLevel { width: 2400px; position: fixed; left: -1200px; background-color: #e8e8e8; min-height: 150px; padding: 10px 0 20px; } .header-nav>ul>li:hover .nav-secondLevel .wrap { background: url(../images/sny/icon/icon-title-nav.png) no-repeat right bottom; background-size: 100px; } .header-nav>ul>li:hover .nav-secondLevel .nav-secondLevel-wrap { display: flex; flex-wrap: wrap; width: 700px; margin: 0 auto; } .header-nav .nav-secondLevel li a { background: transparent url(../images/tsg/icon/dot.png) no-repeat 8px center; background-size: 6px; border: 0; color: #ac3b3b; padding: 0 20px; font-weight: normal; } .header-nav .nav-secondLevel li:last-child a { margin: 0; background-color: transparent; line-height: 40px; color: #ac3b3b; } .header-nav .nav-secondLevel li:last-child:hover a { background-color: transparent; } /* 三级 */ .header-nav .nav-threeLevel { position: relative; top: 0; left: 0; width: 100%; background-color: transparent; font-size: 14px; display: block !important; } .header-nav .nav-threeLevel li { width: 100% !important; margin-top: 0 !important; } .header-nav .nav-threeLevel li a { background: none !important; color: #000 !important; } .header-nav .nav-secondLevel li a span { display: none; } /* 主体 */ .content { /* margin-top: 30px; */ } .banner{ position: relative; } .banner, .banner img{ display: block; width: 100%; } /* 搜索 */ .search { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; z-index: 100; background-color: #ac3b3b; height: 60%; padding: 0 50px; border: 1px solid #bbb; } .search-wrap { width: 100%; height: 56px; display: flex; margin: 60px 0 40px; } .search-wrap-item { border-radius: 6px; border: 0; outline: none; font-size: 16px; } .search-wrap select { padding: 0 12px; width: 140px; cursor: pointer; } .search-wrap input { margin: 0 20px; padding: 0 15px; flex: auto; } .search-wrap button { padding: 0 45px; background: #fff url(../images/icon/search.png) no-repeat 16px center; background-size: 22px; cursor: pointer; } .search-wrap button:hover { background-color: rgba(255, 255, 255, .9); } .search-wrap button:active { background-color: rgba(255, 255, 255, .7); } .search-ranking { color: #fff; display: flex; line-height: 28px; } .search-ranking ul { margin-left: 10px; flex: 1; } .search-ranking ul li { display: inline-block; margin-right: 25px; } .search-ranking a { color: #fff; text-decoration: underline; } .search-ranking a:hover { color: #ffff00; } /* 轮播 */ .swiper-button-next.swiper-button-white, .swiper-button-prev.swiper-button-white { --swiper-navigation-color: #335578; } .banner-swiper .swiper-button-next.swiper-button-white, .banner-swiper .swiper-button-prev.swiper-button-white { --swiper-navigation-color: #fff; } .banner-swiper .swiper-pagination-bullet { background-color: #aaa; } .swiper-pagination-bullet { background-color: #ddd; } .swiper-pagination-bullet-active { color: #fff; background: #335578; } .banner-swiper .swiper-pagination-bullet-active { background: #fff; } .swiper-slide { position: relative; } .swiper-slide img { display: block; width: 100%; } .swiper-slide .swiper-title { height: 26px; line-height: 26px; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; background-color: #fff; margin-top: 6px; } /* 模块1 */ .content-row1 { background: #f8f7f5 url(../images/sny/icon/nav.jpg) repeat-x left top; padding: 75px 0 40px; } .swiper1 { background-color: #fff; box-shadow: 0px 2px 5px #ccc; } .flex-content { display: flex; padding: 20px; } .swiper-left { width: 580px; flex-grow: 0; flex-shrink: 0; } .swiper-left img { width: 100%; padding-right: 25px; } .swiper-right { flex: auto; } .content-row1 .swiper-right { padding-right: 30px; } .sny-msg1-time { display: inline-block; border-bottom: 1px solid #ccc; padding: 12px 0; font-weight: 800; } .sny-msg1-time i { color: #ccc; font-style: normal; font-family: Arial; margin-right: 12px; } .sny-msg1-time span { font-size: 16px; color: #333; } .sny-msg1-title { font-size: 24px; line-height: 32px; margin: 25px 0 30px; word-break: break-all; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .sny-msg1-desc { color: #666; text-indent: 2em; line-height: 26px; word-break: break-all; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .sny-msg1-more { display: inline-block; background: url(../images/sny/icon/more.png) no-repeat center; background-size: cover; color: #fff; height: 46px; line-height: 42px; padding: 0 50px 0 30px; margin-top: 40px; } .swiper1 a:hover .sny-msg1-more { color: #ff1111; } .content-row1 .wrap { position: relative; } .sny-name1 { position: absolute; right: 20px; bottom: 30px; z-index: 10; font-size: 60px; color: #eee; letter-spacing: 8px; } /* 标签页 */ .sny-name { text-align: center; font-size: 24px; font-weight: bold; width: 360px; border-bottom: 1px solid #ccc; margin: 40px auto 0; padding: 30px 0; } .sny-name img { vertical-align: middle; margin-right: 8px; } .sny-name span { color: #4a7c00; vertical-align: middle; position: relative; } .sny-name span::after { content: ""; position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); height: 5px; width: 60%; background-color: #4a7c00; } .content-tabs .slideTxtBox { margin: 40px 0; } .content-tabs .hd { text-align: center; margin-bottom: 30px; } .content-tabs .hd li { display: inline-block; padding: 12px 50px; } .content-tabs .hd .on { border: 1px solid #4a7c00; } .content-tabs .hd .on a { color: #4a7c00; } .content-tabs .tempWrap { background: #f2f2f0 url(../images/sny/icon/icon-main-top.jpeg) no-repeat center top; background-size: contain; } .content-tabs .bd { } .content-tabs-wrap { background: url(../images/sny/icon/icon-main-bottom.jpeg) no-repeat center bottom; background-size: contain; width: 100%; overflow: hidden; } .content-tabs-wrap .flex-content { padding: 80px 70px; } .content-tabs-wrap .swiper-left { width: 370px; } .content-tabs-wrap .swiper-right { height: 466px; } .sny-msg-title { display: inline-block; background: url(../images/sny/icon/icon-name-left.jpg) no-repeat left center; color: #4a7c00; font-size: 26px; line-height: 40px; height: 40px; letter-spacing: 8px; text-align: center; } .sny-msg-title span { background: url(../images/sny/icon/icon-name-right.jpg) no-repeat right center; padding: 0 32px 0 40px; } .sny-msg-desc { line-height: 28px; margin: 30px 0 50px; word-break: break-all; text-overflow: ellipsis; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; } .sny-msg-pic h3 { color: #905801; text-align: center; position: relative; font-size: 16px; font-weight: normal; margin-bottom: 20px; } .sny-msg-pic h3::after { content: ""; width: 100%; height: 1px; background-color: #905801; position: absolute; left: 0; top: 50%; transform: translateY(-50%); } .sny-msg-pic h3 span { background-color: #f2f2f0; padding: 0 10px; position: relative; z-index: 10; } .sny-msg-pic ul { overflow: hidden; display: flex; justify-content: space-between; } .sny-msg-pic ul li { width: 24%; } .sny-msg-pic li img { width: 100%; } .content-tabs-wrap .swiper-right { position: relative; } .sny-msg-more { background: url(../images/sny/icon/icon-more.jpg) no-repeat center; background-size: contain; display: inline-block; width: 150px; height: 38px; line-height: 38px; text-align: center; position: absolute; right: 0; bottom: -20px; } .content-tabs2 .flex-content { position: relative; } .content-tabs2 .swiper-right { position: initial; } .content-tabs2 .sny-msg-more { left: 80px; right: auto; bottom: 40px; } .sny-msg-pic h4 { color: #4a7c00; font-size: 18px; margin-bottom: 10px; } .sny-msg-pic h4 img { width: 24px; vertical-align: middle; margin-top: -3px; } .sny-msg-pic video { width: 300px; } .sny-msg-pic>img { float: right; /* width: calc(100% - 350px); */ width: 340px; padding: 6px; box-shadow: 0px 2px 5px #999; margin-top: -46px; } .content-row2 { background-color: #f8f7f5; padding: 10px 0 40px; } .content-row2 .flex-content, .content-row3 .flex-content { padding: 0; justify-content: space-between; margin-top: 50px; } .content-item { width: 28%; } .content-item:last-child { width: 39%; } .content-item h2{ font-size: 16px; background-size: contain; font-size: 14px; overflow: hidden; border-bottom: 1px solid #e6e6e6; } .content-item h2 span{ display: inline-block; padding: 15px 20px; font-size: 18px; font-weight: bold; } .content-item h2 span i { display: inline-block; width: 6px; height: 22px; background-color: #4a7c00; vertical-align: middle; margin-top: -4px; margin-right: 3px; } .content-item h2 a{ float: right; color: #7b7b7b; padding: 17px 0; margin-right: 20px; } .content-item h2 a:hover{ color: #FF0000; } .content-wrap ul li{ height: 36px; line-height: 36px; padding-left: 12px; background: url(../images/sny/icon/dot.png) no-repeat 3px center; background-size: 4px; font-size: 14px; } .content-wrap li p{ width: calc(100% - 130px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; color: #999; } .content-wrap a:hover .list-time { color: #ff1111; } .content-wrap img { width: 100%; margin-bottom: 12px; } .content-item-pic { padding: 12px; box-shadow: 0px 2px 5px #999; margin-top: 30px; } .content-item-pic img { width: 100%; } .content-row3 { margin-bottom: 60px; } .content-row3 .content-item{ width: 32% !important; border: 1px solid #ccc; min-height: 200px; background: url(../images/sny/cooperator1.png) no-repeat left bottom; background-size: contain; } .content-row3 .content-item:nth-child(2) { background-image: url(../images/sny/cooperator2.png); } .content-row3 .content-item:nth-child(3) { background-image: url(../images/sny/cooperator3.png); } .content-row3 .content-item h2 { border-bottom: 0; padding-left: 20px; } .content-row3 .content-wrap ul li { background-image: none; padding-left: 40px; } /* 目录页 */ .catalog{ padding: 0; } .catalog .content-wrap li p{ width: calc(100% - 135px); } /* 列表页 */ .list .content-wrap li p{ width: calc(100% - 280px); } .crumbs { line-height: 40px; overflow: hidden; font-weight: normal; color: #333; margin: 25px auto 25px; padding: 0 25px; } .crumbs a { color: #333; float: none !important; padding: 0 !important; } .crumbs a:hover { color: #AE1C03; } .crumbs span{ background: none !important; padding: 0 !important; color: #333 !important; } .content-left { width: 260px; margin-right: 25px; background-color: transparent; } .content-left, .content-right { box-shadow: 0 0 12px rgba(0, 0, 0, .4); border-radius: 4px; overflow: hidden; margin-bottom: 10px; } .content-left h2, .content-right .content-wrap-title { background-color: transparent; color: #ac3b3b; font-size: 22px; border-bottom: 1px solid #ccc; padding: 30px 0 20px; height: auto; line-height: normal; } .content-right .content-wrap-title { text-align: center; border-bottom: 0; } .content-left-list li a { text-align: left; padding: 0 12px; line-height: 56px; } .list-wrap li>a { padding-left: 15px; background: url(../images/technical/icon/dot.png) no-repeat left center; line-height: 46px; } .list-wrap .list-time { color: #999; } .catalog { border: none; } .catalog-item { margin-bottom: 15px; border: 1px solid #D8E0E8; border-top: none; border-radius: 4px; padding-bottom: 10px; } .catalog-item:last-child { margin-bottom: 0; } /* 底部 */ .footer { margin-top: 20px; } .footer-mesg { background-color: #717173; background-size: cover; } .footer-link { background-color: #C1D6E3; line-height: 36px; } .footer-link ul { display: inline-block; } .footer-link ul li { display: inline-block; margin-right: 15px; } .footer-mesg .wrap { display: flex; justify-content: space-around; } .footer-left { margin-top: 20px; } .footer-left span { display: block; } .footer-right img { display: block; width: 136px; } .footer-right p { font-size: 14px; } .footer-right p:first-child { letter-spacing: 5px; font-size: 16px; } .mobile-nav-icon span { background-color: #fff; } .banner-main { margin-bottom: 26px; } /* 响应式 */ @media screen and (max-width: 1260px) { .wrap { width: 95%; } } @media screen and (max-width: 1200px) { .header-nav>ul>li:hover .nav-secondLevel .wrap { background-position: 70% bottom; } } @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .header>.wrap{ width: 100%; } .header-img img { padding-left: 20px; } .header-nav { background-repeat: repeat; background-position: left top; } .header-nav ul { height: auto; } /* flex布局,item元素补全 */ .header-nav ul::after { content: ""; width: 50%; } .content-col { width: 100% !important; } } @media screen and (max-width: 768px) { .content-item, .content-row3 .content-item { width: 100% !important; } .content-left { width: 100%; margin-right: 0; margin-bottom: 20px; } .flex-content { flex-wrap: wrap; } .swiper-left, .swiper-right { width: 100%; } .swiper-left img { padding-right: 0; } .content-row3 .content-item { background-position: center bottom; background-repeat: repeat-x; } .content-tabs-wrap .swiper-left { display: none; } } @media screen and (max-width: 640px) { .header-right { font-size: 14px; } .header-img { width: 100%; } .header-img img { height: 100%; } .mobile-nav-icon { right: 18px; } .content-wrap li p { width: calc(100% - 100px); } .search { padding: 0 20px; height: 70%; } .search-wrap { margin: 30px 0 25px; flex-wrap: wrap; height: auto; } .search-wrap-item { height: 40px; line-height: 40px; } .search-wrap select { width: 100%; margin-bottom: 15px; } .search-wrap input { width: 50%; margin: 0 15px 0 0; } .search-wrap button { padding: 0 36px; background-position: 10px center; } .content { margin-top: 70px !important; } .search-ranking { display: block; } .content-tabs .hd ul { display: flex; } .content-tabs .hd li { padding: 15px 0; flex: auto; text-align: center; } .content-tabs .bd ul { margin: 0 15px; flex-wrap: wrap; } .content-tabs .bd li:first-child a { padding: 34px 0; } .content-tabs .bd a { overflow: hidden; } .content-tabs .bd p { width: calc(100% - 0px); } .content-tabs .bd span { margin-top: 10px; } .content-tabs .desc { display: block; margin-top: 32px; } .content-tabs .desc p { width: 100%; } /* 列表页 */ .list .content-wrap li{ height: auto; overflow: hidden; background-position: left 10px; } .list .content-wrap li p{ width: 96%; float: none; } .list-wrap .list-title { width: 100%; } .list-wrap li { padding: 5px 15px; } .list-wrap li a { background-position: left 14px; line-height: 28px; } .sny-name1 { font-size: 40px; } .sny-name { padding: 15px 0; } .content-tabs-wrap .flex-content { padding: 30px 20px; } .sny-msg-pic ul li { width: 49%; } .content-tabs-wrap .swiper-right { height: 520px; } .sny-msg-desc { margin-bottom: 30px; } .footer-left { /* margin-top: 0; */ width: 100%; order: 1; } .footer-mesg .wrap { flex-wrap: wrap; } .footer-left { } .footer-right{ } }