body { color: #000; } a { color: #000; } a:hover { color: #ff1111; } .header-top{ background: url(../images/bg/bg-header-zwc.png) repeat-x center; } .header-img img { width: auto; margin: 0 auto; } /* 导航 */ .header-nav { background: url(../images/bg/bg-nav-zwc.png) repeat-x center; } .header-nav ul { height: 36px; line-height: 36px; } .nav-secondLevel { top: 36px; } .header-nav li>a{ font-size: 16px; } .header-nav li:hover>a { background-color: #289fdb; } .header-nav .nav-secondLevel li { background-color: #156da9; } .header-nav .nav-secondLevel li a{ border-color: #1b79b9; } .header-nav li a { position: relative; line-height: 36px; height: 36px; } .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; flex-wrap: wrap; } .content-item { width: 32.6%; box-sizing: border-box; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 3px; } .content-item-swiper{ width: 66.2%; } .content-item-swiper .swiper-container{ width: 350px; float: left; } .content-item-swiper ul{ margin-left: 360px; } .content-item h2 { height: 34px; line-height: 34px; font-size: 16px; padding: 0 12px; background-color: #f7f7f7; border-bottom: 1px solid #3f7ed3; margin-bottom: 6px; } .content-item h2 a { display: inline-block; color: #fff; padding: 0px 20px; background: url(../images/bg/bg-title-zwc.png) repeat-x center; background-size: contain; position: relative; } .content-item h2 a i{ position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #3f7ed3; z-index: 1000; } .content-wrap ul li { height: 36px; line-height: 36px; margin: 0 10px; /* border-bottom: 1px dashed #ccc; */ } .content-wrap li p { width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-time { float: right; color: #666; } .content-wrap a:hover .list-time { color: #ff1111; } /* 其他 */ .content-item-other{ border-radius: 10px 10px 0 0; overflow: hidden; } .content-item-other h2{ border: none; background: url(../images/bg/bg-title-zwc.png) repeat-x center; background-size: contain; } /* 图片 */ .content-item-pic ul li{ height: inherit; line-height: inherit; text-align: center; } .content-item-pic ul li img{ width: 96%; } /* 轮播 */ .swiper-container { margin: 5px; } .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; } .swiper-pagination-bullet-active { color: #fff; background: rgba(174, 28, 3, 1); } .swiper-container-horizontal>.swiper-pagination-bullets { text-align: right; left: -3px; bottom: 34px; } .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: 5px; } /* 列表页 */ .crumbs { line-height: 32px; padding: 0 20px; overflow: hidden; border-bottom: 2px solid #2080cd; } .crumbs p { float: left; font-weight: bold; font-size: 16px; color: #0066FF; } .crumbs p i{ display: inline-block; width: 5px; height: 16px; background-color: #2080cd; margin-right: 15px; } .crumbs-right { float: right; color: #333; } .crumbs-right a { color: #333; } .crumbs-right a:hover { color: #AE1C03; } .list-wrap { margin-top: 0; } .list-wrap li { padding: 0 15px; } .list-wrap li a { padding: 0 12px; } .content-left { width: 350px; background-color: transparent; margin-right: 15px; } .content-left .content-item-other h2{ font-size: 16px; height: 34px; line-height: 34px; } .content-left .list-wrap li>a{ border-bottom: none; } .content-left .list-wrap li{ padding: 0; } .content-left .list-wrap li a{ padding: 0 6px; } .content-left .list-wrap .list-title { width: calc(100% - 96px); } .content-left .content-item-pic img{ width: 100%; } .content-right { width: 70%; } /* 正文页 */ .article-bottom { padding: 20px; } .article-bottom p { line-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .article-bottom span { color: #AE1C03; } .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: 5px; } .footer-mesg { background: url(../images/bg/bg-foot-zwc.png) repeat-x; background-size: contain; } .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: #C90303; } .mobile-header-nav>ul{ background-color: #156DB2; } .mobile-header-nav>ul>li { background-color: #156DB2; } .mobile-header-nav li a{ border-bottom: 1px solid #1b79b9; } .mobile-header-nav .nav-secondLevel { background-color: #289fdb; } .mobile-header-nav .nav-threeLevel { background-color: #156da9; } /* 响应式 */ @media screen and (max-width: 1024px) { .header-img img { width: 100%; } } @media screen and (max-width: 980px) { .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-tow-lines li { width: 100%; } .content-item-swiper ul { margin-left: 0; } .content-part>div { width: 100% !important; } .content-left{ margin-right: 0; } .content-item-swiper .swiper-container{ width: 100%; } .content-right{ order: -1; margin-bottom: 10px; } } @media screen and (max-width: 640px) { .header-img { width: 100%; } .header-img img { width: auto; } .content-wrap li p { width: calc(100% - 100px); } .header-right { display: none; } .mobile-nav-icon { right: 18px; } .list-wrap li { padding: 5px 0px; } }