diff --git a/.memory/worklog.json b/.memory/worklog.json index 9fd7911..36ccd31 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -223,6 +223,13 @@ "message": "auto-save 2026-04-18 12:53 (~1)", "hash": "93823d9", "files_changed": 1 + }, + { + "ts": "2026-04-18T12:59:27+08:00", + "type": "commit", + "message": "auto-save 2026-04-18 12:59 (+2, ~1)", + "hash": "7a1c957", + "files_changed": 8 } ] } diff --git a/scripts/gen-images.py b/scripts/gen-images.py index 9ba9b2c..4aa3304 100644 --- a/scripts/gen-images.py +++ b/scripts/gen-images.py @@ -46,8 +46,8 @@ SCENES = [ { "id": "ch14_linwanqiao_window", "age_hint": "NOT the protagonist — focus on a different character, a composed woman in her mid-30s named LIN WANQIAO", - "scene": "Floor-to-ceiling window of the 31st floor of a city office tower, late morning. A composed elegant Chinese woman in her mid-30s, wavy shoulder-length hair, beige trench coat, pale gold earrings, stands with her back turned to the viewer, facing the window. In the reflection on the glass AND on the wall-mounted TV to her right, a news feed is broadcasting — blurred shot of a black emergency response vehicle parked at a small alley; beside the vehicle a thin-shouldered man in an old coat carries a black canvas bag. In her hand she holds a cup of coffee, its steam rising. The open-plan office behind her is chaotic — colleagues crowded around a projector in a meeting room. She herself stands still, not moving. Camera framing behind her shoulder. Her expression cannot be seen clearly.", - "mood": "Cold blue-white. City panic in the background, stillness in the foreground. Regret without tears." + "scene": "Floor-to-ceiling window of the 31st floor of a city office tower, late morning under heavy overcast sky. A composed elegant Chinese woman in her mid-30s, wavy shoulder-length hair, beige trench coat, pale gold earrings, stands with her back turned to the viewer, facing the window. In her hand she holds a cup of coffee, faint steam rising. On a wall-mounted flat TV to her right, the screen shows ONLY a silent footage: a dim gray narrow city alley, an unmarked black van parked at the alley entrance, a thin-shouldered Chinese man in a plain worn dark coat walking past the van carrying a plain black canvas shoulder bag. The TV screen shows NO NEWS BANNER, NO ENGLISH TEXT, NO HEADLINE, NO SUBTITLE — the entire screen is just the alley footage with cinematic film grain. The open-plan office behind her is chaotic — out-of-focus colleagues crowded around a projector in a distant glass-walled meeting room. She herself stands still, not moving. Camera framed from slightly behind her shoulder. Her face cannot be seen clearly.", + "mood": "Cold blue-white. The city in the background is in disarray, stillness in the foreground. A look across time, regret without tears. ABSOLUTELY NO TEXT ANYWHERE ON THE TV OR IN THE SCENE." }, { "id": "ch16_victory_night_alone", @@ -63,9 +63,9 @@ SCENES = [ }, { "id": "s2_blank_second_page", - "age_hint": "around 64 years old, hair half white, thin, composed, sitting in a small simple book study at sunset", - "scene": "A clean simple home study by a wide river window at dusk. Golden horizontal sunset light cutting in across the wooden desk. GU CHENZHOU, now 64, hair half white, thin, sits at the desk. On the desk: an old worn canvas bag with 'GUIXU · 2038' on its side, opened; a very old small notebook lies open, the first page shows one hand-written line of Chinese and the second page is blank. His hand with thin veined skin rests on the blank second page. His eyes are fixed on the empty page. On his right, a laptop screen glows faintly — on that laptop screen we can see three Chinese characters '我 怕 的——' at the top of a blank text editor with a blinking cursor after them. No one else in the room. Absolute stillness. Framing close enough to see both the notebook and the laptop screen in the same shot.", - "mood": "Quiet, ceremonial, doubt. An old hero facing a second choice. Open ending." + "age_hint": "around 64 years old — NOT older, NOT 70+. Hair is salt-and-pepper with roughly equal black and grey strands, still thick and neatly combed, NOT bald, NOT thinning on top. Face remains the same person as in the reference image — just aged by about 20 years. Slim but upright posture. Still composed and sharp.", + "scene": "A clean simple home study by a wide river window at dusk. Warm golden horizontal sunset light cutting in across a worn wooden desk. GU CHENZHOU, same face as the reference image but about 64 years old, hair still thick but now half black half grey, sits alone at the desk. On the desk, in the foreground: an old worn canvas shoulder bag with the faded handwritten text 'GUIXU · 2038' on its side — the bag lies open. A very old small hand-bound notebook lies open on the desk — the first page shows one line of small hand-written Chinese characters; the second page is completely blank. His hand with slightly prominent veins rests lightly on the blank second page. His eyes are fixed on the empty page, a silent expression of doubt. To his right, a slim modern laptop sits — its screen glowing faintly — on the laptop screen is a nearly-empty minimal text editor, and at the top of the editor three large Chinese characters are clearly readable: '我 怕 的——' followed by a blinking cursor. The laptop screen is positioned and framed so the viewer can clearly read those three Chinese characters. No other person in the room. Absolute stillness.", + "mood": "Quiet, ceremonial, doubt. An old hero facing a second choice. Open ending. Warm golden light against the cold blue river outside." }, ] @@ -147,20 +147,24 @@ def generate_one(scene: dict, ref_data_url: str) -> tuple[str, Path | None, str def main(): - print(f"=== gen {len(SCENES)} images ===") + only = sys.argv[1:] if len(sys.argv) > 1 else None + scenes = [s for s in SCENES if not only or s["id"] in only] + print(f"=== gen {len(scenes)} images ===") + if only: + print(f"filter: {only}") print(f"ref image: {REF_IMG} ({REF_IMG.stat().st_size // 1024}KB)") ref_url = encode_ref_image() print(f"ref base64 len: {len(ref_url) // 1024}KB") print(f"out dir: {OUT_DIR}") print() print("scenes:") - for s in SCENES: + for s in scenes: print(f" - {s['id']}") print() results = [] with ThreadPoolExecutor(max_workers=3) as pool: - futures = [pool.submit(generate_one, s, ref_url) for s in SCENES] + futures = [pool.submit(generate_one, s, ref_url) for s in scenes] for f in as_completed(futures): results.append(f.result()) diff --git a/web/images/extra/ch06_panic_night.jpg b/web/images/extra/ch06_panic_night.jpg new file mode 100644 index 0000000..6e1e214 Binary files /dev/null and b/web/images/extra/ch06_panic_night.jpg differ diff --git a/web/images/extra/ch06_panic_night.png b/web/images/extra/ch06_panic_night.png deleted file mode 100644 index 753f788..0000000 Binary files a/web/images/extra/ch06_panic_night.png and /dev/null differ diff --git a/web/images/extra/ch10_cafe_read_alone.jpg b/web/images/extra/ch10_cafe_read_alone.jpg new file mode 100644 index 0000000..9f30ceb Binary files /dev/null and b/web/images/extra/ch10_cafe_read_alone.jpg differ diff --git a/web/images/extra/ch10_cafe_read_alone.png b/web/images/extra/ch10_cafe_read_alone.png deleted file mode 100644 index ebe6be6..0000000 Binary files a/web/images/extra/ch10_cafe_read_alone.png and /dev/null differ diff --git a/web/images/extra/ch14_linwanqiao_window.jpg b/web/images/extra/ch14_linwanqiao_window.jpg new file mode 100644 index 0000000..a2389e4 Binary files /dev/null and b/web/images/extra/ch14_linwanqiao_window.jpg differ diff --git a/web/images/extra/ch14_linwanqiao_window.png b/web/images/extra/ch14_linwanqiao_window.png deleted file mode 100644 index 3af4c71..0000000 Binary files a/web/images/extra/ch14_linwanqiao_window.png and /dev/null differ diff --git a/web/images/extra/ch16_victory_night_alone.jpg b/web/images/extra/ch16_victory_night_alone.jpg new file mode 100644 index 0000000..8f9ba83 Binary files /dev/null and b/web/images/extra/ch16_victory_night_alone.jpg differ diff --git a/web/images/extra/ch16_victory_night_alone.png b/web/images/extra/ch16_victory_night_alone.png deleted file mode 100644 index d984f30..0000000 Binary files a/web/images/extra/ch16_victory_night_alone.png and /dev/null differ diff --git a/web/images/extra/ring_classroom_10yrs_later.jpg b/web/images/extra/ring_classroom_10yrs_later.jpg new file mode 100644 index 0000000..02321c2 Binary files /dev/null and b/web/images/extra/ring_classroom_10yrs_later.jpg differ diff --git a/web/images/extra/ring_classroom_10yrs_later.png b/web/images/extra/ring_classroom_10yrs_later.png deleted file mode 100644 index a72daca..0000000 Binary files a/web/images/extra/ring_classroom_10yrs_later.png and /dev/null differ diff --git a/web/images/extra/s2_blank_second_page.jpg b/web/images/extra/s2_blank_second_page.jpg new file mode 100644 index 0000000..36a7203 Binary files /dev/null and b/web/images/extra/s2_blank_second_page.jpg differ diff --git a/web/images/extra/s2_blank_second_page.png b/web/images/extra/s2_blank_second_page.png deleted file mode 100644 index 2b7c977..0000000 Binary files a/web/images/extra/s2_blank_second_page.png and /dev/null differ diff --git a/web/index.html b/web/index.html index 0d80695..9d95ba0 100644 --- a/web/index.html +++ b/web/index.html @@ -449,6 +449,80 @@ section { letter-spacing: 0.2em; } +/* ---------- Reader extras (章末延伸图) ---------- */ +.reader-extras { + margin: 64px 0 40px; + padding: 32px 0 0; + border-top: 1px solid var(--border); +} +.reader-extras-label { + color: var(--gold); + font-size: 11px; + letter-spacing: 0.4em; + text-transform: uppercase; + margin-bottom: 24px; +} +.reader-extras-grid { + display: grid; + grid-template-columns: 1fr; + gap: 28px; +} +.reader-extra { + margin: 0; + cursor: zoom-in; + transition: transform 0.3s ease; +} +.reader-extra:hover { transform: translateY(-2px); } +.reader-extra img { + width: 100%; + aspect-ratio: 16/10; + object-fit: cover; + background: var(--bg-card); + border: 1px solid var(--border); +} +.reader-extra figcaption { + padding: 16px 0 0; +} +.reader-extra-cap { + font-family: 'Songti SC', serif; + font-size: 19px; + font-weight: 600; + color: var(--fg); + margin-bottom: 4px; +} +.reader-extra-sub { + color: var(--gold); + font-size: 11px; + letter-spacing: 0.3em; + text-transform: uppercase; +} + +/* ---------- Gallery extras divider ---------- */ +.gallery-extras-heading { + display: flex; + align-items: center; + gap: 20px; + margin: 80px 0 32px; + color: var(--gold); + font-family: 'Songti SC', serif; + font-size: 22px; + font-weight: 700; +} +.gallery-extras-heading::before, .gallery-extras-heading::after { + content: ''; + flex: 1; + height: 1px; + background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); +} +.gallery-extras-sub { + text-align: center; + color: var(--fg-dim); + font-size: 12px; + letter-spacing: 0.3em; + margin: -16px 0 40px; + text-transform: uppercase; +} + /* ---------- Footer ---------- */ footer { padding: 64px 24px 40px; @@ -675,6 +749,10 @@ footer p { margin: 8px 0; }
从毕业即过时,到代码之王——画面随男主心境推进:冷灰蓝 → 工业寒夜 → 红色告警 → 深黑金巅峰。点击任一幅放大查看。
+ +' + escapeHtml(line) + '
'; }).join('\n'); + const extrasHtml = (ch && ch.extras) ? ` +