index.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. .topbar {
  2. height: 40px;
  3. font-size: 12px;
  4. color: #b0b0b0;
  5. background: #f5f5f5;
  6. }
  7. .topbar .topbar-left {
  8. float: left;
  9. position: relative;
  10. }
  11. .topbar .topbar-left i {
  12. float: left;
  13. line-height: 40px;
  14. color: #6c6c6c;
  15. margin-right: 5px;
  16. }
  17. .topbar .topbar-right {
  18. float: right;
  19. line-height: 40px;
  20. }
  21. .topbar .topbar-right a {
  22. color: #6c6c6c;
  23. float: left;
  24. margin-right: 10px;
  25. }
  26. .topbar .topbar-right span {
  27. color: #6c6c6c;
  28. float: left;
  29. margin-right: 10px;
  30. font-size: 18px;
  31. }
  32. .topbar .topbar-right span b {
  33. color: #ff0000;
  34. }
  35. .topbar .topbar-right a:hover {
  36. color: #e77e11;
  37. }
  38. .topbar .topbar-right .login,
  39. .topbar .topbar-right .register,
  40. .topbar .topbar-right .admin {
  41. font-size: 18px;
  42. color: #e77e11;
  43. }
  44. .topbar .topbar-right .login:hover,
  45. .topbar .topbar-right .register:hover,
  46. .topbar .topbar-right .admin:hover {
  47. color: skyblue;
  48. }
  49. .topbar .topbar-right .login {
  50. font-size: 20px;
  51. color: #e77e11;
  52. }
  53. .topbar .topbar-right .cart {
  54. padding: 0 10px;
  55. background-color: #e77e11;
  56. color: #fff;
  57. font-size: 16px;
  58. position: relative;
  59. }
  60. .topbar .topbar-right .cart:hover {
  61. color: #e77e11;
  62. background-color: #f00;
  63. }
  64. .topbar .topbar-right .cart-num {
  65. width: 23px;
  66. height: 15px;
  67. background-color: #f00;
  68. position: absolute;
  69. top: 2px;
  70. right: 3px;
  71. line-height: 15px;
  72. text-align: center;
  73. border-radius: 50%;
  74. color: #fff;
  75. }
  76. .header {
  77. height: 100px;
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. }
  82. .header-logo {
  83. width: 200px;
  84. height: 62px;
  85. background: url('../img/logo.gif') no-repeat;
  86. background-size: 100%;
  87. }
  88. .header-nav li {
  89. float: left;
  90. margin-right: 15px;
  91. }
  92. .header-nav li a {
  93. font-size: 18px;
  94. color: #333;
  95. font-weight: 700;
  96. }
  97. .header-nav li a:hover {
  98. color: #e77e11;
  99. text-shadow: 3px 2px 5px skyblue;
  100. }
  101. .header-search input {
  102. width: 245px;
  103. height: 50px;
  104. border: 1px solid #e0e0e0;
  105. float: left;
  106. }
  107. .header-search button {
  108. width: 50px;
  109. height: 50px;
  110. float: right;
  111. background-color: #fff;
  112. border: 1px solid #e0e0e0;
  113. font-size: 18px;
  114. outline: none;
  115. }
  116. .banner-left {
  117. width: 234px;
  118. height: 360px;
  119. background-color: #f0f0f0;
  120. float: left;
  121. }
  122. .banner-left ul {
  123. padding: 20px 0;
  124. }
  125. .banner-left ul li {
  126. padding: 0 20px;
  127. }
  128. .banner-left ul li a {
  129. height: 42px;
  130. display: flex;
  131. align-items: center;
  132. justify-content: space-between;
  133. color: #e77e11;
  134. }
  135. .banner-left ul li a:hover {
  136. color: #fff;
  137. }
  138. .banner-left ul li:hover {
  139. background-color: #e77e11;
  140. }
  141. .banner-right {
  142. width: 992px;
  143. float: right;
  144. }
  145. .banner-right li {
  146. width: 992px;
  147. height: 360px;
  148. }
  149. .banner-right li img {
  150. width: 100%;
  151. height: 100%;
  152. }
  153. .books-list {
  154. margin-top: 15px;
  155. background-color: #f5f5f5;
  156. }
  157. .books-list input {
  158. text-align: center;
  159. }
  160. .books-list .list-header {
  161. height: 58px;
  162. font-size: 22px;
  163. font-weight: 200;
  164. line-height: 58px;
  165. color: #333;
  166. display: flex;
  167. justify-content: space-between;
  168. }
  169. .books-list .list-header .price-search {
  170. font-size: 20px;
  171. color: #e77e11;
  172. display: flex;
  173. align-items: center;
  174. }
  175. .books-list .list-header .price-search input {
  176. width: 60px;
  177. height: 30px;
  178. margin: 0 10px;
  179. }
  180. .books-list .list-header .price-search button {
  181. width: 60px;
  182. height: 30px;
  183. border: none;
  184. background-color: #e77e11;
  185. outline: none;
  186. color: #fff;
  187. margin-left: 10px;
  188. }
  189. .books-list .list-content {
  190. display: flex;
  191. flex-wrap: wrap;
  192. justify-content: space-between;
  193. }
  194. .books-list .list-content .list-item {
  195. transition: all 0.5s;
  196. flex-shrink: 0;
  197. width: 234px;
  198. height: 339px;
  199. display: flex;
  200. flex-direction: column;
  201. align-items: center;
  202. color: #000;
  203. background-color: #fff;
  204. margin-bottom: 10px;
  205. }
  206. .books-list .list-content .list-item img {
  207. width: 160px;
  208. height: 200px;
  209. margin: 5px 0;
  210. }
  211. .books-list .list-content .list-item p {
  212. font-size: 12px;
  213. color: #999;
  214. }
  215. .books-list .list-content .list-item .cur-price {
  216. color: red;
  217. font-size: 18px;
  218. }
  219. .books-list .list-content .list-item .pre-price {
  220. color: #666;
  221. text-decoration: line-through;
  222. font-size: 12px;
  223. }
  224. .books-list .list-content .list-item button {
  225. width: 80px;
  226. height: 30px;
  227. border: none;
  228. background-color: #e77e11;
  229. margin-top: 5px;
  230. outline: none;
  231. color: #fff;
  232. cursor:pointer;
  233. }
  234. .books-list .list-content .list-item:hover {
  235. box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  236. transform: translate3d(0, -2px, 0);
  237. }
  238. .books-list .list-footer {
  239. height: 50px;
  240. display: flex;
  241. justify-content: flex-end;
  242. align-items: center;
  243. color: #666;
  244. font-size: 20px;
  245. }
  246. .books-list .list-footer div {
  247. margin: 0 5px;
  248. cursor: pointer;
  249. text-decoration: underline;
  250. }
  251. .books-list .list-footer span {
  252. margin: 0 5px;
  253. }
  254. .books-list .list-footer ul li {
  255. float: left;
  256. cursor: pointer;
  257. text-decoration: underline;
  258. }
  259. .books-list .list-footer ul li:nth-child(n + 2) {
  260. margin-left: 10px;
  261. }
  262. .books-list .list-footer ul li.active {
  263. font-weight: 700;
  264. color: #e77e11;
  265. font-size: 24px;
  266. }
  267. .books-list .list-footer input {
  268. width: 40px;
  269. height: 30px;
  270. }
  271. .books-list .list-footer button {
  272. width: 60px;
  273. height: 30px;
  274. border: none;
  275. outline: none;
  276. background-color: #e77e11;
  277. color: #fff;
  278. margin-left: 10px;
  279. cursor: pointer;
  280. }
  281. .cate {
  282. height: 170px;
  283. margin-top: 14px;
  284. display: flex;
  285. justify-content: space-between;
  286. }
  287. .cate .list {
  288. width: 234px;
  289. height: 170px;
  290. background-color: #e77e11;
  291. }
  292. .cate .list-item {
  293. float: left;
  294. width: 78px;
  295. height: 85px;
  296. box-sizing: border-box;
  297. display: flex;
  298. align-items: center;
  299. justify-content: center;
  300. flex-direction: column;
  301. color: #fff;
  302. opacity: 0.7;
  303. }
  304. .cate .list-item i {
  305. font-size: 24px;
  306. margin-bottom: 3px;
  307. }
  308. .cate .list-item:hover {
  309. opacity: 1;
  310. }
  311. .cate .img {
  312. width: 316px;
  313. height: 170px;
  314. background-color: pink;
  315. }
  316. .cate .img img {
  317. width: 100%;
  318. height: 100%;
  319. }
  320. .books {
  321. margin-top: 15px;
  322. }
  323. .books .seckill {
  324. margin-top: 20px;
  325. }
  326. .books .seckill-header {
  327. height: 58px;
  328. display: flex;
  329. align-items: center;
  330. justify-content: space-between;
  331. }
  332. .books .seckill-header .title {
  333. margin-left: 10px;
  334. font-size: 22px;
  335. font-weight: 200;
  336. line-height: 58px;
  337. color: #333;
  338. }
  339. .books .seckill-header i {
  340. margin-right: 20px;
  341. font-size: 20px;
  342. color: #e77e11;
  343. cursor: pointer;
  344. }
  345. .books .seckill-content {
  346. height: 339px;
  347. display: flex;
  348. justify-content: space-between;
  349. }
  350. .books .seckill-content a {
  351. width: 234px;
  352. height: 339px;
  353. background-color: #fff;
  354. display: flex;
  355. flex-direction: column;
  356. align-items: center;
  357. }
  358. .books .seckill-content a h5 {
  359. margin-top: 40px;
  360. margin-bottom: 30px;
  361. }
  362. .books .seckill-content a i {
  363. font-size: 66px;
  364. color: red;
  365. margin-bottom: 30px;
  366. }
  367. .books .seckill-content a .downcount {
  368. display: flex;
  369. }
  370. .books .seckill-content a .downcount .time {
  371. width: 42px;
  372. height: 42px;
  373. background-color: #e77e11;
  374. text-align: center;
  375. line-height: 42px;
  376. color: #fff;
  377. font-size: 24px;
  378. font-weight: 500;
  379. }
  380. .books .seckill-content a .downcount .token {
  381. height: 42px;
  382. line-height: 42px;
  383. margin: 0 10px;
  384. color: #e77e11;
  385. font-size: 24px;
  386. font-weight: 500;
  387. }
  388. .books .seckill-content .tip {
  389. background-color: #f1eded;
  390. }
  391. .books .seckill-content .books-sec {
  392. display: flex;
  393. flex-direction: column;
  394. color: #000;
  395. }
  396. .books .seckill-content .books-sec img {
  397. width: 160px;
  398. height: 200px;
  399. margin: 15px 0;
  400. }
  401. .books .seckill-content .books-sec p {
  402. margin-bottom: 10px;
  403. }
  404. .books .seckill-content .books-sec .cur-price {
  405. color: red;
  406. font-size: 18px;
  407. }
  408. .books .seckill-content .books-sec .pre-price {
  409. color: #666;
  410. text-decoration: line-through;
  411. font-size: 12px;
  412. }
  413. .books .seckill-content .books-sec button {
  414. width: 80px;
  415. height: 30px;
  416. border: none;
  417. background-color: #e77e11;
  418. margin-top: 10px;
  419. outline: none;
  420. color: #fff;
  421. }
  422. .bottom {
  423. opacity: 0.6;
  424. background-color: #323232;
  425. margin-top: 10px;
  426. color: #fff;
  427. text-align: center;
  428. }
  429. .bottom .top {
  430. height: 100px;
  431. border-bottom: 1px solid #474747;
  432. }
  433. .bottom .top ul {
  434. display: flex;
  435. justify-content: space-around;
  436. height: 100%;
  437. }
  438. .bottom .top ul li {
  439. height: 100%;
  440. display: flex;
  441. align-items: center;
  442. }
  443. .bottom .top ul li a {
  444. color: #fff;
  445. display: flex;
  446. align-items: center;
  447. }
  448. .bottom .top ul li a span {
  449. margin-left: 10px;
  450. }
  451. .bottom .content {
  452. height: 100px;
  453. display: flex;
  454. padding-top: 25px;
  455. justify-content: center;
  456. cursor: pointer;
  457. }
  458. .bottom .content dl {
  459. width: 180px;
  460. }
  461. .bottom .content dl dt {
  462. font-size: 20px;
  463. }
  464. .bottom .content dl dd {
  465. margin-top: 20px;
  466. font-size: 14px;
  467. color: #a8a8a8;
  468. }
  469. .bottom .down {
  470. height: 40px;
  471. background-color: #2a2a2a;
  472. line-height: 40px;
  473. }