-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
3071 lines (2948 loc) · 147 KB
/
Copy pathindex.html
File metadata and controls
3071 lines (2948 loc) · 147 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="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Book UI|故事在路上 Demo</title>
<meta name="description" content="一个无框架、可定制的创意交互书网页:真实翻页、叙事路线、编辑排版、沉浸式动效与响应式设计。">
<meta name="theme-color" content="#6d6df4">
<meta property="og:type" content="website">
<meta property="og:locale" content="zh_CN">
<meta property="og:title" content="Interactive Book UI|创意交互书网页">
<meta property="og:description" content="用真实翻页、叙事路线与沉浸式动效,把长内容变成一段可以行走的阅读体验。">
<meta property="og:url" content="https://zy-aggressive.github.io/interactive-book-ui/">
<meta property="og:image" content="https://zy-aggressive.github.io/interactive-book-ui/assets/images/image-02-85917d13.jpg">
<meta name="twitter:card" content="summary_large_image">
<link rel="canonical" href="https://zy-aggressive.github.io/interactive-book-ui/">
<link rel="icon" type="image/png" href="assets/images/image-03-bfeef400.png">
<style>
/**
* Interactive Book UI — visual system, layout and motion.
* Start with the :root tokens below when creating a new theme.
*/
*{ box-sizing:border-box; margin:0; padding:0; }
/* stop the browser's drag-ghost (little file icon) when press-dragging images/pages */
img, .leaf, .flipper, .stamp, .corner-stamp, .hand-title{
-webkit-user-drag:none; user-select:none; -webkit-user-select:none;
}
:root{
--leaf-w:430px;
--leaf-h:560px;
--paper:#f2f1ef;
--ink:#1b1b1f;
--flip:1.2s;
--flip-ease:cubic-bezier(.45,.05,.25,1);
/* responsive book placement (overridden in media queries below) */
--book-scale:1.08;
--book-tx:-240px;
--book-ty:50px;
}
html,body{ height:100%; }
body{
min-height:100vh;
font-family:"Helvetica Neue","Arial","PingFang SC","Microsoft YaHei",sans-serif;
color:#fff;
background:linear-gradient(180deg,#6d6df4 0%,#4b4bf3 55%,#3a3af2 100%);
background-attachment:fixed;
overflow-x:hidden;
display:flex; flex-direction:column;
}
/* ===== full-screen background photo (V1 only) ===== */
.bg{
position:fixed; inset:0; z-index:-2;
background-size:cover; background-position:center; background-repeat:no-repeat;
opacity:0; transition:opacity .7s ease;
filter:blur(6px); transform:scale(1.06);
}
.bg.blur{ filter:blur(16px) brightness(.92) saturate(1.06); transform:scale(1.12); }
/* tint sits over the photo in V1; hidden in V2 (flat blue) */
.bg-tint{
position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:0; transition:opacity .5s ease;
background:linear-gradient(180deg, rgba(15,15,70,.30) 0%, rgba(15,15,70,.05) 22%, rgba(15,15,70,.10) 68%, rgba(15,15,70,.42) 100%);
}
body.v1 .bg-tint{ opacity:1; }
/* stamp only exists in V2 */
body.v1 .stampmark{ display:none; }
/* ===== vintage postage stamp tucked behind the right edge of the book ===== */
.stampmark{
position:absolute; top:150px; right:-186px; width:340px;
z-index:0; /* behind the spread: left part is hidden = "tucked in" */
pointer-events:none;
transform:rotate(7deg) scale(1.5); transform-origin:left center;
opacity:0; transition:opacity .5s ease, transform .9s cubic-bezier(.6,.02,.2,1);
}
.stampmark.show{ opacity:1; pointer-events:auto; }
/* hover: the tucked stamp slides fully out to the right and lifts above the book */
body.v2:not(.closed):not(.opening) .stampmark.show:hover,
body.v2:not(.closed):not(.opening) .stampmark.show.out{
transform:translateX(150px) rotate(0deg) scale(1.55);
filter:drop-shadow(0 14px 26px rgba(20,20,50,.28));
}
.stampmark.show{ cursor:pointer; }
/* while the book is closed the stamp is tucked further in; it slides out as it opens */
body.closed:not(.opening) .stampmark{ transform:translateX(-195px) rotate(7deg) scale(1.5); }
.stamp{
position:relative; width:352px; height:264px; /* aspect matches frame image (605x453) */
background:url("assets/images/image-01-8daedc96.png") center / 100% 100% no-repeat;
filter:drop-shadow(0 14px 22px rgba(20,14,50,.30)) drop-shadow(0 3px 6px rgba(20,14,50,.22));
transform-origin:50% 85%;
}
/* playful little bounce when a new page's photo lands on the stamp */
@keyframes stampBounce{
0% { transform:translateY(0) scale(1) rotate(0); }
32% { transform:translateY(-5px) scale(1.02,.99) rotate(-.5deg); }
62% { transform:translateY(1.5px) scale(.995,1.01) rotate(.2deg); }
100% { transform:translateY(0) scale(1) rotate(0); }
}
.stamp.bump{ animation:stampBounce .8s cubic-bezier(.25,.9,.3,1) both; }
/* photo sits inside the white paper; the frame image supplies the perforated border */
.stamp-frame{
position:absolute; inset:12% 9.5%;
}
.stamp-photo{
position:relative; width:100%; height:100%; overflow:hidden;
background:#e7e6e2;
}
.stamp-photo img{
width:100%; height:100%; object-fit:cover; display:block;
filter:sepia(.20) saturate(.92) contrast(.96) brightness(.98);
transition:opacity 2.4s ease;
}
/* soft aging vignette over the photo */
.stamp-photo::after{
content:""; position:absolute; inset:0; pointer-events:none;
background:radial-gradient(120% 120% at 50% 50%, rgba(120,90,40,0) 58%, rgba(90,65,25,.18) 100%);
mix-blend-mode:multiply;
}
/* ===== V2 background ===== */
body.v2{
background:#efe7d4 url("assets/images/image-02-85917d13.jpg") center center / cover no-repeat fixed;
}
/* V2 kraft is light -> use dark chrome text for legibility */
body.v2{ color:#3a2f22; }
/* ===== V2 decorative corner stamp + handwritten title ===== */
.corner-stamp{
position:fixed; left:210px; top:78px; width:345px; height:345px;
z-index:-1; pointer-events:none; opacity:.70;
background:url("assets/images/image-03-bfeef400.png") center / contain no-repeat;
}
.hand-title{
position:fixed; right:236px; top:59px; z-index:-1; pointer-events:none; opacity:.70;
width:749px; text-align:right; line-height:1.05;
font-family:"Bradley Hand","Marker Felt","Noteworthy","Comic Sans MS",cursive;
font-weight:700; font-size:108px; color:#4a3b2c;
transform:rotate(-4deg); transform-origin:top right;
text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.corner-stamp, .hand-title{ display:none; }
body.v2 .corner-stamp, body.v2 .hand-title{ display:block; }
body.v2 .topbar,
body.v2 .footer{ color:#3a2f22; }
body.v2 .indicator{ color:rgba(58,47,34,.75); }
/* ===== top nav ===== */
.topbar{
display:flex; justify-content:space-between; align-items:center;
padding:26px 40px; font-size:15px; letter-spacing:.12em; font-weight:500; position:relative;
}
.topbar .center{ position:absolute; left:50%; transform:translateX(-50%); }
/* ===== stage ===== */
.wrap{ flex:1; display:flex; align-items:center; justify-content:center; padding:10px 70px 40px; }
.stage{ perspective:2800px; }
body.v2 .stage{
transform:translate(var(--book-tx),var(--book-ty)) scale(var(--book-scale));
transform-origin:center center;
transition:transform .35s cubic-bezier(.4,0,.2,1);
}
.book{
position:relative;
width:calc(var(--leaf-w)*2);
height:var(--leaf-h);
max-width:92vw;
transform-style:preserve-3d;
}
.spread{
position:absolute; inset:0; display:flex;
background:var(--paper);
border-radius:30px;
box-shadow:0 40px 80px rgba(20,20,80,.35), 0 6px 20px rgba(20,20,80,.2);
}
/* while folding shut, the vacated left half reveals the desk instead of white paper */
body.closing-book .spread{ background:transparent; box-shadow:none; }
body.closing-book .spread::after{ opacity:0; }
.spread::after{
content:""; position:absolute; right:-7px; top:14px; bottom:14px; width:14px;
background:linear-gradient(90deg,#e7e6e3,#d9d8d4);
border-radius:0 26px 26px 0; z-index:-1;
}
.leaf{
width:var(--leaf-w); height:var(--leaf-h);
position:relative; background:var(--paper);
display:flex; flex-direction:column;
padding:38px; cursor:pointer;
transform:translateZ(0); backface-visibility:hidden; -webkit-backface-visibility:hidden; /* own GPU layer: no re-raster flash when its content is rebuilt after a flip */
}
.leaf.left{ border-radius:30px 0 0 30px; }
.leaf.right{ border-radius:0 30px 30px 0; padding-right:46px; }
.gutter{
position:absolute; top:0; bottom:0; left:50%; width:2px; transform:translateX(-50%);
background:linear-gradient(90deg,transparent,rgba(0,0,0,.08),transparent);
z-index:6; pointer-events:none;
}
/* 2-up: pages merge into one surface, only a faint divider */
.spread.double .gutter{
width:1px; background:rgba(0,0,0,.05); box-shadow:none;
}
/* single centered add button straddling the gutter (2-up) */
.spread-add{
position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
z-index:10; display:none; text-align:center; color:#c4c3be; cursor:pointer;
padding:16px 24px; border-radius:16px; opacity:.7; transition:opacity .2s, background .2s;
}
.spread-add.show{ display:block; }
.spread-add:hover{ opacity:1; background:rgba(0,0,0,.035); }
.spread-add .plus{ font-size:30px; line-height:1; margin-bottom:10px; font-weight:200; }
.spread-add .t{ font-size:11px; letter-spacing:.18em; font-weight:300; }
.page-inner{
flex:1;
display:flex; align-items:center; justify-content:center;
overflow:hidden; position:relative;
background:#fbfbfa; border:1px solid #e7e6e2;
transition:border-color .2s, background .2s;
}
.page-inner.empty{ border:none; background:transparent; }
.drop-hint.add-btn{ pointer-events:auto; cursor:pointer; padding:16px 22px; border-radius:16px; }
.drop-hint.add-btn:hover{ opacity:1; background:rgba(0,0,0,.035); }
.page-inner img{ width:100%; height:100%; object-fit:cover; display:block; }
.page-inner.dragover{ border-color:#4b4bf3; background:#eeeefe; }
.drop-hint{ text-align:center; color:#c4c3be; pointer-events:none; opacity:.7; transition:opacity .2s; }
.drop-hint .plus{ font-size:30px; line-height:1; margin-bottom:10px; font-weight:200; }
.drop-hint .t{ font-size:11px; letter-spacing:.18em; font-weight:300; }
.caption{ margin-top:14px; min-height:22px; }
.caption input{
width:100%; border:none; background:transparent; text-align:center;
font-size:13px; letter-spacing:.08em; color:#3a3a3f; font-family:inherit; padding:2px; cursor:text;
}
.caption input::placeholder{ color:#c4c3be; }
.caption input:focus{ outline:none; }
.page-num{ display:none; }
.leaf.left .page-num{ left:38px; }
.leaf.right .page-num{ right:46px; }
.img-tools{ position:absolute; top:-46px; right:0; display:flex; gap:6px; opacity:0; transition:opacity .2s; z-index:31; }
.leaf.left .img-tools{ left:0; right:auto; }
.leaf:hover .img-tools{ opacity:1; }
.img-tools button{
border:none; background:rgba(20,20,30,.7); color:#fff; border-radius:4px;
padding:5px 9px; font-size:11px; letter-spacing:.05em; cursor:pointer;
}
.img-tools button:hover{ background:rgba(20,20,30,.92); }
/* ===== full-bleed artwork (no frame, fills the whole page) ===== */
.leaf.full{ padding:0; }
.leaf.full .page-inner{ border:none; border-radius:inherit; background:transparent; transition:none; }
.leaf.full .page-num{ color:rgba(255,255,255,.92); z-index:5; text-shadow:0 1px 3px rgba(0,0,0,.45); }
.leaf.full.left .page-num{ left:24px; }
.leaf.full.right .page-num{ right:24px; }
.leaf.disabled{ cursor:default; }
/* ===== reading route dock: zero-obstruction default state ===== */
.reading-route{
position:fixed; left:40px; bottom:68px; top:auto; z-index:78;
width:min(430px,calc(100vw - 32px));
display:grid; grid-template-columns:104px minmax(0,1fr); align-items:stretch; gap:10px;
padding:9px 11px; color:#4b3827;
background:
linear-gradient(120deg,rgba(255,255,255,.50),transparent 40%),
rgba(240,226,198,.97);
border:1px solid rgba(91,65,40,.36); border-radius:16px;
box-shadow:0 18px 42px rgba(48,31,19,.22),inset 0 0 0 1px rgba(255,255,255,.38);
backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
opacity:0; visibility:hidden; pointer-events:none;
transform:translateY(10px) scale(.985); transform-origin:left bottom;
transition:opacity .2s ease,visibility .2s ease,transform .24s cubic-bezier(.22,.8,.24,1);
}
.reading-route.is-open{
opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0) scale(1);
}
.reading-route::before,.reading-route::after{
content:""; position:absolute; top:50%; width:14px; height:14px; margin-top:-7px;
border-radius:50%; background:#ebe1cb; box-shadow:inset 0 0 0 1px rgba(91,65,40,.18);
}
.reading-route::before{ left:-8px; }
.reading-route::after{ right:-8px; }
.route-tag{
display:flex; flex-direction:column; justify-content:center; padding:2px 11px 2px 4px;
border-right:1px dashed rgba(91,65,40,.36); line-height:1.1;
}
.route-tag span{ font-size:8px; letter-spacing:.15em; opacity:.56; }
.route-tag strong{ margin-top:6px; font:700 15px/1.08 Georgia,"Noto Serif SC",serif; letter-spacing:.12em; }
.route-options{
position:relative; display:grid; grid-template-columns:1fr 1fr; min-width:0;
padding:3px; border:1px dashed rgba(91,65,40,.32); border-radius:11px;
background:rgba(111,84,55,.08); overflow:hidden;
}
.route-slider{
position:absolute; z-index:0; top:3px; bottom:3px; left:3px;
width:calc(50% - 3px); height:auto; border-radius:8px;
background:linear-gradient(145deg,#fffaf0,#f6ead2);
border:1px solid rgba(127,61,40,.28);
box-shadow:0 4px 10px rgba(72,45,25,.15),inset 0 0 0 1px rgba(255,255,255,.64);
transition:transform .34s cubic-bezier(.22,.8,.24,1);
}
.reading-route[data-mode="random"] .route-slider{ transform:translateX(100%); }
.route-choice{
position:relative; z-index:1; min-width:0; min-height:50px; border:0; border-radius:8px;
display:grid; grid-template-columns:25px minmax(0,1fr); align-items:center; gap:6px;
padding:4px 6px; color:rgba(75,56,39,.65); background:transparent;
font-family:inherit; text-align:left; cursor:pointer; transition:color .22s ease,transform .18s ease;
}
.route-choice:hover{ color:#4b3827; }
.route-choice:active{ transform:scale(.98); }
.route-choice:focus-visible{ outline:2px solid #9f4936; outline-offset:-2px; }
.route-choice.active{ color:#713426; }
.route-node{
width:24px; height:24px; display:grid; place-items:center; border-radius:50%;
border:1px solid currentColor; font:700 9px/1 Georgia,serif; opacity:.76;
}
.route-choice.active .route-node{ color:#9f4936; border-style:double; border-width:3px; opacity:1; }
.route-choice b{ display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11.5px; letter-spacing:.06em; }
.route-choice small{ display:block; margin-top:2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:8.5px; letter-spacing:.03em; opacity:.66; }
.mode-toast{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.route-dock-button{
min-height:32px; display:inline-flex; align-items:center; gap:8px; padding:4px 1px;
border:0; border-bottom:1px dashed rgba(58,47,34,.36); color:inherit; background:transparent;
font:inherit; letter-spacing:.08em; cursor:pointer; transition:color .2s ease,border-color .2s ease;
}
.route-dock-button:hover,.route-dock-button[aria-expanded="true"]{ color:#8e4437; border-bottom-color:#8e4437; }
.route-dock-button:focus-visible{ outline:2px solid #8e4437; outline-offset:4px; border-radius:3px; }
.route-dock-button span{ opacity:.64; font-size:.9em; }
.route-dock-button strong{ font-weight:750; letter-spacing:.1em; }
.footer-route-hint{ margin-left:8px; opacity:.58; }
@media (max-width:680px){
.reading-route{ left:12px; bottom:58px; width:calc(100vw - 24px); grid-template-columns:82px minmax(0,1fr); gap:7px; padding:7px 8px; }
.route-tag{ padding-right:7px; }
.route-tag strong{ font-size:12px; letter-spacing:.07em; }
.route-choice{ min-height:44px; grid-template-columns:21px minmax(0,1fr); gap:4px; padding:3px 4px; }
.route-node{ width:20px; height:20px; font-size:8px; }
.route-choice b{ font-size:10px; letter-spacing:.03em; }
.route-choice small{ display:none; }
.footer-route-hint{ display:none; }
}
@media (max-width:420px){
.reading-route{ grid-template-columns:1fr; }
.route-tag{ display:none; }
.route-dock-button span{ display:none; }
}
/* ===== departure gate: prominent before reading, absent during reading ===== */
.route-intro-backdrop{
position:fixed; inset:0; z-index:74; background:rgba(36,27,45,.34);
backdrop-filter:blur(3px) saturate(.92); -webkit-backdrop-filter:blur(3px) saturate(.92);
opacity:0; visibility:hidden; pointer-events:none;
transition:opacity .28s ease,visibility .28s ease;
}
.route-intro-heading{ display:none; text-align:center; }
.route-intro-heading span{
display:block; color:#9f4936; font-size:9px; font-weight:800; letter-spacing:.28em;
}
.route-intro-heading h2{
margin:9px 0 0; color:#3f3025;
font:700 27px/1.2 "Songti SC","STSong","Noto Serif CJK SC",serif;
letter-spacing:.06em;
}
.route-intro-heading p{
margin:9px auto 0; max-width:420px; color:rgba(67,49,37,.66);
font-size:11px; line-height:1.7; letter-spacing:.06em;
}
body.route-intro{ overflow:hidden; }
body.route-intro .route-intro-backdrop{
opacity:1; visibility:visible; pointer-events:auto;
}
body.route-intro .reading-route{
left:50%; top:50%; right:auto; bottom:auto; z-index:79;
width:min(620px,calc(100vw - 36px));
display:grid; grid-template-columns:1fr; gap:17px;
padding:26px 28px 27px; border-radius:22px;
opacity:1; visibility:visible; pointer-events:auto;
transform:translate(-50%,-50%) scale(1); transform-origin:center center;
box-shadow:0 30px 80px rgba(35,23,38,.36),inset 0 0 0 1px rgba(255,255,255,.44);
transition:opacity .25s ease,transform .3s cubic-bezier(.22,.8,.24,1);
}
body.route-intro .reading-route::before,body.route-intro .reading-route::after{
top:50%; bottom:auto; left:auto; margin-top:-9px; width:18px; height:18px;
}
body.route-intro .reading-route::before{ left:-10px; }
body.route-intro .reading-route::after{ right:-10px; }
body.route-intro .route-intro-heading{ display:block; }
body.route-intro .route-tag{ display:none; }
body.route-intro .route-options{
grid-template-columns:1fr 1fr; padding:5px; border-radius:16px;
background:rgba(111,84,55,.095);
}
body.route-intro .route-slider{
top:5px; bottom:5px; left:5px; width:calc(50% - 5px); border-radius:12px;
}
body.route-intro .route-choice{
min-height:102px; grid-template-columns:46px minmax(0,1fr); gap:13px;
padding:12px 16px; border-radius:12px;
}
body.route-intro .route-node{ width:42px; height:42px; font-size:12px; }
body.route-intro .route-choice b{
font:700 18px/1.25 "Songti SC","STSong","Noto Serif CJK SC",serif;
letter-spacing:.08em;
}
body.route-intro .route-choice small{ margin-top:7px; font-size:10px; letter-spacing:.05em; opacity:.70; }
body.route-intro .route-choice.active::after{
content:"当前选择"; position:absolute; right:12px; top:10px;
color:#9f4936; font-size:8px; font-weight:800; letter-spacing:.12em;
}
body.route-intro.route-intro-leaving .route-intro-backdrop{ opacity:0; }
body.route-intro.route-intro-leaving .reading-route{
opacity:0; pointer-events:none; transform:translate(-50%,-47%) scale(.975);
}
body.route-intro .footer,body.route-intro .edge-add{ pointer-events:none; }
@media (max-width:560px){
body.route-intro .reading-route{ width:calc(100vw - 24px); padding:22px 16px 20px; gap:14px; }
body.route-intro .route-intro-heading h2{ font-size:22px; }
body.route-intro .route-options{ grid-template-columns:1fr; }
body.route-intro .route-slider{ top:5px; bottom:auto; right:5px; width:auto; height:calc(50% - 5px); }
body.route-intro .reading-route[data-mode="random"] .route-slider{ transform:translateY(100%); }
body.route-intro .route-choice{ min-height:78px; grid-template-columns:40px minmax(0,1fr); padding:9px 13px; }
body.route-intro .route-node{ width:36px; height:36px; }
body.route-intro .route-choice b{ font-size:16px; }
body.route-intro .route-choice small{ display:block; margin-top:4px; }
}
/* ===== narrative pages: one text leaf paired with one photo leaf ===== */
.leaf.story{
padding:36px 40px 32px;
color:#3c3127;
background:
linear-gradient(90deg,rgba(255,255,255,.28),transparent 18%,transparent 82%,rgba(120,85,45,.05)),
#f5efe2;
}
.leaf.story::before{
content:""; position:absolute; inset:13px; pointer-events:none;
border:1px solid rgba(102,73,43,.12); border-radius:18px;
}
.story-page{
position:relative; z-index:1; height:100%; min-height:0;
display:flex; flex-direction:column;
font-family:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;
}
.story-kicker{
font-family:"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
font-size:10px; font-weight:700; letter-spacing:.22em; color:#9b6040;
text-transform:uppercase; margin-bottom:8px;
}
.story-title{
font-size:24px; line-height:1.22; font-weight:700; letter-spacing:.02em;
color:#34291f; margin:0 0 8px;
}
.story-title.continued{ font-size:17.5px; line-height:1.28; margin-bottom:7px; color:#5b4635; }
.story-rule{ width:44px; height:2px; background:#b77a50; opacity:.65; margin-bottom:10px; }
.story-quote{
font-size:13px; line-height:1.58; font-weight:600; color:#76523a;
padding:7px 10px; margin:0 0 10px; border-left:3px solid rgba(183,122,80,.62);
background:rgba(183,122,80,.075);
}
.story-copy{
flex:1; min-height:0; overflow:hidden;
font-size:13.8px; line-height:1.68; letter-spacing:.015em; text-align:justify;
}
/* Text pages adapt to their actual amount of copy. Sparse pages breathe and
distribute paragraphs vertically; full pages tighten gently without sacrificing legibility. */
.story-page.airy .story-copy{
display:flex; flex-direction:column; justify-content:space-between;
font-size:14.3px; line-height:1.76;
}
.story-page.airy .story-copy p+p{ margin-top:10px; }
.story-page.prologue .story-copy{
display:flex; flex-direction:column; justify-content:space-around;
font-size:15px; line-height:1.88; padding:4px 2px;
}
.story-page.prologue .story-copy p{ text-indent:1.5em; }
.story-page.prologue .story-copy p+p{ margin-top:12px; }
.story-page.dense .story-copy{ font-size:13px; line-height:1.6; }
.story-page.packed .story-copy{ font-size:12.6px; line-height:1.55; letter-spacing:.005em; }
.story-copy p{ margin:0; text-indent:2em; }
.story-copy p+p{ margin-top:7px; }
.story-page.vignette{ justify-content:center; text-align:center; padding:24px 10px 28px; }
.story-page.vignette .story-kicker{ margin-bottom:14px; }
.story-page.vignette .story-title{ font-size:30px; margin-bottom:15px; }
.story-page.vignette .story-rule{ margin:0 auto 15px; width:58px; }
.story-page.vignette .story-quote{ background:transparent; border:0; padding:0 14px; margin-bottom:12px; }
.story-page.vignette .story-copy{ flex:0 0 auto; overflow:visible; font-size:16px; line-height:1.85; }
.story-page.vignette .story-copy p{ text-indent:0; }
.story-page.chapter-page{ justify-content:center; text-align:center; padding:28px 8px; }
.story-page.chapter-page .story-kicker{ margin-bottom:18px; }
.story-page.chapter-page .story-title{ font-size:34px; margin-bottom:18px; }
.story-page.chapter-page .story-rule{ margin:0 auto 18px; width:66px; }
.story-page.chapter-page .story-quote{ background:transparent; border:0; font-size:15px; padding:0 18px; }
.story-page.vignette .story-foot,.story-page.chapter-page .story-foot{
position:absolute; left:0; right:0; bottom:0;
}
.story-foot{
margin-top:10px; padding-top:6px; border-top:1px solid rgba(92,65,40,.13);
font-family:"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
font-size:9px; letter-spacing:.16em; color:rgba(91,70,53,.56); text-transform:uppercase;
}
.leaf.story .page-num{ display:block; bottom:16px; color:rgba(91,70,53,.48); }
.story-photo{ position:relative; height:100%; overflow:hidden; background:#d8c8b0; }
.story-photo img{ transform:scale(1.015); filter:saturate(.86) contrast(.96) sepia(.08); }
.story-photo::after{
content:""; position:absolute; inset:0; pointer-events:none;
background:linear-gradient(180deg,rgba(22,16,10,.03) 40%,rgba(22,16,10,.76) 100%);
}
.photo-note{
position:absolute; z-index:2; left:25px; right:25px; bottom:25px; color:#fff;
text-shadow:0 2px 8px rgba(0,0,0,.42); pointer-events:none;
}
.photo-note .eyebrow{
display:block; font-size:9px; letter-spacing:.22em; font-weight:700;
opacity:.72; margin-bottom:7px;
}
.photo-note strong{
display:block; font-family:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;
font-size:16px; line-height:1.45; font-weight:600;
}
.photo-note em{ display:block; margin-top:7px; font-size:9px; font-style:normal; opacity:.64; letter-spacing:.08em; }
/* ===== flipping leaf ===== */
.flipper{
position:absolute; top:0; bottom:0; width:var(--leaf-w);
z-index:20; transform-style:preserve-3d; pointer-events:none; display:none;
will-change:transform;
}
.flipper.run{ display:block; }
/* show the sheet (old page on its front face) as soon as a flip is armed, so the
destination page can't peek through during the pre-decode wait = no flash */
.flipper.fwd, .flipper.bwd{ display:block; }
.flipper .face{ position:absolute; inset:0; background:var(--paper); backface-visibility:hidden; -webkit-backface-visibility:hidden; overflow:hidden; padding:38px; }
/* the sheet's drop shadow grows smoothly as it lifts (peaks when it stands up mid-turn)
and settles back — instead of popping on/off, which read as a "weird" shadow jump */
.flipper.fwd.run .face, .flipper.bwd.run .face{ animation:sheetLift var(--flip) var(--flip-ease) forwards; }
@keyframes sheetLift{
0%{ box-shadow:0 0 0 rgba(20,20,60,0); }
50%{ box-shadow:0 26px 55px rgba(20,20,60,.28); }
100%{ box-shadow:0 0 0 rgba(20,20,60,0); }
}
.flipper .face .content{ height:100%; }
.flipper .face.full{ padding:0; }
.flipper .face.full .page-inner{ border:none; height:100%; }
.flipper .face .gloss{ position:absolute; inset:0; pointer-events:none; opacity:0; }
/* outer corner rounded, spine (inner) corner square — front & back land on
opposite halves, so they need opposite radii. Apply to artwork directly
(overflow clipping is unreliable under preserve-3d). */
.flipper.fwd .front, .flipper.fwd .front .page-inner, .flipper.fwd .front img{ border-radius:0 30px 30px 0; }
.flipper.fwd .back, .flipper.fwd .back .page-inner, .flipper.fwd .back img{ border-radius:30px 0 0 30px; }
.flipper.bwd .front, .flipper.bwd .front .page-inner, .flipper.bwd .front img{ border-radius:30px 0 0 30px; }
.flipper.bwd .back, .flipper.bwd .back .page-inner, .flipper.bwd .back img{ border-radius:0 30px 30px 0; }
.flipper.fwd{ left:50%; transform-origin:left center; transform:translateZ(2px); }
.flipper.fwd .back{ transform:rotateY(180deg); }
.flipper.fwd .front .gloss{ background:linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.4)); }
.flipper.fwd .back .gloss{ background:linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,0) 60%); }
/* translateZ keeps the turning sheet a hair in front of the leaf plane at EVERY angle
(world-Z lift), so its hinge edge never z-fights the page beneath = no fold-line flicker */
@keyframes flipFwd{ from{transform:translateZ(2px) rotateY(0);} to{transform:translateZ(2px) rotateY(-180deg);} }
.flipper.fwd.run{ animation:flipFwd var(--flip) var(--flip-ease) forwards; }
.flipper.fwd.run .front .gloss{ animation:glossUp var(--flip) var(--flip-ease) forwards; }
.flipper.fwd.run .back .gloss{ animation:glossDown var(--flip) var(--flip-ease) forwards; }
/* closing: reverse of openBook -- the first spread's LEFT page folds back onto the cover */
/* faster finish: the default ease-out (.25,1) reached near-closed early then crawled
through a slow tail. this easing keeps momentum so the LAST segment snaps shut. scoped
to closing only (page-turns keep the global --flip/--flip-ease). */
.flipper.fwd.closing{ transform:translateZ(2px) rotateY(-180deg); --flip:1s; --flip-ease:cubic-bezier(.32,0,.4,.9); }
@keyframes flipClose{ from{transform:translateZ(2px) rotateY(-180deg);} to{transform:translateZ(2px) rotateY(0deg);} }
.flipper.fwd.closing.run{ animation:flipClose var(--flip) var(--flip-ease) forwards; }
.flipper.fwd.closing.run .front .gloss{ animation:glossDown var(--flip) var(--flip-ease) forwards; }
.flipper.fwd.closing.run .back .gloss{ animation:glossUp var(--flip) var(--flip-ease) forwards; }
.flipper.bwd{ left:0; transform-origin:right center; transform:translateZ(2px); }
.flipper.bwd .back{ transform:rotateY(180deg); }
.flipper.bwd .front .gloss{ background:linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.4)); }
.flipper.bwd .back .gloss{ background:linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,0) 60%); }
@keyframes flipBwd{ from{transform:translateZ(2px) rotateY(0);} to{transform:translateZ(2px) rotateY(180deg);} }
.flipper.bwd.run{ animation:flipBwd var(--flip) var(--flip-ease) forwards; }
.flipper.bwd.run .front .gloss{ animation:glossUp var(--flip) var(--flip-ease) forwards; }
.flipper.bwd.run .back .gloss{ animation:glossDown var(--flip) var(--flip-ease) forwards; }
@keyframes glossUp{ from{opacity:0;} 55%{opacity:.55;} to{opacity:.55;} }
@keyframes glossDown{ from{opacity:.55;} 45%{opacity:.55;} to{opacity:0;} }
/* fold-line (crease valley) shadow removed per request — the turning leaf casts no
shadow into the spine during a flip */
.lift{ position:absolute; top:0; bottom:0; width:var(--leaf-w); z-index:15; pointer-events:none; opacity:0; display:none; }
.lift.fwd{ left:50%; }
.lift.bwd{ right:50%; }
.lift.run{ animation:none; }
@keyframes liftFade{ 0%{opacity:0;} 50%{opacity:1;} 100%{opacity:0;} }
/* ===== closed-book cover (intro) ===== */
.cover{
position:absolute; left:50%; top:0; width:var(--leaf-w); height:var(--leaf-h);
cursor:pointer; z-index:25; display:none; overflow:hidden;
background:#f4f2ec url(assets/images/image-04-421cdff8.png) center/cover no-repeat;
border-radius:6px 30px 30px 6px;
box-shadow:0 40px 80px rgba(20,20,80,.35), 0 6px 20px rgba(20,20,80,.2);
}
body.closed:not(.opening) .cover{ display:block; }
.cover::before{ /* soft crease/shadow along the bound (spine) edge */
content:""; position:absolute; left:0; top:0; bottom:0; width:26px;
background:linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,0));
}
.cover-tap{
position:absolute; bottom:30px; left:0; right:0; text-align:center;
font-size:10px; letter-spacing:.24em; text-transform:uppercase;
color:rgba(60,47,34,.32); animation:tapPulse 1.9s ease-in-out infinite;
pointer-events:none;
}
@keyframes tapPulse{ 0%,100%{opacity:.35;} 50%{opacity:.75;} }
/* the cover opens with a real LEFT page-turn (reusing the book's flip machinery in
openBook): the turning sheet's front is the cover, its back is the first painting's
LEFT half, so the flip lands directly on the complete first painting */
.spread{ transition:opacity .3s ease; }
body.closed:not(.opening) .spread{ opacity:0; }
/* ===== footer ===== */
.footer{
display:flex; justify-content:space-between; align-items:flex-end;
padding:0 40px 30px; font-size:13px; letter-spacing:.1em; line-height:1.5;
}
.footer .right{ font-weight:600; }
/* ===== minimal toolbar ===== */
.toolbar{
position:fixed; top:78px; left:50%; transform:translateX(-50%);
display:flex; gap:8px; z-index:40; opacity:0; pointer-events:none; transition:opacity .25s;
}
body:hover .toolbar, .toolbar:hover{ opacity:1; pointer-events:auto; }
.toolbar button{
border:1px solid rgba(255,255,255,.5); background:rgba(255,255,255,.12);
color:#fff; padding:6px 13px; border-radius:30px; font-size:12px; letter-spacing:.06em;
cursor:pointer; backdrop-filter:blur(4px);
}
.toolbar button:hover{ background:rgba(255,255,255,.25); }
.indicator{ position:fixed; bottom:30px; left:50%; transform:translateX(-50%); font-size:12px; letter-spacing:.18em; color:rgba(255,255,255,.85); pointer-events:none; }
input[type=file]{ display:none; }
/* ===== responsive: scale the whole book uniformly so internal geometry
(cover, flipper, tucked stamp) stays pixel-perfect at every size ===== */
@media (max-width:1240px){
body.v2 .stage{ --book-scale:.98; --book-tx:-224px; --book-ty:46px; }
}
@media (max-width:1080px){
/* decorations start to crowd the book -> retire them and CENTER the book
(no more left shift, and let the uniform scale handle fit) */
body.v2 .corner-stamp, body.v2 .hand-title{ display:none; }
body.v2 .book{ max-width:none; } /* rely on scale, not a vw clamp, so internal geometry stays exact */
body.v2 .stage{ --book-scale:.87; --book-tx:0px; --book-ty:16px; }
.wrap{ padding:10px 20px 32px; }
.topbar{ padding:24px 28px; font-size:14px; }
}
@media (max-width:880px){
body.v2 .stage{ --book-scale:.83; --book-tx:0px; --book-ty:12px; }
.wrap{ padding:8px 16px 28px; }
.topbar{ padding:20px 20px; font-size:13px; letter-spacing:.08em; }
.footer{ padding:0 20px 22px; font-size:12px; }
}
@media (max-width:680px){
body.v2 .stage{ --book-scale:.74; --book-tx:0px; --book-ty:8px; }
.wrap{ padding:6px 12px 24px; }
.topbar{ padding:16px 16px; font-size:12px; letter-spacing:.06em; }
.footer{ padding:0 16px 18px; font-size:11px; letter-spacing:.06em; }
.indicator{ bottom:40px; }
}
@media (max-width:560px){
body.v2 .stage{ --book-scale:.63; --book-tx:0px; --book-ty:4px; }
.topbar{ padding:14px 12px; font-size:11px; letter-spacing:.05em; }
}
@media (max-width:480px){
body.v2 .stage{ --book-scale:.55; --book-tx:0px; --book-ty:2px; }
.topbar{ padding:13px 10px; font-size:10.5px; letter-spacing:.04em; }
.footer{ padding:0 12px 16px; font-size:10.5px; letter-spacing:.05em; }
.indicator{ bottom:34px; font-size:11px; }
}
@media (max-width:400px){
body.v2 .stage{ --book-scale:.44; --book-tx:0px; --book-ty:0px; }
.topbar{ font-size:10px; letter-spacing:.03em; padding:12px 8px; }
}
@media (max-width:360px){
body.v2 .stage{ --book-scale:.40; --book-tx:0px; --book-ty:0px; }
.topbar{ font-size:9.5px; letter-spacing:.02em; padding:11px 6px; }
}
@media (max-width:330px){
body.v2 .stage{ --book-scale:.36; --book-tx:0px; --book-ty:0px; }
}
/* wide-but-short viewports: constrain by height so nav + book + footer fit */
@media (max-height:720px){
/* the book is shrunk with transform:scale (which keeps its layout box tall),
so clamp the page to the viewport and let the wrap clip the empty margins */
html,body{ height:100%; overflow:hidden; }
.wrap{ min-height:0; overflow:hidden; }
}
@media (max-height:720px) and (min-width:1080px){
body.v2 .stage{ --book-scale:.87; --book-tx:-204px; --book-ty:20px; }
}
@media (max-height:600px){
body.v2 .corner-stamp, body.v2 .hand-title{ display:none; }
body.v2 .book{ max-width:none; }
body.v2 .stage{ --book-scale:.65; --book-tx:0px; --book-ty:6px; }
}
@media (max-height:460px){
body.v2 .stage{ --book-scale:.50; --book-tx:0px; --book-ty:2px; }
.topbar{ padding:10px 18px; }
.footer{ padding:0 18px 10px; }
}
/* ===== left-edge batch-replace (+) button ===== */
.edge-add{
position:fixed; right:40px; top:50%; transform:translateY(-50%);
width:54px; height:54px; border-radius:50%;
border:1px solid rgba(255,255,255,.55); background:rgba(255,255,255,.16);
color:#fff; font-size:30px; font-weight:300; line-height:1; cursor:pointer;
display:flex; align-items:center; justify-content:center;
z-index:60; backdrop-filter:blur(5px);
box-shadow:0 8px 22px rgba(20,20,60,.22);
transition:background .2s, transform .2s, box-shadow .2s;
}
.edge-add:hover{ background:rgba(255,255,255,.3); transform:translateY(-50%) scale(1.08); box-shadow:0 12px 28px rgba(20,20,60,.3); }
.edge-add:active{ transform:translateY(-50%) scale(.96); }
body.v2 .edge-add{ color:#4a3b2c; border-color:rgba(74,59,44,.35); background:rgba(255,255,255,.5); }
body.v2 .edge-add:hover{ background:rgba(255,255,255,.7); }
/* ===== upload naming-format modal ===== */
.modal-overlay{
position:fixed; inset:0; z-index:120; display:none;
align-items:center; justify-content:center;
background:rgba(18,18,50,.42); backdrop-filter:blur(3px);
}
.modal-overlay.show{ display:flex; }
.modal{
width:min(460px,90vw); background:#fbfaf7; color:#2c2620;
border-radius:18px; padding:30px 30px 24px;
box-shadow:0 30px 70px rgba(15,15,50,.4);
font-family:inherit; animation:modalIn .28s cubic-bezier(.3,.9,.3,1);
}
@keyframes modalIn{ from{ opacity:0; transform:translateY(14px) scale(.97); } to{ opacity:1; transform:none; } }
.modal h3{ font-size:19px; letter-spacing:.02em; margin-bottom:12px; color:#3a2f22; }
.modal p{ font-size:14px; line-height:1.65; color:#5a5148; margin-bottom:12px; }
.modal .fmt{
background:#f0ede7; border:1px solid #e2ddd3; border-radius:12px;
padding:14px 16px; margin-bottom:14px;
}
.modal .fmt .row{ display:flex; align-items:baseline; gap:10px; font-size:13.5px; line-height:1.7; }
.modal .fmt code,
.modal .note code{
font-family:"SF Mono","Menlo",monospace; font-size:12.5px;
background:#e3ded4; color:#4a3b2c; padding:2px 8px; border-radius:6px; white-space:nowrap;
}
.modal .fmt .desc{ color:#6a6156; }
.modal .note{ font-size:12.5px; color:#8a8175; margin-bottom:20px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; }
.modal-actions button{
border:none; border-radius:30px; padding:9px 20px; font-size:13.5px;
letter-spacing:.04em; cursor:pointer; font-family:inherit; transition:background .18s, transform .1s;
}
.modal-actions button:active{ transform:scale(.97); }
.btn-secondary{ background:#eceae4; color:#6a6156; }
.btn-secondary:hover{ background:#e2dfd8; }
.btn-primary{ background:#4b4bf3; color:#fff; }
.btn-primary:hover{ background:#3a3ae0; }
/* ===== mobile tweaks for the + button and modal ===== */
@media (max-width:680px){
.edge-add{ width:46px; height:46px; font-size:26px; right:16px; }
.modal{ padding:24px 20px 20px; border-radius:16px; }
.modal h3{ font-size:17px; }
.modal p{ font-size:13px; }
.modal .fmt{ padding:12px 12px; }
.modal .fmt .row{ flex-direction:column; gap:2px; font-size:12.5px; }
.modal .note{ font-size:11.5px; }
.modal-actions button{ padding:10px 18px; font-size:13px; }
}
@media (max-width:400px){
.edge-add{ width:42px; height:42px; font-size:24px; right:12px; }
}
/* ===== 旅途暗房:直接换片 + 故事胶卷 ===== */
.edge-add{
right:22px; width:auto; min-width:54px; padding:0 17px 0 12px; gap:9px;
border-color:rgba(255,248,224,.58); background:rgba(44,34,72,.55);
font-size:13px; font-weight:700; letter-spacing:.12em;
}
.edge-add:hover{
background:rgba(255,247,220,.96); color:#48345f;
transform:translateY(-50%) translateX(-3px); box-shadow:0 12px 30px rgba(23,15,56,.34);
}
.edge-add-icon{
position:relative; width:24px; height:18px; flex:0 0 auto; border-radius:4px;
border:2px solid currentColor; box-sizing:border-box;
}
.edge-add-icon::before{
content:""; position:absolute; left:50%; top:50%; width:7px; height:7px;
border:2px solid currentColor; border-radius:50%; transform:translate(-50%,-50%);
}
.edge-add-icon::after{
content:""; position:absolute; left:3px; top:-5px; width:7px; height:4px;
border-radius:2px 2px 0 0; background:currentColor;
}
.edge-add-label{ white-space:nowrap; }
.photo-swap-button{
position:absolute; z-index:5; right:18px; top:18px; display:flex; align-items:center; gap:7px;
min-height:35px; padding:0 12px; border:1px solid rgba(255,255,255,.64); border-radius:999px;
color:#fff; background:rgba(31,24,47,.58); backdrop-filter:blur(8px);
box-shadow:0 7px 22px rgba(0,0,0,.22); cursor:pointer; font-size:11px; font-weight:700;
letter-spacing:.12em; opacity:0; transform:translateY(-6px); transition:.22s ease;
}
.story-photo:hover .photo-swap-button,.photo-swap-button:focus-visible{
opacity:1; transform:translateY(0);
}
.photo-swap-button:hover{ background:#fff6df; color:#503a62; border-color:#fff6df; }
.swap-aperture{
width:14px; height:14px; border-radius:50%; display:inline-block;
background:conic-gradient(from 15deg,#fff 0 15%,transparent 15% 31%,#fff 31% 47%,transparent 47% 63%,#fff 63% 79%,transparent 79% 95%,#fff 95%);
box-shadow:inset 0 0 0 1px currentColor;
}
.photo-swap-button:hover .swap-aperture{ background:conic-gradient(from 15deg,#503a62 0 15%,transparent 15% 31%,#503a62 31% 47%,transparent 47% 63%,#503a62 63% 79%,transparent 79% 95%,#503a62 95%); }
.photo-drop-hint{
position:absolute; z-index:6; inset:22px; display:flex; flex-direction:column; align-items:center;
justify-content:center; text-align:center; color:#fff; border:2px dashed rgba(255,248,224,.85);
border-radius:18px; background:rgba(43,31,67,.72); backdrop-filter:blur(7px);
opacity:0; transform:scale(.97); pointer-events:none; transition:.18s ease;
}
.photo-drop-hint b{ font-family:"Songti SC","STSong",serif; font-size:22px; letter-spacing:.08em; }
.photo-drop-hint span{ margin-top:8px; font-size:11px; letter-spacing:.12em; opacity:.78; }
body.photo-dragging .leaf.photo .photo-drop-hint{ opacity:1; transform:scale(1); }
.flipper .photo-swap-button,.flipper .photo-drop-hint{ display:none; }
.darkroom-overlay{
position:fixed; inset:0; z-index:130; display:flex; justify-content:flex-end;
background:rgba(18,13,35,.28); opacity:0; pointer-events:none; transition:opacity .28s ease;
}
.darkroom-overlay.show{ opacity:1; pointer-events:auto; }
.darkroom-panel{
position:relative; width:min(455px,94vw); height:100%; box-sizing:border-box; overflow:hidden;
color:#f6ecd7; background:
radial-gradient(circle at 82% 8%,rgba(194,60,48,.20),transparent 28%),
linear-gradient(155deg,#251c36 0%,#171321 68%,#110e18 100%);
border-left:1px solid rgba(255,240,205,.16); box-shadow:-24px 0 70px rgba(13,9,27,.42);
transform:translateX(102%); transition:transform .34s cubic-bezier(.22,.75,.18,1);
display:flex; flex-direction:column;
}
.darkroom-overlay.show .darkroom-panel{ transform:translateX(0); }
.darkroom-redlight{
position:absolute; right:54px; top:30px; width:46px; height:46px; border-radius:50%;
background:radial-gradient(circle,#ef725f 0 17%,#9d2f2b 42%,rgba(119,29,30,.04) 72%);
filter:blur(.2px); opacity:.78; box-shadow:0 0 34px rgba(230,70,58,.35); pointer-events:none;
}
.darkroom-head{ position:relative; padding:29px 30px 15px; }
.darkroom-kicker{ margin:0 0 5px; font-size:9px; font-weight:700; letter-spacing:.28em; color:#d98572; }
.darkroom-head h2{ margin:0; font:700 28px/1.1 "Songti SC","STSong",serif; letter-spacing:.08em; }
.darkroom-head p{ margin:9px 48px 0 0; color:rgba(246,236,215,.62); font-size:11px; line-height:1.65; }
.darkroom-close{
position:absolute; z-index:2; top:22px; right:20px; width:34px; height:34px; border-radius:50%;
border:1px solid rgba(255,241,213,.18); color:#f6ecd7; background:rgba(255,255,255,.05);
cursor:pointer; font-size:20px; line-height:1;
}
.darkroom-close:hover{ background:#f6ecd7; color:#251c36; }
.darkroom-current{
margin:0 25px 16px; padding:15px; display:grid; grid-template-columns:94px 1fr; gap:14px;
color:#362a35; background:#f2e7cf; border-radius:16px; transform:rotate(-.35deg);
box-shadow:0 13px 26px rgba(0,0,0,.22),inset 0 0 0 1px rgba(92,62,43,.12);
}
.darkroom-preview-wrap{ position:relative; height:84px; padding:7px 7px 16px; background:#fffaf0; box-shadow:0 4px 10px rgba(53,35,37,.18); }
.darkroom-preview-wrap::after{ content:"旅途留影"; position:absolute; left:0; right:0; bottom:2px; text-align:center; font-size:7px; letter-spacing:.22em; color:#9f7964; }
.darkroom-preview{ width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.88) sepia(.06); }
.darkroom-current-copy{ min-width:0; display:flex; flex-direction:column; }
.darkroom-current-copy small{ color:#a3594f; font-size:8px; font-weight:800; letter-spacing:.22em; }
.darkroom-current-copy strong{ margin-top:5px; font:700 14px/1.35 "Songti SC","STSong",serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.darkroom-current-copy span{ margin-top:4px; color:#806d69; font-size:9px; line-height:1.5; }
.darkroom-actions{ display:flex; gap:7px; margin-top:auto; padding-top:8px; }
.darkroom-action{
flex:1; min-height:31px; padding:0 10px; border:0; border-radius:9px; cursor:pointer;
font-size:10px; font-weight:800; letter-spacing:.08em;
}
.darkroom-action.primary{ color:#fff8e8; background:#7751a1; box-shadow:0 5px 12px rgba(83,50,117,.23); }
.darkroom-action.primary:hover{ background:#67418f; }
.darkroom-action.ghost{ flex:0 0 auto; color:#765f62; background:rgba(110,77,75,.08); }
.darkroom-action.ghost:hover{ background:rgba(110,77,75,.15); }
.darkroom-toolbar{ display:flex; align-items:center; gap:8px; padding:0 25px 12px; }
.darkroom-toolbar span{ flex:1; color:rgba(246,236,215,.64); font-size:9px; letter-spacing:.16em; }
.darkroom-toolbar button{
border:1px solid rgba(255,238,205,.18); border-radius:999px; padding:7px 11px;
color:#f1dfc4; background:rgba(255,255,255,.05); cursor:pointer; font-size:9px;
}
.darkroom-toolbar button:hover{ color:#2a2036; background:#f1dfc4; }
.filmstrip-shell{
position:relative; flex:1; min-height:0; padding:18px 18px; overflow:hidden;
background:
repeating-linear-gradient(90deg,rgba(246,226,188,.72) 0 10px,transparent 10px 18px) top/100% 7px no-repeat,
repeating-linear-gradient(90deg,rgba(246,226,188,.72) 0 10px,transparent 10px 18px) bottom/100% 7px no-repeat,
rgba(4,3,8,.32);
border-top:1px solid rgba(255,238,205,.10);
}
.filmstrip{ height:100%; padding:2px 5px 16px; overflow-y:auto; display:grid; grid-template-columns:1fr 1fr; gap:11px; scrollbar-width:thin; scrollbar-color:#765d7a transparent; }
.film-card{
position:relative; min-width:0; padding:0 0 9px; overflow:hidden; text-align:left;
color:#eaddc7; background:#30263a; border:1px solid rgba(255,239,207,.12); border-radius:10px;
cursor:pointer; box-shadow:0 7px 16px rgba(0,0,0,.18); transition:.18s ease;
}
.film-card:hover{ transform:translateY(-2px); border-color:rgba(229,140,116,.66); background:#382b43; }
.film-card.selected{ border-color:#e6816e; box-shadow:0 0 0 2px rgba(230,129,110,.20),0 8px 18px rgba(0,0,0,.24); }
.film-card-photo{ position:relative; display:block; width:100%; aspect-ratio:4/3; overflow:hidden; background:#17131d; }
.film-card-photo img{ width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.78) sepia(.10); transition:.25s ease; }
.film-card:hover img{ filter:saturate(.98) sepia(0); transform:scale(1.025); }
.film-card-no{ position:absolute; left:7px; top:7px; padding:3px 6px; border-radius:999px; color:#fff; background:rgba(22,17,29,.68); backdrop-filter:blur(5px); font-size:8px; font-weight:800; letter-spacing:.12em; }
.film-card-custom{ position:absolute; right:7px; top:7px; width:7px; height:7px; border-radius:50%; background:#ec806c; box-shadow:0 0 0 3px rgba(236,128,108,.18); }
.film-card-copy{ display:block; padding:8px 9px 0; }
.film-card-copy small{ display:block; color:#b78d7b; font-size:7px; letter-spacing:.14em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.film-card-copy strong{ display:block; margin-top:3px; font:700 10px/1.35 "Songti SC","STSong",serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.darkroom-toast{
position:fixed; z-index:160; left:50%; bottom:34px; max-width:min(420px,86vw); padding:11px 17px;
color:#fff8e9; background:rgba(35,27,48,.92); border:1px solid rgba(255,241,213,.22);
border-radius:999px; box-shadow:0 12px 35px rgba(16,10,28,.30); backdrop-filter:blur(9px);
font-size:11px; letter-spacing:.08em; opacity:0; transform:translate(-50%,12px); pointer-events:none; transition:.24s ease;
}
.darkroom-toast.show{ opacity:1; transform:translate(-50%,0); }
.darkroom-toast.error{ background:rgba(118,43,48,.94); }
@media (hover:none){ .photo-swap-button{ opacity:1; transform:none; } }
@media (max-width:720px){
.edge-add{ right:14px; min-width:48px; width:48px; height:48px; padding:0; }
.edge-add-label{ display:none; }
.darkroom-head{ padding-left:22px; }
.darkroom-current{ margin-left:18px; margin-right:18px; }
.darkroom-toolbar{ padding-left:18px; padding-right:18px; }
}
@media (max-width:380px){ .filmstrip{ grid-template-columns:1fr; } }
/* ===== TRAIN_REDESIGN_STATION_V1: cinematic station, quiet reading ===== */
:root{
--rail-ink:#322519;
--rail-paper:#f2e5ca;
--rail-brass:#9c6b31;
--rail-red:#8e3f2d;
--rail-green:#263d35;
}
body.v2{
color:var(--rail-ink);
background:#2b2017;
}
.station-scene{
position:fixed; inset:0; z-index:-3; pointer-events:none;
background-image:url("assets/images/image-05-33bb043f.png");
background-size:cover; background-position:center; background-repeat:no-repeat;
transform:scale(1.018); transform-origin:center;
animation:stationArrival 1.65s cubic-bezier(.2,.7,.2,1) both;
}
.station-scene::after{
content:""; position:absolute; inset:0;
background:rgba(45,31,18,.06);
box-shadow:inset 0 -170px 145px rgba(24,14,8,.23),inset 0 110px 120px rgba(255,236,196,.06);
}
@keyframes stationArrival{
from{ opacity:0; transform:translateX(26px) scale(1.07); filter:saturate(.78) brightness(.82); }
to{ opacity:1; transform:translateX(0) scale(1.018); filter:saturate(.96) brightness(.98); }
}
body.v2 .bg,body.v2 .bg-tint{ display:none; }
body.v2 .corner-stamp,body.v2 .hand-title,body.v2 .stampmark{ display:none!important; }
.journey-masthead{
position:fixed; z-index:12; left:58px; right:54px; top:34px;
display:grid; grid-template-columns:minmax(260px,410px) minmax(460px,1fr); align-items:start; gap:44px;
color:var(--rail-ink); pointer-events:none;
opacity:0; transform:translateY(-10px); animation:mastheadEnter .9s .34s ease forwards;
}
@keyframes mastheadEnter{ to{ opacity:1; transform:none; } }
.masthead-eyebrow{
display:flex; align-items:center; gap:10px; margin-bottom:7px;
font-size:9px; font-weight:800; letter-spacing:.24em; color:rgba(50,37,25,.66);
}
.masthead-stamp{
display:inline-grid; place-items:center; min-width:38px; min-height:38px; padding:4px;
border:2px solid rgba(142,63,45,.74); color:var(--rail-red); border-radius:3px;
font:700 11px/1.05 "Songti SC","STSong",serif; letter-spacing:.08em; transform:rotate(-3deg);
}
.masthead-title{
margin:0; font:700 48px/1.05 "Songti SC","STSong","Noto Serif CJK SC",serif;
letter-spacing:.055em; color:#2c2117; text-shadow:0 1px 0 rgba(255,247,226,.62);