.header-top{ width: 100%; background-color: #f5f6fa; padding: 16px 0; } .header-right{ position: absolute; right: 0; top: 50%; transform: translateY(-50%); } .header-top .wrap{ position: relative; } .header-search input{ height: 20px; padding: 0 10px; } .header-search-icon{ display: inline-block; width: 40px; height: 24px; background: #0076F9 url(../images/icon/search-white.png) no-repeat center; background-size: 16px; vertical-align: middle; border-radius: 0 3px 3px 0; cursor: pointer; } body{ color: #000; background-color: #ebebeb; } a{ color: #000; } a:hover{ color: #ff1111; } .header-img{ position: relative; } .header-img img{ width: auto; } /* 导航 */ .header-nav{ background-color: #87cefa; } .header-nav ul{ height: 50px; line-height: 50px; background-color: transparent; } .nav-secondLevel{ top: 50px; } .header-nav li:last-child{ background: none; } /* .header-nav li:hover a { background-color: #FF1111 ; } */ .header-nav .nav-secondLevel li a{ border-color: #fff; background-color: #87cefa; color: #000; } .nav-secondLevel li:hover a { background-color: #FF1111 ; color: #ffff00; } .nav-secondLevel .nav-threeLevel a{ background-color: #87cefa !important; color: #000 !important; } .header-nav .nav-threeLevel li a:hover { background-color: #FF1111 !important; color: #ffff00 !important; } .header-nav li a{ position: relative; height: 50px; line-height: 50px; } .header-nav>ul>li>a{ font-size: 16px; color: #000; } .header-nav a i{ width: 0; height: 0; border: 6px solid transparent; border-bottom-color: #fff; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); opacity: 0; } .header-nav li:hover a i{ opacity: 1; } /* 主体 */ .content{ margin-top: 20px; } .content-row{ display: flex; justify-content: space-between; } .content-item{ width: 32%; box-sizing: border-box; margin-bottom: 20px; border: 1px solid #87cefa; background-color: #fff; } .content-item-center{ width: 34.5%; } .content-item h2{ background-size: contain; font-size: 14px; overflow: hidden; background-color: #87cefa; padding-right: 14px; } .content-item h2 span{ display: inline-block; padding: 10px 14px; font-size: 18px; } .content-item h2 span i{ border-left: 6px solid #FF6600; margin-right: 12px; } .content-item h2 a{ font-weight: normal; float: right; margin-top: 10px; } .content-item h2 a:hover{ color: #FF0000; } .content-item h2 a:hover .triangle{ border-left-color: #FF0000; } .content-wrap ul li{ height: 44px; line-height: 44px; margin: 0 10px; border-bottom: 1px dashed #ccc; } .content-wrap li p{ width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap ul .content-imageText{ height: auto; line-height: inherit; border-bottom: none; margin-top: 12px; } .content-wrap li dl{ overflow: hidden; } .content-wrap li dl dt{ width: 50%; float: left; overflow: hidden; margin-right: 10px; } .content-wrap li dl dt img{ width: 100%; transition: all .2s; } .content-imageText:hover dt img{ transform: scale(1.2); } .content-wrap li dl dd{ line-height: 28px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } .content-imageText-time{ color: #666; } .content-wrap .list-time { float: right; color: #666; } .content-wrap a:hover .list-time { color: #ff1111; } .content-QRcode{ text-align: center; display: flex; justify-content: space-around; margin: 50px 0; } .content-QRcode-item{ width: 32%; } .content-QRcode-item img{ width: 100%; } .content-QRcode-item p{ margin-top: 10px; } /* banner轮播 */ .banner{ padding-bottom: 20px; } .banner .swiper-pagination-bullet{ width: 12px; height: 12px; } .banner .swiper-pagination-bullet-active { color:#fff; background: #ff3300; } .banner .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -8px; } .banner .swiper-slide{ position: relative; } .banner .swiper-slide img{ display: block; width: 100%; } .banner .swiper-slide .swiper-title{ position: absolute; left: 0; bottom: 0; height: 38px; line-height: 38px; background-color: rgba(0,0,0,.6); color: #fff; padding: 0 125px 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 轮播 */ .content-item-swiper .swiper-pagination-bullet{ width: 22px; height: 18px; line-height: 18px; border-radius: 2px; font-size: 12px; text-align: center; background-color: rgba(0, 0, 0, .6); color: #fff; } .content-item-swiper .swiper-pagination-bullet-active { color:#fff; background: rgba(185, 13, 13, .7); } .content-item-swiper .swiper-container-horizontal>.swiper-pagination-bullets{ text-align: right; left: -3px; bottom: 3px; } .content-item-swiper .swiper-slide{ position: relative; } .content-item-swiper .swiper-slide img{ display: block; width: 100%; } .content-item-swiper .swiper-slide .swiper-title{ position: absolute; left: 0; top: 0; height: 26px; line-height: 26px; background-color: #B90D0D; color: #fff; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; } .sidebar{ position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 10; } .sidebar img{ display: block; } .sidebar-close{ float: right; padding: 5px 10px; } /* 列表页 */ .content-list-wrap, .content-left{ border: 1px solid #87cefa; background-color: #fff; } .content-left-list li a{ background: url(../images/icon/triangle.jpg) no-repeat 10px center; text-align: left; padding-left: 32px; } .crumbs{ background-color: #87cefa; line-height: 40px; overflow: hidden; } .crumbs p { float: left; font-weight: bold; font-size: 16px; } .crumbs-right { float: right; } .list-wrap .list-time{ color: #666; } /* 目录页 */ .catalog-title{ /* border: none; background-color: #87cefa; padding: 0 20px; */ border-color: #ff0000; } /* 底部 */ .footer{ margin-top: 20px; } .footer-mesg{ background-color: #87cefa; color: #000; } .mobile-nav-icon span{ background-color: #ff0000; } .mobile-header-nav .nav-threeLevel li a{ background-color: #f55555; } /* 响应式 */ @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .header-nav ul{ height: auto; } /* flex布局,item元素补全 */ .header-nav ul::after{ content: ""; width: 50%; } .header-mesg{ position: relative; top: 0; left: 0; transform: translateY(0); overflow: hidden; } .header-mesg p{ float: left; margin-right: 20px; margin-bottom: 8px; } .content-row{ flex-wrap: wrap; } .content-item{ width: 100% !important; } .header-right { right: 90px; } } @media screen and (max-width: 768px) { .content-item{ width: 100%; } /* 轮播 */ .content-item-swiper .swiper-container{ width: 100%; float: inherit; } .content-item-swiper ul{ margin-left: 0; } .content-item-swiper .content-wrap{ margin-left: 0; margin-top: 20px; } } @media screen and (max-width: 640px) { .header{ box-shadow: 0 1px 3px #ddd; } .header-top .wrap{ width: 100%; } .mobile-nav-icon { right: 18px; } .header-img{ width: 100%; height: auto; } .header-img img{ height: 60px; width: auto; padding: 5px 0; } .content-wrap li p{ width: calc(100% - 100px); } .content{ margin-top: 70px !important; } .header-search { display: none; } .header-top { padding: 0; } .content-flex { flex-wrap: wrap; } .content-flex-left, .content-flex-right { width: 100% !important; } } /* 新样式 */ .header-nav { background-color: #7f409f; box-shadow: 0 5px 12px #e68e4a; } .header-nav>ul>li>a { color: #fff; } .header-nav .nav-secondLevel li a { background-color: #7f409f; color: #fff; } .nav-secondLevel .nav-threeLevel a { background-color: #7f409f !important; color: #fff !important; } .nav-secondLevel li:hover a { background-color: #FF1111; color: #ffff00; } .header-nav .nav-threeLevel li a:hover { background-color: #FF1111 !important; color: #ffff00 !important; } .content { margin-top: 24px; } .content-item h2 { background-color: #7f409f; color: #fff; } .content-item h2 a { color: #fff; } .content-item { border: 1px solid #e2a99c; width: 49%; } .content-flex { display: flex; justify-content: space-between; width: 100%; } .content-flex-left { width: 66%; flex-grow: 0; flex-shrink: 0; } .content-row { flex-wrap: wrap; } .content-item-center { width: 100%; } .content-flex-right { width: 32%; } .content-flex-right .content-item { width: 100%; } .content-QRcode { margin: 20px 0; } .content-QRcode-item { width: 88%; } /* 专业设置 */ .content-item-special ul { display: flex; flex-wrap: wrap; justify-content: space-around; margin-top: 13px; } .content-item-special ul li { box-sizing: border-box; height: 56px; line-height: 50px; width: 91%; margin: 0; background: url(../images/technical/pic/bg-medicine3.jpg) left center; background-size: cover; margin-bottom: 13px; text-align: center; border: 3px solid #a2e5ac; padding-left: 0; } .content-item-special ul li:nth-child(2), .content-item-special ul li:nth-child(11) { background-image: url(../images/technical/pic/bg-medicine8.jpg); border-color: #dbd2b1; } .content-item-special ul li:nth-child(3), .content-item-special ul li:nth-child(12) { background-image: url(../images/technical/pic/bg-medicine3.jpg); border-color: #96cdd3; } .content-item-special ul li:nth-child(4), .content-item-special ul li:nth-child(13) { background-image: url(../images/technical/pic/bg-medicine5.jpg); border-color: #a0c7a6; } .content-item-special ul li:nth-child(5), .content-item-special ul li:nth-child(14) { background-image: url(../images/technical/pic/bg-medicine6.jpg); border-color: #b4c2da; } .content-item-special ul li:nth-child(6), .content-item-special ul li:nth-child(15) { background-image: url(../images/technical/pic/bg-medicine7.jpg); border-color: #b9bad9; } .content-item-special ul li:nth-child(7), .content-item-special ul li:nth-child(16) { background-image: url(../images/technical/pic/bg-medicine8.jpg); border-color: #bcda9d; } .content-item-special ul li:nth-child(8), .content-item-special ul li:nth-child(17) { background-image: url(../images/technical/pic/bg-medicine3.jpg); border-color: #e5afb2; } .content-item-special ul li:nth-child(9), .content-item-special ul li:nth-child(18) { background-image: url(../images/technical/pic/bg-medicine5.jpg); border-color: #9abce7; } .content-item-special ul li:nth-child(10), .content-item-special ul li:nth-child(19) { background-image: url(../images/technical/pic/bg-medicine9.jpg); border-color: #9be1ad; } .content-item-special li p { box-sizing: border-box; width: 100%; height: 100%; padding: 0 10px; background-color: rgba(255, 255, 255, .3); font-size: 18px; } .footer { box-shadow: 0px -5px 12px #e68e4a; margin-top: 24px; } .footer-mesg { background-color: #7f409f; color: #fff; } .crumbs { background-color: #7f409f; color: #fff; } .crumbs a { color: #fff; } .content-list-wrap, .content-left { border-color: #e2a99c; }