tsg2.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. body {
  2. color: #000;
  3. font-size: 16px;
  4. }
  5. a {
  6. color: #000;
  7. }
  8. a:hover {
  9. color: #ff1111;
  10. text-decoration: none;
  11. }
  12. .wrap-larger {
  13. width: 1320px;
  14. margin: 0 auto;
  15. }
  16. .header-top {
  17. width: 100%;
  18. height: 30px;
  19. line-height: 30px;
  20. position: relative;
  21. background-color: #d7cfcf;
  22. border: 1px solid #bbb;
  23. border-left: 0;
  24. border-right: 0;
  25. padding: 0 15px;
  26. color: #fff;
  27. }
  28. .header-top .wrap {
  29. position: relative;
  30. }
  31. .header-img {
  32. position: relative;
  33. }
  34. .header-img img {
  35. width: auto;
  36. height: 90px;
  37. }
  38. .header-right {
  39. float: right;
  40. }
  41. .header-right a:hover{
  42. color: #ac3b3b;
  43. }
  44. /* 导航 */
  45. .header{
  46. box-shadow: 0 0 12px rgba(0, 0, 0, .4);
  47. }
  48. .header>.wrap{
  49. position: relative;
  50. }
  51. .header-nav {
  52. position: absolute;
  53. right: 0;
  54. top: 50%;
  55. transform: translateY(-50%);
  56. background-color: transparent;
  57. z-index: 101;
  58. }
  59. .header-nav {
  60. width: 50%;
  61. }
  62. .header-nav ul li {
  63. flex: auto;
  64. }
  65. .header-nav ul li:last-child a{
  66. height: 44px;
  67. line-height: 44px;
  68. background-color: #ac3b3b;
  69. color: #fff;
  70. margin-top: 23px;
  71. margin-left: 20px;
  72. border-radius: 4px;
  73. }
  74. .header-nav ul li:last-child a:hover{
  75. background-color: #C90303;
  76. }
  77. .nav-secondLevel {
  78. top: 90px;
  79. }
  80. .header-nav .nav-secondLevel li {
  81. width: 33.33%;
  82. margin-top: 10px;
  83. }
  84. .header-nav li a {
  85. box-sizing: content-box;
  86. position: relative;
  87. line-height: 90px;
  88. height: 90px;
  89. color: #000;
  90. }
  91. .header-nav li:hover>a {
  92. background-color: #ac3b3b;
  93. color: #fff;
  94. }
  95. .header-nav .nav-secondLevel li a{
  96. background-image: none;
  97. padding-bottom: 0;
  98. text-align: left;
  99. }
  100. .header-nav .nav-secondLevel li a:hover{
  101. background-color: rgba(233, 217, 217, 1) !important;
  102. }
  103. .header-nav>ul>li:hover .nav-secondLevel {
  104. width: 2400px;
  105. position: fixed;
  106. left: -1200px;
  107. background-color: #e8e8e8;
  108. min-height: 150px;
  109. padding: 10px 0 20px;
  110. }
  111. .header-nav>ul>li:hover .nav-secondLevel .wrap {
  112. background: url(../images/tsg/nav.jpg) no-repeat right bottom;
  113. background-size: 300px;
  114. }
  115. .header-nav>ul>li:hover .nav-secondLevel .nav-secondLevel-wrap {
  116. display: flex;
  117. flex-wrap: wrap;
  118. width: 700px;
  119. margin: 0 auto;
  120. }
  121. .header-nav .nav-secondLevel li a {
  122. background: transparent url(../images/tsg/icon/dot.png) no-repeat 8px center;
  123. background-size: 6px;
  124. border: 0;
  125. color: #ac3b3b;
  126. padding: 0 20px;
  127. font-weight: normal;
  128. }
  129. .header-nav .nav-secondLevel li:last-child a {
  130. margin: 0;
  131. background-color: transparent;
  132. line-height: 40px;
  133. color: #ac3b3b;
  134. }
  135. .header-nav .nav-secondLevel li:last-child:hover a {
  136. background-color: transparent;
  137. }
  138. /* 三级 */
  139. .header-nav .nav-threeLevel {
  140. position: relative;
  141. top: 0;
  142. left: 0;
  143. width: 100%;
  144. background-color: transparent;
  145. font-size: 14px;
  146. display: block !important;
  147. }
  148. .header-nav .nav-threeLevel li {
  149. width: 100% !important;
  150. margin-top: 0 !important;
  151. }
  152. .header-nav .nav-threeLevel li a {
  153. background: none !important;
  154. color: #000 !important;
  155. }
  156. .header-nav .nav-secondLevel li a span {
  157. display: none;
  158. }
  159. /* 主体 */
  160. .content {
  161. /* margin-top: 30px; */
  162. }
  163. .banner{
  164. position: relative;
  165. }
  166. .banner,
  167. .banner img{
  168. width: 100%;
  169. }
  170. .banner img {
  171. height: 450px;
  172. object-fit: cover;
  173. }
  174. /* 搜索 */
  175. .search {
  176. position: absolute;
  177. top: 0;
  178. bottom: 0;
  179. left: 0;
  180. right: 0;
  181. margin: auto;
  182. z-index: 100;
  183. background-color: #ac3b3b;
  184. height: 60%;
  185. padding: 0 50px;
  186. border: 1px solid #bbb;
  187. }
  188. .search-wrap {
  189. width: 100%;
  190. height: 56px;
  191. display: flex;
  192. margin: 60px 0 40px;
  193. }
  194. .search-wrap-item {
  195. border-radius: 6px;
  196. border: 0;
  197. outline: none;
  198. font-size: 16px;
  199. }
  200. .search-wrap select {
  201. padding: 0 12px;
  202. width: 140px;
  203. cursor: pointer;
  204. }
  205. .search-wrap input {
  206. margin: 0 20px;
  207. padding: 0 15px;
  208. flex: auto;
  209. }
  210. .search-wrap button {
  211. padding: 0 45px;
  212. background: #fff url(../images/icon/search.png) no-repeat 16px center;
  213. background-size: 22px;
  214. cursor: pointer;
  215. }
  216. .search-wrap button:hover {
  217. background-color: rgba(255, 255, 255, .9);
  218. }
  219. .search-wrap button:active {
  220. background-color: rgba(255, 255, 255, .7);
  221. }
  222. .search-ranking {
  223. color: #fff;
  224. display: flex;
  225. line-height: 28px;
  226. }
  227. .search-ranking ul {
  228. margin-left: 10px;
  229. flex: 1;
  230. }
  231. .search-ranking ul li {
  232. display: inline-block;
  233. margin-right: 25px;
  234. }
  235. .search-ranking a {
  236. color: #fff;
  237. text-decoration: underline;
  238. }
  239. .search-ranking a:hover {
  240. color: #ffff00;
  241. }
  242. /* 轮播 */
  243. .swiper-pagination-bullet-active {
  244. color: #fff;
  245. background: rgba(174, 28, 3, 1);
  246. }
  247. .swiper-slide {
  248. position: relative;
  249. }
  250. .swiper-slide img {
  251. display: block;
  252. width: 100%;
  253. }
  254. .swiper-slide .swiper-title {
  255. height: 26px;
  256. line-height: 26px;
  257. padding: 0 10px;
  258. box-sizing: border-box;
  259. width: 100%;
  260. overflow: hidden;
  261. text-overflow: ellipsis;
  262. white-space: nowrap;
  263. text-align: center;
  264. background-color: #fff;
  265. margin-top: 6px;
  266. }
  267. /* 宫格 */
  268. .content-grid {
  269. display: flex;
  270. flex-wrap: wrap;
  271. border: 1px solid #ccc;
  272. border-left: 0;
  273. border-bottom: 0;
  274. margin: 65px auto;
  275. box-shadow: 0 0 12px rgba(0, 0, 0, .4);
  276. }
  277. .content-grid a {
  278. display: block;
  279. width: calc(100% / 6);
  280. text-align: center;
  281. border-left: 1px solid #ccc;
  282. border-bottom: 1px solid #ccc;
  283. padding: 30px 0;
  284. }
  285. .content-grid dt img {
  286. width: 60px;
  287. transition: all .2s;
  288. }
  289. .content-grid a:hover img {
  290. transform:scale(1.2);
  291. }
  292. .content-grid dd {
  293. margin-top: 20px;
  294. }
  295. /* 标签页 */
  296. .content-tabs h2{
  297. text-align: center;
  298. font-size: 24px;
  299. font-weight: bold;
  300. }
  301. .content-tabs .slideTxtBox {
  302. margin: 40px 0;
  303. }
  304. .content-tabs .hd {
  305. border-bottom: 1px solid #bbb;
  306. }
  307. .content-tabs .hd li {
  308. display: inline-block;
  309. font-weight: bold;
  310. padding: 22px 28px;
  311. }
  312. .content-tabs .hd .on {
  313. background-color: #ac3b3b;
  314. }
  315. .content-tabs .hd .on a {
  316. color: #fff;
  317. }
  318. .content-tabs .bd ul{
  319. margin: 0 30px;
  320. }
  321. .content-tabs .bd li:first-child {
  322. border-bottom: 1px solid #ccc;
  323. }
  324. .content-tabs .bd a {
  325. display: block;
  326. width: 100%;
  327. height: 100%;
  328. padding: 34px 0;
  329. }
  330. .content-tabs .bd p{
  331. display: inline-block;
  332. width: calc(100% - 300px);
  333. overflow: hidden;
  334. text-overflow:ellipsis;
  335. white-space: nowrap;
  336. }
  337. .content-tabs .bd span {
  338. float: right;
  339. color: #999;
  340. }
  341. .content-tabs .bd a:hover span {
  342. color: #ff1111;
  343. }
  344. .content-tabs .bd a:hover .desc span {
  345. color: #999;
  346. }
  347. .content-tabs .desc {
  348. line-height: 26px;
  349. display: flex;
  350. justify-content: space-between;
  351. margin-top: 14px;
  352. }
  353. .content-tabs .desc p {
  354. display: -webkit-box;
  355. -webkit-box-orient: vertical;
  356. -webkit-line-clamp: 2;
  357. overflow: hidden;
  358. white-space: normal;
  359. color: #888;
  360. }
  361. .content-right{
  362. width: 70%;
  363. }
  364. .footer {
  365. margin-top: 20px;
  366. }
  367. /* 目录页 */
  368. .catalog{
  369. padding: 0;
  370. }
  371. .catalog .content-wrap li p{
  372. width: calc(100% - 135px);
  373. }
  374. /* 列表页 */
  375. .list .content-wrap li p{
  376. width: calc(100% - 280px);
  377. }
  378. .crumbs {
  379. line-height: 40px;
  380. overflow: hidden;
  381. font-weight: normal;
  382. color: #333;
  383. margin: 45px auto 25px;
  384. padding: 0;
  385. }
  386. .crumbs a {
  387. color: #333;
  388. float: none !important;
  389. padding: 0 !important;
  390. }
  391. .crumbs a:hover {
  392. color: #AE1C03;
  393. }
  394. .crumbs span{
  395. background: none !important;
  396. padding: 0 !important;
  397. color: #333 !important;
  398. }
  399. .content-left {
  400. width: 260px;
  401. margin-right: 25px;
  402. background-color: transparent;
  403. }
  404. .content-left,
  405. .content-right {
  406. box-shadow: 0 0 12px rgba(0, 0, 0, .4);
  407. border-radius: 4px;
  408. overflow: hidden;
  409. margin-bottom: 10px;
  410. }
  411. .content-left h2,
  412. .content-right .content-wrap-title {
  413. background-color: transparent;
  414. color: #ac3b3b;
  415. font-size: 22px;
  416. border-bottom: 1px solid #ccc;
  417. padding: 30px 0 20px;
  418. height: auto;
  419. line-height: normal;
  420. }
  421. .content-right .content-wrap-title {
  422. text-align: center;
  423. border-bottom: 0;
  424. }
  425. .content-left-list li a {
  426. text-align: left;
  427. padding: 0 12px;
  428. line-height: 56px;
  429. }
  430. .list-wrap li>a {
  431. padding-left: 15px;
  432. background: url(../images/technical/icon/dot.png) no-repeat left center;
  433. line-height: 46px;
  434. }
  435. .list-wrap .list-time {
  436. color: #999;
  437. }
  438. .catalog {
  439. border: none;
  440. }
  441. .catalog-item {
  442. margin-bottom: 15px;
  443. border: 1px solid #D8E0E8;
  444. border-top: none;
  445. border-radius: 4px;
  446. padding-bottom: 10px;
  447. }
  448. .catalog-item:last-child {
  449. margin-bottom: 0;
  450. }
  451. /* 底部 */
  452. .footer-mesg {
  453. background-color: #ac3b3b;
  454. background-size: cover;
  455. }
  456. .footer-link {
  457. background-color: #C1D6E3;
  458. line-height: 36px;
  459. }
  460. .footer-link ul {
  461. display: inline-block;
  462. }
  463. .footer-link ul li {
  464. display: inline-block;
  465. margin-right: 15px;
  466. }
  467. .mobile-nav-icon span {
  468. background-color: #ac3b3b;
  469. }
  470. /* 响应式 */
  471. @media screen and (max-width: 1320px) {
  472. .wrap {
  473. width: 95%;
  474. }
  475. .header-top {
  476. padding: 0;
  477. }
  478. }
  479. @media screen and (max-width: 1200px) {
  480. .header-nav>ul>li:hover .nav-secondLevel .wrap {
  481. background-position: 70% bottom;
  482. }
  483. }
  484. @media screen and (max-width: 1024px) {
  485. .banner img {
  486. height: 400px;
  487. }
  488. }
  489. @media screen and (max-width: 980px) {
  490. .header>.wrap{
  491. width: 100%;
  492. }
  493. .header-nav {
  494. background-repeat: repeat;
  495. background-position: left top;
  496. }
  497. .header-nav ul {
  498. height: auto;
  499. }
  500. /* flex布局,item元素补全 */
  501. .header-nav ul::after {
  502. content: "";
  503. width: 50%;
  504. }
  505. .content-item {
  506. width: 100% !important;
  507. }
  508. .content-col {
  509. width: 100% !important;
  510. }
  511. }
  512. @media screen and (max-width: 768px) {
  513. .content-item {
  514. width: 100%;
  515. }
  516. .content-left {
  517. width: 100%;
  518. margin-right: 0;
  519. margin-bottom: 20px;
  520. }
  521. }
  522. @media screen and (max-width: 640px) {
  523. .header-right {
  524. font-size: 14px;
  525. }
  526. .header-img {
  527. width: 100%;
  528. }
  529. .header-img img {
  530. height: 100%;
  531. }
  532. .mobile-nav-icon {
  533. right: 18px;
  534. }
  535. .content-wrap li p {
  536. width: calc(100% - 100px);
  537. }
  538. .search {
  539. padding: 0 20px;
  540. height: 70%;
  541. }
  542. .search-wrap {
  543. margin: 30px 0 25px;
  544. flex-wrap: wrap;
  545. height: auto;
  546. }
  547. .search-wrap-item {
  548. height: 40px;
  549. line-height: 40px;
  550. }
  551. .search-wrap select {
  552. width: 100%;
  553. margin-bottom: 15px;
  554. }
  555. .search-wrap input {
  556. width: 50%;
  557. margin: 0 15px 0 0;
  558. }
  559. .search-wrap button {
  560. padding: 0 36px;
  561. background-position: 10px center;
  562. }
  563. .content {
  564. margin-top: 101px !important;
  565. }
  566. .search-ranking {
  567. display: block;
  568. }
  569. .content-grid {
  570. margin: 50px auto;
  571. }
  572. .content-grid a {
  573. width: calc(100% / 4);
  574. }
  575. .content-grid dt img {
  576. width: 50px;
  577. }
  578. .content-tabs .hd ul {
  579. display: flex;
  580. }
  581. .content-tabs .hd li {
  582. padding: 22px 0;
  583. flex: auto;
  584. text-align: center;
  585. }
  586. .content-tabs .bd ul {
  587. margin: 0 15px;
  588. }
  589. .content-tabs .bd li:first-child a {
  590. padding: 34px 0;
  591. }
  592. .content-tabs .bd a {
  593. overflow: hidden;
  594. padding: 30px 0 0px;
  595. }
  596. .content-tabs .bd p {
  597. width: calc(100% - 0px);
  598. }
  599. .content-tabs .bd span {
  600. margin-top: 10px;
  601. }
  602. .content-tabs .desc {
  603. display: block;
  604. margin-top: 32px;
  605. }
  606. .content-tabs .desc p {
  607. width: 100%;
  608. }
  609. /* 列表页 */
  610. .list .content-wrap li{
  611. height: auto;
  612. overflow: hidden;
  613. background-position: left 10px;
  614. }
  615. .list .content-wrap li p{
  616. width: 96%;
  617. float: none;
  618. }
  619. .list-wrap .list-title {
  620. width: 100%;
  621. }
  622. .list-wrap li {
  623. padding: 5px 15px;
  624. }
  625. .list-wrap li a {
  626. background-position: left 14px;
  627. line-height: 28px;
  628. }
  629. .crumbs {
  630. padding-top: 25px;
  631. }
  632. }