Spaces:
Running
on
Zero
Running
on
Zero
Delete styles.py
Browse files
styles.py
DELETED
@@ -1,892 +0,0 @@
|
|
1 |
-
|
2 |
-
def get_css_styles():
|
3 |
-
return """
|
4 |
-
.dog-info-card {
|
5 |
-
border: 1px solid #e1e4e8;
|
6 |
-
margin: 0;
|
7 |
-
padding: 0;
|
8 |
-
border-radius: 12px;
|
9 |
-
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
|
10 |
-
overflow: hidden;
|
11 |
-
transition: all 0.3s ease;
|
12 |
-
background: white;
|
13 |
-
}
|
14 |
-
|
15 |
-
.dog-info-card:hover {
|
16 |
-
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
17 |
-
}
|
18 |
-
|
19 |
-
.dog-info-header {
|
20 |
-
padding: 24px 28px; /* 增加內距 */
|
21 |
-
margin: 0;
|
22 |
-
font-size: 22px;
|
23 |
-
font-weight: bold;
|
24 |
-
border-bottom: 1px solid #e1e4e8;
|
25 |
-
}
|
26 |
-
|
27 |
-
.breed-info {
|
28 |
-
padding: 28px; /* 增加整體內距 */
|
29 |
-
line-height: 1.6;
|
30 |
-
}
|
31 |
-
|
32 |
-
.section-title {
|
33 |
-
font-size: 1.3em;
|
34 |
-
font-weight: 700;
|
35 |
-
color: #2c3e50;
|
36 |
-
margin: 32px 0 20px 0;
|
37 |
-
padding: 12px 0;
|
38 |
-
border-bottom: 2px solid #e1e4e8;
|
39 |
-
text-transform: uppercase;
|
40 |
-
letter-spacing: 0.5px;
|
41 |
-
display: flex;
|
42 |
-
align-items: center;
|
43 |
-
gap: 8px;
|
44 |
-
position: relative;
|
45 |
-
}
|
46 |
-
|
47 |
-
.icon {
|
48 |
-
font-size: 1.2em;
|
49 |
-
display: inline-flex;
|
50 |
-
align-items: center;
|
51 |
-
justify-content: center;
|
52 |
-
}
|
53 |
-
|
54 |
-
.info-section, .care-section, .family-section {
|
55 |
-
display: flex;
|
56 |
-
flex-wrap: wrap;
|
57 |
-
gap: 16px;
|
58 |
-
margin-bottom: 28px; /* 增加底部間距 */
|
59 |
-
padding: 20px; /* 增加內距 */
|
60 |
-
background: #f8f9fa;
|
61 |
-
border-radius: 12px;
|
62 |
-
border: 1px solid #e1e4e8; /* 添加邊框 */
|
63 |
-
}
|
64 |
-
|
65 |
-
.info-item {
|
66 |
-
background: white; /* 改為白色背景 */
|
67 |
-
padding: 14px 18px; /* 增加內距 */
|
68 |
-
border-radius: 8px;
|
69 |
-
display: flex;
|
70 |
-
align-items: center;
|
71 |
-
gap: 10px;
|
72 |
-
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
73 |
-
border: 1px solid #e1e4e8;
|
74 |
-
flex: 1 1 auto;
|
75 |
-
min-width: 200px;
|
76 |
-
}
|
77 |
-
|
78 |
-
.label {
|
79 |
-
color: #666;
|
80 |
-
font-weight: 600;
|
81 |
-
font-size: 1.1rem;
|
82 |
-
}
|
83 |
-
|
84 |
-
.value {
|
85 |
-
color: #2c3e50;
|
86 |
-
font-weight: 500;
|
87 |
-
font-size: 1.1rem;
|
88 |
-
}
|
89 |
-
|
90 |
-
.temperament-section {
|
91 |
-
background: #f8f9fa;
|
92 |
-
padding: 20px; /* 增加內距 */
|
93 |
-
border-radius: 12px;
|
94 |
-
margin-bottom: 28px; /* 增加間距 */
|
95 |
-
color: #444;
|
96 |
-
border: 1px solid #e1e4e8; /* 添加邊框 */
|
97 |
-
}
|
98 |
-
|
99 |
-
.description-section {
|
100 |
-
background: #f8f9fa;
|
101 |
-
padding: 24px; /* 增加內距 */
|
102 |
-
border-radius: 12px;
|
103 |
-
margin: 28px 0; /* 增加上下間距 */
|
104 |
-
line-height: 1.8;
|
105 |
-
color: #444;
|
106 |
-
border: 1px solid #e1e4e8; /* 添加邊框 */
|
107 |
-
fontsize: 1.1rem;
|
108 |
-
}
|
109 |
-
.description-section p {
|
110 |
-
margin: 0;
|
111 |
-
padding: 0;
|
112 |
-
text-align: justify; /* 文字兩端對齊 */
|
113 |
-
word-wrap: break-word; /* 確保長單字會換行 */
|
114 |
-
white-space: pre-line; /* 保留換行但合併空白 */
|
115 |
-
max-width: 100%; /* 確保不會超出容器 */
|
116 |
-
}
|
117 |
-
|
118 |
-
.action-section {
|
119 |
-
margin-top: 24px;
|
120 |
-
text-align: center;
|
121 |
-
}
|
122 |
-
|
123 |
-
.akc-button,
|
124 |
-
.breed-section .akc-link,
|
125 |
-
.breed-option .akc-link {
|
126 |
-
display: inline-flex;
|
127 |
-
align-items: center;
|
128 |
-
padding: 14px 28px;
|
129 |
-
background: linear-gradient(145deg, #00509E, #003F7F);
|
130 |
-
color: white;
|
131 |
-
border-radius: 12px; /* 增加圓角 */
|
132 |
-
text-decoration: none;
|
133 |
-
gap: 12px; /* 增加圖標和文字間距 */
|
134 |
-
transition: all 0.3s ease;
|
135 |
-
font-weight: 600;
|
136 |
-
font-size: 1.1em;
|
137 |
-
box-shadow:
|
138 |
-
0 2px 4px rgba(0,0,0,0.1),
|
139 |
-
inset 0 1px 1px rgba(255,255,255,0.1);
|
140 |
-
border: 1px solid rgba(255,255,255,0.1);
|
141 |
-
}
|
142 |
-
|
143 |
-
.akc-button:hover,
|
144 |
-
.breed-section .akc-link:hover,
|
145 |
-
.breed-option .akc-link:hover {
|
146 |
-
background: linear-gradient(145deg, #003F7F, #00509E);
|
147 |
-
transform: translateY(-2px);
|
148 |
-
color: white;
|
149 |
-
box-shadow:
|
150 |
-
0 6px 12px rgba(0,0,0,0.2),
|
151 |
-
inset 0 1px 1px rgba(255,255,255,0.2);
|
152 |
-
border: 1px solid rgba(255,255,255,0.2);
|
153 |
-
}
|
154 |
-
.icon {
|
155 |
-
font-size: 1.3em;
|
156 |
-
filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
|
157 |
-
}
|
158 |
-
|
159 |
-
.warning-message {
|
160 |
-
display: flex;
|
161 |
-
align-items: center;
|
162 |
-
gap: 8px;
|
163 |
-
color: #ff3b30;
|
164 |
-
font-weight: 500;
|
165 |
-
margin: 0;
|
166 |
-
padding: 16px;
|
167 |
-
background: #fff5f5;
|
168 |
-
border-radius: 8px;
|
169 |
-
}
|
170 |
-
|
171 |
-
.model-uncertainty-note {
|
172 |
-
display: flex;
|
173 |
-
align-items: center;
|
174 |
-
gap: 12px;
|
175 |
-
padding: 16px;
|
176 |
-
background-color: #f8f9fa;
|
177 |
-
border-left: 4px solid #6c757d;
|
178 |
-
margin-bottom: 20px;
|
179 |
-
color: #495057;
|
180 |
-
border-radius: 4px;
|
181 |
-
}
|
182 |
-
|
183 |
-
.breeds-list {
|
184 |
-
display: flex;
|
185 |
-
flex-direction: column;
|
186 |
-
gap: 20px;
|
187 |
-
}
|
188 |
-
|
189 |
-
.breed-option {
|
190 |
-
background: white;
|
191 |
-
border: 1px solid #e1e4e8;
|
192 |
-
border-radius: 8px;
|
193 |
-
overflow: hidden;
|
194 |
-
}
|
195 |
-
|
196 |
-
.breed-header {
|
197 |
-
display: flex;
|
198 |
-
align-items: center;
|
199 |
-
padding: 16px;
|
200 |
-
background: #f8f9fa;
|
201 |
-
gap: 12px;
|
202 |
-
border-bottom: 1px solid #e1e4e8;
|
203 |
-
}
|
204 |
-
|
205 |
-
.option-number {
|
206 |
-
font-weight: 600;
|
207 |
-
color: #666;
|
208 |
-
padding: 4px 8px;
|
209 |
-
background: #e1e4e8;
|
210 |
-
border-radius: 4px;
|
211 |
-
}
|
212 |
-
|
213 |
-
.breed-name {
|
214 |
-
font-size: 1.5em;
|
215 |
-
font-weight: bold;
|
216 |
-
color: #2c3e50;
|
217 |
-
flex-grow: 1;
|
218 |
-
}
|
219 |
-
|
220 |
-
.confidence-badge {
|
221 |
-
padding: 4px 12px;
|
222 |
-
border-radius: 20px;
|
223 |
-
font-size: 0.9em;
|
224 |
-
font-weight: 500;
|
225 |
-
}
|
226 |
-
|
227 |
-
.breed-content {
|
228 |
-
padding: 20px;
|
229 |
-
}
|
230 |
-
.breed-content li {
|
231 |
-
margin-bottom: 8px;
|
232 |
-
display: flex;
|
233 |
-
align-items: flex-start; /* 改為頂部對齊 */
|
234 |
-
gap: 8px;
|
235 |
-
flex-wrap: wrap; /* 允許內容換行 */
|
236 |
-
}
|
237 |
-
.breed-content li strong {
|
238 |
-
flex: 0 0 auto; /* 不讓標題縮放 */
|
239 |
-
min-width: 100px; /* 給標題一個固定最小寬度 */
|
240 |
-
}
|
241 |
-
|
242 |
-
ul {
|
243 |
-
padding-left: 0;
|
244 |
-
margin: 0;
|
245 |
-
list-style-type: none;
|
246 |
-
}
|
247 |
-
|
248 |
-
li {
|
249 |
-
margin-bottom: 8px;
|
250 |
-
display: flex;
|
251 |
-
align-items: center;
|
252 |
-
gap: 8px;
|
253 |
-
}
|
254 |
-
|
255 |
-
.action-section {
|
256 |
-
margin-top: 20px;
|
257 |
-
padding: 15px;
|
258 |
-
text-align: center;
|
259 |
-
border-top: 1px solid #dee2e6;
|
260 |
-
}
|
261 |
-
|
262 |
-
.akc-button {
|
263 |
-
display: inline-block;
|
264 |
-
padding: 12px 24px;
|
265 |
-
background-color: #007bff;
|
266 |
-
color: white !important;
|
267 |
-
text-decoration: none;
|
268 |
-
border-radius: 5px;
|
269 |
-
font-weight: 500;
|
270 |
-
transition: background-color 0.3s;
|
271 |
-
}
|
272 |
-
|
273 |
-
.akc-button:hover {
|
274 |
-
background-color: #0056b3;
|
275 |
-
text-decoration: none;
|
276 |
-
}
|
277 |
-
|
278 |
-
.akc-button .icon {
|
279 |
-
margin-right: 8px;
|
280 |
-
}
|
281 |
-
|
282 |
-
.akc-link {
|
283 |
-
color: white;
|
284 |
-
text-decoration: none;
|
285 |
-
font-weight: 600;
|
286 |
-
font-size: 1.1em;
|
287 |
-
transition: all 0.3s ease;
|
288 |
-
}
|
289 |
-
|
290 |
-
.akc-link:hover {
|
291 |
-
text-decoration: underline;
|
292 |
-
color: #D3E3F0;
|
293 |
-
}
|
294 |
-
.tooltip {
|
295 |
-
position: relative;
|
296 |
-
display: inline-flex;
|
297 |
-
align-items: center;
|
298 |
-
gap: 4px;
|
299 |
-
cursor: help;
|
300 |
-
}
|
301 |
-
.tooltip .tooltip-icon {
|
302 |
-
font-size: 14px;
|
303 |
-
color: #666;
|
304 |
-
}
|
305 |
-
.tooltip .tooltip-text {
|
306 |
-
visibility: hidden;
|
307 |
-
width: 250px;
|
308 |
-
background-color: rgba(44, 62, 80, 0.95);
|
309 |
-
color: white;
|
310 |
-
text-align: left;
|
311 |
-
border-radius: 8px;
|
312 |
-
padding: 8px 10px;
|
313 |
-
position: absolute;
|
314 |
-
z-index: 100;
|
315 |
-
bottom: 150%;
|
316 |
-
left: 50%;
|
317 |
-
transform: translateX(-50%);
|
318 |
-
opacity: 0;
|
319 |
-
transition: all 0.3s ease;
|
320 |
-
font-size: 14px;
|
321 |
-
line-height: 1.3;
|
322 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
323 |
-
border: 1px solid rgba(255, 255, 255, 0.1)
|
324 |
-
margin-bottom: 10px;
|
325 |
-
}
|
326 |
-
.tooltip.tooltip-left .tooltip-text {
|
327 |
-
left: 0;
|
328 |
-
transform: translateX(0);
|
329 |
-
}
|
330 |
-
.tooltip.tooltip-right .tooltip-text {
|
331 |
-
left: auto;
|
332 |
-
right: 0;
|
333 |
-
transform: translateX(0);
|
334 |
-
}
|
335 |
-
.tooltip-text strong {
|
336 |
-
color: white !important;
|
337 |
-
background-color: transparent !important;
|
338 |
-
display: block; /* 讓標題獨立一行 */
|
339 |
-
margin-bottom: 2px; /* 增加標題下方間距 */
|
340 |
-
padding-bottom: 2px; /* 加入小間距 */
|
341 |
-
border-bottom: 1px solid rgba(255,255,255,0.2);
|
342 |
-
}
|
343 |
-
.tooltip-text {
|
344 |
-
font-size: 13px; /* 稍微縮小字體 */
|
345 |
-
}
|
346 |
-
|
347 |
-
/* 調整列表符號和文字的間距 */
|
348 |
-
.tooltip-text ul {
|
349 |
-
margin: 0;
|
350 |
-
padding-left: 15px; /* 減少列表符���的縮進 */
|
351 |
-
}
|
352 |
-
|
353 |
-
.tooltip-text li {
|
354 |
-
margin-bottom: 1px; /* 減少列表項目間的間距 */
|
355 |
-
}
|
356 |
-
.tooltip-text br {
|
357 |
-
line-height: 1.2; /* 減少行距 */
|
358 |
-
}
|
359 |
-
|
360 |
-
.tooltip .tooltip-text::after {
|
361 |
-
content: "";
|
362 |
-
position: absolute;
|
363 |
-
top: 100%;
|
364 |
-
left: 20%; /* 調整箭頭位置 */
|
365 |
-
margin-left: -5px;
|
366 |
-
border-width: 5px;
|
367 |
-
border-style: solid;
|
368 |
-
border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent;
|
369 |
-
}
|
370 |
-
.tooltip-left .tooltip-text::after {
|
371 |
-
left: 20%;
|
372 |
-
}
|
373 |
-
|
374 |
-
/* 右側箭頭 */
|
375 |
-
.tooltip-right .tooltip-text::after {
|
376 |
-
left: 80%;
|
377 |
-
}
|
378 |
-
.tooltip:hover .tooltip-text {
|
379 |
-
visibility: visible;
|
380 |
-
opacity: 1;
|
381 |
-
}
|
382 |
-
.tooltip .tooltip-text::after {
|
383 |
-
content: "";
|
384 |
-
position: absolute;
|
385 |
-
top: 100%;
|
386 |
-
left: 50%;
|
387 |
-
transform: translateX(-50%);
|
388 |
-
border-width: 8px;
|
389 |
-
border-style: solid;
|
390 |
-
border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent;
|
391 |
-
}
|
392 |
-
.uncertainty-mode .tooltip .tooltip-text {
|
393 |
-
position: absolute;
|
394 |
-
left: 100%;
|
395 |
-
bottom: auto;
|
396 |
-
top: 50%;
|
397 |
-
transform: translateY(-50%);
|
398 |
-
margin-left: 10px;
|
399 |
-
z-index: 1000; /* 確保提示框在最上層 */
|
400 |
-
}
|
401 |
-
|
402 |
-
.uncertainty-mode .tooltip .tooltip-text::after {
|
403 |
-
content: "";
|
404 |
-
position: absolute;
|
405 |
-
top: 50%;
|
406 |
-
right: 100%;
|
407 |
-
transform: translateY(-50%);
|
408 |
-
border-width: 5px;
|
409 |
-
border-style: solid;
|
410 |
-
border-color: transparent rgba(44, 62, 80, 0.95) transparent transparent;
|
411 |
-
}
|
412 |
-
.uncertainty-mode .breed-content {
|
413 |
-
font-size: 1.1rem; /* 增加字體大小 */
|
414 |
-
}
|
415 |
-
.description-section,
|
416 |
-
.description-section p,
|
417 |
-
.temperament-section,
|
418 |
-
.temperament-section .value,
|
419 |
-
.info-item,
|
420 |
-
.info-item .value,
|
421 |
-
.breed-content {
|
422 |
-
font-size: 1.1rem !important; /* 使用 !important 確保覆蓋其他樣式 */
|
423 |
-
}
|
424 |
-
|
425 |
-
.recommendation-card {
|
426 |
-
margin-bottom: 40px;
|
427 |
-
}
|
428 |
-
|
429 |
-
.compatibility-scores {
|
430 |
-
background: #f8f9fa;
|
431 |
-
padding: 24px;
|
432 |
-
border-radius: 12px;
|
433 |
-
margin: 20px 0;
|
434 |
-
}
|
435 |
-
|
436 |
-
.score-item {
|
437 |
-
margin: 15px 0;
|
438 |
-
}
|
439 |
-
|
440 |
-
.progress-bar {
|
441 |
-
height: 12px;
|
442 |
-
background-color: #e9ecef;
|
443 |
-
border-radius: 6px;
|
444 |
-
overflow: hidden;
|
445 |
-
margin: 8px 0;
|
446 |
-
}
|
447 |
-
|
448 |
-
.progress {
|
449 |
-
height: 100%;
|
450 |
-
background: linear-gradient(90deg, #34C759, #30B350);
|
451 |
-
border-radius: 6px;
|
452 |
-
transition: width 0.6s ease;
|
453 |
-
}
|
454 |
-
|
455 |
-
.percentage {
|
456 |
-
float: right;
|
457 |
-
color: #34C759;
|
458 |
-
font-weight: 600;
|
459 |
-
}
|
460 |
-
|
461 |
-
.breed-details-section {
|
462 |
-
margin: 30px 0;
|
463 |
-
}
|
464 |
-
|
465 |
-
.subsection-title {
|
466 |
-
font-size: 1.2em;
|
467 |
-
color: #2c3e50;
|
468 |
-
margin-bottom: 20px;
|
469 |
-
display: flex;
|
470 |
-
align-items: center;
|
471 |
-
gap: 8px;
|
472 |
-
}
|
473 |
-
|
474 |
-
.details-grid {
|
475 |
-
display: grid;
|
476 |
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
477 |
-
gap: 20px;
|
478 |
-
background: #f8f9fa;
|
479 |
-
padding: 20px;
|
480 |
-
border-radius: 12px;
|
481 |
-
border: 1px solid #e1e4e8;
|
482 |
-
}
|
483 |
-
|
484 |
-
.detail-item {
|
485 |
-
background: white;
|
486 |
-
padding: 15px;
|
487 |
-
border-radius: 8px;
|
488 |
-
border: 1px solid #e1e4e8;
|
489 |
-
}
|
490 |
-
|
491 |
-
.description-text {
|
492 |
-
line-height: 1.8;
|
493 |
-
color: #444;
|
494 |
-
margin: 0;
|
495 |
-
padding: 24px 30px; /* 調整內部間距,從 20px 改為 24px 30px */
|
496 |
-
background: #f8f9fa;
|
497 |
-
border-radius: 12px;
|
498 |
-
border: 1px solid #e1e4e8;
|
499 |
-
text-align: justify; /* 添加文字對齊 */
|
500 |
-
word-wrap: break-word; /* 確保長文字會換行 */
|
501 |
-
word-spacing: 1px; /* 加入字間距 */
|
502 |
-
}
|
503 |
-
|
504 |
-
/* 工具提示改進 */
|
505 |
-
.tooltip {
|
506 |
-
position: relative;
|
507 |
-
display: inline-flex;
|
508 |
-
align-items: center;
|
509 |
-
gap: 4px;
|
510 |
-
cursor: help;
|
511 |
-
padding: 5px 0;
|
512 |
-
}
|
513 |
-
|
514 |
-
.tooltip .tooltip-text {
|
515 |
-
visibility: hidden;
|
516 |
-
width: 280px;
|
517 |
-
background-color: rgba(44, 62, 80, 0.95);
|
518 |
-
color: white;
|
519 |
-
text-align: left;
|
520 |
-
border-radius: 8px;
|
521 |
-
padding: 12px 15px;
|
522 |
-
position: absolute;
|
523 |
-
z-index: 1000;
|
524 |
-
bottom: calc(100% + 15px);
|
525 |
-
left: 50%;
|
526 |
-
transform: translateX(-50%);
|
527 |
-
opacity: 0;
|
528 |
-
transition: all 0.3s ease;
|
529 |
-
font-size: 14px;
|
530 |
-
line-height: 1.4;
|
531 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
532 |
-
white-space: normal;
|
533 |
-
}
|
534 |
-
|
535 |
-
.tooltip:hover .tooltip-text {
|
536 |
-
visibility: visible;
|
537 |
-
opacity: 1;
|
538 |
-
}
|
539 |
-
|
540 |
-
.score-badge {
|
541 |
-
background-color: #34C759;
|
542 |
-
color: white;
|
543 |
-
padding: 6px 12px;
|
544 |
-
border-radius: 20px;
|
545 |
-
font-size: 0.9em;
|
546 |
-
margin-left: 10px;
|
547 |
-
font-weight: 500;
|
548 |
-
box-shadow: 0 2px 4px rgba(52, 199, 89, 0.2);
|
549 |
-
}
|
550 |
-
|
551 |
-
.bonus-score .tooltip-text {
|
552 |
-
width: 250px;
|
553 |
-
line-height: 1.4;
|
554 |
-
padding: 10px;
|
555 |
-
}
|
556 |
-
|
557 |
-
.bonus-score .progress {
|
558 |
-
background: linear-gradient(90deg, #48bb78, #68d391);
|
559 |
-
}
|
560 |
-
|
561 |
-
.health-section {
|
562 |
-
margin: 25px 0;
|
563 |
-
padding: 24px;
|
564 |
-
background-color: #f8f9fb;
|
565 |
-
border-radius: 12px;
|
566 |
-
border: 1px solid #e1e4e8;
|
567 |
-
}
|
568 |
-
|
569 |
-
.health-section .subsection-title {
|
570 |
-
font-size: 1.3em;
|
571 |
-
font-weight: 600;
|
572 |
-
margin-bottom: 20px;
|
573 |
-
display: flex;
|
574 |
-
align-items: center;
|
575 |
-
gap: 8px;
|
576 |
-
color: #2c3e50;
|
577 |
-
}
|
578 |
-
|
579 |
-
.health-info {
|
580 |
-
background-color: white;
|
581 |
-
padding: 24px;
|
582 |
-
border-radius: 8px;
|
583 |
-
margin: 15px 0;
|
584 |
-
border: 1px solid #e1e4e8;
|
585 |
-
}
|
586 |
-
|
587 |
-
.health-details {
|
588 |
-
font-size: 1.1rem;
|
589 |
-
line-height: 1.6;
|
590 |
-
}
|
591 |
-
|
592 |
-
.health-details h4 {
|
593 |
-
color: #2c3e50;
|
594 |
-
font-size: 1.15rem;
|
595 |
-
font-weight: 600;
|
596 |
-
margin: 20px 0 15px 0;
|
597 |
-
}
|
598 |
-
|
599 |
-
.health-details h4:first-child {
|
600 |
-
margin-top: 0;
|
601 |
-
}
|
602 |
-
|
603 |
-
.health-details ul {
|
604 |
-
list-style-type: none;
|
605 |
-
padding-left: 0;
|
606 |
-
margin: 0 0 25px 0;
|
607 |
-
}
|
608 |
-
|
609 |
-
.health-details ul li {
|
610 |
-
margin-bottom: 12px;
|
611 |
-
padding-left: 20px;
|
612 |
-
position: relative;
|
613 |
-
}
|
614 |
-
|
615 |
-
.health-details ul li:before {
|
616 |
-
content: "•";
|
617 |
-
position: absolute;
|
618 |
-
left: 0;
|
619 |
-
color: #2c3e50;
|
620 |
-
}
|
621 |
-
|
622 |
-
.health-disclaimer {
|
623 |
-
margin-top: 20px;
|
624 |
-
padding-top: 20px;
|
625 |
-
border-top: 1px solid #e1e4e8;
|
626 |
-
}
|
627 |
-
|
628 |
-
.health-disclaimer p {
|
629 |
-
margin: 6px 0;
|
630 |
-
padding-left: 20px;
|
631 |
-
position: relative;
|
632 |
-
color: #888; /* 統一設定灰色 */
|
633 |
-
font-size: 0.95rem;
|
634 |
-
line-height: 1.5;
|
635 |
-
font-style: italic;
|
636 |
-
}
|
637 |
-
|
638 |
-
.health-disclaimer p:before {
|
639 |
-
content: "›";
|
640 |
-
position: absolute;
|
641 |
-
left: 0;
|
642 |
-
color: #999;
|
643 |
-
font-style: normal;
|
644 |
-
font-weight: 500;
|
645 |
-
}
|
646 |
-
|
647 |
-
.health-disclaimer p:first-child {
|
648 |
-
font-style: normal; /* 取消斜體 */
|
649 |
-
font-weight: 500; /* 加粗 */
|
650 |
-
color: #666; /* 稍深的灰色 */
|
651 |
-
}
|
652 |
-
|
653 |
-
.health-disclaimer p span,
|
654 |
-
.health-disclaimer p strong,
|
655 |
-
.health-disclaimer p em {
|
656 |
-
color: inherit;
|
657 |
-
}
|
658 |
-
|
659 |
-
.history-container {
|
660 |
-
max-width: 800px;
|
661 |
-
margin: 0 auto;
|
662 |
-
padding: 20px;
|
663 |
-
}
|
664 |
-
|
665 |
-
.history-entry {
|
666 |
-
background-color: #f8f9fa;
|
667 |
-
border-radius: 8px;
|
668 |
-
padding: 15px;
|
669 |
-
margin-bottom: 20px;
|
670 |
-
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
671 |
-
}
|
672 |
-
|
673 |
-
.history-header {
|
674 |
-
display: flex;
|
675 |
-
justify-content: space-between;
|
676 |
-
align-items: center;
|
677 |
-
margin-bottom: 10px;
|
678 |
-
padding-bottom: 10px;
|
679 |
-
border-bottom: 1px solid #eee;
|
680 |
-
}
|
681 |
-
|
682 |
-
.timestamp {
|
683 |
-
color: #666;
|
684 |
-
font-size: 0.9em;
|
685 |
-
}
|
686 |
-
|
687 |
-
.delete-btn {
|
688 |
-
background: none;
|
689 |
-
border: none;
|
690 |
-
cursor: pointer;
|
691 |
-
font-size: 1.2em;
|
692 |
-
padding: 5px;
|
693 |
-
}
|
694 |
-
|
695 |
-
.delete-btn:hover {
|
696 |
-
color: #dc3545;
|
697 |
-
}
|
698 |
-
|
699 |
-
.search-params ul {
|
700 |
-
list-style: none;
|
701 |
-
padding-left: 20px;
|
702 |
-
}
|
703 |
-
|
704 |
-
.search-params li {
|
705 |
-
margin: 5px 0;
|
706 |
-
color: #555;
|
707 |
-
}
|
708 |
-
|
709 |
-
.top-results ol {
|
710 |
-
padding-left: 25px;
|
711 |
-
}
|
712 |
-
|
713 |
-
.top-results li {
|
714 |
-
margin: 5px 0;
|
715 |
-
color: #333;
|
716 |
-
}
|
717 |
-
|
718 |
-
.breed-item {
|
719 |
-
display: flex;
|
720 |
-
justify-content: space-between;
|
721 |
-
align-items: center;
|
722 |
-
padding: 12px 16px;
|
723 |
-
margin: 8px 0;
|
724 |
-
background-color: white;
|
725 |
-
border-radius: 6px;
|
726 |
-
border: 1px solid #e1e4e8;
|
727 |
-
transition: all 0.2s ease;
|
728 |
-
}
|
729 |
-
|
730 |
-
.breed-item:hover {
|
731 |
-
transform: translateX(5px);
|
732 |
-
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
733 |
-
}
|
734 |
-
|
735 |
-
.breed-rank {
|
736 |
-
font-weight: 600;
|
737 |
-
color: #666;
|
738 |
-
margin-right: 12px;
|
739 |
-
min-width: 30px;
|
740 |
-
}
|
741 |
-
|
742 |
-
.breed-name {
|
743 |
-
flex: 1;
|
744 |
-
font-weight: 500;
|
745 |
-
color: #2c3e50;
|
746 |
-
padding: 0 12px;
|
747 |
-
}
|
748 |
-
|
749 |
-
.breed-score {
|
750 |
-
font-weight: 600;
|
751 |
-
color: #34C759;
|
752 |
-
padding: 4px 8px;
|
753 |
-
border-radius: 20px;
|
754 |
-
background-color: rgba(52, 199, 89, 0.1);
|
755 |
-
min-width: 70px;
|
756 |
-
text-align: center;
|
757 |
-
}
|
758 |
-
|
759 |
-
.history-entry {
|
760 |
-
background-color: #f8f9fa;
|
761 |
-
border-radius: 12px;
|
762 |
-
padding: 20px;
|
763 |
-
margin-bottom: 25px;
|
764 |
-
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
765 |
-
border: 1px solid #e1e4e8;
|
766 |
-
}
|
767 |
-
|
768 |
-
.history-header {
|
769 |
-
margin-bottom: 15px;
|
770 |
-
padding-bottom: 12px;
|
771 |
-
border-bottom: 1px solid #e1e4e8;
|
772 |
-
}
|
773 |
-
|
774 |
-
.history-header .timestamp {
|
775 |
-
color: #666;
|
776 |
-
font-size: 0.9em;
|
777 |
-
display: flex;
|
778 |
-
align-items: center;
|
779 |
-
gap: 6px;
|
780 |
-
}
|
781 |
-
|
782 |
-
h4 {
|
783 |
-
color: #2c3e50;
|
784 |
-
font-size: 1.1em;
|
785 |
-
margin: 18px 0 12px 0;
|
786 |
-
padding: 0;
|
787 |
-
}
|
788 |
-
|
789 |
-
.params-list ul {
|
790 |
-
list-style: none;
|
791 |
-
padding-left: 0;
|
792 |
-
margin: 10px 0;
|
793 |
-
}
|
794 |
-
|
795 |
-
.params-list li {
|
796 |
-
margin: 8px 0;
|
797 |
-
color: #4a5568;
|
798 |
-
display: flex;
|
799 |
-
align-items: center;
|
800 |
-
}
|
801 |
-
|
802 |
-
.empty-history {
|
803 |
-
text-align: center;
|
804 |
-
padding: 40px 20px;
|
805 |
-
color: #666;
|
806 |
-
font-size: 1.1em;
|
807 |
-
background-color: #f8f9fa;
|
808 |
-
border-radius: 12px;
|
809 |
-
border: 1px dashed #e1e4e8;
|
810 |
-
margin: 20px 0;
|
811 |
-
}
|
812 |
-
|
813 |
-
.noise-section {
|
814 |
-
margin: 25px 0;
|
815 |
-
padding: 24px;
|
816 |
-
background-color: #f8f9fb;
|
817 |
-
border-radius: 12px;
|
818 |
-
border: 1px solid #e1e4e8;
|
819 |
-
}
|
820 |
-
|
821 |
-
.noise-info {
|
822 |
-
background-color: white;
|
823 |
-
padding: 24px;
|
824 |
-
border-radius: 8px;
|
825 |
-
margin: 15px 0;
|
826 |
-
border: 1px solid #e1e4e8;
|
827 |
-
}
|
828 |
-
|
829 |
-
.noise-details {
|
830 |
-
font-size: 1.1rem;
|
831 |
-
line-height: 1.6;
|
832 |
-
}
|
833 |
-
|
834 |
-
.noise-level {
|
835 |
-
margin-bottom: 20px;
|
836 |
-
padding: 10px 15px;
|
837 |
-
background: #f8f9fa;
|
838 |
-
border-radius: 6px;
|
839 |
-
font-weight: 500;
|
840 |
-
}
|
841 |
-
|
842 |
-
.noise-level-block {
|
843 |
-
background: #f8f9fa;
|
844 |
-
padding: 12px 16px;
|
845 |
-
border-radius: 6px;
|
846 |
-
margin: 16px 0;
|
847 |
-
}
|
848 |
-
|
849 |
-
.noise-notes {
|
850 |
-
font-family: inherit;
|
851 |
-
white-space: pre-wrap;
|
852 |
-
margin: 15px 0;
|
853 |
-
padding: 0;
|
854 |
-
background: transparent;
|
855 |
-
border: none;
|
856 |
-
font-size: 1.1rem;
|
857 |
-
line-height: 1.6;
|
858 |
-
color: #333;
|
859 |
-
}
|
860 |
-
|
861 |
-
.characteristics-block, .health-considerations, .health-screenings {
|
862 |
-
margin-bottom: 24px;
|
863 |
-
}
|
864 |
-
|
865 |
-
.characteristics-block h4, .health-considerations h4, .health-screenings h4 {
|
866 |
-
color: #2c3e50;
|
867 |
-
font-size: 1.1em;
|
868 |
-
font-weight: 600;
|
869 |
-
margin-bottom: 12px;
|
870 |
-
}
|
871 |
-
|
872 |
-
.noise-details ul, .health-details ul {
|
873 |
-
list-style: none;
|
874 |
-
padding-left: 0;
|
875 |
-
margin: 0 0 20px 0;
|
876 |
-
}
|
877 |
-
|
878 |
-
.noise-details li, .health-details li {
|
879 |
-
padding-left: 20px;
|
880 |
-
position: relative;
|
881 |
-
margin-bottom: 10px;
|
882 |
-
line-height: 1.5;
|
883 |
-
}
|
884 |
-
|
885 |
-
.noise-details li:before, .health-details li:before {
|
886 |
-
content: "•";
|
887 |
-
position: absolute;
|
888 |
-
left: 0;
|
889 |
-
color: #666;
|
890 |
-
}
|
891 |
-
|
892 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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