知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
feat: add the website, the changelog page and the Apache-2.0 license
wqugurud315e965005f
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.ymlnew file mode 100644index 0000000..915c34c--- /dev/null+++ b/.github/workflows/pages.yml@@ -0,0 +1,37 @@+name: pages++on:+ push:+ branches: [main]+ paths: ["site/**", "scripts/site.py", ".github/workflows/pages.yml"]+ workflow_dispatch:++permissions:+ contents: read+ pages: write+ id-token: write++concurrency:+ group: pages+ cancel-in-progress: true++jobs:+ deploy:+ # Pages needs a public repo on this plan; skip quietly while it is private.+ if: ${{ !github.event.repository.private }}+ # Linux is enough: the site is static files plus a Python build step (og.png / icon.png are committed).+ runs-on: ubuntu-latest+ environment:+ name: github-pages+ url: ${{ steps.deployment.outputs.page_url }}+ steps:+ - uses: actions/checkout@v4+ - name: Build the site+ run: python3 scripts/site.py+ env:+ SITE_URL: ${{ vars.SITE_URL }}+ - uses: actions/upload-pages-artifact@v3+ with:+ path: build/site+ - id: deployment+ uses: actions/deploy-pages@v4diff --git a/AGENTS.md b/AGENTS.mdindex 0976981..2faebcd 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -4,15 +4,16 @@ Live Subs is a macOS menu bar app that turns whatever the Mac is playing (stream## Scope (deliberately small)-- Few surfaces, nothing more: the **menu bar panel** (on/off, heard language, translate-to language, "我说话也翻译", display mode, meeting records, quit), what shows while listening — the **live notes window** (default) or the **subtitle bar** or nothing (`displayMode`) —, the **main window** (meeting records) and a **settings window** (sidebar: 听 / 我说话也翻译 / 显示 / 会议记录 / AI 服务). First launch shows a three-step **onboarding** window (permissions, try the sample video, speaking).+- Few surfaces, nothing more: the **menu bar panel** (on/off, heard language, translate-to language, "同声传译", display mode, meeting records, quit), what shows while listening — the **live notes window** (default) or the **subtitle bar** or nothing (`displayMode`) —, the **main window** (meeting records) and a **settings window** (sidebar: 显示 (heard language and translate-to on top) / 同声传译 / 会议记录 / AI 服务, plus 诊断 when the bottom-left switch is on). First launch shows a three-step **onboarding** window (permissions, try the sample video, speaking).- Listening: system audio (Core Audio process tap, our own process excluded) → spoken-language detection across installed on-device models → on-device transcription (`SpeechAnalyzer` / `SpeechTranscriber`) → translation → notes window caption or subtitle bar. Every confirmed sentence goes into the live meeting record. Translation (`TranslationService`): finished sentences and speak-back go to Ling when a key is set (glossary from the notes' terms), else or on any failure Google, then Apple's on-device `TranslationSession(installedSource:)`; partial text refreshed every second always goes to Google (it would use up Ling's rate limit).- Language detection compares confidence: the same 3–6 s clip after a pause is transcribed by every installed model; a winner needs confidence ≥ 0.6 and a 0.08 lead; the first detection or a 0.30 lead switches at once, otherwise two agreeing detections. After a switch the last 8 s are replayed into the new model.- "Follow system" translates into the first system language that differs from the source language.- Subtitle bar: shows only while someone talks (auto) or always; tucks into a dot after 2/4/8 s of quiet; fades to 15% and stays click-through while the pointer passes over it; editable after the pointer rests 0.6 s (drag to move, drag the corner to scale, double-click resets); ⌃⌥S (changeable) cycles the display mode (notes → bar → none). Position, width and size are remembered per display.- Speaking: hold the right ⌥ key alone (a listen-only event tap, needs Input Monitoring; any other key while held cancels the press as a chord) or a user-chosen combination (Carbon hotkey, no permission) → microphone → one `SpeechAnalyzer` per press, finished with `finalizeAndFinishThroughEndOfInput` → translate into the room's language → system voice → the chosen output device (a virtual microphone). The virtual microphone is BlackHole 2ch, installed from the app: download the official notarized package, check its pinned SHA-256, run `installer` and restart `coreaudiod` in one standard administrator prompt (the package only copies the driver and asks for a reboot; Core Audio loads a new HAL plug-in only when it restarts). Then a loopback sound test: speak a fixed English phrase into the device, record its input side, transcribe it (`LoopbackTest`). The checklist UI (`MicSetupCard`) is shared by onboarding step 3 and settings. We never bundle the GPL driver.-- AI (Ling, ant-ling.com, OpenAI-compatible): one user key for the whole app, in the login Keychain (`AIKey`, service = bundle id + `.ai`; never in UserDefaults, logs or exports), checked with a one-token `Ling-3.0-tiny` call. `LingClient` is the single gate for every call: request *starts* ≥ 0.6 s apart (the account allows ~2 requests/s across all models), waiting requests ordered speak-back > translation > notes; notes retry 429 with 1/2/4/8 s backoff, translation and speak-back fail fast to the next translator; 401 marks the key invalid. Every call sends `thinking: disabled`, puts the content in the **system** message and a fixed instruction in the user message (otherwise question-like text gets a search-grounded essay instead), and drops replies with no `finish_reason` or starting 根据现有检索证据.-- Live notes (`NotesEngine`, UI-free): about every 45 s with new lines, one JSON call sends the current notes + new lines (`[L12 02:03 对方] …`) and gets the whole notes back (summary, ≤ 8 topics with points and an optional fishbone, conclusions/to-dos with evidence line ids → support counts, terms with misrecognised forms); a bad reply never replaces good notes. A final pass over the whole transcript runs when the meeting ends ("完整版"). Notes are written in Chinese when Chinese is among the system languages. Stored as `notes` in `session.json`; finished meetings without notes can generate them from the main window. Speak-back can use Ming's voice (`Ming-3.0-tts-0.5B`, SSE PCM 24 kHz) through the same key, falling back to the system voice.-- Live notes window (`NotesWindow`): a floating `NSPanel`, `sharingType = .none` (invisible to screen sharing and screenshots), on all Spaces, frame autosaved; < 360 px a card with "我刚走神了,错过什么?" (from the topics since it was collapsed), tabs 纪要 / 文字记录 in between, both side by side from 760 px; banners for no key (inline key entry) / invalid key / rate limited.+- AI (Ling, ant-ling.com, OpenAI-compatible): one user key for the whole app, for now in a 0600 file `ling-api-key` in the app's Application Support folder, excluded from backups (`AIKey`; never in UserDefaults, logs or exports; ad-hoc signing makes the Keychain ask for the password after every rebuild or update, so it moves back to the Keychain once builds have a Developer ID; a key in the old Keychain item, service = bundle id + `.ai`, is moved over once), checked with a one-token `Ling-3.0-tiny` call. `LingClient` is the single gate for every call: request *starts* ≥ 0.6 s apart (the account allows ~2 requests/s across all models), waiting requests ordered speak-back > translation > notes; notes retry 429 with 1/2/4/8 s backoff, translation and speak-back fail fast to the next translator; 401 marks the key invalid. Every call sends `thinking: disabled`, puts the content in the **system** message and a fixed instruction in the user message (otherwise question-like text gets a search-grounded essay instead), and drops replies with no `finish_reason` or starting 根据现有检索证据.+- Live notes (`NotesEngine`, UI-free): about every 45 s with new lines, one JSON call sends the current notes + new lines (`[L12 02:03 对方] …`) and gets the whole notes back (summary, ≤ 8 topics with points and an optional fishbone, conclusions/to-dos with evidence line ids → support counts, terms with misrecognised forms); a bad reply never replaces good notes. A final pass over the whole transcript runs when the meeting ends ("完整版"). Notes are written in Chinese when Chinese is among the system languages. Stored as `notes` in `session.json`; finished meetings without notes can generate them from the main window. Speak-back voices (`Voices.swift`, settings UI `VoicePicker.swift` on the 同声传译 page): one choice per room language (`speakVoices`, "en" → `ming:US_Emma` / `system:<AVSpeechSynthesisVoice id>` / `clone`). Offered: hand-picked Ming voices (English Emma/George/Charlotte; Chinese 小雅/小棠/小锋/卓然; ja/ko/de/fr/es via Emma/George with `language_id`) and the Mac's best female and male voice; default is Ming's first with a key, else the Mac's. `clone` is the user's own voice: a 8–30 s recording read from a passage in their language (16 kHz WAV + its on-device transcript in `voice/` under Application Support, 0600, out of backups), sent to Ming as `references` with every sentence (~600 KB, first audio ~3 s, ~8 s on a cold call; a foreign language keeps the speaker's accent). Ming's voices fall back to the Mac's voice without a usable key or when the stream fails; previews play on the default output, not the room.0-tts-0.5B`, SSE PCM 24 kHz) through the same key, falling back to the system voice.+- Live notes window (`NotesWindow`): a floating `NSPanel`, `sharingType = .none` (invisible to screen sharing and screenshots), on all Spaces, frame autosaved; < 360 px a card that offers what the notes added since it was collapsed ("收起后新增 …", only when there is something), tabs 纪要 / 文字记录 in between, both side by side from 760 px; banners for no key (inline key entry) / invalid key / rate limited. While writing: sound bars before anyone speaks, a spinner with "已听到 N 句" and shimmering placeholders for the first version, an "正在更新" pill and a warm shimmer under the current topic for later updates (`TimelineView`, since the window redraws every second). Transcript: oldest first, follows the newest line plus the sentence still being spoken; scrolling up pauses following and gathers new lines into a "↓ N 句新内容" button; search highlights in place (query plus the notes' misheard forms of a name). Notes carry times: points and conclusions get the time of their first evidence line (`pointTimes`, `NoteItem.t`; carried over when the model echoes a point without evidence), topics show ranges.+- App menu (`AppMenu`): the app is a regular app (name and menus top left, Dock, ⌘Tab) while any of its windows is visible, the notes window included, and an accessory otherwise (`AppDelegate.updateActivationPolicy`; never activates on its own, so the notes window appearing doesn't take focus). Menus: app, 纪要, 显示 (display mode, ⌘1–⌘3 sizes, 始终置顶), 编辑 (standard responder-chain actions, so ⌘V works in fields; ⌘F search), 窗口, 帮助.- Meeting records: one folder per meeting, `session.json` + `system.m4a` (+ `mic.m4a`); empty meetings are dropped; export to Markdown, Word (`.docx` via `NSAttributedString`, both starting with the notes) and SRT. Speaker labels are only "对方" (system audio) and "你" (microphone): no diarization yet.- Shortcuts (`Shortcuts.swift`): talk and subtitle-bar toggle are recorded in settings (`ShortcutField`). A combination must include ⌃ or ⌘ (⌥/⇧ alone types characters; bare F keys are brightness/volume), must not be a system shortcut (`CopySymbolicHotKeys`) or held by another app (Carbon refuses to register it).- Nothing the user does needs the Terminal. When a feature request fits none of the above, push back before adding UI.@@ -21,17 +22,18 @@ Live Subs is a macOS menu bar app that turns whatever the Mac is playing (stream- Source of truth: the Design canvases in claude.ai (logo directions, onboarding, auto show/hide) and the app itself.- Look: light grey ground `#F3F4F6`/`#F6F7F9`, white cards, ink `#15171C`, one accent orange `#E8552B` for "live" (dots, the speaking line, the icon). Text greys `#5A5F6B` / `#6B7080` (they pass 4.5:1 on white).-- Logo C: white sound bars turning into lines of text on an orange squircle. The app icon is drawn by `Sources/LiveSubsIcon`; the in-app mark (`BrandMark`) and the menu bar template glyph (`BrandImage.menuBar`, 40% when paused) are drawn in code in `Onboarding.swift`.+- Logo H1: a cicada's eyes and wings peeking over a subtitle bar, on an orange squircle. The geometry (100-unit design space) is in three places kept in step: `CicadaLogo` in `Onboarding.swift` (the in-app `BrandMark` and the one-colour menu bar glyph `BrandImage.menuBar`, 40% when paused), `Sources/LiveSubsIcon` (the app icon) and `site/icon.svg`.- Copy is Chinese, short: one line of grey helper text at most.## Layout- `Package.swift`: SwiftPM, macOS 26+, Swift 5 language mode, no dependencies.-- `Sources/LiveSubs`: the app. Engine files are UI-free: `SystemAudioTap`, `AudioRouter` (resample, feed, ring buffer, recording), `LanguageDetector`, `ListenEngine`, `SpeakEngine`, `Shortcuts` (Carbon `HotKey`, right-⌥ `RightOptionKey`), `Ling` (Keychain key + client), `Notes` (model + engine), `Translator`, `VirtualMic`, `SessionStore` (+ exports). UI: `Overlay` (subtitle bar), `Views` (panel, main window), `SettingsWindow` (settings + the virtual mic checklist), `AISettings`, `NotesWindow` + `NotesViews` (live notes window; notes and transcript views shared with the main window), `Onboarding` (+ sample player, brand mark), `AppModel` (wiring, status item, windows, debug control, `@main`). `DMGBackground` draws the installer background; `DevBuild` tells dev from release.+- `Sources/LiveSubs`: the app. Engine files are UI-free: `SystemAudioTap`, `AudioRouter` (resample, feed, ring buffer, recording), `LanguageDetector`, `ListenEngine`, `SpeakEngine`, `Shortcuts` (Carbon `HotKey`, right-⌥ `RightOptionKey`), `Ling` (Keychain key + client), `Notes` (model + engine), `Translator`, `VirtualMic`, `SessionStore` (+ exports). UI: `Overlay` (subtitle bar), `Views` (panel, main window), `SettingsWindow` (settings + the virtual mic checklist), `AISettings`, `NotesWindow` + `NotesViews` (live notes window; notes and transcript views shared with the main window), `Onboarding` (+ sample player, brand mark), `AppMenu` (the menus top left), `AppModel` (wiring, status item, windows, activation policy, debug control, `@main`). `DMGBackground` draws the installer background; `DevBuild` tells dev from release.- `Sources/LiveSubsIcon`: CLI that renders the icon set (`--dev` adds the DEV band).- `Resources/`: `Info.plist`, `sample/` (the 7 s onboarding clip, made by `scripts/make-sample.sh`), `dmg/DS_Store` (installer window layout).- `scripts/build.sh`: builds `build/LiveSubs.app`. Without `RELEASE=1` it is a **dev build**: "Live Subs Dev", bundle id `com.wquguru.cicada.dev`, `LiveSubsDev` = `branch @ commit[+]` in Info.plist; "DEV" beside the menu bar glyph, a DEV badge and the stamp in the panel, a DEV band on the icon, its own settings, permissions, `~/Library/Application Support/LiveSubs Dev` and log `/tmp/livesubs-dev-debug.log`. Both builds are signed ad hoc with a fixed designated requirement (the bundle id) so rebuilding keeps the system-audio and microphone permissions. Don't change the release bundle id `com.wquguru.cicada`: permissions are tied to it.- `scripts/package.sh`: `RELEASE=1` build (refuses any other bundle id) → `LiveSubs-<version>-macOS-AppleSilicon.dmg` / `.zip` + `checksums.txt`. The DMG background is drawn by the app (`LiveSubs --render-dmg-background out.png <scale>`); the window layout is `Resources/dmg/DS_Store`, made by Finder via `scripts/dmg-template.sh` — rerun it after changing the window, icon positions or background, and keep `DMGBackground.swift` in step.+- `site/`: the website (GitHub Pages, Chinese first): `index.html` and `changelog.html` are templates sharing `header.html` / `footer.html` and `style.css`; `changelog.json` is the Chinese changelog the site shows (newest first, `"date": null` = not released yet; keep it in step with `CHANGELOG.md`). `scripts/site.py` builds `build/site/` (pages, `feed.xml`, `sitemap.xml`, `robots.txt`; `SITE_URL` sets the address); `.github/workflows/pages.yml` deploys it (skipped while the repo is private). `og.png` and `icon.png` are rendered by `scripts/site-images.sh` (Chrome) from `scripts/site-og.html` and `site/icon.svg`, and committed. Phones get no download: a "发到我的 Mac" button shares or copies the link.- `tools/`: test helpers (remote control, synthetic mouse/keys, window capture, transcription check); see `tools/README.md`.## Commands@@ -42,9 +44,12 @@ scripts/build.sh && open build/LiveSubs.app # dev build (Live Subs Dev)RELEASE=1 scripts/build.sh # release build (com.wquguru.cicada)scripts/package.sh # DMG + zip + checksums in build/scripts/make-sample.sh # regenerate the onboarding sample clip+python3 scripts/site.py && python3 -m http.server -d build/site # website preview```-Debug control: dev builds always accept commands on the distributed notification `com.wquguru.cicada.debug` (release builds only with `defaults write com.wquguru.cicada debug -bool true`, which also logs transcript text). Send them with `tools/lsctl` (`start`, `stop`, `open`, `panel`, `onboarding:<step>`, `samplePlay`, `speakFile:<audio>`, `settings:<listen|speak|overlay|records>`, `micTest`, `micNext`, `talkKey:<right|keyCode:mods>`, `toggleKey:<keyCode:mods>`, `shortcuts`, `aiKeyFile:<path>` (key from a 0600 file, never through the log), `aiCheck`, `aiRemove`, `aiState`, `lingSimulate:<429|hijack|timeout|off>`, `voice:<ming|system>`, `display:<notes|bar|none>`, `notesWindow[:x,y,w,h]`, `notesFrame`, `notesNow`, `notesState`, `notesShow:<id>`, `notesReplay:<id>`, `notesRender:<png>`, `notesCapturable`, `place:x,y,w,font`, `frame`, `overlayState`, `export:<dir>` …).+Diagnostics (`Diagnostics.swift`, design: claude.ai/artifact/GHGzgN1sCodGfa17ZXLCa7): a "诊断" switch at the bottom left of the settings sidebar, beside the version (`diagnostics`, off by default; on in dev builds); switching it on adds a "诊断" tab below the others. It records only timings and counts, never transcript text: per heard sentence last new words → final transcript ("识别定稿") and final → translation, with Ling queue time, the provider that answered and why earlier ones fell through (`TranslateTrace`); per speak-back press release → transcript → translation → voice done; every Ling request (priority, queue, duration, outcome, tokens). Lines go to `metrics.jsonl` in the meeting folder (`type` = `sentence` / `ling`). The tab shows p50/p95, the provider split, fallback reasons, Ling rate and the last sentences as bars, and copies a plain-text report. It is separate from `debug`: the switch never enables transcript logging or the debug notification. Not done yet: the latency line under the subtitle bar and the health line in the panel.++Debug control: dev builds always accept commands on the distributed notification `com.wquguru.cicada.debug` (release builds only with `defaults write com.wquguru.cicada debug -bool true`, which also logs transcript text). Send them with `tools/lsctl` (`start`, `stop`, `open`, `panel`, `onboarding:<step>`, `samplePlay`, `speakFile:<audio>`, `settings:<overlay|speak|records|ai|diagnostics>`, `diagnostics:<on|off>`, `diagReport`, `micTest`, `micNext`, `talkKey:<right|keyCode:mods>`, `toggleKey:<keyCode:mods>`, `shortcuts`, `aiKeyFile:<path>` (key from a 0600 file, never through the log), `aiCheck`, `aiRemove`, `aiState`, `lingSimulate:<429|hijack|timeout|off>`, `voice:<lang>[=<id>]`, `voicePreview:<lang>=<id>`, `voiceCloneFile:<wav>`, `display:<notes|bar|none>`, `notesWindow[:x,y,w,h]`, `notesFrame`, `notesNow`, `notesState`, `notesShow:<id>`, `notesReplay:<id>`, `notesRender:<png>`, `notesCapturable`, `place:x,y,w,font`, `frame`, `overlayState`, `export:<dir>` …).Release: `scripts/release.sh <x.y.z>` (clean `main`, a `## x.y.z — <today>` section in `CHANGELOG.md`) bumps `Resources/Info.plist`, commits, tags `v<x.y.z>` and pushes; `.github/workflows/release.yml` (runner `macos-26`) builds the tag, checks it matches Info.plist and publishes the DMG, zip and checksums with notes from `scripts/release_notes.sh`. `build.yml` runs on pull requests and on demand only: macOS minutes are expensive for a private repo.@@ -61,6 +66,6 @@ TODO: unit tests for the pure parts (language-code mapping, detection scoring, S- Keep files small and single-purpose; match the existing naming and comment density (comments say why).- UI and engine state are `@MainActor`; audio callbacks never touch app state directly (they hand buffers to `AudioRouter`'s queue).- No third-party dependencies; system frameworks only.-- User data: `~/Library/Application Support/LiveSubs/Sessions` and `UserDefaults` (`sourceMode`, `target`, `speakEnabled`, `speakFrom`, `speakTo`, `speakOutput`, `recordAudio`, `overlayAuto`, `overlayHideAfter`, `overlay.<screen>`, `lastDetected`, `onboarded`, `talkKey`, `toggleKey` as `keyCode:carbonModifiers`, `displayMode`, `aiModel`, `speakVoice`) and the Keychain item for the Ling key.+- User data: `~/Library/Application Support/LiveSubs/Sessions` and `UserDefaults` (`sourceMode`, `target`, `speakEnabled`, `speakFrom`, `speakTo`, `speakOutput`, `recordAudio`, `overlayAuto`, `overlayHideAfter`, `overlay.<screen>`, `lastDetected`, `onboarded`, `talkKey`, `toggleKey` as `keyCode:carbonModifiers`, `displayMode`, `aiModel`, `speakVoices`, `notesOnTop`, `diagnostics`) and the Ling key file (`ling-api-key`).- Add a line to `CHANGELOG.md` with every user-visible change. Keep `README.md` and `README.zh-CN.md` in step.- Commit in coherent batches with a short imperative subject.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1f4213e..a900756 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,13 +5,27 @@ the release workflow publishes it as the release notes.## Unreleased+- New: choose the voice the room hears for each language (Settings › 同声传译 › 对方听到的声音): natural Ming voices, two women and two men where available (Emma, George, Charlotte in English; 小雅, 小棠, 小锋, 卓然 in Chinese; Japanese, Korean, German, French and Spanish too), the Mac's own voices, each with a play button. Or record 15 s of your own voice and the room hears you, in any language (with your accent, about 1.5 s later than the built-in voices). The recording stays on your Mac and is sent to Ling only with what you say.+- Changed: a new logo (a cicada peeking over a subtitle bar) for the app icon, the menu bar and the app's windows; clearer wording throughout the Chinese interface.+- New: the project is licensed under Apache-2.0, and has a website (Chinese first) with a searchable changelog and an RSS feed.+- Changed: the Ling API key is kept in a file only your account can read (in the app's Application Support folder, left out of backups) instead of the Keychain, which asked for your password every time the app was updated. A key saved earlier is moved over once (one last password prompt).+- Changed: settings are now 显示 (who is heard and what it's translated into, then how it shows) / 同声传译 (was 我说话也翻译; the panel uses the new name too) / 会议记录 / AI 服务.+- New: a 诊断 switch at the bottom left of settings. On, it adds a 诊断 tab: how long each sentence took from the last words to the translation, which translator answered (Ling, Google or on-device) and why one was skipped (search hijack, rate limit, timeout), Ling's request rate and token use, and a "复制诊断信息" button. Only timings and counts are kept (`metrics.jsonl` in the meeting folder), never what was said.++- Changed: the transcript stays on the newest line while the meeting runs and shows the sentence still being spoken at the end (the dark caption only shows on the notes tab). Scrolling up to read no longer jumps back down; new sentences gather in a "↓ N 句新内容" button.+- Changed: transcript search highlights matches in place (with "2 / 7" and up/down) instead of hiding the other lines, and also finds the misrecognised spellings the notes list for a name.+- New: notes show when things were said: topics as time ranges, a time beside each point and conclusion; click one to jump to that line. The status line shows the number of sentences and how far the notes have got ("纪要到 03:52").+- Changed: the collapsed card no longer asks "我刚走神了,错过什么?": it says "收起后新增 2 个议题、5 条要点" only when there is something new, and opens a list of it with times.+- Fixed: after the meeting ended, almost every point was marked "新"; "新" now only marks what a live update added, for a minute.+- New: while any Live Subs window is open (the notes window included) the app shows its name and menus in the top left, a Dock icon and a place in ⌘Tab: 纪要 (stop recording ⌘R, update notes now ⌘U, "收起后的新内容" ⌘J, copy notes, export ⌘E, meeting records ⌘0), 显示 (notes / subtitle bar / nothing, card ⌘1 / sidebar ⌘2 / side by side ⌘3, stay on top), 编辑 (copy, paste, search the transcript ⌘F), 窗口 and 帮助. With every window closed it lives in the menu bar only. Pasting a key with ⌘V now works.+- Changed: the notes window shows what it is doing instead of hint text: moving sound bars while nobody has spoken yet, a spinner with "已听到 N 句" and the notes' shape shimmering while the first version is written, and an "正在更新" pill plus a shimmer under the current topic while existing notes are updated; new points fade in.- Fixed: installing the virtual microphone looked like it failed ("系统还没识别到"). The package installed fine, but macOS only loads a new audio driver after its audio service restarts; the same password prompt now restarts it. If the driver is already there but not loaded, the app offers "让系统认出它" instead of reinstalling.- New: a sound test for the virtual microphone: the app plays a sentence into it, listens back and shows what the room will hear.- New: a settings window with a sidebar (听 / 我说话也翻译 / 字幕条 / 会议记录) replaces the settings sheet; the virtual microphone is set up from a three-step checklist there and in the first-run guide.- Changed: hold the right ⌥ key on its own to talk, instead of ⌥ Space (which other apps' launchers often use, and which types a space). Pressing another key while holding it cancels, so ⌥ + letter still types. It needs the "输入监控" permission; the app asks for it.-- New: speak-back can use Ming's voice through the Ling key (Settings › AI 服务 › 我说话时的声音), streamed as it is generated; without a key it uses the system voice.+- New: speak-back can use Ming's voices through the Ling key, streamed as they are generated; without a key it uses the Mac's voice.- New: meeting records show the notes (纪要 / 文字记录); a meeting recorded without notes gets a "生成纪要" button. Markdown and Word exports start with the notes.-- New: a live notes window, now the default display while listening: notes, the transcript and a caption line in one floating window that can be moved and resized anywhere (a small card under 360 px with "我刚走神了,错过什么?", tabs in between, notes beside the transcript from 760 px), never shows up in screen sharing, and remembers its frame. The menu bar panel and settings choose 实时纪要 / 字幕条 / 不显示; ⌃⌥S now cycles through them.+- New: a live notes window, now the default display while listening: notes, the transcript and a caption line in one floating window that can be moved and resized anywhere (a small card under 360 px, tabs in between, notes beside the transcript from 760 px), never shows up in screen sharing, and remembers its frame. The menu bar panel and settings choose 实时纪要 / 字幕条 / 不显示; ⌃⌥S now cycles through them.- New: live meeting notes. With a key, Ling updates the notes about every 45 s while the meeting runs (summary, topics with key points, a fishbone diagram where causes are discussed, conclusions and to-dos with how many lines back them, names and terms with their misrecognised forms) and rewrites them once over the whole transcript when it ends. Notes are saved with the meeting.- New: with a key, finished sentences and speak-back are translated by Ling (names kept consistent through the notes' glossary); if Ling is busy or fails, that sentence falls back to Google, then to Apple's on-device translation. Partial text while someone is still talking stays on Google.- New: Settings › AI 服务 takes your own Ling (ant-ling.com) API key. It is kept in the macOS Keychain, checked with a one-token request, and shown masked; without a key everything works as before.diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..d645695--- /dev/null+++ b/LICENSE@@ -0,0 +1,202 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ APPENDIX: How to apply the Apache License to your work.++ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.++ Copyright [yyyy] [name of copyright owner]++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.diff --git a/README.md b/README.mdindex ae217cc..08ae305 100644--- a/README.md+++ b/README.md@@ -33,7 +33,7 @@ Live Subs listens to what your Mac is playing — a livestream, a video, a meeti- **Detects the language for you** — every installed on-device speech model listens to the same few seconds; the most confident one wins, usually within half a second.- **Translates into your language** — follows your system languages by default (English audio on an English Mac goes to your next language), or pick one.- **Stays out of the way** — the subtitle bar appears only while someone talks, tucks into a small dot when it's quiet, and turns see-through when your pointer passes over it, so you can still click what's underneath. Rest the pointer on it to drag or resize; ⌃⌥S hides it.-- **Live meeting notes** — with your own [Ling](https://chat.ant-ling.com/open) API key (Settings › AI 服务, kept in the macOS Keychain), a floating notes window fills in while the meeting runs: a summary, topics with key points, a fishbone diagram where causes are discussed, conclusions and to-dos, and names spelled consistently. Drag it anywhere, shrink it to a card ("what did I miss?") or widen it to read notes beside the transcript; it never shows up when you share your screen. A full version is written when the meeting ends. The same key makes translation more accurate and can give speak-back Ming's voice; without a key everything else works as before.+- **Live meeting notes** — with your own [Ling](https://chat.ant-ling.com/open) API key (Settings › AI 服务, kept only on your Mac in a file only your account can read), a floating notes window fills in while the meeting runs: a summary, topics with key points, a fishbone diagram where causes are discussed, conclusions and to-dos, and names spelled consistently. Drag it anywhere, shrink it to a card (it tells you when something new was said since) or widen it to read notes beside the transcript; it never shows up when you share your screen. While it is open the app's menus are in the top left (stop recording ⌘R, what was added since collapsing ⌘J, search ⌘F, sizes ⌘1–⌘3). A full version is written when the meeting ends. The same key makes translation more accurate and lets the room hear a natural Ming voice, or your own voice cloned from a 15 s recording (Settings › 同声传译); without a key everything else works as before.- **Speak back** — hold the right ⌥ key and talk; the room hears your words translated, through a virtual microphone you install from the app.- **Meeting records** — every session is saved as a bilingual transcript (with the audio, on your Mac only) and exports to Markdown, Word or SRT.- **Private by design** — audio capture, language detection and speech recognition all run on-device.@@ -66,7 +66,7 @@ The first launch walks you through three steps: turn on **system audio recording1. Play anything with sound. The live notes window shows the transcript and a caption line (choose 字幕条 in the panel for the classic subtitle bar; ⌃⌥S cycles notes / bar / nothing).2. Click the menu bar icon to change the heard language (auto by default), the language to translate into, or what is shown.3. For notes: paste a Ling API key in Settings › AI 服务 (or right in the notes window). About ¥0.15–1 per hour of meeting at current prices; only text is sent, speech recognition stays on your Mac.-4. To speak back: turn on **我说话也翻译**, choose **BlackHole 2ch** as the microphone in your meeting app, then hold the right ⌥ key while you talk (allow "Input Monitoring" when asked). Both shortcuts can be changed in settings.+4. To speak back: turn on **同声传译**, choose **BlackHole 2ch** as the microphone in your meeting app, then hold the right ⌥ key while you talk (allow "Input Monitoring" when asked). Both shortcuts can be changed in settings.5. **会议记录** in the panel opens your meetings: notes and transcript, search, export (Markdown and Word start with the notes). A meeting recorded without notes has a "生成纪要" button.### Uninstall@@ -82,3 +82,9 @@ scripts/package.sh # release DMG + zip + checksums```See [AGENTS.md](AGENTS.md) for the architecture, dev vs release builds, packaging, testing and releases.++The website (`site/`, published to GitHub Pages) is built by `scripts/site.py`; see AGENTS.md.++## License++[Apache-2.0](LICENSE). The virtual microphone, BlackHole, is GPL-licensed and is downloaded from its official release when you install it; it is not bundled.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 867b3e6..a23d411 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -37,7 +37,7 @@ Live Subs 听电脑里正在播放的声音,比如直播、视频、会议或- 鼠标经过时字幕条会变透明,下面的按钮照样能点;- 鼠标停住不动,就可以拖动、缩放字幕条;- ⌃⌥S 随时隐藏或显示。-- **实时纪要**:在 设置 › AI 服务 填上自己的 [Ling](https://chat.ant-ling.com/open) API key(加密存在钥匙串里),开会时一个悬浮窗口会边听边整理:总结、议题和要点、讨论原因时的鱼骨图、结论和待办、统一写法的人名。窗口可以拖到任何地方、收成小卡(“我刚走神了,错过什么?”)或拉宽和文字记录并排;共享屏幕时别人看不到它。会议结束后再整理一遍完整版。同一个 key 还让翻译更准,说话时可以用 Ming 的声音;没有 key 时其他功能照常。+- **实时纪要**:在 设置 › AI 服务 填上自己的 [Ling](https://chat.ant-ling.com/open) API key(只存在你的 Mac 上,只有你的账户能读),开会时一个悬浮窗口会边听边整理:总结、议题和要点、讨论原因时的鱼骨图、结论和待办、统一写法的人名。窗口可以拖到任何地方、收成小卡(收起后有新内容时会提示)或拉宽和文字记录并排;共享屏幕时别人看不到它。它开着时,左上角有 Live Subs 的菜单(停止记录 ⌘R、收起后的新内容 ⌘J、搜索 ⌘F、窗口大小 ⌘1–⌘3)。会议结束后再整理一遍完整版。同一个 key 还让翻译更准;同声传译时对方可以听到自然的 Ming 声音,或者录 15 秒、用你自己的声音(设置 › 同声传译);没有 key 时其他功能照常。- **说话也能翻译**:按住右边的 ⌥ 键说话,会议里的人听到的是翻译后的语音。这需要一个虚拟麦克风,在 App 里一键安装。- **会议记录**:每场会议都自动存成双语稿子(录音只存在本机),可以导出 Markdown、Word 或 SRT。- **隐私**:声音采集、语言识别、语音识别都在本机完成。@@ -75,7 +75,7 @@ Live Subs 听电脑里正在播放的声音,比如直播、视频、会议或2. 点菜单栏图标,可以改“听到”的语言(默认自动识别)、“翻译成”的语言,以及显示方式。3. 想要纪要:在 设置 › AI 服务(或直接在纪要窗口里)填上 Ling 的 API key。按目前价格一小时会议约 ¥0.15–1;发出去的只有文字,语音识别留在本机。4. 想让对方听到你的翻译:- - 打开 **我说话也翻译**;+ - 打开 **同声传译**;- 在会议软件里把麦克风选成 **BlackHole 2ch**;- 说话时按住右边的 ⌥ 键(第一次会请你允许“输入监控”)。两个快捷键都能在设置里换。5. 面板里的 **会议记录** 可以看每场会议的纪要和文字记录:能搜索、导出(Markdown 和 Word 开头就是纪要)。没有纪要的会议可以点“生成纪要”。@@ -93,3 +93,9 @@ scripts/package.sh # 正式版 DMG、zip 和校验值```架构、开发版和正式版的区别、打包、测试、发布流程,见 [AGENTS.md](AGENTS.md)。++官网(`site/`,发布到 GitHub Pages)由 `scripts/site.py` 生成,见 AGENTS.md。++## 开源协议++[Apache-2.0](LICENSE)。虚拟麦克风 BlackHole 是 GPL 协议,安装时从它的官方发布下载,不随 App 分发。diff --git a/scripts/site-images.sh b/scripts/site-images.shnew file mode 100755index 0000000..246c09d--- /dev/null+++ b/scripts/site-images.sh@@ -0,0 +1,15 @@+#!/bin/bash+# Renders the website's raster images with Chrome: site/og.png (share card, from scripts/site-og.html)+# and site/icon.png (512 px, from site/icon.svg). Rerun after changing either source; commit the PNGs.+set -euo pipefail+cd "$(dirname "$0")/.."+CHROME="${CHROME:-/Applications/Google Chrome.app/Contents/MacOS/Google Chrome}"+[ -x "$CHROME" ] || { echo "needs Google Chrome (set CHROME=…)" >&2; exit 1; }+# Chrome often exits non-zero after writing the screenshot (display-link errors when headless); check the file instead.+shot() { rm -f "$3"; "$CHROME" --headless=new --disable-gpu --hide-scrollbars --force-device-scale-factor=1 "${@:4}" \+ --window-size="$2" --screenshot="$PWD/$3" "file://$PWD/$1" >/dev/null 2>&1 || true; [ -s "$3" ] || { echo "Chrome wrote no $3" >&2; exit 1; }; }+shot scripts/site-og.html 1200,630 site/og.png+printf '<html><body style="margin:0"><img src="../site/icon.svg" width="512" height="512"></body></html>' > scripts/.icon.html+shot scripts/.icon.html 512,512 site/icon.png --default-background-color=00000000+rm -f scripts/.icon.html+echo "wrote site/og.png site/icon.png"diff --git a/scripts/site-og.html b/scripts/site-og.htmlnew file mode 100644index 0000000..92f2110--- /dev/null+++ b/scripts/site-og.html@@ -0,0 +1,37 @@+<!doctype html>+<!-- The website's share card (site/og.png, 1200×630). Rendered by scripts/site-images.sh. -->+<html lang="zh-CN">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Noto+Sans+SC:wght@500;700;900&display=swap">+<style>+html, body { margin: 0; }+.card { width: 1200px; height: 630px; box-sizing: border-box; padding: 64px 72px; background: #F6F7F9; font-family: Inter, "Noto Sans SC", "PingFang SC", sans-serif; color: #15171C; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }+.top { display: flex; align-items: center; gap: 16px; }+.top img { width: 64px; height: 64px; border-radius: 15px; }+.name { font-size: 40px; font-weight: 900; }+.en { font-size: 26px; font-weight: 700; color: #5A5F6B; }+.pill { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E4E6EA; font-size: 17px; font-weight: 600; color: #5A5F6B; }+.slogan { font-size: 72px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }+.sub { margin-top: 14px; font-size: 26px; font-weight: 600; color: #3B3F48; }+.bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }+.bar { padding: 16px 24px; border-radius: 18px; background: #15171C; color: #FFFFFF; min-width: 520px; }+.bar .s { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #A9AEB8; }+.bar .s i { width: 9px; height: 9px; border-radius: 50%; background: #E8552B; }+.bar .t { margin-top: 6px; font-size: 28px; font-weight: 700; }+.apps { font-size: 17px; line-height: 1.6; color: #5A5F6B; font-weight: 600; text-align: right; }+.stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: #E8552B; }+</style>+</head>+<body>+<div class="card">+ <div class="top"><img src="../site/icon.svg" alt=""><span class="name">知了</span><span class="en">Cicada</span><span class="pill">免费开源 · macOS</span></div>+ <div><div class="slogan">任何会议、任何直播,<br>没有语言障碍。</div><div class="sub">听得懂,说得出,记得住。</div></div>+ <div class="bottom">+ <div class="bar"><div class="s"><i></i>So the launch moves to next Thursday, right?</div><div class="t">所以发布挪到下周四了,对吧?</div></div>+ <div class="apps">Zoom · Teams · 飞书 · 腾讯会议<br>X Spaces · YouTube 直播 · Discord</div>+ </div>+ <div class="stripe"></div>+</div>+</body>+</html>diff --git a/scripts/site.py b/scripts/site.pynew file mode 100755index 0000000..cc126c2--- /dev/null+++ b/scripts/site.py@@ -0,0 +1,186 @@+#!/usr/bin/env python3+"""Builds the website (GitHub Pages) from site/ into build/site/.++site/index.html and site/changelog.html are templates; header.html and footer.html are shared.+site/changelog.json is the Chinese changelog (newest first; "date": null = not released yet).+Also writes changelog/index.html, feed.xml (Atom), sitemap.xml and robots.txt.++ python3 scripts/site.py # → build/site+ python3 -m http.server -d build/site # preview at http://localhost:8000/+SITE_URL overrides the public address (default: the repo's GitHub Pages address).+"""+import html+import json+import os+import shutil+import subprocess+import sys+from datetime import datetime, timezone++ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))+SRC = os.path.join(ROOT_DIR, "site")+OUT = os.path.join(ROOT_DIR, "build", "site")+SITE = (os.environ.get("SITE_URL") or "https://wquguru.github.io/live-subs/").rstrip("/") + "/"+REPO = "https://github.com/wquguru/live-subs"+DOWNLOAD = REPO + "/releases/latest"+STATIC = ["style.css", "icon.svg", "icon.png", "og.png", "img"]+APPS = ["Zoom", "Microsoft Teams", "飞书", "腾讯会议", "Google Meet", "X Spaces", "YouTube 直播",+ "Twitch", "Discord", "B 站直播", "钉钉", "播客"]+KINDS = [("new", "新功能"), ("improved", "改进"), ("fixed", "修复")]++e = html.escape+++def read(name):+ with open(os.path.join(SRC, name), encoding="utf-8") as f:+ return f.read()+++def write(rel, text):+ path = os.path.join(OUT, rel)+ os.makedirs(os.path.dirname(path), exist_ok=True)+ with open(path, "w", encoding="utf-8") as f:+ f.write(text)+++def fill(text, values):+ for k, v in values.items():+ text = text.replace("{{" + k + "}}", v)+ if "{{" in text:+ sys.exit("site.py: unfilled placeholder near: " + text[text.index("{{"):][:40])+ return text+++def zh_date(d):+ y, m, day = d.split("-")+ return f"{int(y)} 年 {int(m)} 月 {int(day)} 日"+++def anchor(version):+ return "v" + version.replace(".", "-")+++def rev():+ try:+ return subprocess.check_output(["git", "rev-parse", "--short=12", "HEAD"], cwd=ROOT_DIR, text=True).strip()+ except Exception:+ return "dev"+++def release_html(r, latest_released):+ date = (f'<time datetime="{r["date"]}">{zh_date(r["date"])}</time>' if r["date"]+ else '<span>即将发布</span>')+ badge = '<span class="new">最新</span>' if r["version"] == latest_released else ""+ img = ""+ if r.get("image"):+ img = f'<img src="../{e(r["image"]["src"])}" alt="{e(r["image"]["alt"])}" loading="lazy">'+ groups = []+ for kind, name in KINDS:+ items = [i for i in r["items"] if i["kind"] == kind]+ if items:+ lis = "".join(f'<li><strong>{e(i["title"])}</strong>{e(i["text"])}</li>' for i in items)+ groups.append(f'<div class="group" data-kind="{kind}"><h3><i></i>{name}</h3><ul>{lis}</ul></div>')+ a = anchor(r["version"])+ dl = (f'<a class="btn btn-dark desk" href="{REPO}/releases/tag/v{r["version"]}">下载 {r["version"]}</a>'+ if r["date"] else "")+ return (f'<article class="card release rv" id="{a}">'+ f'<div class="line"><span class="ver">{r["version"]}</span>{date}{badge}'+ f'<a class="perma" href="#{a}" aria-label="{r["version"]} 的永久链接">#</a></div>'+ f'<h2>{r["version"]}:{e(r["title"])}</h2><p>{e(r["summary"])}</p>{img}{"".join(groups)}'+ f'<div class="acts">{dl}<a class="btn btn-light" href="{REPO}/releases">在 GitHub 上看</a></div></article>')+++def main():+ with open(os.path.join(SRC, "changelog.json"), encoding="utf-8") as f:+ log = json.load(f)+ released = [r for r in log if r["date"]]+ if not released:+ sys.exit("site.py: changelog.json has no released version")+ latest = released[0]+ common = {"SITE": SITE, "REPO": REPO, "DOWNLOAD": DOWNLOAD, "VERSION": latest["version"], "REV": rev()}++ if os.path.isdir(OUT):+ shutil.rmtree(OUT)+ os.makedirs(OUT)+ for name in STATIC:+ src = os.path.join(SRC, name)+ if os.path.isdir(src):+ shutil.copytree(src, os.path.join(OUT, name))+ elif os.path.exists(src):+ shutil.copy2(src, OUT)++ def page(template, root, cl_current, extra):+ v = dict(common, ROOT=root, CL_CURRENT=' aria-current="page"' if cl_current else "")+ v["HEADER"] = fill(read("header.html"), v)+ v["FOOTER"] = fill(read("footer.html"), v)+ v.update(extra)+ return fill(read(template), v)++ # Home+ apps = "".join(f"<li>{e(a)}</li>" for a in APPS)+ apps += "".join(f'<li aria-hidden="true">{e(a)}</li>' for a in APPS) # second copy for the seamless loop+ cards = []+ for r in log[:2]:+ when = zh_date(r["date"]) if r["date"] else "即将发布"+ cards.append(f'<a class="card ucard rv" href="changelog/#{anchor(r["version"])}">'+ f'<span class="when"><span class="ver">{r["version"]}</span>{when}</span>'+ f'<strong>{e(r["title"])}</strong><span class="d">{e(r["summary"])}</span></a>')+ app_ld = {+ "@context": "https://schema.org", "@type": "SoftwareApplication",+ "name": "知了 Cicada", "alternateName": ["知了", "Cicada"],+ "description": "Mac 上的实时翻译字幕、同声传译和 AI 会议纪要,任意会议与直播都能用。",+ "applicationCategory": "BusinessApplication", "operatingSystem": "macOS 26",+ "softwareVersion": latest["version"], "url": SITE, "downloadUrl": DOWNLOAD,+ "image": SITE + "icon.png", "license": "https://www.apache.org/licenses/LICENSE-2.0",+ "isAccessibleForFree": True, "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"},+ "releaseNotes": SITE + "changelog/", "codeRepository": REPO,+ }+ write("index.html", page("index.html", "", False, {+ "APPS": apps, "LATEST": "".join(cards),+ "JSONLD": json.dumps(app_ld, ensure_ascii=False).replace("</", "<\\/")}))++ # Changelog+ counts = {k: sum(1 for r in log for i in r["items"] if i["kind"] == k) for k, _ in KINDS}+ filters = f'<button type="button" data-kind="all" aria-pressed="true">全部<span>{sum(counts.values())}</span></button>'+ filters += "".join(f'<button type="button" data-kind="{k}" aria-pressed="false">{n}<span>{counts[k]}</span></button>'+ for k, n in KINDS)+ versions = "".join(f'<a href="#{anchor(r["version"])}"><b>{r["version"]}</b>'+ f'<span>{r["date"] or "即将发布"}</span></a>' for r in log)+ crumbs_ld = {"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [+ {"@type": "ListItem", "position": 1, "name": "知了", "item": SITE},+ {"@type": "ListItem", "position": 2, "name": "更新日志", "item": SITE + "changelog/"}]}+ write("changelog/index.html", page("changelog.html", "../", True, {+ "LATEST_VERSION": latest["version"], "LATEST_TITLE": e(latest["title"]),+ "FILTERS": filters, "VERSIONS": versions,+ "RELEASES": "".join(release_html(r, latest["version"]) for r in log),+ "JSONLD": json.dumps(crumbs_ld, ensure_ascii=False)}))++ # Atom feed: released versions only+ entries = []+ for r in released:+ body = "".join(f"<li><strong>{e(i['title'])}</strong>{e(i['text'])}</li>" for i in r["items"])+ entries.append(+ f"<entry><title>{r['version']}:{e(r['title'])}</title>"+ f"<id>{SITE}changelog/#{anchor(r['version'])}</id>"+ f"<link href=\"{SITE}changelog/#{anchor(r['version'])}\"/>"+ f"<updated>{r['date']}T00:00:00Z</updated>"+ f"<summary>{e(r['summary'])}</summary>"+ f"<content type=\"html\">{e('<p>' + e(r['summary']) + '</p><ul>' + body + '</ul>')}</content></entry>")+ write("feed.xml", '<?xml version="1.0" encoding="utf-8"?>\n'+ '<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">'+ f'<title>知了更新日志</title><id>{SITE}changelog/</id>'+ f'<link href="{SITE}changelog/"/><link rel="self" href="{SITE}feed.xml"/>'+ f'<updated>{latest["date"]}T00:00:00Z</updated><author><name>知了 Cicada</name></author>'+ + "".join(entries) + "</feed>\n")++ today = datetime.now(timezone.utc).strftime("%Y-%m-%d")+ write("sitemap.xml", '<?xml version="1.0" encoding="utf-8"?>\n'+ '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'+ f"<url><loc>{SITE}</loc><lastmod>{today}</lastmod></url>"+ f"<url><loc>{SITE}changelog/</loc><lastmod>{today}</lastmod></url></urlset>\n")+ write("robots.txt", f"User-agent: *\nAllow: /\nSitemap: {SITE}sitemap.xml\n")+ print("site.py: wrote", os.path.relpath(OUT, ROOT_DIR), "for", SITE)+++if __name__ == "__main__":+ main()diff --git a/site/changelog.html b/site/changelog.htmlnew file mode 100644index 0000000..7ef08f8--- /dev/null+++ b/site/changelog.html@@ -0,0 +1,72 @@+<!doctype html>+<html lang="zh-CN">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>知了更新日志:Mac 实时字幕、同声传译、AI 会议纪要的每次更新</title>+<meta name="description" content="知了(Cicada)每个版本新增、改进和修复了什么。最新版本 {{LATEST_VERSION}}:{{LATEST_TITLE}}。">+<link rel="canonical" href="{{SITE}}changelog/">+<link rel="icon" href="{{ROOT}}icon.svg" type="image/svg+xml">+<link rel="apple-touch-icon" href="{{ROOT}}icon.png">+<link rel="alternate" type="application/atom+xml" title="知了更新日志" href="{{SITE}}feed.xml">+<meta name="theme-color" content="#F6F7F9">+<meta property="og:type" content="website">+<meta property="og:site_name" content="知了 Cicada">+<meta property="og:title" content="知了更新日志">+<meta property="og:description" content="最新版本 {{LATEST_VERSION}}:{{LATEST_TITLE}}">+<meta property="og:url" content="{{SITE}}changelog/">+<meta property="og:image" content="{{SITE}}og.png">+<meta property="og:locale" content="zh_CN">+<meta name="twitter:card" content="summary_large_image">+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap">+<link rel="stylesheet" href="{{ROOT}}style.css?v={{REV}}">+<script type="application/ld+json">{{JSONLD}}</script>+</head>+<body>+{{HEADER}}+<main>+ <section class="wrap cl-head">+ <nav class="crumbs" aria-label="面包屑"><a href="{{ROOT}}">知了</a> › 更新日志</nav>+ <h1>知了更新日志</h1>+ <p>知了是 Mac 上的<strong>实时字幕</strong>、<strong>同声传译</strong>和 <strong>AI 会议纪要</strong>工具,在腾讯会议、Zoom、飞书、X Spaces、YouTube 直播里都能用。每个版本新增、改进和修复了什么,都记在这里。</p>+ <div class="cl-meta">+ <span class="pill"><span class="dot"></span>最新版本 {{LATEST_VERSION}}</span>+ <a class="rss" href="{{ROOT}}feed.xml"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" aria-hidden="true"><path d="M4 11a9 9 0 0 1 9 9"/><path d="M4 4a16 16 0 0 1 16 16"/><circle cx="5" cy="19" r="1.5"/></svg>RSS 订阅</a>+ <a href="{{REPO}}/releases">GitHub Releases</a>+ </div>+ </section>++ <div class="wrap filters" role="group" aria-label="按类型筛选">{{FILTERS}}</div>++ <div class="wrap cl-body">+ <nav class="versions" aria-label="版本"><span>所有版本</span>{{VERSIONS}}</nav>+ <div class="releases">+ {{RELEASES}}+ <div class="subscribe rv">+ <div><b>有新版本时通知我</b><p>订阅 RSS,或在 GitHub 上 Watch › Custom › Releases。</p></div>+ <a class="btn btn-orange" href="{{ROOT}}feed.xml">RSS 地址</a>+ </div>+ </div>+ </div>+</main>+{{FOOTER}}+<script>+// Filter by kind; groups and versions with nothing left are hidden.+(function () {+ var buttons = document.querySelectorAll('.filters button');+ buttons.forEach(function (b) {+ b.addEventListener('click', function () {+ var k = b.dataset.kind;+ buttons.forEach(function (x) { x.setAttribute('aria-pressed', x === b ? 'true' : 'false'); });+ document.querySelectorAll('.group').forEach(function (g) { g.hidden = k !== 'all' && g.dataset.kind !== k; });+ document.querySelectorAll('.release').forEach(function (r) {+ r.hidden = !r.querySelector('.group:not([hidden])');+ });+ });+ });+})();+</script>+</body>+</html>diff --git a/site/changelog.json b/site/changelog.jsonnew file mode 100644index 0000000..8a32cee--- /dev/null+++ b/site/changelog.json@@ -0,0 +1,138 @@+[+ {+ "version": "2.1.0",+ "date": null,+ "title": "AI 实时会议纪要、Ming 语音同声传译、虚拟麦克风试音",+ "summary": "这一版让知了从“实时字幕”变成完整的会议助手:边开会边写纪要,同声传译可以用更自然的声音说出去,虚拟麦克风装完能当场试音。",+ "image": null,+ "items": [+ {+ "kind": "new",+ "title": "AI 实时会议纪要。",+ "text": "填入你自己的 Ling key,约每 45 秒更新一次:摘要、议题和要点、结论与待办、人名和术语;会议结束后整场再整理一遍。"+ },+ {+ "kind": "new",+ "title": "实时纪要窗口。",+ "text": "纪要、文字记录和实时字幕在一个浮窗里,共享屏幕时对方看不到;现在是默认显示方式。"+ },+ {+ "kind": "new",+ "title": "纪要带时间戳。",+ "text": "议题显示时间段,要点和结论旁附带时间,点一下就能跳回原话。"+ },+ {+ "kind": "new",+ "title": "Ming 语音同声传译。",+ "text": "同声传译可以用 Ming 的声音,边生成边播放;没有 key 时用系统声音。"+ },+ {+ "kind": "new",+ "title": "AI 翻译。",+ "text": "有 key 时整句交给 Ling 翻译,人名前后一致;服务繁忙或出错时自动换成 Google,再换本机翻译。"+ },+ {+ "kind": "new",+ "title": "虚拟麦克风试音。",+ "text": "往虚拟麦克风里播一句话再听回放,提前确认对方会听到什么。"+ },+ {+ "kind": "new",+ "title": "诊断。",+ "text": "每句话多久出字幕、哪个翻译回答的;只记时间和次数,从不记说了什么。"+ },+ {+ "kind": "new",+ "title": "App 菜单。",+ "text": "知了的窗口开着时,左上角有菜单、Dock 里有图标、⌘Tab 能切到;⌘F 搜索文字记录。"+ },+ {+ "kind": "improved",+ "title": "按住右 ⌥ 说话。",+ "text": "代替原来的 ⌥ 空格;按住时按别的键会取消,不影响打字。"+ },+ {+ "kind": "improved",+ "title": "自定义快捷键。",+ "text": "说话和字幕条两个快捷键都能在设置里重录,冲突时说明原因。"+ },+ {+ "kind": "improved",+ "title": "设置改为侧边栏。",+ "text": "显示、同声传译、会议记录、AI 服务四页。"+ },+ {+ "kind": "improved",+ "title": "文字记录搜索。",+ "text": "在原文处高亮,人名被听错了也能搜到。"+ },+ {+ "kind": "improved",+ "title": "更新后不再要密码。",+ "text": "Ling key 存在只有你的账户能读的文件里,更新 App 后不再反复弹出钥匙串密码。"+ },+ {+ "kind": "fixed",+ "title": "虚拟麦克风“没识别到”。",+ "text": "装好后系统音频服务没重启;现在同一次输入密码就会重启。"+ },+ {+ "kind": "fixed",+ "title": "要点全被标成“新”。",+ "text": "会议结束后不再这样,“新”只标最近一分钟加的内容。"+ }+ ]+ },+ {+ "version": "2.0.0",+ "date": "2026-11-01",+ "title": "Mac 系统音频实时翻译字幕、自动识别语言、会议记录导出",+ "summary": "第一个完整版本:Mac 上播放的任何声音都能变成翻译字幕,自动识别语种,每场会议自动留下双语记录。",+ "image": {+ "src": "img/hero.jpg",+ "alt": "英文直播上方显示中文翻译字幕条"+ },+ "items": [+ {+ "kind": "new",+ "title": "自动识别语言。",+ "text": "在本机已装的语音模型里判断对方说的是哪种语言;翻译成系统语言或你选的语言。"+ },+ {+ "kind": "new",+ "title": "会议记录。",+ "text": "菜单栏面板、每场会议的双语记录,导出 Markdown、Word、SRT;首次使用有三步引导和示例视频。"+ },+ {+ "kind": "new",+ "title": "我说话也翻译。",+ "text": "按住 ⌥ 空格说话,翻译后经虚拟麦克风说给对方,虚拟麦克风在 App 里安装。"+ },+ {+ "kind": "new",+ "title": "自动收起的字幕条。",+ "text": "有人说话时展开,安静时收成一个小点,鼠标经过时变透明。"+ },+ {+ "kind": "improved",+ "title": "本机语音识别。",+ "text": "用 macOS 26 的 SpeechAnalyzer,声音不出 Mac;新图标,DMG 安装包。"+ },+ {+ "kind": "improved",+ "title": "字幕条高度自适应。",+ "text": "只占译文需要的高度。"+ },+ {+ "kind": "fixed",+ "title": "切换语言丢字。",+ "text": "换语言后句子开头偶尔丢失。"+ },+ {+ "kind": "fixed",+ "title": "翻译失败时说出原话。",+ "text": "现在不会再把没翻译的话说给对方。"+ }+ ]+ }+]diff --git a/site/footer.html b/site/footer.htmlnew file mode 100644index 0000000..5cc5f6e--- /dev/null+++ b/site/footer.html@@ -0,0 +1,57 @@+<footer class="foot">+ <div class="wrap">+ <div class="foot-top">+ <div class="foot-brand">+ <div class="row">+ <img src="{{ROOT}}icon.svg" alt="" width="44" height="44">+ <b>知了</b><span>Cicada</span>+ <span class="bars" aria-hidden="true"><i style="height:12px"></i><i style="height:20px;animation-delay:-.4s"></i><i style="height:9px;animation-delay:-.8s"></i><i style="height:16px;animation-delay:-.2s"></i></span>+ </div>+ <p class="slogan">任何会议、任何直播,没有语言障碍。</p>+ <p>Mac 菜单栏里的实时字幕、同声传译和 AI 会议纪要。免费开源。</p>+ </div>+ <div class="foot-dl">+ <a class="btn btn-orange desk" href="{{DOWNLOAD}}">下载 Mac 版</a>+ <span>macOS 26 · Apple 芯片 · 版本 {{VERSION}}</span>+ </div>+ </div>++ <nav class="foot-cols" aria-label="页脚">+ <div>+ <h3>产品</h3>+ <a href="{{ROOT}}#subtitles">实时字幕</a>+ <a href="{{ROOT}}#interpreting">同声传译</a>+ <a href="{{ROOT}}#notes">AI 会议纪要</a>+ <a href="{{ROOT}}changelog/">更新日志</a>+ </div>+ <div>+ <h3>适用场景</h3>+ <span>腾讯会议实时字幕</span>+ <span>Zoom 会议同声传译</span>+ <span>飞书会议翻译</span>+ <span>X Spaces 实时翻译</span>+ <span>YouTube 直播字幕翻译</span>+ <span>Discord 语音翻译</span>+ </div>+ <div>+ <h3>帮助</h3>+ <a href="{{REPO}}#readme">安装与首次打开</a>+ <a href="{{REPO}}/issues">提交问题</a>+ <a href="{{REPO}}/releases">所有版本</a>+ </div>+ <div>+ <h3>开源</h3>+ <a href="{{REPO}}">GitHub</a>+ <a href="{{REPO}}/blob/main/LICENSE">Apache-2.0 协议</a>+ <a href="{{ROOT}}feed.xml">RSS 订阅更新</a>+ </div>+ </nav>++ <div class="foot-legal">+ <span>© 2026 知了 Cicada · Apache-2.0</span>+ <a href="{{REPO}}/blob/main/README.md" hreflang="en">English</a>+ <span class="tm">文中提到的 app 名称是各自所有者的商标,只用来说明兼容性;知了与它们没有任何合作或关联。</span>+ </div>+ </div>+ <div class="wordmark" aria-hidden="true">Cicada</div>+</footer>diff --git a/site/header.html b/site/header.htmlnew file mode 100644index 0000000..81221ea--- /dev/null+++ b/site/header.html@@ -0,0 +1,14 @@+<header class="top">+ <nav class="wrap" aria-label="主导航">+ <a class="brand" href="{{ROOT}}"><img src="{{ROOT}}icon.svg" alt="" width="30" height="30"><b>知了</b><span>Cicada</span></a>+ <div class="navlinks desk">+ <a href="{{ROOT}}#why">为什么选知了</a>+ <a href="{{ROOT}}#how">能做什么</a>+ <a href="{{ROOT}}changelog/"{{CL_CURRENT}}>更新日志</a>+ <a href="{{REPO}}">GitHub</a>+ </div>+ <a class="btn btn-dark desk" href="{{DOWNLOAD}}">免费下载</a>+ <div class="navlinks phone"><a href="{{ROOT}}changelog/"{{CL_CURRENT}}>更新日志</a></div>+ <span class="mac-only">Mac 应用</span>+ </nav>+</header>diff --git a/site/icon.png b/site/icon.pngnew file mode 100644index 0000000..499ac39Binary files /dev/null and b/site/icon.png differdiff --git a/site/icon.svg b/site/icon.svgnew file mode 100644index 0000000..fa97a81--- /dev/null+++ b/site/icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="512" height="512"><rect width="100" height="100" rx="23" fill="#E8552B"/><g fill="none" stroke="#FFFFFF" stroke-width="6" stroke-linecap="round"><path d="M18 36Q26 10 45 20"/><path d="M82 36Q74 10 55 20"/></g><circle cx="36" cy="46" r="13" fill="#FFFFFF"/><circle cx="64" cy="46" r="13" fill="#FFFFFF"/><circle cx="39" cy="49" r="6" fill="#15171C"/><circle cx="67" cy="49" r="6" fill="#15171C"/><rect x="12" y="58" width="76" height="28" rx="9" fill="#15171C"/><g stroke-linecap="round" stroke-width="5"><path d="M21 68h44" stroke="#FFFFFF"/><path d="M21 77h26" stroke="#E8552B"/></g></svg>diff --git a/site/img/hero.jpg b/site/img/hero.jpgnew file mode 100644index 0000000..35dc986Binary files /dev/null and b/site/img/hero.jpg differdiff --git a/site/index.html b/site/index.htmlnew file mode 100644index 0000000..8dd9c3a--- /dev/null+++ b/site/index.html@@ -0,0 +1,142 @@+<!doctype html>+<html lang="zh-CN">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>知了 Cicada:任意会议与直播的实时字幕、同声传译、会议纪要 | Mac 免费开源</title>+<meta name="description" content="知了是 Mac 菜单栏里的实时翻译字幕、同声传译和 AI 会议纪要工具。腾讯会议、Zoom、飞书、Teams、X Spaces、YouTube 直播、Discord 里都能用,不用机器人进会,声音不出本机,免费开源。">+<link rel="canonical" href="{{SITE}}">+<link rel="icon" href="{{ROOT}}icon.svg" type="image/svg+xml">+<link rel="apple-touch-icon" href="{{ROOT}}icon.png">+<link rel="alternate" type="application/atom+xml" title="知了更新日志" href="{{SITE}}feed.xml">+<meta name="theme-color" content="#F6F7F9">+<meta property="og:type" content="website">+<meta property="og:site_name" content="知了 Cicada">+<meta property="og:title" content="知了:任何会议、任何直播,没有语言障碍">+<meta property="og:description" content="Mac 上的实时字幕、同声传译和 AI 会议纪要。听得懂,说得出,记得住。">+<meta property="og:url" content="{{SITE}}">+<meta property="og:image" content="{{SITE}}og.png">+<meta property="og:locale" content="zh_CN">+<meta name="twitter:card" content="summary_large_image">+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap">+<link rel="stylesheet" href="{{ROOT}}style.css?v={{REV}}">+<script type="application/ld+json">{{JSONLD}}</script>+</head>+<body>+{{HEADER}}+<main>+ <section class="wrap hero" id="top">+ <span class="pill"><span class="dot"></span>免费开源 · macOS 26 · Apple 芯片</span>+ <h1>+ <span class="kicker">知了:任意会议与直播的实时字幕、同声传译、会议纪要</span>+ <span class="slogan">任何会议、任何直播,<br>没有语言障碍。</span>+ </h1>+ <p class="sub">听得懂,说得出,记得住。</p>+ <div class="ctas desk" id="download">+ <a class="btn btn-orange" href="{{DOWNLOAD}}">+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v12"/><path d="M6 11l6 6 6-6"/><path d="M5 20h14"/></svg>+ 下载 Mac 版+ </a>+ <a class="btn btn-light" href="{{REPO}}">查看源码</a>+ </div>+ <p class="meta desk">版本 {{VERSION}} · <a href="{{ROOT}}changelog/">更新内容</a></p>+ <div class="sendcard phone">+ <div class="head">+ <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8"/><path d="M12 16v4"/></svg>+ 知了是 Mac 应用+ </div>+ <p>在手机上先看看它怎么用。把网页发到 Mac 上打开,就能免费下载。</p>+ <button class="btn btn-dark" type="button" data-send>发到我的 Mac</button>+ </div>+ </section>++ <section class="wrap stage" aria-label="演示">+ <div class="stage-row tilt-in">+ <div class="window" aria-hidden="true">+ <div class="bar"><i></i><i></i><i></i><span class="title">任意直播 · English</span><span class="live">LIVE</span></div>+ <div class="screen">+ <div class="speaker"><div class="avatar"></div>主讲人</div>+ <div class="wave"><span style="height:40px"></span><span style="height:64px;animation-delay:-.3s"></span><span style="height:30px;animation-delay:-.6s"></span><span style="height:56px;animation-delay:-.15s"></span><span style="height:44px;animation-delay:-.8s"></span><span style="height:60px;animation-delay:-.45s"></span><span style="height:34px;animation-delay:-.9s"></span></div>+ <div class="subbar"><div class="lines">+ <div class="cap"><div class="en"><span class="dot"></span>We’ll ship the beta to everyone next Thursday.</div><div class="zh">下周四,我们会把测试版发给所有人。</div></div>+ <div class="cap"><div class="en"><span class="dot"></span>The keynote starts right after this break.</div><div class="zh">休息结束后,主题演讲马上开始。</div></div>+ <div class="cap"><div class="en"><span class="dot"></span>Any questions from the chat before we move on?</div><div class="zh">继续之前,聊天区有什么问题吗?</div></div>+ </div></div>+ </div>+ </div>+ <div class="side">+ <div class="card notes">+ <div class="head">实时纪要<span class="updating">正在更新</span></div>+ <div class="note"><b>结论</b> · 测试版下周四全量发布</div>+ <div class="note"><b>议程</b> · 休息后是主题演讲</div>+ <div class="note"><b>待办</b> · 整理聊天区的问题</div>+ </div>+ <div class="card speak">+ <div class="hold">按住 <kbd>右 ⌥</kbd> 说中文</div>+ <div>“我们可以在周四之前给反馈。”</div>+ <div class="out"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg>对方听到:“We can send feedback before Thursday.”</div>+ </div>+ </div>+ </div>+ </section>++ <section class="works" aria-labelledby="works-t">+ <p id="works-t">这些 app 里都能用,只要 Mac 能出声就行</p>+ <div class="marquee">+ <ul class="track">{{APPS}}</ul>+ </div>+ </section>++ <section class="wrap why" id="why">+ <h2 class="big rv">飞书、Teams 有字幕?<br><span class="strike">只在它们自己的 app 里。</span></h2>+ <p class="lead rv">X Space、YouTube 直播、Discord、播客没有。知了听的是整台 Mac 的声音,不用机器人进会,对方什么都不用装。</p>+ <div class="rows">+ <div class="card compare rv"><h3>能在哪里用</h3><div><b>内置字幕</b>只在自家 app 的会议里</div><div class="us"><b>知了</b>任何 app、任何网页、任何直播</div></div>+ <div class="card compare rv"><h3>需要谁同意</h3><div><b>内置字幕</b>主持人开启,常常还要付费版</div><div class="us"><b>知了</b>你自己打开就行,不影响别人</div></div>+ <div class="card compare rv"><h3>你能开口吗</h3><div><b>内置字幕</b>大多只给字幕,不替你说</div><div class="us"><b>知了</b>按住右 ⌥ 说中文,对方听到他们的语言</div></div>+ </div>+ </section>++ <section class="wrap verbs" id="how" aria-label="能做什么">+ <article class="verb rv" id="subtitles"><small>01 · 实时字幕</small><h3>听得懂</h3><p>别人说的话,实时变成中文字幕。对方说的是哪种语言,它自己听得出来;语音识别完全在你的 Mac 上完成。</p></article>+ <article class="verb rv" id="interpreting"><small>02 · 同声传译</small><h3>说得出</h3><p>按住右 ⌥ 说话,松开后自动译成对方的语言,通过虚拟麦克风说给对方听。任何能发言的 app 都支持。</p></article>+ <article class="verb rv" id="notes"><small>03 · 会议纪要</small><h3>记得住</h3><p>边开会边整理:要点、结论、待办和“我错过了什么”。会后留一份双语记录,可导出 Markdown、Word、SRT。</p></article>+ <p class="fine">字幕处处可用;同声传译需要你能发言的场合,比如开会,或在 Space 连麦发言;AI 纪要需要你自己的 Ling key。</p>+ </section>++ <section class="wrap latest" aria-labelledby="latest-t">+ <div class="head rv"><h2 id="latest-t">最近更新</h2><a href="{{ROOT}}changelog/">全部更新日志 →</a></div>+ <div class="rows">{{LATEST}}</div>+ </section>++ <section class="wrap cta">+ <div class="cta-box rv">+ <svg width="104" height="104" viewBox="0 0 100 100" aria-hidden="true"><rect width="100" height="100" rx="23" fill="#FFFFFF" fill-opacity="0.16"/><g fill="none" stroke="#FFFFFF" stroke-width="6" stroke-linecap="round"><path d="M18 36Q26 10 45 20"/><path d="M82 36Q74 10 55 20"/></g><g class="eye"><circle cx="36" cy="46" r="13" fill="#FFFFFF"/><circle cx="39" cy="49" r="6" fill="#15171C"/></g><g class="eye"><circle cx="64" cy="46" r="13" fill="#FFFFFF"/><circle cx="67" cy="49" r="6" fill="#15171C"/></g><rect x="12" y="58" width="76" height="28" rx="9" fill="#15171C"/><path d="M21 68h44" stroke="#FFFFFF" stroke-width="5" stroke-linecap="round"/><path d="M21 77h26" stroke="#E8552B" stroke-width="5" stroke-linecap="round"/></svg>+ <div class="txt">+ <h2>下一场会,知了替你<em>听</em>、替你<em>说</em>、替你<em>记</em>。</h2>+ <p>对方说话,你看到母语字幕;你开口,同声传译用对方的语言说出去;整场会议边开边整理成纪要,会后留一份双语记录。声音只在你的 Mac 上转成文字。</p>+ </div>+ <a class="btn btn-dark desk" href="{{DOWNLOAD}}">下载 Mac 版</a>+ <button class="btn btn-dark phone" type="button" data-send>发到我的 Mac</button>+ </div>+ </section>+</main>+{{FOOTER}}+<script>+// Phones get no download: share the page (AirDrop / messages to yourself) or copy the link.+document.querySelectorAll('[data-send]').forEach(function (b) {+ var label = b.textContent;+ b.addEventListener('click', function () {+ var url = location.href.split('#')[0];+ if (navigator.share) { navigator.share({ title: '知了 Cicada', url: url }).catch(function () {}); return; }+ (navigator.clipboard ? navigator.clipboard.writeText(url) : Promise.reject()).then(function () {+ b.textContent = '链接已复制,到 Mac 上打开';+ setTimeout(function () { b.textContent = label; }, 2400);+ }, function () { prompt('复制这个链接,到 Mac 上打开:', url); });+ });+});+</script>+</body>+</html>diff --git a/site/og.png b/site/og.pngnew file mode 100644index 0000000..07f84dbBinary files /dev/null and b/site/og.png differdiff --git a/site/style.css b/site/style.cssnew file mode 100644index 0000000..03cf3a5--- /dev/null+++ b/site/style.css@@ -0,0 +1,273 @@+/* Cicada / 知了 website. Light grey ground, white cards, ink, one orange accent (same as the app). */+:root {+ --ground: #F6F7F9; --card: #FFFFFF; --line: #ECEEF1; --line2: #E4E6EA; --soft: #F3F4F6;+ --ink: #15171C; --ink2: #3B3F48; --grey: #5A5F6B; --grey2: #6B7080; --faint: #9AA0AC;+ --orange: #E8552B; --orange-text: #B23E17; --orange-soft: #FDEDE7;+ --dark2: #2A2D35; --on-dark: #C4C8D0; --on-dark2: #A9AEB8;+}+* { box-sizing: border-box; }+/* Anchors land below the sticky header (about 69 px) with some air. */+html { scroll-behavior: smooth; scroll-padding-top: 96px; }+body {+ margin: 0; background: var(--ground); color: var(--ink);+ font-family: Inter, "Noto Sans SC", -apple-system, "PingFang SC", system-ui, sans-serif;+ -webkit-font-smoothing: antialiased; overflow-x: hidden;+}+a { color: var(--orange-text); }+a:hover { color: #8A2F10; }+img { max-width: 100%; }+.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }+.btn {+ display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;+ border-radius: 14px; border: 0; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;+}+.btn-orange { background: var(--orange); color: #FFFFFF; }+.btn-orange:hover { background: #D44A22; color: #FFFFFF; }+.btn-dark { background: var(--ink); color: #FFFFFF; }+.btn-dark:hover { background: #2A2D35; color: #FFFFFF; }+.btn-light { background: var(--card); color: var(--ink); border: 1px solid #DADDE2; font-weight: 600; }+.btn-light:hover { color: var(--ink); border-color: var(--ink); }+.pill {+ display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;+ background: var(--card); border: 1px solid var(--line2); font-size: 13px; font-weight: 500; color: var(--grey);+}+.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }++/* Header */+.top { position: sticky; top: 0; z-index: 10; background: rgba(246,247,249,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line2); }+.top nav { display: flex; align-items: center; gap: 10px 26px; padding-top: 12px; padding-bottom: 12px; }+.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }+.brand img { width: 30px; height: 30px; border-radius: 7px; }+.brand b { font-size: 18px; font-weight: 800; }+.brand span { font-size: 14px; font-weight: 600; color: var(--grey2); }+.navlinks { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; font-size: 14px; font-weight: 500; }+.navlinks a { color: var(--grey); text-decoration: none; }+.navlinks a:hover, .navlinks a[aria-current] { color: var(--ink); }+.navlinks a[aria-current] { font-weight: 700; }+.top .btn { min-height: 44px; padding: 0 18px; border-radius: 11px; font-size: 14px; font-weight: 600; }+.mac-only { display: none; padding: 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); font-size: 12px; font-weight: 600; color: var(--grey); }++/* Phone: the app is Mac only, so phones get a preview and a way to send the link to a Mac */+.phone { display: none; }+@media (max-width: 640px) {+ .desk { display: none !important; }+ .phone { display: flex !important; }+ .mac-only { display: inline-flex; }+}++/* Hero */+.hero { padding-top: 64px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }+.hero h1 { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }+.hero h1 .kicker { font-size: clamp(14px, 1.3vw, 16px); font-weight: 600; color: var(--grey); line-height: 1.5; }+.hero h1 .slogan { font-size: clamp(30px, 6vw, 80px); line-height: 1.12; font-weight: 900; letter-spacing: -0.03em; }+.hero .sub { margin: 0; font-size: clamp(18px, 1.9vw, 24px); font-weight: 500; color: var(--ink2); }+.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }+.hero .meta { margin: 0; font-size: 13px; color: var(--grey2); }+.sendcard {+ width: 100%; margin-top: 6px; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px;+ background: var(--card); border: 1px solid var(--line2); text-align: left;+}+.sendcard .head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }+.sendcard p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--grey); }+.sendcard .btn { min-height: 48px; font-size: 15px; width: 100%; }++/* Stage: the product working */+.stage { padding-top: 32px; padding-bottom: 72px; }+.stage-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }+.window { flex: 999 1 560px; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 80px rgba(21,23,28,0.22); }+.window .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dark2); }+.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3B3F48; }+.window .bar .title { margin-left: 12px; font-size: 13px; color: var(--on-dark2); }+.window .bar .live { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--orange); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }+.screen { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; gap: 34px; }+.speaker { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark2); }+.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--dark2); border: 3px solid var(--orange); }+.wave { display: flex; align-items: flex-end; gap: 6px; height: 64px; }+.wave span { display: block; width: 5px; border-radius: 3px; background: var(--orange); transform-origin: 50% 100%; animation: bar 1.1s ease-in-out infinite; }+@keyframes bar { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }+.subbar {+ position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(620px, 88%); height: 84px;+ padding: 14px 22px; border-radius: 16px; background: rgba(21,23,28,0.92); border: 1px solid #3B3F48;+}+.subbar .lines { position: relative; height: 100%; }+.cap { position: absolute; inset: 0; opacity: 0; animation: cap 12s infinite both; }+.cap .en { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark2); white-space: nowrap; overflow: hidden; }+.cap .zh { margin-top: 6px; font-size: 22px; font-weight: 700; color: #FFFFFF; animation: wipe 12s infinite both; }+.cap:nth-child(2), .cap:nth-child(2) .zh { animation-delay: 4s; }+.cap:nth-child(3), .cap:nth-child(3) .zh { animation-delay: 8s; }+@keyframes cap { 0% { opacity: 0; transform: translateY(10px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-8px); } }+@keyframes wipe { 0%, 7% { clip-path: inset(0 100% 0 0); } 17%, 100% { clip-path: inset(0 0 0 0); } }+.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }+.card { background: var(--card); border-radius: 18px; border: 1px solid var(--line); }+.notes { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 40px rgba(21,23,28,0.08); animation: float 6s ease-in-out infinite; }+.notes .head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }+.updating { margin-left: auto; padding: 3px 9px; border-radius: 999px; color: var(--orange-text); font-size: 12px; font-weight: 600; background: linear-gradient(90deg, var(--orange-soft) 0%, #FFFFFF 50%, var(--orange-soft) 100%); background-size: 200% 100%; animation: shim 2.4s linear infinite; }+@keyframes shim { to { background-position: -200% 0; } }+.note { padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; line-height: 1.5; opacity: 0; animation: note 12s infinite both; }+.note:nth-of-type(2) { animation-delay: 1.6s; } .note:nth-of-type(3) { animation-delay: 5.6s; } .note:nth-of-type(4) { animation-delay: 9.6s; }+@keyframes note { 0% { opacity: 0; transform: translateX(14px); } 5%, 100% { opacity: 1; transform: none; } }+@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }+.speak { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }+.speak .hold { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }+kbd { padding: 4px 10px; border-radius: 8px; border: 1px solid #DADDE2; background: var(--card); font: inherit; font-weight: 700; color: var(--ink); }+.speak kbd { animation: pulse 2s ease-out infinite; }+@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,85,43,.45); } 100% { box-shadow: 0 0 0 16px rgba(232,85,43,0); } }+.speak .out { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--orange-text); }+.speak .out svg { flex: none; margin-top: 3px; }++/* App names, moving */+.works { padding: 8px 0 88px; }+.works p { margin: 0 0 18px; padding: 0 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--grey); }+.marquee { overflow: hidden; }+.track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marq 36s linear infinite; }+.track li { padding: 0 28px; font-size: 22px; font-weight: 700; color: #8A909C; white-space: nowrap; }+@keyframes marq { to { transform: translateX(-50%); } }++/* Why */+.why { padding-bottom: 104px; }+h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; }+.lead { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--grey); max-width: 640px; }+.strike { background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 55% / 100% 2px; }+.rows { display: flex; flex-wrap: wrap; gap: 16px; }+.compare { flex: 1 1 300px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }+.compare h3 { margin: 0; font-size: 17px; }+.compare div { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--grey); }+.compare div b { flex: 0 0 64px; font-weight: 600; }+.compare div.us { color: var(--ink); }+.compare div.us b { font-weight: 700; color: var(--orange-text); }++/* Three verbs */+.verbs { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 20px; }+.verb { flex: 1 1 300px; min-width: 0; padding: 30px 28px; border-radius: 20px; background: var(--ink); color: #FFFFFF; display: flex; flex-direction: column; gap: 12px; }+.verb small { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--orange); }+.verb h3 { margin: 0; font-size: 34px; font-weight: 900; }+.verb p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }+.fine { flex: 1 1 100%; margin: 4px 0 0; font-size: 13px; color: var(--grey2); }++/* Latest updates */+.latest { padding-bottom: 96px; }+.latest .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }+.latest h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; letter-spacing: -0.02em; }+.latest .head a { font-size: 15px; font-weight: 600; text-decoration: none; }+.ucard { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--ink); text-decoration: none; }+.ucard:hover { color: var(--ink); border-color: #C4C8D0; }+.ucard .when { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); }+.ver { padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-weight: 700; }+.ucard strong { font-size: 19px; line-height: 1.45; font-weight: 800; }+.ucard span.d { font-size: 14px; line-height: 1.6; color: var(--grey); }++/* CTA */+.cta { padding-bottom: 80px; }+.cta-box { border-radius: 28px; background: var(--orange); color: #FFFFFF; padding: 52px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }+.cta-box svg { animation: float 6s ease-in-out infinite; flex: none; }+.cta-box .txt { flex: 1 1 380px; min-width: 0; }+.cta-box h2 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); font-weight: 900; line-height: 1.25; }+.cta-box h2 em { font-style: normal; animation: verb 6s infinite both; }+.cta-box h2 em:nth-of-type(2) { animation-delay: 2s; } .cta-box h2 em:nth-of-type(3) { animation-delay: 4s; }+@keyframes verb { 0%, 30% { color: #FFFFFF; } 36%, 100% { color: rgba(255,255,255,.55); } }+.cta-box p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; }+.cta-box .phone { width: 100%; }+.eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }+@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }++/* Footer */+.foot { background: var(--ink); color: #FFFFFF; overflow: hidden; }+.foot .wrap { padding-top: 72px; display: flex; flex-direction: column; gap: 56px; }+.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }+.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }+.foot-brand .row { display: flex; align-items: center; gap: 12px; }+.foot-brand img { width: 44px; height: 44px; border-radius: 10px; }+.foot-brand b { font-size: 26px; font-weight: 900; }+.foot-brand .row > span { font-size: 18px; font-weight: 600; color: var(--on-dark2); }+.foot-brand .bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-left: 4px; }+.foot-brand .bars i { display: block; width: 4px; border-radius: 2px; background: var(--orange); transform-origin: 50% 100%; animation: bar 1.3s ease-in-out infinite; }+.foot-brand p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--on-dark2); }+.foot-brand p.slogan { font-size: 22px; line-height: 1.5; font-weight: 700; color: #FFFFFF; }+.foot-dl { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--on-dark2); }+.foot-dl .btn { min-height: 50px; font-size: 15px; }+.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 36px 24px; padding-top: 40px; border-top: 1px solid var(--dark2); }+.foot-cols div { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; }+.foot-cols h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }+.foot-cols a { color: var(--on-dark); text-decoration: none; }+.foot-cols a:hover { color: #FFFFFF; }+.foot-cols span { color: var(--on-dark2); }+.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; color: var(--on-dark2); }+.foot-legal a { color: var(--on-dark); }+.foot-legal .tm { flex: 1 1 320px; min-width: 0; }+.wordmark {+ margin-top: 24px; font-size: clamp(88px, 24vw, 340px); line-height: 0.78; font-weight: 900; letter-spacing: -0.05em; text-align: center; white-space: nowrap;+ background: linear-gradient(90deg, #23262E 0 40%, var(--orange) 50%, #23262E 60% 100%); background-size: 250% 100%;+ -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 9s linear infinite; user-select: none;+}+@keyframes sweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }++/* Changelog page */+.cl-head { padding-top: 40px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }+.crumbs { font-size: 13px; color: var(--grey); }+.crumbs a { color: var(--grey); }+.cl-head h1 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; font-weight: 900; letter-spacing: -0.03em; }+.cl-head p { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--ink2); max-width: 760px; }+.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }+.cl-meta .pill { font-weight: 600; color: var(--ink); font-size: 14px; }+.cl-meta .pill .dot { animation: pulse 2s ease-out infinite; }+.rss { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-weight: 600; }+.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }+.filters button { min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #DADDE2; background: var(--card); color: var(--ink); }+.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }+.filters button span { margin-left: 6px; opacity: .7; }+.cl-body { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; }+.versions { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }+.versions > span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--grey); padding-bottom: 6px; }+.versions a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }+.versions a b { font-weight: 800; }+.versions a span { font-size: 12px; color: var(--grey); }+.releases { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }+.release { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }+.release .line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }+.release .line .ver { font-size: 14px; padding: 4px 10px; border-radius: 8px; font-weight: 800; }+.release .line .new { padding: 3px 8px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-text); font-size: 12px; font-weight: 700; }+.release .line .perma { margin-left: auto; color: var(--grey); text-decoration: none; padding: 4px 8px; }+.release h2 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; font-weight: 900; letter-spacing: -0.01em; }+.release > p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink2); }+.release img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }+.group h3 { margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }+.group h3 i { width: 8px; height: 8px; border-radius: 50%; }+.group[data-kind="new"] h3 i { background: var(--orange); }+.group[data-kind="improved"] h3 i { background: var(--ink); }+.group[data-kind="fixed"] h3 i { background: var(--faint); }+.group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }+.group li { font-size: 15px; line-height: 1.7; color: var(--ink2); }+.group li strong { color: var(--ink); }+.release .acts { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }+.release .acts .btn { min-height: 44px; padding: 0 16px; border-radius: 11px; font-size: 14px; font-weight: 600; }+.subscribe { border-radius: 22px; background: var(--ink); color: #FFFFFF; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }+.subscribe div { flex: 1 1 300px; min-width: 0; }+.subscribe b { font-size: 20px; }+.subscribe p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--on-dark); }+.subscribe .btn { min-height: 44px; font-size: 14px; border-radius: 11px; }++@media (max-width: 640px) {+ .screen { height: 260px; gap: 20px; }+ .avatar { width: 64px; height: 64px; }+ .subbar { height: 70px; padding: 10px 14px; bottom: 16px; width: 92%; }+ .cap .en { font-size: 11px; }+ .cap .zh { font-size: 16px; }+ .track li { font-size: 18px; padding: 0 20px; }+}++/* Scroll-linked motion where the browser has it; everything is fully visible without it */+@media (prefers-reduced-motion: no-preference) {+ @supports (animation-timeline: view()) {+ .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }+ .tilt-in { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }+ .strike { animation: strike linear both; animation-timeline: view(); animation-range: cover 25% cover 45%; }+ }+}+@keyframes rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }+@keyframes tilt-in { from { opacity: .4; transform: perspective(1200px) rotateX(18deg) scale(.9); } to { opacity: 1; transform: none; } }+@keyframes strike { from { background-size: 0 2px; } to { background-size: 100% 2px; } }+@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }+ .cap:first-child, .note { opacity: 1; }+}+[hidden] { display: none !important; }