| .promotion-container { |
| padding: 20px; |
| margin: 20px 0; |
| border-radius: 8px; |
| } |
| |
| /* 并排两列 */ |
| .carousel-container { |
| display: flex; |
| gap: 20px; |
| } |
| |
| .carousel-section { |
| flex: 1; |
| } |
| |
| .carousel-section h2 { |
| font-size: 20px; |
| margin-bottom: 15px; |
| } |
| |
| /* 轮播框架 */ |
| .carousel { |
| position: relative; |
| /* background: #a54747; */ |
| /* background: linear-gradient(135deg, #4A3B34, #a54747); */ |
| /* background: linear-gradient(135deg, #e38f77, #aa3e3e); */ |
| /* 背景渐变 */ |
| background: linear-gradient(135deg, #e1cab2, #b68791); |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| border-radius: 6px; |
| padding: 15px; |
| color: #fff; |
| min-height: 200px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
| |
| /* 左右箭头 */ |
| .carousel .arrow { |
| background: rgba(0,0,0,0.2); |
| border: none; |
| color: #fff; |
| font-size: 24px; |
| width: 36px; |
| height: 36px; |
| border-radius: 50%; |
| cursor: pointer; |
| position: absolute; |
| top: 50%; |
| transform: translateY(-50%); |
| } |
| |
| .carousel .arrow.left { |
| left: 10px; |
| } |
| |
| .carousel .arrow.right { |
| right: 10px; |
| } |
| |
| .carousel .arrow:hover { |
| background: rgba(0,0,0,0.4); |
| } |
| |
| /* 每帧内容 */ |
| .carousel .slide { |
| width: calc(100% - 80px); |
| /* 留出箭头空间 */ |
| text-align: left; |
| } |
| |
| /* 冷门资源专用 slide */ |
| .cold-slide { |
| display: flex; |
| gap: 10px; |
| align-items: center; |
| } |
| |
| /* 资源海报 */ |
| .resource-poster { |
| width: 80px; |
| height: 100px; |
| object-fit: cover; |
| border-radius: 4px; |
| } |
| |
| /* 文本信息 */ |
| .resource-info div, |
| .slide div { |
| margin-bottom: 6px; |
| } |
| |
| /* 激励徽章 */ |
| .incentive-badge { |
| background-color: #17a2b8; |
| color: #d13c3c; |
| padding: 2px 8px; |
| margin-right: 6px; |
| font-size: 12px; |
| border-radius: 12px; |
| } |
| |
| /* 空状态 */ |
| .empty-state { |
| color: #fff; |
| font-size: 16px; |
| text-align: center; |
| } |
| |
| .dialog-overlay { |
| position: fixed; |
| top: 0; |
| left: 0; |
| right: 0; |
| bottom: 0; |
| background: rgba(0,0,0,0.4); |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| z-index: 999; |
| } |
| .dialog { |
| background: #fff; |
| padding: 20px; |
| border-radius: 6px; |
| width: 400px; |
| max-width: 90%; |
| box-shadow: 0 0 10px rgba(0,0,0,0.25); |
| } |
| .form-item { |
| margin-bottom: 12px; |
| display: flex; |
| flex-direction: column; |
| } |
| .form-item label { |
| font-weight: bold; |
| margin-bottom: 4px; |
| } |
| .form-item input, .form-item textarea { |
| padding: 6px 8px; |
| font-size: 14px; |
| border: 1px solid #ccc; |
| border-radius: 4px; |
| } |
| .dialog-buttons { |
| display: flex; |
| justify-content: flex-end; |
| gap: 10px; |
| } |
| .dialog-buttons button { |
| padding: 6px 16px; |
| cursor: pointer; |
| } |
| |