Repository navigation
Expand file tree
/
Copy path--component-css
More file actions
1524 lines (1376 loc) · 105 KB
/
Copy path--component-css
File metadata and controls
1524 lines (1376 loc) · 105 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" class="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Untitled</title>
<style id="theme-vars">
/*
* Pinguo design tokens
* Brand: Pinguo
* Domain: Consumer imaging product
* Style: Restrained, elegant, Apple-inspired
* Theme mode: light-dark
* Source language: zh
* Output language: en
*
* Color architecture (two layers):
* 1. Primitive palette - six categories. brand / background / text / icon
* are each a 10-step scale (50 lightest to 900 darkest). state-success and
* state-error are functional colors anchored on Apple system colors.
* Anchors follow Apple Human Interface Guidelines system colors
* (System Blue #007AFF, System Green #34C759, System Red #FF3B30,
* system grays / label / background colors).
* 2. Semantic tokens - :root (light) and .dark map roles onto primitives.
* Components and UI kits must only consume the semantic tokens below.
*/
/* @group-priority: brand, background, text, icon, state-success, state-error */
:root {
/* ===== PRIMITIVE PALETTE ===== */
/* brand */
--brand-50: #e8f2ff;
--brand-100: #cfe5ff;
--brand-200: #9fcbff;
--brand-300: #66abff;
--brand-400: #2e8dff;
--brand-500: #007aff; /* @primary */
--brand-600: #0064d6;
--brand-700: #004fad;
--brand-800: #003b82;
--brand-900: #00275a;
/* background */
--background-50: #ffffff;
--background-100: #f7f7fa;
--background-200: #f2f2f7;
--background-300: #e5e5ea;
--background-400: #d1d1d6;
--background-500: #aeaeb2;
--background-600: #8e8e93;
--background-700: #3a3a3c;
--background-800: #1c1c1e;
--background-900: #000000;
/* text */
--text-50: #f5f5f7;
--text-100: #e3e3e8;
--text-200: #c7c7cc;
--text-300: #aeaeb2;
--text-400: #8e8e93;
--text-500: #6e6e73;
--text-600: #48484a;
--text-700: #3c3c43;
--text-800: #1d1d1f;
--text-900: #000000;
/* icon */
--icon-50: #f5f5f7;
--icon-100: #e5e5ea;
--icon-200: #d1d1d6;
--icon-300: #c7c7cc;
--icon-400: #aeaeb2;
--icon-500: #8e8e93;
--icon-600: #6e6e73;
--icon-700: #48484a;
--icon-800: #2c2c2e;
--icon-900: #1d1d1f;
/* state-success */
--state-success: #34c759; /* @primary */
--state-success-dark: #30d158;
--state-success-surface: #e9f9ee;
--state-success-foreground: #ffffff;
/* state-error */
--state-error: #ff3b30; /* @primary */
--state-error-dark: #ff453a;
--state-error-surface: #ffecea;
--state-error-foreground: #ffffff;
/* ===== SEMANTIC ROLES ===== */
/* semantic */
--background: var(--background-50);
--foreground: var(--text-800);
--card: var(--background-50);
--card-foreground: var(--text-800);
--popover: var(--background-50);
--popover-foreground: var(--text-900);
--primary: var(--brand-500);
--primary-foreground: var(--background-50);
--secondary: var(--background-200);
--secondary-foreground: var(--text-800);
--muted: var(--background-200);
--muted-foreground: var(--text-400);
--accent: var(--background-100);
--accent-foreground: var(--text-800);
--destructive: var(--state-error);
--destructive-foreground: var(--state-error-foreground);
--success: var(--state-success);
--success-foreground: var(--state-success-foreground);
--border: var(--background-300);
--input: var(--background-400);
--ring: var(--brand-500);
--icon: var(--icon-900);
--icon-muted: var(--icon-500);
/* chart */
--chart-1: var(--state-success);
--chart-2: var(--brand-500);
--chart-3: #ff9500;
--chart-4: #5856d6;
--chart-5: #af52de;
/* sidebar */
--sidebar: var(--background-200);
--sidebar-foreground: var(--text-800);
--sidebar-primary: var(--brand-500);
--sidebar-primary-foreground: var(--background-50);
--sidebar-accent: var(--background-300);
--sidebar-accent-foreground: var(--text-800);
--sidebar-border: var(--background-300);
--sidebar-ring: var(--brand-500);
/* TYPOGRAPHY */
--font-sans: DM Sans, ui-sans-serif, sans-serif, system-ui;
--font-serif: DM Sans, ui-sans-serif, sans-serif, system-ui;
--font-mono: JetBrains Mono, monospace;
--tracking-normal: 0em;
/* RADIUS */
--radius: 1.2rem;
/* SHADOWS */
--shadow-2xs: 0 1px 2px -1px rgba(0, 0, 0, 0.04); /* Hairline */
--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04); /* Subtle */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 3px -1px rgba(0, 0, 0, 0.05); /* Card */
--shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.05); /* Raised */
--shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.05); /* Card Hover */
--shadow-lg: 0 8px 24px -8px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.05); /* Float */
--shadow-xl: 0 16px 40px -10px rgba(0, 0, 0, 0.10), 0 8px 16px -8px rgba(0, 0, 0, 0.06); /* Overlay */
--shadow-2xl: 0 24px 64px -12px rgba(0, 0, 0, 0.12); /* Modal */
/* SPACING */
--spacing: 0.24rem;
}
/* ===== SEMANTIC ROLES - dark (primitive palette inherited) ===== */
.dark {
--background: var(--background-900);
--foreground: var(--text-50);
--card: var(--background-800);
--card-foreground: var(--text-50);
--popover: var(--background-700);
--popover-foreground: var(--text-50);
--primary: var(--brand-400);
--primary-foreground: var(--background-900);
--secondary: var(--background-800);
--secondary-foreground: var(--text-50);
--muted: var(--background-800);
--muted-foreground: var(--text-400);
--accent: var(--background-700);
--accent-foreground: var(--text-50);
--destructive: var(--state-error-dark);
--destructive-foreground: var(--state-error-foreground);
--success: var(--state-success-dark);
--success-foreground: var(--state-success-foreground);
--border: var(--background-700);
--input: var(--background-700);
--ring: var(--brand-400);
--icon: var(--icon-50);
--icon-muted: var(--icon-500);
--chart-1: var(--state-success-dark);
--chart-2: var(--brand-400);
--chart-3: #ff9f0a;
--chart-4: #5e5ce6;
--chart-5: #bf5af2;
--sidebar: var(--background-800);
--sidebar-foreground: var(--text-50);
--sidebar-primary: var(--brand-400);
--sidebar-primary-foreground: var(--background-900);
--sidebar-accent: var(--background-700);
--sidebar-accent-foreground: var(--text-50);
--sidebar-border: var(--background-700);
--sidebar-ring: var(--brand-400);
--shadow-2xs: 0 1px 2px -1px rgba(0, 0, 0, 0.30);
--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.30);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.36), 0 1px 3px -1px rgba(0, 0, 0, 0.36);
--shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.40), 0 1px 2px -1px rgba(0, 0, 0, 0.36);
--shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.44), 0 2px 4px -2px rgba(0, 0, 0, 0.36);
--shadow-lg: 0 8px 24px -8px rgba(0, 0, 0, 0.50), 0 4px 8px -4px rgba(0, 0, 0, 0.40);
--shadow-xl: 0 16px 40px -10px rgba(0, 0, 0, 0.55), 0 8px 16px -8px rgba(0, 0, 0, 0.44);
--shadow-2xl: 0 24px 64px -12px rgba(0, 0, 0, 0.60);
}
</style>
<style id="component-vars">
/*
* components.css - aggregated component CSS
* Auto-extracted from preview/component-*.html files.
* DO NOT EDIT. Regenerate with extract-components-css.mjs.
*
* Foundation tokens live in colors_and_type.css.
* This file consumes those tokens via var(--*) references.
*/
/* ============================================================
* Button
* source: preview/component-button.html
* rules: 10
*/
/* @anatomy
<div class="row"><span class="label">Primary 56</span><button class="btn btn-primary btn-lg">Buy now</button><button class="btn btn-primary btn-lg" disabled>Buy now</button></div>
*/
.btn{display:inline-flex;align-items:center;justify-content:center;gap:calc(var(--spacing)*1.5);height:40px;padding:0 20px;border:none;border-radius:calc(var(--radius)*2);background:transparent;color:var(--foreground);font:600 14px/1 var(--font-sans);letter-spacing:var(--tracking-normal);white-space:nowrap;box-shadow:var(--shadow-sm);cursor:pointer;transition:background-color .18s ease,color .18s ease,opacity .18s ease,filter .18s ease}
.btn:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.btn:disabled{opacity:.42;cursor:not-allowed}
.btn-primary{background:var(--primary);color:var(--primary-foreground)}
.btn-primary:hover{filter:brightness(.96)}
.btn-secondary{height:48px;padding:0 24px;background:var(--secondary);color:var(--secondary-foreground)}
.btn-secondary:hover{background:var(--muted)}
.btn-text{height:48px;padding:0 4px;box-shadow:none}
.btn-text:hover{color:var(--primary)}
.btn-lg{height:56px;padding:0 28px;font-size:16px}
/* ============================================================
* Card
* source: preview/component-card.html
* rules: 12
*/
/* @anatomy
<div class="row">
<span class="label">Info</span>
<article class="card">
<div><div class="eyebrow">Pinguo Apple</div>
*/
.card{width:188px;min-height:148px;padding:calc(var(--spacing)*5);display:flex;flex-direction:column;justify-content:space-between;background:var(--card);color:var(--card-foreground);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);transition:transform .18s ease,box-shadow .18s ease}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.card.disabled,.card.disabled:hover{opacity:.5;transform:none;box-shadow:var(--shadow-md)}
.eyebrow,.meta{color:var(--muted-foreground);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.title{margin:6px 0 8px;font-size:18px;line-height:1.15}
.body-copy{margin:0;color:var(--muted-foreground);font-size:13px}
.cta{display:inline-flex;align-items:center;justify-content:center;width:max-content;margin-top:12px;padding:calc(var(--spacing)*2) calc(var(--spacing)*3.5);border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:12px;font-weight:700;text-decoration:none}
.media{aspect-ratio:4/3;border-radius:calc(var(--radius) - 4px);background:linear-gradient(135deg,var(--secondary),var(--accent));border:1px solid var(--border)}
.media-card{min-height:212px;padding:calc(var(--spacing)*4)}
.media-card .title{font-size:16px;margin:10px 0 6px}
.price{font-size:12px;color:var(--muted-foreground)}
.dark{background:var(--card);color:var(--card-foreground)}
/* ============================================================
* Comparison Table
* source: preview/component-comparison-table.html
* rules: 13
*/
/* @anatomy
<div class="row"><span class="label">Default</span><div class="t"><div class="c m">Compare models</div>
*/
.t{display:grid;grid-template-columns:96px repeat(3,1fr);overflow:hidden;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)}
.q{grid-template-columns:82px repeat(4,1fr)}
.c{padding:10px;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.t>.c:nth-child(4n),.q>.c:nth-child(5n){border-right:0}
.t>.c:nth-last-child(-n+4),.q>.c:nth-last-child(-n+5){border-bottom:0}
.m{background:var(--background);color:var(--muted-foreground);font:700 10px/1 var(--font-mono);letter-spacing:.12em;text-transform:uppercase}
.h{background:var(--background);font-weight:700}
.k{display:block;font-size:14px;line-height:1.1}
.s{display:block;margin-top:4px;color:var(--chart-2);font-size:11px;font-weight:700}
.b .k{color:var(--chart-2)}
.v{font-weight:600}
.n{color:var(--muted-foreground);font-size:12px}
.x{opacity:.45}
/* ============================================================
* Input
* source: preview/component-input.html
* rules: 10
*/
/* @anatomy
<div class="row">
<span class="label">Search 44</span>
<div class="field">
<span class="icon">⌕</span>
<input class="control" aria-label="Search products" placeholder="Search products">
<button class="clear" type="button" aria-label="Clear search">×</button>
</div>
*/
.surface{display:flex;gap:calc(var(--spacing)*2);padding:calc(var(--spacing)*3);border:1px solid var(--border);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-sm)}
.dark{background:var(--background);color:var(--foreground)}
.field{display:flex;align-items:center;gap:calc(var(--spacing)*2);min-width:240px;height:44px;padding:0 calc(var(--spacing)*3);border:1px solid var(--input);border-radius:var(--radius);background:var(--background);color:var(--foreground);box-shadow:var(--shadow-xs)}
.field.small{height:40px}
.field:focus-within{border-color:var(--ring);box-shadow:0 0 0 1px var(--ring)}
.field.disabled{opacity:.55}
.icon,.clear{padding:0;border:0;background:transparent;color:var(--icon-muted);font:inherit}
.icon{font-size:13px}
.control{flex:1;border:0;outline:0;background:transparent;color:inherit;font:inherit}
.control::placeholder{color:var(--muted-foreground)}
/* ============================================================
* Navigation
* source: preview/component-navigation.html
* rules: 16
*/
/* @anatomy
<div class="row"><span class="label">Global 44</span><nav class="webbar dark" aria-label="Pinguo Apple global navigation"><span class="brand">Pinguo Apple</span><div class="rail"><a class="link" href="#">Store</a><a class="link" href="#">Explore</a><a class="link" href="#">Community</a><a class="link" href="#">Support</a></div>
*/
.webbar,.mobile{border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.webbar{display:flex;align-items:center;gap:calc(var(--spacing)*2);min-width:320px;height:44px;padding:0 calc(var(--spacing)*3);border-radius:var(--radius);background:var(--sidebar)}
.brand{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.link,.tab{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:inherit;text-decoration:none;white-space:nowrap;transition:background-color .18s ease,color .18s ease,opacity .18s ease}
.link{height:32px;padding:0 calc(var(--spacing)*2.5)}
.link:hover,.tab:hover{background:var(--secondary)}
.link:focus-visible,.tab:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.dark{background:var(--sidebar);color:var(--foreground)}
.disabled{opacity:.48}
.disabled .link,.disabled .tab{pointer-events:none}
.mobile{padding:calc(var(--spacing)*2);border-radius:calc(var(--radius)*1.1);background:var(--card)}
.screen{display:flex;align-items:flex-end;justify-content:center;width:188px;height:164px;padding:calc(var(--spacing)*3);border-radius:calc(var(--radius)*.9);background:linear-gradient(180deg,var(--background),var(--secondary))}
.tabbar{display:flex;gap:calc(var(--spacing)*1.5);padding:calc(var(--spacing)*1.5);border:1px solid var(--border);border-radius:999px;background:var(--card);box-shadow:var(--shadow-md)}
.tab{flex-direction:column;gap:2px;min-width:56px;height:56px;padding:0 calc(var(--spacing)*1.5);font-size:11px;text-align:center}
.dot{width:18px;height:18px;border-radius:999px;background:var(--secondary);box-shadow:inset 0 0 0 1px var(--border)}
.tab:hover .dot{background:var(--primary)}
/* ============================================================
* Product Grid
* source: preview/component-product-grid.html
* rules: 12
*/
/* @anatomy
<div class="row">
<span class="label">4-up</span>
<div class="grid grid-4">
<article class="card"><div class="media"></div>
*/
.grid{display:grid;gap:8px;flex:1}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-xs);transition:border-color .2s ease,transform .2s ease}
.card:hover{border-color:var(--primary);transform:translateY(-1px)}
.media{aspect-ratio:1;border-radius:calc(var(--radius) - 4px);background:linear-gradient(135deg,var(--secondary),var(--background));border:1px solid var(--border)}
.eyebrow{color:var(--muted-foreground);font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.title{font-size:15px;line-height:1.25}
.price{font-variant-numeric:tabular-nums}
.cta{display:inline-flex;align-self:flex-start;padding:7px 10px;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:12px;text-decoration:none}
.muted{color:var(--muted-foreground)}
.is-disabled{opacity:.55}
</style>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.1/dist/index.global.js"></script>
<script src="https://unpkg.com/lucide@1.8.0/dist/umd/lucide.min.js"></script>
<style type="text/tailwindcss">
@theme inline {
--color-foreground: var(--card-foreground);
}
@layer base {
body { background: var(--card-background); color: var(--card-foreground); }
td, th { @apply break-words; word-break: break-all; word-break: auto-phrase; }
th { @apply whitespace-nowrap; }
}
</style>
<style>
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
[data-icon] {
display: inline-flex;
align-items: center;
justify-content: center;
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
background-color: currentColor;
}
</style>
</head>
<body class="font-sans antialiased overflow-x-hidden" style="max-width:100%;background:var(--background);color:var(--foreground)">
<!-- ============================== STATUS BAR SPACER ============================== -->
<div class="h-11 shrink-0" aria-hidden="true" style="background:transparent"></div>
<!-- ============================== TOP BAR ============================== -->
<header class="sticky top-0 z-30 w-full" style="backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:color-mix(in srgb,var(--background-50) 85%,transparent);border-bottom:1px solid var(--background-300)">
<div class="flex items-center justify-center" style="height:44px;padding:0 16px">
<h1 class="text-center truncate" style="font-size:17px;font-weight:600;letter-spacing:-0.02em;color:var(--text-800)">ToneLab</h1>
</div>
</header>
<!-- ============================== MAIN CONTENT AREA ============================== -->
<main id="main-content" style="padding-top:0;padding-left:0;padding-right:0;padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px))">
<!-- ========== 1. HERO BANNER: skin-tone spectrum gradient ========== -->
<section style="margin:0;padding:0 16px 32px;background:linear-gradient(180deg, #FDDCBD 0%, #E8D5F0 40%, #B8D4FF 100%);padding-top:32px;padding-bottom:40px">
<div style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px">
<span style="font-size:36px;font-weight:700;letter-spacing:-0.03em;color:var(--text-800);text-wrap:balance;line-height:1.1">ToneLab</span>
<h2 style="margin:0;font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-0.015em;color:var(--text-800);text-wrap:balance">发现你的专属色彩密码</h2>
<p style="margin:0;font-size:15px;line-height:1.55;color:var(--text-600)">AI 智能肤色分析,定制美丽方案</p>
<a class="btn btn-primary btn-lg" data-dom-id="cta-upload" href="#" style="margin-top:8px;text-decoration:none;border-radius:999px;padding:0 32px;width:100%;max-width:320px">开始分析</a>
<p style="margin:4px 0 0;font-size:12px;color:var(--text-500)">12,000+ 用户已完成分析</p>
</div>
</section>
<!-- ========== 2. FEATURED SECTION ========== -->
<section style="padding:24px 0 16px">
<div style="padding:0 16px">
<h3 style="margin:0 0 16px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text-800);display:flex;align-items:center;gap:8px">
<span style="display:block;width:3px;height:20px;border-radius:2px;background:var(--primary);flex-shrink:0" aria-hidden="true"></span>
核心功能
</h3>
</div>
<div style="display:flex;flex-direction:column;gap:12px;padding:0 16px">
<!-- Feature Card 1 -->
<article style="display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:calc(var(--radius)*.6);background:var(--brand-50);color:var(--primary);flex-shrink:0">
<i data-lucide="scan-face" style="width:22px;height:22px"></i>
</div>
<div style="flex:1;min-width:0">
<h4 style="margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.3;color:var(--text-800)">AI 智能分析</h4>
<p style="margin:0;font-size:14px;line-height:1.5;color:var(--text-400)">上传素颜照,深度学习精准识别肤色类型与色调</p>
</div>
</article>
<!-- Feature Card 2 -->
<article style="display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:calc(var(--radius)*.6);background:var(--brand-50);color:var(--primary);flex-shrink:0">
<i data-lucide="palette" style="width:22px;height:22px"></i>
</div>
<div style="flex:1;min-width:0">
<h4 style="margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.3;color:var(--text-800)">个性化推荐</h4>
<p style="margin:0;font-size:14px;line-height:1.5;color:var(--text-400)">化妆品、衣物颜色、水晶配饰,量身定制</p>
</div>
</article>
</div>
</section>
<!-- ========== 3. HOW IT WORKS: 3 horizontal steps ========== -->
<section style="padding:24px 0 16px">
<div style="padding:0 16px">
<h3 style="margin:0 0 16px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text-800);display:flex;align-items:center;gap:8px">
<span style="display:block;width:3px;height:20px;border-radius:2px;background:var(--primary);flex-shrink:0" aria-hidden="true"></span>
使用流程
</h3>
</div>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 16px">
<!-- Step 1 -->
<article style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:700;flex-shrink:0">1</div>
<h4 style="margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--text-800)">上传照片</h4>
<p style="margin:0;font-size:12px;line-height:1.5;color:var(--text-400)">3-5 张素颜照</p>
</article>
<!-- Step 2 -->
<article style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:700;flex-shrink:0">2</div>
<h4 style="margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--text-800)">AI 分析</h4>
<p style="margin:0;font-size:12px;line-height:1.5;color:var(--text-400)">深度肤色识别</p>
</article>
<!-- Step 3 -->
<article style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:700;flex-shrink:0">3</div>
<h4 style="margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--text-800)">获取方案</h4>
<p style="margin:0;font-size:12px;line-height:1.5;color:var(--text-400)">个性化推荐</p>
</article>
</div>
</section>
<!-- ========== 3.5. KFP-KCI 12-TYPE PIE CHART SECTION (NEW) ========== -->
<section style="padding:24px 0 16px">
<div style="padding:0 16px">
<h3 style="margin:0 0 4px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text-800);display:flex;align-items:center;gap:8px">
<span style="display:block;width:3px;height:20px;border-radius:2px;background:var(--primary);flex-shrink:0" aria-hidden="true"></span>
KFP-KCI 韩式 12 分型
</h3>
<p style="margin:0 0 16px;font-size:13px;line-height:1.5;color:var(--text-400);padding-left:11px">点击色型了解详细特征与推荐</p>
</div>
<!-- Donut Chart Container -->
<div style="display:flex;flex-direction:column;align-items:center;padding:0 16px">
<div style="position:relative;width:100%;max-width:280px;aspect-ratio:1/1">
<!-- Donut Ring -->
<div style="position:absolute;inset:0;border-radius:50%;background:conic-gradient(
var(--chart-1) 0deg 30deg,
var(--chart-2) 30deg 60deg,
var(--chart-3) 60deg 90deg,
var(--chart-4) 90deg 120deg,
var(--chart-5) 120deg 150deg,
var(--brand-500) 150deg 180deg,
var(--brand-600) 180deg 210deg,
var(--brand-700) 210deg 240deg,
var(--brand-800) 240deg 270deg,
var(--state-error) 270deg 300deg,
var(--brand-300) 300deg 330deg,
var(--brand-900) 330deg 360deg
)"></div>
<!-- Inner Circle (donut hole) -->
<div style="position:absolute;top:20%;left:20%;width:60%;height:60%;border-radius:50%;background:var(--background-50);display:flex;flex-direction:column;align-items:center;justify-content:center">
<span style="font-size:36px;font-weight:700;line-height:1;color:var(--text-800)">12</span>
<span style="font-size:13px;font-weight:500;line-height:1;color:var(--text-400);margin-top:2px">色型</span>
</div>
<!-- 12 Clickable Sector Links -->
<!-- Sector 1: 亮春 Bright Spring 0-30deg -->
<a data-dom-id="pie-type-1" href="#" aria-label="亮春 Bright Spring" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(0deg)"></a>
<!-- Sector 2: 暖春 Warm Spring 30-60deg -->
<a data-dom-id="pie-type-2" href="#" aria-label="暖春 Warm Spring" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(30deg)"></a>
<!-- Sector 3: 柔春 Soft Spring 60-90deg -->
<a data-dom-id="pie-type-3" href="#" aria-label="柔春 Soft Spring" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(60deg)"></a>
<!-- Sector 4: 亮夏 Bright Summer 90-120deg -->
<a data-dom-id="pie-type-4" href="#" aria-label="亮夏 Bright Summer" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(90deg)"></a>
<!-- Sector 5: 冷夏 Cool Summer 120-150deg -->
<a data-dom-id="pie-type-5" href="#" aria-label="冷夏 Cool Summer" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(120deg)"></a>
<!-- Sector 6: 柔夏 Soft Summer 150-180deg -->
<a data-dom-id="pie-type-6" href="#" aria-label="柔夏 Soft Summer" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(150deg)"></a>
<!-- Sector 7: 亮秋 Bright Autumn 180-210deg -->
<a data-dom-id="pie-type-7" href="#" aria-label="亮秋 Bright Autumn" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(180deg)"></a>
<!-- Sector 8: 暖秋 Warm Autumn 210-240deg -->
<a data-dom-id="pie-type-8" href="#" aria-label="暖秋 Warm Autumn" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(210deg)"></a>
<!-- Sector 9: 柔秋 Soft Autumn 240-270deg -->
<a data-dom-id="pie-type-9" href="#" aria-label="柔秋 Soft Autumn" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(240deg)"></a>
<!-- Sector 10: 亮冬 Bright Winter 270-300deg -->
<a data-dom-id="pie-type-10" href="#" aria-label="亮冬 Bright Winter" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(270deg)"></a>
<!-- Sector 11: 冷冬 Cool Winter 300-330deg -->
<a data-dom-id="pie-type-11" href="#" aria-label="冷冬 Cool Winter" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(300deg)"></a>
<!-- Sector 12: 深冬 Deep Winter 330-360deg -->
<a data-dom-id="pie-type-12" href="#" aria-label="深冬 Deep Winter" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(330deg)"></a>
</div>
<!-- Legend: 3-column grid, 4 rows x 3 columns -->
<div style="width:100%;max-width:280px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px 8px;margin-top:20px">
<!-- Row 1: Spring -->
<a data-dom-id="pie-type-1" href="#" aria-label="亮春 Bright Spring" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-1);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮春</span>
</a>
<a data-dom-id="pie-type-2" href="#" aria-label="暖春 Warm Spring" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-2);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">暖春</span>
</a>
<a data-dom-id="pie-type-3" href="#" aria-label="柔春 Soft Spring" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-3);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">柔春</span>
</a>
<!-- Row 2: Summer -->
<a data-dom-id="pie-type-4" href="#" aria-label="亮夏 Bright Summer" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-4);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮夏</span>
</a>
<a data-dom-id="pie-type-5" href="#" aria-label="冷夏 Cool Summer" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-5);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">冷夏</span>
</a>
<a data-dom-id="pie-type-6" href="#" aria-label="柔夏 Soft Summer" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-500);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">柔夏</span>
</a>
<!-- Row 3: Autumn -->
<a data-dom-id="pie-type-7" href="#" aria-label="亮秋 Bright Autumn" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-600);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮秋</span>
</a>
<a data-dom-id="pie-type-8" href="#" aria-label="暖秋 Warm Autumn" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-700);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">暖秋</span>
</a>
<a data-dom-id="pie-type-9" href="#" aria-label="柔秋 Soft Autumn" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-800);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">柔秋</span>
</a>
<!-- Row 4: Winter -->
<a data-dom-id="pie-type-10" href="#" aria-label="亮冬 Bright Winter" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--state-error);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮冬</span>
</a>
<a data-dom-id="pie-type-11" href="#" aria-label="冷冬 Cool Winter" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-300);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">冷冬</span>
</a>
<a data-dom-id="pie-type-12" href="#" aria-label="深冬 Deep Winter" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-900);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">深冬</span>
</a>
</div>
</div>
</section>
<!-- ========== 4. CTA BANNER ========== -->
<section style="padding:24px 16px 32px">
<div style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:28px 20px;border-radius:var(--radius);background:var(--primary);color:var(--primary-foreground)">
<h3 style="margin:0;font-size:18px;font-weight:600;line-height:1.3;text-wrap:balance">准备好发现适合你的色彩了吗?</h3>
<a class="btn btn-lg" data-dom-id="cta-upload" href="#" style="margin-top:4px;text-decoration:none;border-radius:999px;height:48px;padding:0 32px;background:var(--background-50);color:var(--primary);font-weight:600;font-size:15px;border:none;box-shadow:var(--shadow-sm)">立即开始</a>
</div>
</section>
</main>
<!-- ============================== BOTTOM TAB BAR ============================== -->
<nav class="fixed bottom-0 left-0 right-0 z-40 flex items-start justify-around" style="background:var(--background-50);border-top:1px solid var(--background-300);padding-top:6px;padding-bottom:calc(2px + env(safe-area-inset-bottom, 0px))" aria-label="Tab navigation">
<!-- Tab 1: 首页 -->
<a class="tab-item" id="tab-index" data-tab-key="index" data-active="true" data-dom-id="tab-index" href="#" aria-label="首页" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--primary);transition:color .18s ease">
<i data-lucide="home" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">首页</span>
</a>
<!-- Tab 2: 分析 -->
<a class="tab-item" id="tab-upload" data-tab-key="upload" data-dom-id="tab-upload" href="#" aria-label="分析" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--text-400);transition:color .18s ease">
<i data-lucide="camera" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">分析</span>
</a>
<!-- Tab 3: 报告 -->
<a class="tab-item" id="tab-report" data-tab-key="report" data-dom-id="tab-report" href="#" aria-label="报告" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--text-400);transition:color .18s ease">
<i data-lucide="bar-chart-2" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">报告</span>
</a>
<!-- Tab 4: 推荐 -->
<a class="tab-item" id="tab-recommendations" data-tab-key="recommendations" data-dom-id="tab-recommendations" href="#" aria-label="推荐" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--text-400);transition:color .18s ease">
<i data-lucide="heart" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">推荐</span>
</a>
</nav>
<script>lucide.createIcons();</script>
</body>
</html>
</style>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.1/dist/index.global.js"></script>
<script src="https://unpkg.com/lucide@1.8.0/dist/umd/lucide.min.js"></script>
<style type="text/tailwindcss">
@layer base {
body { background: #ffffff; color: #0f172a; }
td, th { @apply break-words; word-break: break-all; word-break: auto-phrase; }
th { @apply whitespace-nowrap; }
}
</style>
<style>
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
[data-icon] {
display: inline-flex;
align-items: center;
justify-content: center;
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
background-color: currentColor;
}
</style>
</head>
<body class="font-sans antialiased overflow-x-hidden" style="max-width:100%;background:var(--background);color:var(--foreground)">
<!-- ============================== STATUS BAR SPACER ============================== -->
<div class="h-11 shrink-0" aria-hidden="true" style="background:transparent"></div>
<!-- ============================== TOP BAR ============================== -->
<header class="sticky top-0 z-30 w-full" style="backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:color-mix(in srgb,var(--background-50) 85%,transparent);border-bottom:1px solid var(--background-300)">
<div class="flex items-center justify-center" style="height:44px;padding:0 16px">
<h1 class="text-center truncate" style="font-size:17px;font-weight:600;letter-spacing:-0.02em;color:var(--text-800)">ToneLab</h1>
</div>
</header>
<!-- ============================== MAIN CONTENT AREA ============================== -->
<main id="main-content" style="padding-top:0;padding-left:0;padding-right:0;padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px))">
<!-- ========== 1. HERO BANNER: skin-tone spectrum gradient ========== -->
<section style="margin:0;padding:0 16px 32px;background:linear-gradient(180deg, #FDDCBD 0%, #E8D5F0 40%, #B8D4FF 100%);padding-top:32px;padding-bottom:40px">
<div style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px">
<span style="font-size:36px;font-weight:700;letter-spacing:-0.03em;color:var(--text-800);text-wrap:balance;line-height:1.1">ToneLab</span>
<h2 style="margin:0;font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-0.015em;color:var(--text-800);text-wrap:balance">发现你的专属色彩密码</h2>
<p style="margin:0;font-size:15px;line-height:1.55;color:var(--text-600)">AI 智能肤色分析,定制美丽方案</p>
<a class="btn btn-primary btn-lg" data-dom-id="cta-upload" href="#" style="margin-top:8px;text-decoration:none;border-radius:999px;padding:0 32px;width:100%;max-width:320px">开始分析</a>
<p style="margin:4px 0 0;font-size:12px;color:var(--text-500)">12,000+ 用户已完成分析</p>
</div>
</section>
<!-- ========== 2. FEATURED SECTION ========== -->
<section style="padding:24px 0 16px">
<div style="padding:0 16px">
<h3 style="margin:0 0 16px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text-800);display:flex;align-items:center;gap:8px">
<span style="display:block;width:3px;height:20px;border-radius:2px;background:var(--primary);flex-shrink:0" aria-hidden="true"></span>
核心功能
</h3>
</div>
<div style="display:flex;flex-direction:column;gap:12px;padding:0 16px">
<!-- Feature Card 1 -->
<article style="display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:calc(var(--radius)*.6);background:var(--brand-50);color:var(--primary);flex-shrink:0">
<i data-lucide="scan-face" style="width:22px;height:22px"></i>
</div>
<div style="flex:1;min-width:0">
<h4 style="margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.3;color:var(--text-800)">AI 智能分析</h4>
<p style="margin:0;font-size:14px;line-height:1.5;color:var(--text-400)">上传素颜照,深度学习精准识别肤色类型与色调</p>
</div>
</article>
<!-- Feature Card 2 -->
<article style="display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:calc(var(--radius)*.6);background:var(--brand-50);color:var(--primary);flex-shrink:0">
<i data-lucide="palette" style="width:22px;height:22px"></i>
</div>
<div style="flex:1;min-width:0">
<h4 style="margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.3;color:var(--text-800)">个性化推荐</h4>
<p style="margin:0;font-size:14px;line-height:1.5;color:var(--text-400)">化妆品、衣物颜色、水晶配饰,量身定制</p>
</div>
</article>
</div>
</section>
<!-- ========== 3. HOW IT WORKS: 3 horizontal steps ========== -->
<section style="padding:24px 0 16px">
<div style="padding:0 16px">
<h3 style="margin:0 0 16px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text-800);display:flex;align-items:center;gap:8px">
<span style="display:block;width:3px;height:20px;border-radius:2px;background:var(--primary);flex-shrink:0" aria-hidden="true"></span>
使用流程
</h3>
</div>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 16px">
<!-- Step 1 -->
<article style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:700;flex-shrink:0">1</div>
<h4 style="margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--text-800)">上传照片</h4>
<p style="margin:0;font-size:12px;line-height:1.5;color:var(--text-400)">3-5 张素颜照</p>
</article>
<!-- Step 2 -->
<article style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:700;flex-shrink:0">2</div>
<h4 style="margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--text-800)">AI 分析</h4>
<p style="margin:0;font-size:12px;line-height:1.5;color:var(--text-400)">深度肤色识别</p>
</article>
<!-- Step 3 -->
<article style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:16px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--card-foreground);box-shadow:var(--shadow-sm)">
<div style="width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:700;flex-shrink:0">3</div>
<h4 style="margin:0;font-size:15px;font-weight:600;line-height:1.25;color:var(--text-800)">获取方案</h4>
<p style="margin:0;font-size:12px;line-height:1.5;color:var(--text-400)">个性化推荐</p>
</article>
</div>
</section>
<!-- ========== 3.5. KFP-KCI 12-TYPE PIE CHART SECTION (NEW) ========== -->
<section style="padding:24px 0 16px">
<div style="padding:0 16px">
<h3 style="margin:0 0 4px;font-size:20px;font-weight:600;line-height:1.25;color:var(--text-800);display:flex;align-items:center;gap:8px">
<span style="display:block;width:3px;height:20px;border-radius:2px;background:var(--primary);flex-shrink:0" aria-hidden="true"></span>
KFP-KCI 韩式 12 分型
</h3>
<p style="margin:0 0 16px;font-size:13px;line-height:1.5;color:var(--text-400);padding-left:11px">点击色型了解详细特征与推荐</p>
</div>
<!-- Donut Chart Container -->
<div style="display:flex;flex-direction:column;align-items:center;padding:0 16px">
<div style="position:relative;width:100%;max-width:280px;aspect-ratio:1/1">
<!-- Donut Ring -->
<div style="position:absolute;inset:0;border-radius:50%;background:conic-gradient(
var(--chart-1) 0deg 30deg,
var(--chart-2) 30deg 60deg,
var(--chart-3) 60deg 90deg,
var(--chart-4) 90deg 120deg,
var(--chart-5) 120deg 150deg,
var(--brand-500) 150deg 180deg,
var(--brand-600) 180deg 210deg,
var(--brand-700) 210deg 240deg,
var(--brand-800) 240deg 270deg,
var(--state-error) 270deg 300deg,
var(--brand-300) 300deg 330deg,
var(--brand-900) 330deg 360deg
)"></div>
<!-- Inner Circle (donut hole) -->
<div style="position:absolute;top:20%;left:20%;width:60%;height:60%;border-radius:50%;background:var(--background-50);display:flex;flex-direction:column;align-items:center;justify-content:center">
<span style="font-size:36px;font-weight:700;line-height:1;color:var(--text-800)">12</span>
<span style="font-size:13px;font-weight:500;line-height:1;color:var(--text-400);margin-top:2px">色型</span>
</div>
<!-- 12 Clickable Sector Links -->
<!-- Sector 1: 亮春 Bright Spring 0-30deg -->
<a data-dom-id="pie-type-1" href="#" aria-label="亮春 Bright Spring" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(0deg)"></a>
<!-- Sector 2: 暖春 Warm Spring 30-60deg -->
<a data-dom-id="pie-type-2" href="#" aria-label="暖春 Warm Spring" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(30deg)"></a>
<!-- Sector 3: 柔春 Soft Spring 60-90deg -->
<a data-dom-id="pie-type-3" href="#" aria-label="柔春 Soft Spring" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(60deg)"></a>
<!-- Sector 4: 亮夏 Bright Summer 90-120deg -->
<a data-dom-id="pie-type-4" href="#" aria-label="亮夏 Bright Summer" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(90deg)"></a>
<!-- Sector 5: 冷夏 Cool Summer 120-150deg -->
<a data-dom-id="pie-type-5" href="#" aria-label="冷夏 Cool Summer" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(120deg)"></a>
<!-- Sector 6: 柔夏 Soft Summer 150-180deg -->
<a data-dom-id="pie-type-6" href="#" aria-label="柔夏 Soft Summer" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(150deg)"></a>
<!-- Sector 7: 亮秋 Bright Autumn 180-210deg -->
<a data-dom-id="pie-type-7" href="#" aria-label="亮秋 Bright Autumn" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(180deg)"></a>
<!-- Sector 8: 暖秋 Warm Autumn 210-240deg -->
<a data-dom-id="pie-type-8" href="#" aria-label="暖秋 Warm Autumn" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(210deg)"></a>
<!-- Sector 9: 柔秋 Soft Autumn 240-270deg -->
<a data-dom-id="pie-type-9" href="#" aria-label="柔秋 Soft Autumn" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(240deg)"></a>
<!-- Sector 10: 亮冬 Bright Winter 270-300deg -->
<a data-dom-id="pie-type-10" href="#" aria-label="亮冬 Bright Winter" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(270deg)"></a>
<!-- Sector 11: 冷冬 Cool Winter 300-330deg -->
<a data-dom-id="pie-type-11" href="#" aria-label="冷冬 Cool Winter" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(300deg)"></a>
<!-- Sector 12: 深冬 Deep Winter 330-360deg -->
<a data-dom-id="pie-type-12" href="#" aria-label="深冬 Deep Winter" style="position:absolute;top:0;left:50%;width:50%;height:50%;transform-origin:0% 100%;transform:rotate(330deg)"></a>
</div>
<!-- Legend: 3-column grid, 4 rows x 3 columns -->
<div style="width:100%;max-width:280px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px 8px;margin-top:20px">
<!-- Row 1: Spring -->
<a data-dom-id="pie-type-1" href="#" aria-label="亮春 Bright Spring" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-1);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮春</span>
</a>
<a data-dom-id="pie-type-2" href="#" aria-label="暖春 Warm Spring" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-2);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">暖春</span>
</a>
<a data-dom-id="pie-type-3" href="#" aria-label="柔春 Soft Spring" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-3);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">柔春</span>
</a>
<!-- Row 2: Summer -->
<a data-dom-id="pie-type-4" href="#" aria-label="亮夏 Bright Summer" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-4);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮夏</span>
</a>
<a data-dom-id="pie-type-5" href="#" aria-label="冷夏 Cool Summer" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--chart-5);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">冷夏</span>
</a>
<a data-dom-id="pie-type-6" href="#" aria-label="柔夏 Soft Summer" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-500);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">柔夏</span>
</a>
<!-- Row 3: Autumn -->
<a data-dom-id="pie-type-7" href="#" aria-label="亮秋 Bright Autumn" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-600);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮秋</span>
</a>
<a data-dom-id="pie-type-8" href="#" aria-label="暖秋 Warm Autumn" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-700);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">暖秋</span>
</a>
<a data-dom-id="pie-type-9" href="#" aria-label="柔秋 Soft Autumn" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-800);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">柔秋</span>
</a>
<!-- Row 4: Winter -->
<a data-dom-id="pie-type-10" href="#" aria-label="亮冬 Bright Winter" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--state-error);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">亮冬</span>
</a>
<a data-dom-id="pie-type-11" href="#" aria-label="冷冬 Cool Winter" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-300);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">冷冬</span>
</a>
<a data-dom-id="pie-type-12" href="#" aria-label="深冬 Deep Winter" style="display:flex;align-items:center;gap:6px;text-decoration:none">
<span style="display:block;width:12px;height:12px;border-radius:999px;background:var(--brand-900);flex-shrink:0" aria-hidden="true"></span>
<span style="font-size:13px;font-weight:500;line-height:1.2;color:var(--text-700)">深冬</span>
</a>
</div>
</div>
</section>
<!-- ========== 4. CTA BANNER ========== -->
<section style="padding:24px 16px 32px">
<div style="display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:28px 20px;border-radius:var(--radius);background:var(--primary);color:var(--primary-foreground)">
<h3 style="margin:0;font-size:18px;font-weight:600;line-height:1.3;text-wrap:balance">准备好发现适合你的色彩了吗?</h3>
<a class="btn btn-lg" data-dom-id="cta-upload" href="#" style="margin-top:4px;text-decoration:none;border-radius:999px;height:48px;padding:0 32px;background:var(--background-50);color:var(--primary);font-weight:600;font-size:15px;border:none;box-shadow:var(--shadow-sm)">立即开始</a>
</div>
</section>
</main>
<!-- ============================== BOTTOM TAB BAR ============================== -->
<nav class="fixed bottom-0 left-0 right-0 z-40 flex items-start justify-around" style="background:var(--background-50);border-top:1px solid var(--background-300);padding-top:6px;padding-bottom:calc(2px + env(safe-area-inset-bottom, 0px))" aria-label="Tab navigation">
<!-- Tab 1: 首页 -->
<a class="tab-item" id="tab-index" data-tab-key="index" data-active="true" data-dom-id="tab-index" href="#" aria-label="首页" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--primary);transition:color .18s ease">
<i data-lucide="home" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">首页</span>
</a>
<!-- Tab 2: 分析 -->
<a class="tab-item" id="tab-upload" data-tab-key="upload" data-dom-id="tab-upload" href="#" aria-label="分析" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--text-400);transition:color .18s ease">
<i data-lucide="camera" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">分析</span>
</a>
<!-- Tab 3: 报告 -->
<a class="tab-item" id="tab-report" data-tab-key="report" data-dom-id="tab-report" href="#" aria-label="报告" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--text-400);transition:color .18s ease">
<i data-lucide="bar-chart-2" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">报告</span>
</a>
<!-- Tab 4: 推荐 -->
<a class="tab-item" id="tab-recommendations" data-tab-key="recommendations" data-dom-id="tab-recommendations" href="#" aria-label="推荐" style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;text-decoration:none;color:var(--text-400);transition:color .18s ease">
<i data-lucide="heart" style="width:22px;height:22px"></i>
<span style="font-size:10px;font-weight:500;line-height:1">推荐</span>
</a>
</nav>
<script>lucide.createIcons();</script>
</body>
</html>
</style>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.1/dist/index.global.js"></script>
<script src="https://unpkg.com/lucide@1.8.0/dist/umd/lucide.min.js"></script>
<style type="text/tailwindcss">
@layer base {
body { background: #ffffff; color: #0f172a; }
td, th { @apply break-words; word-break: break-all; word-break: auto-phrase; }
th { @apply whitespace-nowrap; }
}
</style>
<style>
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
[data-icon] {
display: inline-flex;
align-items: center;
justify-content: center;
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
background-color: currentColor;
}
</style>
</head>
<body class="font-sans antialiased overflow-x-hidden" style="max-width:100%;background:var(--background);color:var(--foreground)">
<!-- ============================== STATUS BAR SPACER ============================== -->
<div class="h-11 shrink-0" aria-hidden="true" style="background:transparent"></div>
<!-- ============================== TOP BAR ============================== -->
<header class="sticky top-0 z-30 w-full" style="backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:color-mix(in srgb,var(--background-50) 85%,transparent);border-bottom:1px solid var(--background-300)">
<div class="flex items-center justify-center" style="height:44px;padding:0 16px">
<h1 class="text-center truncate" style="font-size:17px;font-weight:600;letter-spacing:-0.02em;color:var(--text-800)">分析报告</h1>
</div>
</header>
<!-- ============================== MAIN CONTENT AREA ============================== -->
<main id="main-content" style="padding-top:0;padding-left:0;padding-right:0;padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px))">
<!-- ========== 1. RESULT HEADER: Full-width gradient card ========== -->
<section style="margin:0;padding:0 16px 24px;padding-top:20px">
<article style="padding:24px 20px;border-radius:var(--radius);background:linear-gradient(135deg, #FFECD2 0%, #F5E6D3 50%, #E8E0E8 100%);display:flex;flex-direction:column;gap:10px">
<div style="display:flex;align-items:center;gap:10px">
<span style="display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;background:color-mix(in srgb, var(--brand-500) 12%, transparent);color:var(--brand-600);font-size:13px;font-weight:600;letter-spacing:0.02em">暖色调 · 春季型</span>
</div>
<p style="margin:0;font-size:15px;line-height:1.55;color:var(--text-600)">你的肤色偏向暖调,适合温暖明亮的色彩</p>
<p style="margin:4px 0 0;font-size:13px;color:var(--text-400)">分析置信度 <span style="font-family:var(--font-mono);font-weight:600;color:var(--text-500)">96%</span></p>
</article>
</section>
<!-- ========== 2. METRICS ROW: Three equal-width metric cards ========== -->
<section style="padding:0 16px 24px">
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:10px">
<!-- Metric 1: 明度 -->
<article style="padding:16px 12px;border-radius:var(--radius);background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center">
<span style="width:10px;height:10px;border-radius:999px;background:#DAA520;flex-shrink:0"></span>
<span style="font-size:12px;color:var(--text-400);font-weight:500">明度</span>