Krishya | f1d0ea8 | 2025-05-03 17:01:58 +0800 | [diff] [blame^] | 1 | .promotion-container { |
| 2 | padding: 20px; |
| 3 | margin: 20px 0; |
| 4 | border-radius: 8px; |
| 5 | } |
| 6 | |
| 7 | /* 并排两列 */ |
| 8 | .carousel-container { |
| 9 | display: flex; |
| 10 | gap: 20px; |
| 11 | } |
| 12 | |
| 13 | .carousel-section { |
| 14 | flex: 1; |
| 15 | } |
| 16 | |
| 17 | .carousel-section h2 { |
| 18 | font-size: 20px; |
| 19 | margin-bottom: 15px; |
| 20 | } |
| 21 | |
| 22 | /* 轮播框架 */ |
| 23 | .carousel { |
| 24 | position: relative; |
| 25 | /* background: #a54747; */ |
| 26 | /* background: linear-gradient(135deg, #4A3B34, #a54747); */ |
| 27 | /* background: linear-gradient(135deg, #e38f77, #aa3e3e); */ |
| 28 | /* 背景渐变 */ |
| 29 | background: linear-gradient(135deg, #e1cab2, #b68791); |
| 30 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| 31 | border-radius: 6px; |
| 32 | padding: 15px; |
| 33 | color: #fff; |
| 34 | min-height: 200px; |
| 35 | display: flex; |
| 36 | align-items: center; |
| 37 | justify-content: center; |
| 38 | } |
| 39 | |
| 40 | /* 左右箭头 */ |
| 41 | .carousel .arrow { |
| 42 | background: rgba(0,0,0,0.2); |
| 43 | border: none; |
| 44 | color: #fff; |
| 45 | font-size: 24px; |
| 46 | width: 36px; |
| 47 | height: 36px; |
| 48 | border-radius: 50%; |
| 49 | cursor: pointer; |
| 50 | position: absolute; |
| 51 | top: 50%; |
| 52 | transform: translateY(-50%); |
| 53 | } |
| 54 | |
| 55 | .carousel .arrow.left { |
| 56 | left: 10px; |
| 57 | } |
| 58 | |
| 59 | .carousel .arrow.right { |
| 60 | right: 10px; |
| 61 | } |
| 62 | |
| 63 | .carousel .arrow:hover { |
| 64 | background: rgba(0,0,0,0.4); |
| 65 | } |
| 66 | |
| 67 | /* 每帧内容 */ |
| 68 | .carousel .slide { |
| 69 | width: calc(100% - 80px); |
| 70 | /* 留出箭头空间 */ |
| 71 | text-align: left; |
| 72 | } |
| 73 | |
| 74 | /* 冷门资源专用 slide */ |
| 75 | .cold-slide { |
| 76 | display: flex; |
| 77 | gap: 10px; |
| 78 | align-items: center; |
| 79 | } |
| 80 | |
| 81 | /* 资源海报 */ |
| 82 | .resource-poster { |
| 83 | width: 80px; |
| 84 | height: 100px; |
| 85 | object-fit: cover; |
| 86 | border-radius: 4px; |
| 87 | } |
| 88 | |
| 89 | /* 文本信息 */ |
| 90 | .resource-info div, |
| 91 | .slide div { |
| 92 | margin-bottom: 6px; |
| 93 | } |
| 94 | |
| 95 | /* 激励徽章 */ |
| 96 | .incentive-badge { |
| 97 | background-color: #17a2b8; |
| 98 | color: #d13c3c; |
| 99 | padding: 2px 8px; |
| 100 | margin-right: 6px; |
| 101 | font-size: 12px; |
| 102 | border-radius: 12px; |
| 103 | } |
| 104 | |
| 105 | /* 空状态 */ |
| 106 | .empty-state { |
| 107 | color: #fff; |
| 108 | font-size: 16px; |
| 109 | text-align: center; |
| 110 | } |