product.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023
  1. @charset "UTF-8";
  2. /*主色调*/
  3. /*文字文本*/
  4. /*单行省略号*/
  5. /*多行省略号*/
  6. /*箭头*/
  7. /**a标签hoverboder效果**/
  8. /**使用vw适配**/
  9. .banner {
  10. position: relative;
  11. }
  12. .banner a {
  13. display: block;
  14. position: absolute;
  15. left: 0;
  16. right: 0;
  17. margin: 0 auto;
  18. bottom: 15%;
  19. width: 150px;
  20. height: 38px;
  21. line-height: 38px;
  22. font-size: 14px;
  23. text-align: center;
  24. color: #fff;
  25. border: 1px solid #fff;
  26. z-index: 1;
  27. overflow: hidden;
  28. }
  29. @media (min-width: 768px) {
  30. .banner a {
  31. width: 180px;
  32. height: 48px;
  33. line-height: 48px;
  34. font-size: 18px;
  35. }
  36. }
  37. .banner a:after {
  38. content: '';
  39. position: absolute;
  40. z-index: -1;
  41. -webkit-transition: width 0.3s, opacity 0.3s;
  42. transition: width 0.3s, opacity 0.3s;
  43. width: 0;
  44. height: 530px;
  45. top: 50%;
  46. left: 50%;
  47. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  48. opacity: 0;
  49. background: #000000;
  50. background: rgba(0, 0, 0, 0.2);
  51. -webkit-transform: translate3d(-50%, -50%, 0) rotate(45deg);
  52. transform: translate3d(-50%, -50%, 0) rotate(45deg);
  53. -webkit-backface-visibility: hidden;
  54. backface-visibility: hidden;
  55. }
  56. .banner a:hover:after, .banner a:active:after {
  57. width: 100%;
  58. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  59. opacity: 1;
  60. }
  61. .banner img {
  62. width: 100%;
  63. }
  64. .entrance {
  65. margin: 40px auto;
  66. }
  67. @media (min-width: 768px) {
  68. .entrance {
  69. margin: 60px auto;
  70. }
  71. }
  72. @media (min-width: 1200px) {
  73. .entrance {
  74. margin: 100px auto;
  75. }
  76. }
  77. .entrance .item {
  78. margin-bottom: 20px;
  79. }
  80. .entrance .item .img img {
  81. height: calc(100vw * (200 / 375));
  82. width: 100%;
  83. }
  84. @media (min-width: 768px) {
  85. .entrance .item .img img {
  86. height: auto;
  87. }
  88. }
  89. .entrance .item .txt {
  90. position: absolute;
  91. top: 0;
  92. left: 0;
  93. right: 0;
  94. bottom: 0;
  95. background: #000000;
  96. background: rgba(0, 0, 0, 0.2);
  97. padding: 20px;
  98. }
  99. @media (min-width: 768px) {
  100. .entrance .item .txt {
  101. padding: 20px;
  102. }
  103. }
  104. @media (min-width: 1200px) {
  105. .entrance .item .txt {
  106. padding: 40px;
  107. }
  108. }
  109. .entrance .item .txt span {
  110. color: #ed4747;
  111. font-weight: bold;
  112. font-size: 16px;
  113. display: inline-block;
  114. margin-top: 10px;
  115. }
  116. @media (min-width: 768px) {
  117. .entrance .item .txt span {
  118. font-size: 20px;
  119. margin-top: 30px;
  120. }
  121. }
  122. .entrance .item .txt h2 {
  123. color: #fff;
  124. margin: 12px 0;
  125. font-size: 22px;
  126. }
  127. .entrance .item .txt h2 em {
  128. color: #ed4747;
  129. }
  130. @media (min-width: 768px) {
  131. .entrance .item .txt h2 {
  132. margin: 25px 0;
  133. font-size: 28px;
  134. }
  135. }
  136. @media (min-width: 1200px) {
  137. .entrance .item .txt h2 {
  138. font-size: 44px;
  139. }
  140. }
  141. .entrance .item .txt p {
  142. color: #fff;
  143. font-size: 14px;
  144. }
  145. @media (min-width: 768px) {
  146. .entrance .item .txt p {
  147. font-size: 20px;
  148. }
  149. }
  150. @media (min-width: 1200px) {
  151. .entrance .item .txt p {
  152. font-size: 24px;
  153. }
  154. }
  155. .entrance .item .txt i {
  156. font-weight: bold;
  157. padding-right: 30px;
  158. color: #ed4747;
  159. position: absolute;
  160. bottom: 25px;
  161. font-size: 16px;
  162. }
  163. @media (min-width: 768px) {
  164. .entrance .item .txt i {
  165. font-size: 20px;
  166. }
  167. }
  168. .entrance .item .txt i:after {
  169. content: "";
  170. display: inline-block;
  171. width: 30px;
  172. height: 10px;
  173. -webkit-transition: all .5s ease;
  174. transition: all .5s ease;
  175. background: url("/assets/image/arrow-color.png") no-repeat center;
  176. }
  177. .entrance .item a {
  178. display: block;
  179. position: relative;
  180. -webkit-transition: all .5s ease;
  181. transition: all .5s ease;
  182. }
  183. .entrance .item a:hover, .entrance .item a:active {
  184. -webkit-transform: translateY(-10px);
  185. transform: translateY(-10px);
  186. -webkit-box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.2);
  187. box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.2);
  188. }
  189. .product .headline {
  190. text-align: center;
  191. margin-bottom: 10px;
  192. }
  193. @media (min-width: 768px) {
  194. .product .headline {
  195. margin-bottom: 30px;
  196. }
  197. }
  198. @media (min-width: 1200px) {
  199. .product .headline {
  200. margin-bottom: 50px;
  201. }
  202. }
  203. .product .headline h2 {
  204. color: #111;
  205. margin-bottom: 10px;
  206. font-size: 24px;
  207. }
  208. @media (min-width: 768px) {
  209. .product .headline h2 {
  210. margin-bottom: 22px;
  211. font-size: 32px;
  212. }
  213. }
  214. @media (min-width: 1200px) {
  215. .product .headline h2 {
  216. font-size: 46px;
  217. }
  218. }
  219. .product .headline span {
  220. color: #ed4747;
  221. font-size: 16px;
  222. }
  223. @media (min-width: 768px) {
  224. .product .headline span {
  225. font-size: 20px;
  226. }
  227. }
  228. @media (min-width: 1200px) {
  229. .product .headline span {
  230. font-size: 24px;
  231. }
  232. }
  233. .product ul li {
  234. position: relative;
  235. margin-top: 20px;
  236. }
  237. .product ul li:after {
  238. content: '';
  239. display: block;
  240. clear: both;
  241. }
  242. @media (min-width: 768px) {
  243. .product ul li {
  244. margin-top: 30px;
  245. }
  246. }
  247. .product ul li .type {
  248. background: #f86363;
  249. color: #fff;
  250. width: 44%;
  251. height: 200px;
  252. padding: 25px;
  253. padding-bottom: 0;
  254. text-align: center;
  255. float: left;
  256. }
  257. @media (min-width: 768px) {
  258. .product ul li .type {
  259. float: none;
  260. position: absolute;
  261. top: 0;
  262. left: 0;
  263. width: 200px;
  264. height: 250px;
  265. padding: 25px;
  266. }
  267. }
  268. @media (min-width: 1200px) {
  269. .product ul li .type {
  270. width: 268px;
  271. height: 300px;
  272. padding: 40px;
  273. }
  274. }
  275. .product ul li .type a {
  276. display: block;
  277. color: #fff;
  278. }
  279. .product ul li .type a:hover img {
  280. -webkit-transform: scale(0.9);
  281. transform: scale(0.9);
  282. }
  283. .product ul li .type a:hover .p-icon {
  284. margin-top: 10px;
  285. }
  286. .product ul li .type .p-icon {
  287. position: relative;
  288. margin: 20px auto 20px;
  289. width: 40px;
  290. height: 40px;
  291. line-height: 40px;
  292. -webkit-transition: all .5s ease;
  293. transition: all .5s ease;
  294. }
  295. @media (min-width: 768px) {
  296. .product ul li .type .p-icon {
  297. width: 60px;
  298. height: 60px;
  299. line-height: 60px;
  300. }
  301. }
  302. @media (min-width: 1200px) {
  303. .product ul li .type .p-icon {
  304. width: 80px;
  305. height: 80px;
  306. line-height: 80px;
  307. }
  308. }
  309. .product ul li .type .p-icon img {
  310. width: 30px;
  311. height: 30px;
  312. z-index: 3;
  313. position: relative;
  314. -webkit-transition: all .5s ease;
  315. transition: all .5s ease;
  316. }
  317. @media (min-width: 768px) {
  318. .product ul li .type .p-icon img {
  319. width: 40px;
  320. height: 40px;
  321. }
  322. }
  323. @media (min-width: 1200px) {
  324. .product ul li .type .p-icon img {
  325. width: 60px;
  326. height: 60px;
  327. }
  328. }
  329. .product ul li .type .p-icon:before {
  330. content: "";
  331. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  332. opacity: 1;
  333. -webkit-transform: scale(1);
  334. transform: scale(1);
  335. display: block;
  336. position: absolute;
  337. z-index: 2;
  338. zoom: 1;
  339. -webkit-transform: translateZ(1px);
  340. transform: translateZ(1px);
  341. width: 38px;
  342. height: 38px;
  343. top: 1px;
  344. left: 1px;
  345. border-radius: 50%;
  346. -webkit-box-shadow: 0 0 10px 10px #f86363;
  347. box-shadow: 0 0 10px 10px #f86363;
  348. }
  349. @media (min-width: 768px) {
  350. .product ul li .type .p-icon:before {
  351. width: 58px;
  352. height: 58px;
  353. }
  354. }
  355. @media (min-width: 1200px) {
  356. .product ul li .type .p-icon:before {
  357. width: 78px;
  358. height: 78px;
  359. }
  360. }
  361. .product ul li .type .p-icon:after {
  362. content: '';
  363. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  364. opacity: 1;
  365. -webkit-transform: scale(1);
  366. transform: scale(1);
  367. display: block;
  368. position: absolute;
  369. z-index: 1;
  370. zoom: 1;
  371. width: 100%;
  372. height: 100%;
  373. top: 0;
  374. left: 0;
  375. border-radius: 50%;
  376. -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
  377. box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
  378. -webkit-transition: all .3s ease-in-out;
  379. transition: all .3s ease-in-out;
  380. }
  381. .product ul li .type h2 {
  382. padding: 14px 0;
  383. border-bottom: 1px solid #fff;
  384. font-size: 18px;
  385. width: auto;
  386. overflow: hidden;
  387. text-overflow: ellipsis;
  388. white-space: nowrap;
  389. word-wrap: normal;
  390. }
  391. @media (min-width: 768px) {
  392. .product ul li .type h2 {
  393. padding: 20px 0;
  394. font-size: 26px;
  395. }
  396. }
  397. @media (min-width: 1200px) {
  398. .product ul li .type h2 {
  399. font-size: 36px;
  400. }
  401. }
  402. .product ul li .type span {
  403. display: inline-block;
  404. margin-top: 10px;
  405. font-size: 13px;
  406. }
  407. @media (min-width: 768px) {
  408. .product ul li .type span {
  409. margin-top: 10px;
  410. font-size: 15px;
  411. }
  412. }
  413. @media (min-width: 1200px) {
  414. .product ul li .type span {
  415. margin-top: 20px;
  416. font-size: 18px;
  417. }
  418. }
  419. .product ul li .items {
  420. width: 56%;
  421. float: left;
  422. }
  423. .product ul li .items:after {
  424. content: '';
  425. display: block;
  426. clear: both;
  427. }
  428. @media (min-width: 768px) {
  429. .product ul li .items {
  430. float: none;
  431. width: auto;
  432. margin-left: 200px;
  433. height:250px;
  434. }
  435. }
  436. @media (min-width: 1200px) {
  437. .product ul li .items {
  438. margin-left: 268px;
  439. height:300px;
  440. }
  441. }
  442. .product ul li .items .item {
  443. width: 100%;
  444. }
  445. @media (min-width: 768px) {
  446. .product ul li .items .item {
  447. width: 48.5%;
  448. }
  449. }
  450. .product ul li .items .item.fr {
  451. display: none;
  452. }
  453. @media (min-width: 768px) {
  454. .product ul li .items .item.fr {
  455. display: block;
  456. }
  457. }
  458. .product ul li .items a {
  459. position: relative;
  460. display: block;
  461. padding: 15px;
  462. height: 200px;
  463. -webkit-box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.1);
  464. box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.1);
  465. border-top: 6px solid #fff;
  466. -webkit-transition: all .5s ease;
  467. transition: all .5s ease;
  468. }
  469. @media (min-width: 768px) {
  470. .product ul li .items a {
  471. padding: 20px;
  472. height: 250px;
  473. }
  474. }
  475. @media (min-width: 1200px) {
  476. .product ul li .items a {
  477. padding: 30px;
  478. height: 300px;
  479. }
  480. }
  481. .product ul li .items a:hover {
  482. border-top: 6px solid #ed4747;
  483. -webkit-transform: translateY(-10px);
  484. transform: translateY(-10px);
  485. }
  486. .product ul li .items h2 {
  487. color: #111;
  488. line-height: 1.4;
  489. margin-bottom: 20px;
  490. font-size: 16px;
  491. overflow: hidden;
  492. text-overflow: ellipsis;
  493. display: -webkit-box;
  494. -webkit-box-orient: vertical;
  495. -webkit-line-clamp: 2;
  496. }
  497. @media (min-width: 768px) {
  498. .product ul li .items h2 {
  499. font-size: 24px;
  500. }
  501. }
  502. @media (min-width: 1200px) {
  503. .product ul li .items h2 {
  504. font-size: 30px;
  505. }
  506. }
  507. .product ul li .items p {
  508. color: #333;
  509. line-height: 1.4;
  510. font-size: 12px;
  511. overflow: hidden;
  512. text-overflow: ellipsis;
  513. display: -webkit-box;
  514. -webkit-box-orient: vertical;
  515. -webkit-line-clamp: 2;
  516. }
  517. @media (min-width: 768px) {
  518. .product ul li .items p {
  519. font-size: 16px;
  520. }
  521. }
  522. .product ul li .items span {
  523. position: absolute;
  524. bottom: 20px;
  525. right: 20px;
  526. color: #ed4747;
  527. }
  528. .product ul li .items span i {
  529. display: inline-block;
  530. vertical-align: middle;
  531. width: 13px;
  532. height: 13px;
  533. background: url("/assets/image/arrow-color.png") no-repeat center;
  534. }
  535. .product .more {
  536. margin: 30px auto 0;
  537. width: 180px;
  538. height: 40px;
  539. line-height: 40px;
  540. cursor: pointer;
  541. border: 1px solid #e0e0e0;
  542. color: #333;
  543. text-align: center;
  544. font-size: 14px;
  545. overflow: hidden;
  546. position: relative;
  547. z-index: 2;
  548. }
  549. @media (min-width: 768px) {
  550. .product .more {
  551. margin: 50px auto 0;
  552. width: 180px;
  553. height: 50px;
  554. line-height: 50px;
  555. font-size: 18px;
  556. }
  557. }
  558. .product .more:after {
  559. content: '';
  560. position: absolute;
  561. z-index: 1;
  562. -webkit-transition: width 0.3s, opacity 0.3s;
  563. transition: width 0.3s, opacity 0.3s;
  564. width: 0;
  565. height: 530px;
  566. top: 50%;
  567. left: 50%;
  568. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  569. opacity: 0;
  570. background: #000000;
  571. background: rgba(0, 0, 0, 0.1);
  572. -webkit-transform: translate3d(-50%, -50%, 0) rotate(45deg);
  573. transform: translate3d(-50%, -50%, 0) rotate(45deg);
  574. -webkit-backface-visibility: hidden;
  575. backface-visibility: hidden;
  576. }
  577. .product .more:hover:after, .product .more:active:after {
  578. width: 100%;
  579. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  580. opacity: 1;
  581. }
  582. .ad {
  583. margin: 40px auto;
  584. }
  585. @media (min-width: 768px) {
  586. .ad {
  587. margin: 60px auto;
  588. }
  589. }
  590. @media (min-width: 1200px) {
  591. .ad {
  592. margin: 100px auto;
  593. }
  594. }
  595. .ad a {
  596. width: 100%;
  597. }
  598. .ad img {
  599. width: 100%;
  600. }
  601. .product.other {
  602. padding-bottom: 20px;
  603. margin-bottom: 40px;
  604. }
  605. @media (min-width: 768px) {
  606. .product.other {
  607. padding-bottom: 50px;
  608. margin-bottom: 50px;
  609. }
  610. }
  611. @media (min-width: 1200px) {
  612. .product.other {
  613. margin-bottom: 100px;
  614. }
  615. }
  616. .product.other ul li .type {
  617. background: #47a5ed;
  618. }
  619. .product.other ul li .type .p-icon:before {
  620. -webkit-box-shadow: 0 0 10px 10px #47a5ed;
  621. box-shadow: 0 0 10px 10px #47a5ed;
  622. }
  623. .product.other ul li .items a:hover {
  624. border-color: #47a5ed;
  625. }
  626. @media (min-width: 768px) {
  627. .repository {
  628. background: -webkit-gradient(linear, left top, right top, color-stop(50%, #ffffff), color-stop(50%, #eeeeee), to(#eeeeee));
  629. background: linear-gradient(to right, #ffffff 50%, #eeeeee 50%, #eeeeee);
  630. }
  631. }
  632. .repository .list {
  633. background: #fff;
  634. padding-top: 20px;
  635. }
  636. @media (min-width: 768px) {
  637. .repository .list {
  638. padding-top: 50px;
  639. }
  640. }
  641. .repository .list-title {
  642. font-size: 24px;
  643. color: #111;
  644. border-bottom: 1px solid #eee;
  645. padding: 40px 0 20px;
  646. margin-bottom: 20px;
  647. }
  648. @media (min-width: 768px) {
  649. .repository .list-title {
  650. margin-bottom: 20px;
  651. font-size: 36px;
  652. padding: 50px 0;
  653. margin-right: -15px;
  654. }
  655. }
  656. @media (min-width: 1200px) {
  657. .repository .list-title {
  658. font-size: 44px;
  659. margin-bottom: 30px;
  660. }
  661. }
  662. .repository .back-nav {
  663. color: #ed4747;
  664. font-size: 14px;
  665. cursor: pointer;
  666. display: inline-block;
  667. }
  668. @media (max-width: 767px) {
  669. .repository .back-nav {
  670. margin-bottom: 30px;
  671. }
  672. }
  673. .repository .back-nav i {
  674. display: inline-block;
  675. width: 30px;
  676. height: 10px;
  677. -webkit-transition: all .5s ease;
  678. transition: all .5s ease;
  679. background: url("/assets/image/arrow-color-left.png") no-repeat center;
  680. }
  681. .repository .back-nav:hover i, .repository .back-nav:active i {
  682. background-position: center left;
  683. }
  684. .repository .category {
  685. position: fixed;
  686. top: 0;
  687. left: 0;
  688. right: 0;
  689. bottom: 0;
  690. background: #f8f8f8;
  691. z-index: 1010;
  692. padding: 30px;
  693. overflow: auto;
  694. background: #eee;
  695. -webkit-transform: translateX(100%);
  696. transform: translateX(100%);
  697. -webkit-transition: all .5s ease;
  698. transition: all .5s ease;
  699. -webkit-overflow-scrolling: touch;
  700. }
  701. .repository .category.showIn {
  702. -webkit-transform: translateX(0);
  703. transform: translateX(0);
  704. }
  705. @media (min-width: 768px) {
  706. .repository .category {
  707. position: relative;
  708. top: auto;
  709. left: auto;
  710. right: auto;
  711. bottom: auto;
  712. -webkit-transform: translateX(0);
  713. transform: translateX(0);
  714. z-index: 1;
  715. }
  716. }
  717. .repository .category .total {
  718. padding: 50px 0 0 0;
  719. }
  720. @media (min-width: 768px) {
  721. .repository .category .total {
  722. padding: 130px 0 0 0;
  723. }
  724. }
  725. .repository .category .total p {
  726. color: #111;
  727. font-family: "Publico-Headline-Medium";
  728. font-weight: lighter;
  729. margin-top: 5px;
  730. font-size: 24px;
  731. }
  732. .repository .category ul {
  733. margin: 0 -15px;
  734. margin-top: 30px;
  735. }
  736. @media (min-width: 768px) {
  737. .repository .category ul {
  738. margin-top: 65px;
  739. }
  740. }
  741. .repository .category ul li {
  742. margin: 15px 0;
  743. }
  744. .repository .category ul li a {
  745. display: inline-block;
  746. color: #666;
  747. padding: 10px 30px;
  748. font-size: 16px;
  749. border-left: 2px solid #eee;
  750. -webkit-transition: all .5s ease;
  751. transition: all .5s ease;
  752. }
  753. @media (min-width: 768px) {
  754. .repository .category ul li a {
  755. font-size: 14px;
  756. }
  757. }
  758. .repository .category ul li a:hover, .repository .category ul li a.active, .repository .category ul li a.cur {
  759. color: #ed4747;
  760. border-color: #ed4747;
  761. }
  762. .product-list {
  763. margin: 0 auto 60px;
  764. }
  765. @media (min-width: 768px) {
  766. .product-list {
  767. margin: 0 auto 100px;
  768. }
  769. }
  770. @media (min-width: 1200px) {
  771. .product-list {
  772. margin: 0 auto 120px;
  773. }
  774. }
  775. .product-list ul {
  776. margin-right: 0;
  777. }
  778. @media (min-width: 768px) {
  779. .product-list ul {
  780. margin-right: 30px;
  781. }
  782. }
  783. .product-list ul li {
  784. margin-top: 20px;
  785. }
  786. @media (min-width: 768px) {
  787. .product-list ul li {
  788. margin-top: 30px;
  789. }
  790. }
  791. .product-list ul li a {
  792. display: block;
  793. padding: 10px 10px 15px;
  794. -webkit-box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.2);
  795. box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.2);
  796. -webkit-transition: all .5s ease;
  797. transition: all .5s ease;
  798. border-top: 4px solid #fff;
  799. border-bottom: 4px solid #fff;
  800. }
  801. .product-list ul li a:after {
  802. content: '';
  803. display: block;
  804. clear: both;
  805. }
  806. @media (min-width: 768px) {
  807. .product-list ul li a {
  808. padding: 10px;
  809. }
  810. }
  811. .product-list ul li a:hover, .product-list ul li a:active {
  812. border-top: 4px solid #ed4747;
  813. }
  814. .product-list ul li a:hover .img img, .product-list ul li a:active .img img {
  815. -webkit-transform: scale(1.05);
  816. transform: scale(1.05);
  817. }
  818. .product-list ul li .img {
  819. width: 100%;
  820. height: calc(100vw * (200 / 375));
  821. margin-right: 20px;
  822. border: 1px solid #ebecee;
  823. overflow: hidden;
  824. }
  825. @media (min-width: 768px) {
  826. .product-list ul li .img {
  827. float: left;
  828. width: 200px;
  829. height: 150px;
  830. }
  831. }
  832. @media (min-width: 1200px) {
  833. .product-list ul li .img {
  834. width: 280px;
  835. height: 200px;
  836. }
  837. }
  838. .product-list ul li .img img {
  839. width: 100%;
  840. height: 100%;
  841. -webkit-transition: all .5s ease;
  842. transition: all .5s ease;
  843. }
  844. .product-list ul li .txt {
  845. padding-right: 20px;
  846. }
  847. .product-list ul li .txt h2 {
  848. color: #111;
  849. font-size: 18px;
  850. margin: 20px 0 10px;
  851. width: auto;
  852. overflow: hidden;
  853. text-overflow: ellipsis;
  854. white-space: nowrap;
  855. word-wrap: normal;
  856. }
  857. @media (min-width: 768px) {
  858. .product-list ul li .txt h2 {
  859. margin: 25px 0 20px;
  860. font-size: 24px;
  861. }
  862. }
  863. @media (min-width: 1200px) {
  864. .product-list ul li .txt h2 {
  865. font-size: 28px;
  866. }
  867. }
  868. .product-list ul li .txt p {
  869. color: #333;
  870. line-height: 1.8;
  871. font-size: 14px;
  872. overflow: hidden;
  873. text-overflow: ellipsis;
  874. display: -webkit-box;
  875. -webkit-box-orient: vertical;
  876. -webkit-line-clamp: 2;
  877. }
  878. @media (min-width: 768px) {
  879. .product-list ul li .txt p {
  880. font-size: 16px;
  881. }
  882. }