blob: 46e7a0da5f92336b9f430b9036f8e12230dd2041 [file] [log] [blame]
Krishyaf1d0ea82025-05-03 17:01:58 +08001.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}
Krishya6bf199c2025-06-06 21:14:23 +0800111
112.dialog-overlay {
113 position: fixed;
114 top: 0;
115 left: 0;
116 right: 0;
117 bottom: 0;
118 background: rgba(0,0,0,0.4);
119 display: flex;
120 justify-content: center;
121 align-items: center;
122 z-index: 999;
123}
124.dialog {
125 background: #fff;
126 padding: 20px;
127 border-radius: 6px;
128 width: 400px;
129 max-width: 90%;
130 box-shadow: 0 0 10px rgba(0,0,0,0.25);
131}
132.form-item {
133 margin-bottom: 12px;
134 display: flex;
135 flex-direction: column;
136}
137.form-item label {
138 font-weight: bold;
139 margin-bottom: 4px;
140}
141.form-item input, .form-item textarea {
142 padding: 6px 8px;
143 font-size: 14px;
144 border: 1px solid #ccc;
145 border-radius: 4px;
146}
147.dialog-buttons {
148 display: flex;
149 justify-content: flex-end;
150 gap: 10px;
151}
152.dialog-buttons button {
153 padding: 6px 16px;
154 cursor: pointer;
155}
156