body { color: #000; background-color: #e0e0e0; } a { color: #000; } a:hover { color: #ff1111; text-decoration: none; } /* 导航 */ .header{ box-shadow: 0px 1px 4px #666; } .header-nav { background: url(../images/bg/bg-nav-sx.gif) repeat-x center; background-size: contain; border-bottom: 2px solid #1c81cb; } .nav-secondLevel { top: 34px; } .header-nav>ul{ width: 1000px; margin: 0 auto; } .header-nav .nav-secondLevel li { background-color: #C90303; } .header-nav>ul>li { flex: auto; background: url(../images/bg/bg-nav-sx-line.gif) no-repeat left center; } .header-nav>ul>li:first-child{ background: none; } .header-nav li a { line-height: 34px; height: 34px; color: #000; font-weight: normal; } .header-nav .nav-secondLevel li a{ background-image: none; padding-bottom: 0; color: #fff; } .header-nav .nav-secondLevel li a:hover{ color: #ffff00; } /* 主体 */ .content { /* padding-top: 20px; */ background-color: #fff; box-shadow: 0px 1px 4px #666; } .content-right{ width: 60%; } .banner{ margin-bottom: 10px; } .banner, .banner img{ width: 100%; } .content-part{ padding: 15px 8px 0 0; } .content-row { display: flex; justify-content: space-between; flex-wrap: wrap; } .content-col { width: 31%; } .content-col-cneter { width: 40%; } .content-col-right { width: 27%; } .content-item { width: 100%; box-sizing: border-box; margin-bottom: 15px; border: 1px solid #dfdfdf; border-top: 0; border-radius: 6px; background-color: #f0f0f0; box-shadow: 0px 0px 2px #000; } .content-item h2 { /* height: 32px; */ line-height: 32px; font-size: 16px; background: url(../images/bg/bg-title-sx-right.gif) repeat-x center; background-size: contain; font-size: 14px; overflow: hidden; padding-right: 12px; } .content-item h2 span{ display: inline-block; height: 100%; color: #fff; padding-left: 49px; background: url(../images/bg/bg-title-sx-left.gif) no-repeat left center; background-size: contain; } .content-item.content-item-swiper h2 a { color: #AE1C03; border: 0; background-color: transparent; padding: 0; } .content-item h2 a { float: right; padding: 0 20px; } .content-col-right .content-item h2 a { border-color: #DDD6BA; } .content-item h2 a:hover { color: #AE1C03; } .content-item-list { background-color: #fff; padding: 8px; } .content-wrap ul li { height: 36px; line-height: 36px; /* border-bottom: 1px dotted #333; */ padding: 0 10px 0 22px; background: url(../images/icon/arrow-yellow.gif)no-repeat left center; } .content-wrap li p { width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; float: left; } .content-wrap .list-top p{ font-weight: bold; color: #ff0000; } .content-wrap .list-time { float: right; /* color: #666; */ } .content-wrap a:hover .list-time { color: #ff1111; } .content-col-right .content-wrap .list-time { display: none; } .content-col-right .content-wrap li p { width: 100%; } /* 轮播 */ .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: 6px; } /* 目录页 */ .catalog{ padding: 0; } .catalog .content-wrap li p{ width: calc(100% - 135px); } /* 列表页 */ .crumbs { line-height: 32px; padding: 0 20px; overflow: hidden; float: right; width: auto; font-weight: normal; color: #333; } .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; } .list-wrap { margin-top: 0; } .list-wrap li { padding: 0 15px; } .list-wrap li a { padding: 0 12px; background: url(../images/icon/dot.gif) no-repeat left center; } .list-wrap .list-title { width: calc(100% - 250px); } .content-left { width: 350px; margin-right: 0; background-color: transparent; padding: 0 35px; } .content-left-top{ width: 100%; background-color: #1c81cb; text-align: center; line-height: 32px; border-radius: 4px; color: #fff; box-shadow: 0px 0px 2px #000; margin-bottom: 15px; } .content-left .content-item{ box-shadow: none; border: none; } .content-left .content-item h2{ background: url(../images/bg/bg-title-sx.jpg) no-repeat left center; background-size: cover; height: 86px; line-height: 86px; } .content-left .content-wrap li p{ width: 100%; } .content-left .content-item-list{ padding-top: 0; margin-top: -8px; border: 1px solid #dfdfdf; border-top: 0; } .content-left-more{ line-height: 36px; text-align: right; padding-right: 8px } /* 搜索 */ .search { text-align: center; padding-bottom: 15px; } .search input{ border: 1px solid #999; height: 20px; line-height: 20px; } .search-icon { box-sizing: border-box; display: inline-block; width: 22px; height: 22px; background: url(../images/icon/search2.png) no-repeat; background-size: 20px; vertical-align: middle; cursor: pointer; margin-left: 2px; } .content-left-pic{ width: 100%; margin-top: 50px; } .content-left-pic img{ width: 100%; } .hasImg .list-title { padding-left: 16px; background: url(../images/icon/img-small.gif) no-repeat left center; background-size: 10px; } /* 正文页 */ .article .content-part{ padding: 15px 15px 0; } .article .content-item-list{ padding: 1px 0; } .article-bottom { padding: 10px; } .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{ box-shadow: 0px 1px 4px #666; } .footer-mesg { background: url(../images/bg/bg-foot-sx.gif) repeat-x; background-size: contain; color: #000; } .mobile-nav-icon span { background-color: #fff; } /* 响应式 */ @media screen and (max-width: 1200px) { .header-nav { position: relative; top: 0; transform: translateY(0); } } @media screen and (max-width: 1024px) { } @media screen and (max-width: 980px) { .header>.wrap{ width: 100%; } .content-right{ /* order: -1; */ } .header-img img { /* 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-part { flex-wrap: wrap; } .content-part>div { width: 100% !important; margin: 0; } .content-item { width: 100% !important; } .content-col { width: 100% !important; } .content-part { padding: 15px 8px 0 8px; } .content-left{ padding: 0; } .content-left .content-item h2{ height: 34px; line-height: 34px; } .content-left .content-item-list{ margin-top: 0; } .search{ padding-top: 20px; } .content-left-pic{ margin-top: 0; } } @media screen and (max-width: 768px) { .content-item { width: 100%; } .content-tow-lines li { width: 100%; } .content-item-swiper ul { margin-left: 0; } } @media screen and (max-width: 640px) { .header-top { display: none; } .header-img { width: 100%; } .header-img img { width: 100%; } .mobile-nav-icon { right: 18px; } .content-wrap li p { width: calc(100% - 100px); } .header-right { display: none; } /* 列表页 */ .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; } }