body { color: #000; } a { color: #000; } a:hover { color: #ff1111; text-decoration: none; } .header-top { width: 100%; height: 30px; line-height: 30px; position: relative; background-color: #900000; padding: 0 15px; color: #fff; } .header-top .wrap { position: relative; } .header-img { position: relative; } .header-img img { width: auto; /* margin: 0 auto; */ } .header-right { float: right; } .header-right a { color: #fff; padding-left: 26px; background: url(../images/icon/hot.gif) no-repeat left center; } .header-right a:hover{ color: #ffff00; } /* 导航 */ .header{ background-color: #b70f00; } .header>.wrap{ position: relative; border-top: 1px solid #d30208; } .header-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); } .nav-secondLevel { top: 46px; } .header-nav li:hover>a { background-image: url(../images/bg/bg-nav-tsg2.jpg); } .header-nav .nav-secondLevel li { background-color: #C90303; } .header-nav li a { box-sizing: content-box; position: relative; line-height: 34px; height: 34px; min-width: 86px; background: url(../images/bg/bg-nav-tsg1.jpg) no-repeat center bottom; background-size: cover; padding-bottom: 13px; } .header-nav .nav-secondLevel li a{ background-image: none; padding-bottom: 0; height: auto; line-height: 24px; padding: 8px 5px; } /* 主体 */ .content { /* margin-top: 30px; */ } .content-right{ width: 70%; } .banner{ margin-bottom: 10px; } .banner, .banner img{ width: 100%; } .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: 3px; background-color: #f0f0f0; } /* 新增改版部分star */ .content-row .content-item { width: 32%; margin-bottom: 25px; } .content-row .content-item:nth-child(2) { margin-top: 12px; } .content-row .content-item-big { width: 37%; } .content-row .content-item-small { width: 27%; } .content-row .content-item h2 { padding: 0; } .content-row .content-item h2 span { display: inline-block; min-width: 120px; background: url(../images/bg/bg-title-sxzz1.png) no-repeat right bottom; color: #fff; padding: 0 30px 0 12px; } .content-row .content-item-unlikeBg h2 span{ min-width: 130px; background: url(../images/bg/bg-title-sxzz2.png) no-repeat right center; } .content-row .content-item h2 a{ color: #c41825; border: 1px solid #c41825; line-height: 22px; padding: 2px 10px; margin-top: 6px; margin-right: 5px; border-radius: 2px; transition: all .2s; } .content-row .content-item h2 a:hover{ background-color: #c41825; color: #fff; } .content-item-text-wrap { background-color: #EC1D25; padding-top: 12px; } .content-row .content-item-list { padding: 12px 12px; } .content-item-text-wrap .content-item-list { line-height: 32px; font-size: 16px; color: #fff; background-color: transparent; padding-bottom: 5px; } .content-item-text-wrap p{ text-indent: 2em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; } .content-row .content-wrap ul li { background-image: url(../images/icon/li-icon.png); padding-left: 16px; } .content-row .content-wrap .list-time{ color: #888; } .content-item-last .content-wrap ul { height: 149px; } .content-item-last .content-wrap li p{ width: 100%; } .content-item-last .content-item-list img{ width: 100%; } /* 新增改版部分end */ .content-item h2 { /* height: 40px; */ line-height: 40px; font-size: 16px; background: url(../images/bg/bg-content-tsg.png) repeat-x 0 0; font-size: 14px; overflow: hidden; padding: 0 12px; } .content-item h2 span{ color: #ff0000; padding-left: 26px; background: url(../images/icon/knot2.png) no-repeat left center; } .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; margin: 0 5px 5px; padding: 20px; } .content-wrap ul li { height: 36px; line-height: 36px; margin: 0 10px; border-bottom: 1px dotted #333; padding-left: 22px; background: url(../images/icon/arrow03.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%; } /* 快速链接 */ .content-item-link { border: 1px solid #ccc; } .content-item-link h2 { font-weight: normal; text-align: left; padding: 0; overflow: initial; height: 30px; line-height: 30px; background-size: contain; } .content-item-link h2 span { display: inline-block; background-color: #c41825; height: 100%; padding: 0 15px; position: relative; background-image: none; color: #fff; } .content-item-link h2 span i{ width: 0; height: 0; border: 6px solid transparent; border-top-color: #c41825; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); } .content-item-contact h2 span{ background-color: transparent; color: #ff0000; padding: 0 12px; } .content-item-contact h2 span img{ height: 90%; vertical-align: middle; margin-right: 5px; } .content-item-link .content-item-list { margin: 0; padding: 8px 0; } .content-item-link ul{ display: flex; flex-wrap: wrap; } .content-item-link ul li { width: 42%; background-image: url(../images/icon/triangle-small.gif); border: 0; padding-left: 10px; } .content-item-link ul li p { width: 100% !important; } .content-item-contact{ background-color: #fff; padding-bottom: 5px; } .content-item-contact .content-item-list{ display: block; background: #fff url(../images/banner/banner-content-tsg.jpg) no-repeat right bottom; background-size: 100px; } .content-item-contact ul li{ width: 96%; } /* 轮播 */ .swiper-container { margin: 5px; } .swiper-pagination-bullet { 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: 40px; } .swiper-slide { position: relative; } .swiper-slide img { display: block; width: 100%; } .swiper-slide .swiper-title { height: 36px; line-height: 36px; padding: 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; background-color: rgba(196, 24, 37, .85); color: #fff; margin-top: 6px; position: absolute; bottom: 0; left: 0; } /* 目录页 */ .catalog{ padding: 0; } .catalog .content-item-link h2 span{ padding: 0 20px 0 30px; background-image: url(../images/icon/triangle-white.png); background-repeat: no-repeat; background-position: 6px center; background-size: 20px; } .catalog .content-item-link .content-item-list{ margin: 0 6px 6px; padding: 12px 6px 6px; } .catalog .content-item-contact .content-item-list{ margin: 0; padding: 8px 0; } .catalog .content-item-link ul{ display: block; } .catalog .content-item-link ul li{ border: 1px solid #ccc; background: url(../images/bg/bg-title-tsg.png) repeat-x center; background-size: cover; width: 100%; margin-left: 0; margin-bottom: 6px; text-align: center; border-radius: 2px; height: auto; } .catalog .content-item-contact ul li{ margin-left: 10px; margin-bottom: 0; } .catalog .content-item-link li a{ display: block; background: url(../images/icon/book.png) no-repeat 5px center; background-size: 20px; padding: 0 30px; } /* 联系我们 */ .catalog .content-item-contact h2 span{ padding: 0 12px; } .catalog .content-item-contact ul li{ background: url(../images/icon/triangle-small.gif)no-repeat left center; border: 0; text-align: left; height: 36px; } .catalog .content-wrap li p{ width: calc(100% - 135px); } /* 列表页 */ .list .content-wrap li p{ width: calc(100% - 280px); } .crumbs { line-height: 40px; 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: 300px; margin-right: 33px; background-color: transparent; } .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; } /* 正文页 */ .content-item-list .article-wrap{ padding: 0; margin-top: -20px; } .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-mesg { background: url(../images/bg/bg-foot-tsg.jpg) repeat-x; 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: #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-row .content-item:nth-child(2) { margin-top: 0px; } } @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: auto; } .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; } }