@liujitcn/kratos-taro-app-system 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,284 @@
1
+ .prompt-refresh,
2
+ .prompt-item {
3
+ padding: 0;
4
+ margin: 0;
5
+ border-radius: 0;
6
+ background: transparent;
7
+ line-height: normal;
8
+ &::after { border: none; }
9
+ }
10
+
11
+ .welcome-panel { padding-bottom: 32px; }
12
+ .welcome-row { display: flex; align-items: center; }
13
+ .welcome-row.is-hello { margin-left: 6px; }
14
+
15
+ .ai-avatar {
16
+ position: relative;
17
+ z-index: 1;
18
+ flex-shrink: 0;
19
+ width: 114px;
20
+ height: 114px;
21
+ margin-right: -42px;
22
+ overflow: hidden;
23
+ border-radius: 34px;
24
+ background: linear-gradient(180deg, #fff 0%, #f5f8fb 100%);
25
+ box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
26
+ box-sizing: border-box;
27
+ animation: ai-avatar-float 3.8s ease-in-out infinite;
28
+ }
29
+
30
+ .ai-avatar__halo {
31
+ position: absolute;
32
+ top: 8px;
33
+ left: 16px;
34
+ width: 82px;
35
+ height: 82px;
36
+ border-radius: 50%;
37
+ background: radial-gradient(circle, rgba(255, 226, 218, 0.82) 0%, rgba(255, 255, 255, 0) 66%);
38
+ animation: ai-avatar-glow 2.8s ease-in-out infinite;
39
+ }
40
+
41
+ .ai-avatar__hair-back {
42
+ position: absolute;
43
+ top: 15px;
44
+ left: 28px;
45
+ width: 58px;
46
+ height: 66px;
47
+ border-radius: 34px 34px 26px 26px;
48
+ background: linear-gradient(160deg, #6b3a33 0%, #281c22 88%);
49
+ }
50
+
51
+ .ai-avatar__face {
52
+ position: absolute;
53
+ top: 27px;
54
+ left: 31px;
55
+ z-index: 2;
56
+ width: 52px;
57
+ height: 55px;
58
+ border-radius: 24px 24px 26px 26px;
59
+ background: linear-gradient(180deg, #ffe5d6 0%, #ffd3c2 100%);
60
+ box-shadow: inset 0 -3px 0 rgba(219, 119, 103, 0.12);
61
+ }
62
+
63
+ .ai-avatar__bang {
64
+ position: absolute;
65
+ top: -12px;
66
+ left: 0;
67
+ width: 56px;
68
+ height: 25px;
69
+ border-radius: 28px 26px 18px 12px;
70
+ background: linear-gradient(145deg, #5b342f 0%, #2a1f27 100%);
71
+ transform: rotate(-5deg);
72
+ }
73
+
74
+ .ai-avatar__eyes {
75
+ display: flex;
76
+ justify-content: space-between;
77
+ width: 26px;
78
+ margin: 22px auto 0;
79
+ }
80
+
81
+ .ai-avatar__eyes view {
82
+ width: 6px;
83
+ height: 9px;
84
+ border-radius: 50%;
85
+ background-color: #38262b;
86
+ animation: ai-avatar-blink 4.6s ease-in-out infinite;
87
+ }
88
+
89
+ .ai-avatar__blush {
90
+ position: absolute;
91
+ top: 34px;
92
+ width: 10px;
93
+ height: 5px;
94
+ border-radius: 50%;
95
+ background-color: rgba(246, 121, 118, 0.32);
96
+ }
97
+
98
+ .ai-avatar__blush.is-left { left: 9px; }
99
+ .ai-avatar__blush.is-right { right: 9px; }
100
+
101
+ .ai-avatar__smile {
102
+ width: 18px;
103
+ height: 9px;
104
+ margin: 8px auto 0;
105
+ border-bottom: 3px solid #d56f62;
106
+ border-radius: 0 0 18px 18px;
107
+ }
108
+
109
+ .ai-avatar__hair-side {
110
+ position: absolute;
111
+ top: 42px;
112
+ z-index: 1;
113
+ width: 15px;
114
+ height: 39px;
115
+ border-radius: 16px;
116
+ background: linear-gradient(180deg, #4d2d2b 0%, #231b23 100%);
117
+ }
118
+
119
+ .ai-avatar__hair-side.is-left { left: 22px; transform: rotate(9deg); }
120
+ .ai-avatar__hair-side.is-right { right: 22px; transform: rotate(-9deg); }
121
+
122
+ .ai-avatar__body {
123
+ position: absolute;
124
+ left: 29px;
125
+ bottom: 4px;
126
+ z-index: 1;
127
+ width: 56px;
128
+ height: 34px;
129
+ border-radius: 26px 26px 10px 10px;
130
+ background: linear-gradient(180deg, #ff5d58 0%, #df292d 100%);
131
+ }
132
+
133
+ .ai-avatar__bow {
134
+ position: absolute;
135
+ left: 46px;
136
+ bottom: 24px;
137
+ z-index: 3;
138
+ width: 22px;
139
+ height: 12px;
140
+ border-radius: 12px;
141
+ background: linear-gradient(90deg, #fff 0 40%, #f7dde0 40% 60%, #fff 60% 100%);
142
+ }
143
+
144
+ .ai-avatar__spark {
145
+ position: absolute;
146
+ top: 14px;
147
+ right: 18px;
148
+ z-index: 3;
149
+ width: 10px;
150
+ height: 10px;
151
+ border-radius: 50%;
152
+ background-color: #ffd35a;
153
+ opacity: 0.9;
154
+ animation: ai-avatar-spark 1.8s ease-in-out infinite;
155
+ }
156
+
157
+ @keyframes ai-avatar-float {
158
+ 0%, 100% { transform: translateY(0); }
159
+ 50% { transform: translateY(-4px); }
160
+ }
161
+
162
+ @keyframes ai-avatar-glow {
163
+ 0%, 100% { opacity: 0.72; transform: scale(1); }
164
+ 50% { opacity: 1; transform: scale(1.04); }
165
+ }
166
+
167
+ @keyframes ai-avatar-blink {
168
+ 0%, 88%, 100% { transform: scaleY(1); }
169
+ 92%, 95% { transform: scaleY(0.18); }
170
+ }
171
+
172
+ @keyframes ai-avatar-spark {
173
+ 0%, 100% { opacity: 0.45; transform: scale(0.8); }
174
+ 50% { opacity: 1; transform: scale(1.18); }
175
+ }
176
+
177
+ .welcome-bubble {
178
+ color: #111;
179
+ background-color: #fff;
180
+ box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
181
+ box-sizing: border-box;
182
+ }
183
+
184
+ .welcome-bubble.is-hello {
185
+ min-width: 350px;
186
+ height: 96px;
187
+ padding: 0 34px 0 78px;
188
+ border-radius: 18px;
189
+ font-size: 30px;
190
+ line-height: 96px;
191
+ }
192
+
193
+ .welcome-bubble.is-intro {
194
+ display: flex;
195
+ align-items: center;
196
+ min-height: 96px;
197
+ margin-top: 30px;
198
+ padding: 24px 28px;
199
+ border-radius: 18px;
200
+ font-size: 29px;
201
+ line-height: 44px;
202
+ }
203
+
204
+ .prompt-card {
205
+ margin-top: 34px;
206
+ padding: 30px 28px 24px;
207
+ border: 1px solid #e7ecef;
208
+ border-radius: 10px;
209
+ background: linear-gradient(180deg, rgba(0, 169, 107, 0.05), rgba(255, 255, 255, 0) 38%), #fff;
210
+ box-shadow: 0 10px 34px rgba(15, 23, 42, 0.05);
211
+ box-sizing: border-box;
212
+ }
213
+
214
+ .prompt-card__head {
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: space-between;
218
+ gap: 24px;
219
+ margin-bottom: 18px;
220
+ }
221
+
222
+ .prompt-card__eyebrow { color: #00a96b; font-size: 22px; font-weight: 600; line-height: 30px; }
223
+ .prompt-card__title { color: #111; font-size: 31px; font-weight: 700; line-height: 42px; }
224
+
225
+ .prompt-refresh {
226
+ flex-shrink: 0;
227
+ display: flex;
228
+ align-items: center;
229
+ gap: 14px;
230
+ height: 50px;
231
+ color: #00a96b;
232
+ font-size: 25px;
233
+ line-height: 50px;
234
+ }
235
+
236
+ .prompt-loading { padding: 32px 0; color: #8d929c; font-size: 26px; line-height: 38px; }
237
+
238
+ .prompt-item {
239
+ display: flex;
240
+ align-items: center;
241
+ width: 100%;
242
+ min-height: 96px;
243
+ padding: 16px 16px 16px 0;
244
+ border-top: 1px solid #edf0f2;
245
+ color: #111;
246
+ text-align: left;
247
+ box-sizing: border-box;
248
+ }
249
+
250
+ .prompt-item:first-of-type { border-top: none; }
251
+
252
+ .prompt-index {
253
+ flex-shrink: 0;
254
+ width: 36px;
255
+ height: 36px;
256
+ margin-right: 24px;
257
+ border-radius: 8px;
258
+ color: #00a96b;
259
+ font-size: 24px;
260
+ font-weight: 700;
261
+ line-height: 34px;
262
+ text-align: center;
263
+ background-color: #e7f7f2;
264
+ box-sizing: border-box;
265
+ }
266
+
267
+ .prompt-content {
268
+ flex: 1;
269
+ min-width: 0;
270
+ display: flex;
271
+ flex-direction: column;
272
+ gap: 4px;
273
+ }
274
+
275
+ .prompt-text,
276
+ .prompt-meta {
277
+ min-width: 0;
278
+ overflow: hidden;
279
+ text-overflow: ellipsis;
280
+ white-space: nowrap;
281
+ }
282
+
283
+ .prompt-text { color: #111; font-size: 29px; line-height: 40px; }
284
+ .prompt-meta { color: #8d929c; font-size: 22px; line-height: 30px; }
@@ -0,0 +1,130 @@
1
+ page {
2
+ height: 100%;
3
+ overflow: hidden;
4
+ background-color: #f6f6f6;
5
+ }
6
+
7
+ .ai-page {
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+ width: 100%;
12
+ height: 100vh;
13
+ height: 100dvh;
14
+ overflow: hidden;
15
+ color: #333;
16
+ background-color: #f6f6f6;
17
+ }
18
+
19
+ .ai-navbar {
20
+ flex-shrink: 0;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: space-between;
24
+ box-sizing: border-box;
25
+ background-color: #fff;
26
+ border-bottom: 1px solid #eceef1;
27
+ height: 44PX;
28
+ }
29
+
30
+ .ai-navbar.is-weapp {
31
+ height: 88PX;
32
+ padding-top: 44PX;
33
+ }
34
+
35
+ .nav-back-button,
36
+ .nav-menu-button {
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ width: 88px;
41
+ height: 44PX;
42
+ padding: 0;
43
+ border: 0;
44
+ border-radius: 0;
45
+ background: transparent;
46
+ line-height: normal;
47
+ }
48
+
49
+ .nav-back-button::after,
50
+ .nav-menu-button::after { border: 0; }
51
+
52
+ .ai-navbar__title {
53
+ flex: 1;
54
+ color: #111;
55
+ font-size: 32px;
56
+ font-weight: 600;
57
+ text-align: center;
58
+ }
59
+
60
+ .ai-body {
61
+ flex: 1;
62
+ min-height: 0;
63
+ box-sizing: border-box;
64
+ padding: 28px 24px 10px;
65
+ }
66
+
67
+ .chat-list { padding-bottom: 24px; }
68
+ .message-row { display: flex; width: 100%; margin-bottom: 24px; }
69
+ .message-row.is-user { justify-content: flex-end; }
70
+
71
+ .bubble {
72
+ max-width: 86%;
73
+ padding: 20px 24px;
74
+ border-radius: 18px;
75
+ box-sizing: border-box;
76
+ word-break: break-word;
77
+ }
78
+
79
+ .user-bubble { color: #fff; background-color: #27ba9b; border-bottom-right-radius: 6px; }
80
+ .ai-bubble { color: #333; background-color: #fff; border-bottom-left-radius: 6px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05); }
81
+ .bubble.is-streaming { opacity: 0.72; }
82
+ .bubble-content { white-space: pre-wrap; font-size: 28px; line-height: 1.65; }
83
+
84
+ .reply-meta {
85
+ display: flex;
86
+ align-items: center;
87
+ gap: 12px;
88
+ margin-bottom: 8px;
89
+ color: #8a8f99;
90
+ font-size: 20px;
91
+ }
92
+
93
+ .reply-tag { color: #16806d; }
94
+ .attachment-list { margin-top: 16px; }
95
+
96
+ .attachment-card {
97
+ display: flex;
98
+ align-items: center;
99
+ gap: 12px;
100
+ max-width: 100%;
101
+ padding: 12px;
102
+ margin-top: 8px;
103
+ border-radius: 10px;
104
+ background-color: rgba(255, 255, 255, 0.72);
105
+ box-sizing: border-box;
106
+ }
107
+
108
+ .attachment-icon {
109
+ flex-shrink: 0;
110
+ width: 48px;
111
+ height: 48px;
112
+ border-radius: 8px;
113
+ color: #16806d;
114
+ font-size: 22px;
115
+ line-height: 48px;
116
+ text-align: center;
117
+ background-color: #e8f8f4;
118
+ }
119
+
120
+ .attachment-info { min-width: 0; }
121
+ .attachment-name,
122
+ .attachment-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
123
+ .attachment-name { max-width: 320px; font-size: 22px; }
124
+ .attachment-meta { margin-top: 4px; color: #8a8f99; font-size: 19px; }
125
+
126
+ .tool-row,
127
+ .loading-session { color: #8a8f99; font-size: 22px; line-height: 34px; }
128
+ .tool-row { margin-top: 12px; }
129
+ .loading-session { padding: 20px 0; text-align: center; }
130
+ .chat-bottom { width: 2px; height: 2px; }