home.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. /* 首页头部 */
  2. .home {
  3. padding-bottom: 40px;
  4. }
  5. .home .up {
  6. margin-top: 10px !important;
  7. }
  8. .home .head {
  9. box-shadow: none;
  10. }
  11. .home .head .menu .item {
  12. padding: 0 30px;
  13. }
  14. .home .head .menu-en .item {
  15. padding: 0 20px;
  16. }
  17. .home .head .search {
  18. display: none;
  19. }
  20. /* 首页头部 end */
  21. /* 首页轮播 */
  22. .banner .el-carousel.el-carousel--horizontal ul.el-carousel__indicators--horizontal .el-carousel__button {
  23. background: #e1251b!important;
  24. }
  25. .el-carousel, .el-carousel-item, .el-carousel__container {
  26. width: 100%;
  27. height: 100%;
  28. }
  29. .banner .el-carousel.el-carousel--horizontal ul.el-carousel__indicators--horizontal {
  30. bottom: 45px!important;
  31. }
  32. /* 首页搜索 */
  33. .home .home-search {
  34. width: 1140px;
  35. height: 40px;
  36. padding: 20px 30px;
  37. margin: -40px auto 0;
  38. background: #fff;
  39. position: relative;
  40. box-shadow: 0 2px 8px rgba(0,0,0,.1);
  41. -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.1);
  42. display: flex;
  43. z-index: 2;
  44. }
  45. .home .home-search .hot-word {
  46. flex: 1;
  47. display: flex;
  48. line-height: 40px;
  49. margin-left: auto;
  50. }
  51. .home .home-search .hot-word .tit {
  52. font-size: 14px;
  53. width: 95px;
  54. word-break: keep-all;
  55. }
  56. .home .home-search .hot-word .con {
  57. flex: 1;
  58. overflow: hidden;
  59. color: #999;
  60. max-width: 430px;
  61. }
  62. .home .home-search .hot-word .con-en {
  63. width: 340px;
  64. }
  65. .home .home-search .hot-word .con .item {
  66. display: inline-block;
  67. padding: 0 10px;
  68. max-width: 20%;
  69. text-align: center;
  70. transition: all .2s;
  71. -webkit-transition: all .2s;
  72. cursor: pointer;
  73. overflow: hidden;
  74. text-overflow:ellipsis;
  75. white-space: nowrap;
  76. }
  77. .home .home-search .hot-word .con .item:hover {
  78. color: #e1251b;
  79. }
  80. .home .home-search .search-msg {
  81. position: relative;
  82. height: 40px;
  83. }
  84. .home .home-search .search-msg .search-input-box {
  85. display: inline-block;
  86. border: 2px solid #e1251b;
  87. width: 450px;
  88. height: 36px;
  89. }
  90. .home .home-search .search-msg .search-input-box .search-input {
  91. display: inline-block;
  92. width: 60%;
  93. border: 0;
  94. height: 35px;
  95. padding: 0 10px;
  96. }
  97. .home .home-search .search-msg .search-input-box .select-search {
  98. display: inline-block;
  99. width: 10%;
  100. line-height: 37px;
  101. text-align: center;
  102. cursor: pointer;
  103. color: #e1251b;
  104. position: relative;
  105. }
  106. .home .home-search .search-msg .search-input-box .select-search .select-box {
  107. position: absolute;
  108. top: -22px;
  109. left: 6px;
  110. display: flex;
  111. align-items: center;
  112. justify-content: flex-end;
  113. }
  114. .home .home-search .search-msg .search-input-box .select-search .switch-icon {
  115. width: auto;
  116. height: auto;
  117. max-width: 10px;
  118. max-height: 12px;
  119. margin-left: 3px;
  120. }
  121. .search-msg .search-input-box .select-list {
  122. display: inline-block;
  123. width: 45px;
  124. position: absolute;
  125. top: 38px;
  126. right: 95px;
  127. background: #ffffff;
  128. border: 2px solid #e1251b;
  129. padding: 5px 0;
  130. }
  131. .select-list .select-item {
  132. line-height: 1.5em;
  133. text-align: center;
  134. padding: 5px 0;
  135. cursor: pointer;
  136. }
  137. .home .home-search .search-msg .search-btn {
  138. border: 0;
  139. background: #e1251b;
  140. color: #fff;
  141. height: 40px;
  142. width: 90px;
  143. position: absolute;
  144. top: 0;
  145. right: 0;
  146. font-size: 14px;
  147. cursor: pointer;
  148. }
  149. .home .home-search .cart-btn {
  150. position: relative;
  151. margin-left: 20px;
  152. padding: 0 20px 0 47px;
  153. background-color: #e1251b;
  154. height: 40px;
  155. line-height: 40px;
  156. color: #fff;
  157. font-size: 14px;
  158. cursor: pointer;
  159. transition: all .2s;
  160. -webkit-transition: all .2s;
  161. position: relative;
  162. }
  163. .home .home-search .cart-btn::before {
  164. position: absolute;
  165. left: 17px;
  166. top: 12px;
  167. display: block;
  168. width: 17px;
  169. height: 15px;
  170. content: " ";
  171. background: url(../images/icons.png) no-repeat -44px -38px;
  172. }
  173. .home .home-search .cart-btn .number {
  174. font-size: 12px;
  175. font-family: arial;
  176. display: inline-block;
  177. padding: 0 5px;
  178. background: #fff;
  179. color: #e1251b;
  180. height: 16px;
  181. line-height: 16px;
  182. min-width: 16px;
  183. border-radius: 20px;
  184. vertical-align: top;
  185. margin-top: 12px;
  186. margin-left: 10px;
  187. text-align: center;
  188. box-sizing: border-box;
  189. }
  190. .home .home-search .search-msg .search-btn:hover,
  191. .home .home-search .cart-btn:hover {
  192. opacity: 0.9;
  193. }
  194. /* 首页搜索 end */
  195. /* banner */
  196. .banner {
  197. width: 100%;
  198. height: 450px;
  199. position: relative;
  200. overflow: hidden;
  201. }
  202. .banner-item{
  203. width: 1920px; /*图片宽度*/
  204. position: absolute;
  205. left: 50%;
  206. margin-left: -960px; /*图片宽度的一半*/
  207. }
  208. /* .banner .item {
  209. position: relative;
  210. max-width: 100%;
  211. height: 100%;
  212. font-size: 0;
  213. } */
  214. .banner img {
  215. background-color: #fff;
  216. }
  217. /* banner end */
  218. /* 快捷入口 */
  219. .home .shortcut {
  220. display: flex;
  221. margin-top: 40px;
  222. }
  223. .home .shortcut .item {
  224. width: 224px;
  225. height: 224px;
  226. margin-right: 20px;
  227. cursor: pointer;
  228. }
  229. .home .shortcut .item:last-child {
  230. margin-right: 0;
  231. }
  232. .home .shortcut .item.item01 {
  233. background: #f7f7f9;
  234. }
  235. .home .shortcut .item.item02 {
  236. background: #f8f7f9;
  237. }
  238. .home .shortcut .item.item03 {
  239. background: #f7f9f8;
  240. }
  241. .home .shortcut .item.item04 {
  242. background: #f7f8f9;
  243. }
  244. .home .shortcut .item.item05 {
  245. background: #f8f7f9;
  246. }
  247. .home .shortcut .item .text {
  248. margin: 20px 20px 0;
  249. }
  250. .home .shortcut .item .text .cn {
  251. font-size: 14px;
  252. line-height: 20px;
  253. font-weight: 600;
  254. }
  255. .home .shortcut .item .text .en {
  256. font-size: 12px;
  257. line-height: 15px;
  258. color: #999;
  259. margin-top: 5px;
  260. }
  261. .home .shortcut .item .img {
  262. display: flex;
  263. justify-content: flex-end;
  264. -webkit-justify-content: flex-end;
  265. align-items: flex-end;
  266. -webkit-align-items: flex-end;
  267. height: 144px;
  268. padding: 0 20px 20px 0;
  269. font-size: 0;
  270. }
  271. .home .shortcut .item .img img {
  272. max-width: 140px;
  273. max-height: 140px;
  274. transition: all .2s;
  275. -webkit-transition: all .2s;
  276. }
  277. .home .shortcut .item:hover .img img {
  278. opacity: 0.8;
  279. }
  280. /* 快捷入口 end */
  281. /* 长条广告 */
  282. .home .adv {
  283. margin-top: 40px;
  284. cursor: pointer;
  285. font-size: 0;
  286. max-height: 300px;
  287. display: block;
  288. }
  289. .home .adv img {
  290. width: 100%;
  291. height: 100%;
  292. }
  293. /* 长条广告 end */
  294. /* 首页列表 */
  295. .goods-list {
  296. margin-top: 40px;
  297. }
  298. /* 首页列表 end */