body { color: #000; font-size: 16px; } a { color: #000; } a:hover { color: #ff1111; text-decoration: none; } .wrap-larger { width: 1320px; margin: 0 auto; } .header-top { width: 100%; height: 30px; line-height: 30px; position: relative; background-color: #d7cfcf; border: 1px solid #bbb; border-left: 0; border-right: 0; padding: 0 15px; color: #fff; } .header-top .wrap { position: relative; } .header-img { position: relative; } .header-img img { width: auto; height: 90px; } .header-right { float: right; } .header-right a:hover{ color: #ac3b3b; } /* 导航 */ .header{ box-shadow: 0 0 12px rgba(0, 0, 0, .4); } .header>.wrap{ position: relative; } .header-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background-color: transparent; z-index: 101; } .header-nav { width: 50%; } .header-nav ul li { flex: auto; } .header-nav ul li:last-child a{ height: 44px; line-height: 44px; background-color: #ac3b3b; color: #fff; margin-top: 23px; margin-left: 20px; border-radius: 4px; } .header-nav ul li:last-child a:hover{ background-color: #C90303; } .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: #000; } .header-nav li:hover>a { background-color: #ac3b3b; 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/tsg/nav.jpg) no-repeat right bottom; background-size: 300px; } .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{ width: 100%; } .banner img { height: 450px; object-fit: cover; } /* 搜索 */ .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-pagination-bullet-active { color: #fff; background: rgba(174, 28, 3, 1); } .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; } /* 宫格 */ .content-grid { display: flex; flex-wrap: wrap; border: 1px solid #ccc; border-left: 0; border-bottom: 0; margin: 65px auto; box-shadow: 0 0 12px rgba(0, 0, 0, .4); } .content-grid a { display: block; width: calc(100% / 6); text-align: center; border-left: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 30px 0; } .content-grid dt img { width: 60px; transition: all .2s; } .content-grid a:hover img { transform:scale(1.2); } .content-grid dd { margin-top: 20px; } /* 标签页 */ .content-tabs h2{ text-align: center; font-size: 24px; font-weight: bold; } .content-tabs .slideTxtBox { margin: 40px 0; } .content-tabs .hd { border-bottom: 1px solid #bbb; } .content-tabs .hd li { display: inline-block; font-weight: bold; padding: 22px 28px; } .content-tabs .hd .on { background-color: #ac3b3b; } .content-tabs .hd .on a { color: #fff; } .content-tabs .bd ul{ margin: 0 30px; } .content-tabs .bd li:first-child { border-bottom: 1px solid #ccc; } .content-tabs .bd a { display: block; width: 100%; height: 100%; padding: 34px 0; } .content-tabs .bd p{ display: inline-block; width: calc(100% - 300px); overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } .content-tabs .bd span { float: right; color: #999; } .content-tabs .bd a:hover span { color: #ff1111; } .content-tabs .bd a:hover .desc span { color: #999; } .content-tabs .desc { line-height: 26px; display: flex; justify-content: space-between; margin-top: 14px; } .content-tabs .desc p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; color: #888; } .content-right{ width: 70%; } .footer { margin-top: 20px; } /* 目录页 */ .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: 45px auto 25px; padding: 0; } .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-mesg { background-color: #ac3b3b; 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; } .mobile-nav-icon span { background-color: #ac3b3b; } /* 响应式 */ @media screen and (max-width: 1320px) { .wrap { width: 95%; } .header-top { padding: 0; } } @media screen and (max-width: 1200px) { .header-nav>ul>li:hover .nav-secondLevel .wrap { background-position: 70% bottom; } } @media screen and (max-width: 1024px) { .banner img { height: 400px; } } @media screen and (max-width: 980px) { .header>.wrap{ width: 100%; } .header-nav { background-repeat: repeat; background-position: left top; } .header-nav ul { height: auto; } /* flex布局,item元素补全 */ .header-nav ul::after { content: ""; width: 50%; } .content-item { width: 100% !important; } .content-col { width: 100% !important; } } @media screen and (max-width: 768px) { .content-item { width: 100%; } .content-left { width: 100%; margin-right: 0; margin-bottom: 20px; } } @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: 101px !important; } .search-ranking { display: block; } .content-grid { margin: 50px auto; } .content-grid a { width: calc(100% / 4); } .content-grid dt img { width: 50px; } .content-tabs .hd ul { display: flex; } .content-tabs .hd li { padding: 22px 0; flex: auto; text-align: center; } .content-tabs .bd ul { margin: 0 15px; } .content-tabs .bd li:first-child a { padding: 34px 0; } .content-tabs .bd a { overflow: hidden; padding: 30px 0 0px; } .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; } .crumbs { padding-top: 25px; } }