body { color: #000; } a { color: #000; } a:hover { color: #ff1111; text-decoration: underline; } .header-top { width: 100%; height: 30px; line-height: 30px; position: relative; background: url(../images/bg/bg_top-xww.jpg) repeat-x; padding-left: 15px; } .header-top .wrap { position: relative; } .header-img { position: relative; background: url(../images/header/header-topbg.gif) repeat-x; } .header-img img { width: auto; margin: 0 auto; } .header-right { position: absolute; top: 50%; right: 0px; transform: translateY(-50%); padding: 0 15px 0 40px; background-size: 18px; border-radius: 30px; color: #5C5C5C; } .header-search { display: inline-block; margin-right: 10px; } .header-search-icon { display: inline-block; width: 20px; height: 20px; background: url(../images/icon/search.png) no-repeat; background-size: 18px; vertical-align: middle; cursor: pointer; } .header-right a { color: #ff0000; font-weight: bold; } /* 导航 */ .header-nav { background: url(../images/bg/bg-nav-xww.jpg) repeat-x center; } .header-nav ul { height: 34px; line-height: 34px; } .nav-secondLevel { top: 34px; } .header-nav li { background: url(../images/bg/bg-nav-xww-line.jpg) no-repeat center right; } .header-nav li:last-child { background: none; } .header-nav li:hover>a { color: #fff; text-decoration: underline; } .header-nav .nav-secondLevel li { background-color: #C90303; } .header-nav li a { position: relative; line-height: 34px; height: 34px; } .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: 30px; } .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 #E6D2B9; border-top: 0; border-radius: 3px; } .content-item h2 { height: 32px; line-height: 32px; font-size: 16px; background: url(../images/bg/bg-title-xww1.jpg) repeat-x 0 0; font-size: 14px; overflow: hidden; padding: 0 12px; } .content-col-right h2 { background-position: 0 -66px; } .content-col-right .content-item { border-color: #DDD6BA; } .content-item.content-item-swiper h2 a { color: #AE1C03; border: 0; background-color: transparent; padding: 0; } .content-item h2 a { display: inline-block; background-color: #fff; border: 1px solid #E6D2B9; padding: 0 20px; } .content-col-right .content-item h2 a { border-color: #DDD6BA; } .content-item h2 a:hover { color: #AE1C03; } .content-wrap ul li { height: 36px; line-height: 36px; margin: 0 10px; /* border-bottom: 1px dashed #ccc; */ padding-left: 12px; background: url(../images/icon/dot.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-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%; } /* 快速链接 */ .content-item-link { border: 1px solid #DDD6BA; } .content-item-link h2 { background: url(../images/bg/bg-title-xww2.jpg) repeat-x; border-bottom: 2px solid #c40d11; font-style: italic; font-size: 18px; font-weight: normal; } .content-item-link h2 img { vertical-align: middle; margin-top: -3px; } .content-item-link ul { display: flex; flex-wrap: wrap; } .content-item-link ul li { width: 42%; } .content-item-link ul 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; } /* 列表页 */ .crumbs { background: url(../images/bg/bg-title-xww3.jpg) repeat-x; line-height: 32px; padding: 0 20px; overflow: hidden; } .crumbs p { background: url(../images/icon/arrow02.jpg) no-repeat left center; padding-left: 15px; float: left; font-weight: bold; } .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; background: url(../images/icon/dot.gif) no-repeat left center; } .list-wrap .list-title { width: calc(100% - 250px); } .content-left { width: calc(100% - 290px); background-color: transparent; border: 1px solid #D8E0E8; border-top: none; border-radius: 4px; } .content-right { width: 280px; } .content-right-item { background-color: #f6fcfc; border: 1px solid #d4d4d4; border-top: none; border-radius: 4px; margin-bottom: 10px; } .content-right-item h2 { background: url(../images/bg/bg-title-xww5.gif) repeat-x; width: 100%; height: 34px; color: #fff; font-size: 14px; } .content-right-item h2 p { background: url(../images/bg/bg-title-xww4.gif) no-repeat left bottom; height: 100%; width: 100%; line-height: 38px; padding-left: 26px; } .content-right-item ul { padding: 5px 0; } .content-right-item ul li { line-height: 30px; padding: 0 10px; } .content-right-item ul li a { padding-left: 12px; background: url(../images/icon/triangle-small.gif) no-repeat left center; } .content-right-item-relation a { color: #000; text-decoration: none; cursor: text; } .hasImg .list-title { padding-left: 16px; background: url(../images/icon/img-small.gif) no-repeat left center; background-size: 10px; } /* 正文页 */ .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: 20px; } .footer-mesg { background: url(../images/bg/bg-nav-xww.jpg) 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; } /* 响应式 */ @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; } } @media screen and (max-width: 640px) { .header-top { display: none; } .header-img { width: 100%; } .header-img img { width: auto; } .content-wrap li p { width: calc(100% - 100px); } .header-right { display: none; } .list-wrap .list-title { width: 100%; } .list-wrap li { padding: 5px 15px; } .list-wrap li a { background-position: left 14px; line-height: 28px; } }