Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

refactor(site): remove code comments

wquguru5c59afd558be
diff --git a/site/changelog.html b/site/changelog.html
index 71627cd..d2a2a1d 100644
--- a/site/changelog.html
+++ b/site/changelog.html
@@ -57,7 +57,6 @@
</main>
{{FOOTER}}
<script>
-// Filter by platform and by kind, both at once; lines, groups and versions with nothing left are hidden.
(function () {
var kind = 'all', platform = 'all';
function apply() {
diff --git a/site/footer.html b/site/footer.html
index 94b62c4..893a9b9 100644
--- a/site/footer.html
+++ b/site/footer.html
@@ -55,8 +55,6 @@
<div class="wordmark" aria-hidden="true">Cicada</div>
</footer>
<script>
-// Which system this is: the download buttons (data-dl) and the platform cards and tabs follow it.
-// Without JS, or on a system with nothing released yet, the page stays as built: the Mac download.
(function () {
var ua = navigator.userAgent, os = /Android/i.test(ua) ? 'android'
: /iPhone|iPad|iPod/.test(ua) || (/Macintosh/.test(ua) && navigator.maxTouchPoints > 1) ? 'ios'
@@ -70,7 +68,6 @@
document.querySelectorAll('[data-platform="' + os + '"] .yours').forEach(function (el) { el.hidden = false; });
window.CICADA_OS = os;
})();
-// Phones get no download: share the page (AirDrop / messages to yourself) or copy the link.
var SEND = {{SEND_JSON}};
document.querySelectorAll('[data-send]').forEach(function (b) {
var label = b.textContent;
diff --git a/site/header.html b/site/header.html
index 58732a5..95e06bd 100644
--- a/site/header.html
+++ b/site/header.html
@@ -28,7 +28,6 @@
</div>
</header>
<script>
-// Offer the visitor's own language when the page isn't in it. No redirect: links and search results stay as they are.
(function () {
var alts = {{ALTS_JSON}}, here = document.documentElement.lang.slice(0, 2), key = 'cicada-lang-dismissed';
var text = {
@@ -54,7 +53,6 @@
});
bar.hidden = false;
})();
-// Close the language menu on Escape or a click elsewhere.
document.addEventListener('click', function (e) {
document.querySelectorAll('details.lang[open]').forEach(function (d) { if (!d.contains(e.target)) d.open = false; });
});
diff --git a/site/index.html b/site/index.html
index 5a7f522..2bc8b99 100644
--- a/site/index.html
+++ b/site/index.html
@@ -106,16 +106,10 @@
</section>
<script>
- // The meeting above with its sound: only on a click. While the clip plays the speaker and the
- // subtitle follow its turns (who spoke when, measured in scripts/make-sample.sh): the original
- // comes in word by word as it is said and the translation trails it, as in the app. When the clip
- // ends the silent loop takes over again.
(function () {
var w = document.querySelector('.window[data-sample]'), s = JSON.parse(w.dataset.sample);
var btn = w.querySelector('.listen'), label = btn.querySelector('span').textContent, bar = w.querySelector('.progress');
var tiles = w.querySelectorAll('.tile'), caps = w.querySelectorAll('.cap'), audio = null, raf = 0;
- // The translation starts this many seconds after the voice and catches up as the sentence ends,
- // before the next speaker (turns are at least 0.2 s apart).
var LAG = 0.8;
var lines = [].map.call(caps, function (c) {
var src = c.querySelector('.en').lastChild, dst = c.querySelector('.zh').firstChild;
@@ -123,7 +117,6 @@
});
btn.hidden = false;
function mark(list, i) { list.forEach(function (el, j) { el.classList.toggle('on', j === i); }); }
- // The first share p of a line: by words in English, by characters in Chinese, Japanese and Korean.
function part(text, p) {
var units = /^[\x00-\x7F’]*$/.test(text) ? text.split(/(?=\s)/) : Array.from(text);
return units.slice(0, Math.ceil(units.length * Math.max(0, Math.min(1, p)))).join('');
@@ -151,7 +144,6 @@
btn.addEventListener('click', function () {
if (audio) { stop(); return; }
var a = audio = new Audio(s.src);
- // The last translation stays up a moment after the voice ends.
a.addEventListener('ended', function () { setTimeout(function () { if (audio === a) stop(); }, 1200); });
audio.play().then(function () {
w.classList.add('playing'); frame();
@@ -214,7 +206,6 @@
</div>
</section>
<script>
- // 听一段: start the scene over and let the room's voice come in when it reaches 说进会议.
(function () {
var sp = document.querySelector('.sp[data-speak]'), s = JSON.parse(sp.dataset.speak), btn = sp.querySelector('.listen'), t = 0;
btn.hidden = false;
@@ -263,8 +254,6 @@
</div>
</section>
<script>
- // Each conclusion or branch lights up with the line it came from: in turn on its own, or the one
- // under the pointer; side by side, a line joins the two.
(function () {
var paper = document.querySelector('.paper'), svg = paper.querySelector('.link'), path = svg.querySelector('path');
var items = paper.querySelectorAll('[data-k]'), k = 1, timer = 0, still = matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -273,7 +262,7 @@
items.forEach(function (el) { el.classList.toggle('lit', el.dataset.k == n); });
var a = paper.querySelector('.notes-col [data-k="' + n + '"]'), b = paper.querySelector('.quotes [data-k="' + n + '"]');
var p = paper.getBoundingClientRect(), ra = a.getBoundingClientRect(), rb = b.getBoundingClientRect();
- if (rb.left < ra.right) { path.removeAttribute('d'); return; } // stacked on a phone
+ if (rb.left < ra.right) { path.removeAttribute('d'); return; }
var x1 = ra.right - p.left, y1 = ra.top + ra.height / 2 - p.top, x2 = rb.left - p.left - 4, y2 = rb.top + rb.height / 2 - p.top, m = (x1 + x2) / 2;
path.setAttribute('d', 'M' + x1 + ' ' + y1 + 'C' + m + ' ' + y1 + ' ' + m + ' ' + y2 + ' ' + x2 + ' ' + y2);
}
@@ -320,7 +309,6 @@
<div class="faq-list">{{FAQ}}</div>
</section>
<script>
- // A link to #faq-… (the setup page's "will it run on my Mac?") opens that answer.
function openFaq() { var d = location.hash && document.getElementById(location.hash.slice(1)); if (d && d.tagName === 'DETAILS') d.open = true; }
openFaq(); addEventListener('hashchange', openFaq);
</script>
diff --git a/site/share.js b/site/share.js
index 68147b8..4174ef5 100644
--- a/site/share.js
+++ b/site/share.js
@@ -1,9 +1,3 @@
-// The share page (/s/<id>, site/share.html): fetches the shared meeting and draws it as one page
-// that discloses step by step. The notes come first; each chapter's dialogue appears when its row is
-// opened; the speakers, the original text and search wait until asked for.
-// Everything from the document goes in with textContent, never as HTML, and styles only through
-// classes or the CSSOM (the page's CSP allows no inline script or style attribute).
-// A password share is opened with PBKDF2 of the password; only that, not the password, is sent.
(function () {
"use strict";
var T = JSON.parse(document.getElementById("share-text").textContent);
@@ -11,9 +5,9 @@
var $ = function (s) { return document.getElementById(s); };
var lang = document.documentElement.lang;
var doc = null;
- var chapters = []; // {el, row, open, lines: [{el, who, text}]}
- var speakers = []; // {who, cls, share}
- var who = ""; // the speaker the dialogue is narrowed to
+ var chapters = [];
+ var speakers = [];
+ var who = "";
function show(which) {
["sh-loading", "sh-password", "sh-gone", "sh-doc"].forEach(function (k) { $(k).hidden = k !== which; });
@@ -52,7 +46,6 @@
try { return new Intl.DisplayNames([lang], { type: "language" }).of(c) || c; } catch (e) { return c; }
}
- // "说话人 2" → "2", "对方" → "对": what the avatar shows.
function initial(name) {
var digits = /(\d+)\s*$/.exec(name);
return digits ? digits[1].slice(-2) : (Array.from(name.trim())[0] || "?").toUpperCase();
@@ -109,7 +102,6 @@
box.hidden = false;
}
- // Who spoke and how much: each line counts until the next one starts, at most 30 s (a pause is no one's).
function drawPeople(d) {
var time = {};
d.lines.forEach(function (l, i) {
@@ -149,8 +141,6 @@
$("sh-people-btn").hidden = false;
}
- // The chapters, each holding the lines said in it. Lines before the first chapter belong to it;
- // a meeting without chapters has one, all of its dialogue.
function drawChapters(d) {
var topics = (d.notes && d.notes.topics) || [], hasLines = d.lines.length > 0;
var groups = topics.length ? topics.map(function (t) { return { start: t.start, title: t.title, summary: t.summary, points: t.points, lines: [] }; })
@@ -209,7 +199,7 @@
});
if (groups.length === 1) toggle(chapters[0], true);
var openable = chapters.filter(function (c) { return c.row.tagName === "BUTTON"; });
- $("sh-all").hidden = !hasLines || openable.length < 2; // its words are about dialogue
+ $("sh-all").hidden = !hasLines || openable.length < 2;
$("sh-chapters").hidden = false;
syncAll();
}
@@ -252,7 +242,6 @@
$("sh-all").textContent = all ? T.collapse_all : T.expand_all;
}
- // The chapters that can open and are not narrowed away.
function shown() {
return chapters.filter(function (c) { return c.row.tagName === "BUTTON" && !c.el.classList.contains("miss"); });
}
@@ -263,7 +252,6 @@
syncAll();
});
- // Narrowing (to one speaker, or to what matches the search) opens the chapters that still have lines.
function apply() {
var q = $("sh-search").value.trim().toLowerCase(), found = 0, narrowed = !!who || q !== "";
chapters.forEach(function (c) {
@@ -311,7 +299,6 @@
if (open) $("sh-search").focus();
else if ($("sh-search").value) { $("sh-search").value = ""; apply(); }
});
- // The first letter typed brings the dialogue up; later ones only narrow it.
var searching = false;
$("sh-search").addEventListener("input", function () {
apply();
@@ -321,7 +308,6 @@
});
$("sh-search").addEventListener("keydown", function (e) { if (e.key === "Escape") $("sh-search-btn").click(); });
- // The share menu: copy the link, copy the notes, or the system's share sheet where there is one.
function menu(open) {
$("sh-menu").hidden = !open;
$("sh-share-btn").setAttribute("aria-expanded", open ? "true" : "false");
@@ -345,7 +331,6 @@
return out.join("\n");
}
- // The item says it worked for a moment, then the menu closes.
function copy(text, b, done) {
var was = b.textContent;
(navigator.clipboard ? navigator.clipboard.writeText(text) : Promise.reject()).then(function () {
@@ -380,8 +365,6 @@
}, failed);
}
- // The password page: a wrong password shakes the field and says so in red; typing again puts the
- // reassurance back. The arrow turns into a spinner while the browser works the password out.
var lock = null, note = $("sh-pw-text").textContent;
function say(text, err) {
$("sh-pw-text").textContent = text;
@@ -390,12 +373,10 @@
function refuse(text) {
var form = $("sh-pw-form");
form.classList.remove("bad");
- void form.offsetWidth; // restart the shake
+ void form.offsetWidth;
form.classList.add("bad");
say(text, true);
}
- // The arrow only looks faint while the field is empty (CSS); it is never disabled for that, so a
- // password manager's fill, which may send no input event, can still be submitted.
$("sh-pw").addEventListener("input", function () {
if ($("sh-pw-form").classList.contains("bad")) { $("sh-pw-form").classList.remove("bad"); say(note, false); }
});
diff --git a/site/start.html b/site/start.html
index fe4bdfd..0ec2e3d 100644
--- a/site/start.html
+++ b/site/start.html
@@ -82,7 +82,6 @@
<div class="num-row"><span class="num accent" aria-hidden="true">2</span><span class="badge">{{t.s2_badge}}</span></div>
<h2>{{t.m2_h}}</h2>
<p>{{t.m2_p}}</p>
- <!-- Both services, side by side; the page's language picks which comes first (svc_first), never the reader's region. -->
<div class="svc" data-first="{{t.svc_first}}">
<div class="svc-card svc-ling">
<h3>Ling <span class="tag">{{t.svc_ling_tag}}</span></h3>
@@ -321,7 +320,6 @@
</div>
</section>
</div>
- <!-- The app's "怎么设置代理" links here (#proxy): the three cases it names when translation, OpenRouter or ZenMux can't be reached. -->
<section class="wrap later aguide" id="proxy" aria-labelledby="proxy-t">
<h2 id="proxy-t">{{t.proxy_h}}</h2>
<p class="more">{{t.proxy_p}}</p>
@@ -335,8 +333,6 @@
</main>
{{FOOTER}}
<script>
-// One platform's steps at a time: the visitor's own (footer.html), or the one in the link (#windows).
-// Without JS every platform's steps show, one after another.
(function () {
var tabs = document.querySelectorAll('.ptabs [role=tab]'), blocks = document.querySelectorAll('.pblock');
function pick(p, focus) {
diff --git a/site/style.css b/site/style.css
index c27b60f..9bbcf40 100644
--- a/site/style.css
+++ b/site/style.css
@@ -1,4 +1,3 @@
-/* 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;
@@ -6,7 +5,6 @@
--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);
@@ -33,12 +31,9 @@ img { max-width: 100%; }
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
-/* Header */
-/* No-coin notice above the header: scrolls away, the sticky header stays. */
.notice { background: var(--orange-soft); color: var(--orange-text); font-size: 13px; line-height: 1.5; }
.notice .wrap { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.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); }
-/* Hovered links get their own layer, so a colour change doesn't re-blur the header's backdrop (that flashed). Not on .top itself: it would trap the phone's fixed language sheet. */
.navlinks, .lang summary, .top .btn { transform: translateZ(0); }
.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; }
@@ -52,13 +47,11 @@ img { max-width: 100%; }
.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); }
-/* Japanese and Korean pages: their own CJK fonts, so kanji don't take Chinese glyph forms */
html[lang="ja"] body { font-family: Inter, "Noto Sans JP", -apple-system, "Hiragino Sans", system-ui, sans-serif; }
html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif; }
.brand span:empty { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
-/* Language menu: a dropdown on desktop, a sheet from the bottom on phones */
.lang { position: relative; }
.lang summary {
display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 11px;
@@ -87,7 +80,6 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.foot-langs b { color: #FFFFFF; font-weight: 600; }
.navlinks.phone a { display: inline-flex; align-items: center; min-height: 44px; }
-/* Phone: phones get a preview and a way to send the link to a computer; Android phones get the APK instead (.apkcard). */
.phone { display: none; }
@media (max-width: 640px) {
.desk { display: none !important; }
@@ -96,7 +88,6 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.brand span { display: none; }
.lang summary { padding: 0; width: 44px; justify-content: center; }
.lang summary .lang-name, .lang summary .chev { display: none; }
- /* The header's backdrop-filter would make it the containing block of the fixed sheet. */
.top:has(details.lang[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ground); }
.lang[open]::before { content: ""; position: fixed; inset: 0; z-index: 19; background: rgba(21,23,28,0.45); }
.lang-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; border: 0; }
@@ -106,7 +97,6 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.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; }
@@ -122,7 +112,6 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.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); }
@@ -140,7 +129,6 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.listen .stop, .playing .listen .play { display: none; } .playing .listen .stop { display: block; }
.screen { position: relative; height: 380px; }
.progress { position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--orange); }
-/* The two people in the call, above the subtitle strip so it never covers a face */
.tiles { position: absolute; top: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }
.tile {
position: relative; width: min(260px, 42%); aspect-ratio: 16 / 10; border-radius: 14px; background: #24262D;
@@ -152,14 +140,12 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.tile em { position: absolute; right: 12px; bottom: 11px; display: flex; align-items: flex-end; gap: 3px; height: 14px; opacity: 0; }
.tile em i { width: 3px; height: 14px; border-radius: 2px; background: var(--orange); transform-origin: 50% 100%; animation: bar .9s ease-in-out infinite; }
.tile em i:nth-child(2) { animation-delay: -.3s; } .tile em i:nth-child(3) { animation-delay: -.6s; }
-/* The silent loop: whoever's line is up is talking (Emma, George, Emma) */
.tile { animation: talk-a 12s infinite both; } .tile em { animation: say-a 12s infinite both; }
.tile:nth-child(2) { animation-name: talk-b; } .tile:nth-child(2) em { animation-name: say-b; }
@keyframes talk-a { 0%, 31%, 68%, 98%, 100% { border-color: var(--dark2); } 3%, 29%, 70%, 96% { border-color: var(--orange); } }
@keyframes talk-b { 0%, 34%, 64%, 100% { border-color: var(--dark2); } 36%, 62% { border-color: var(--orange); } }
@keyframes say-a { 0%, 31%, 68%, 98%, 100% { opacity: 0; } 3%, 29%, 70%, 96% { opacity: 1; } }
@keyframes say-b { 0%, 34%, 64%, 100% { opacity: 0; } 36%, 62% { opacity: 1; } }
-/* With sound: the page's script follows the clip's turns instead */
.playing .tile, .playing .tile em, .playing .cap, .playing .cap .zh { animation: none; }
.playing .tile { transition: border-color .15s; } .playing .tile.on { border-color: var(--orange); }
.playing .tile em { transition: opacity .15s; } .playing .tile.on em { opacity: 1; }
@@ -170,7 +156,6 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(620px, 88%);
padding: 14px 22px; border-radius: 16px; background: rgba(21,23,28,0.92); border: 1px solid #3B3F48;
}
-/* All lines share one grid cell, so the strip is as tall as the longest and grows upward like the app's */
.subbar .lines { display: grid; grid-template-columns: minmax(0, 1fr); }
.cap { grid-area: 1 / 1; align-self: end; opacity: 0; animation: cap 12s infinite both; }
.cap .en { display: block; font-size: 13px; color: var(--on-dark2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@@ -186,11 +171,8 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple
.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; } }
-/* The notes fill in as the meeting goes: the "why" drawn as a fishbone (a dashed branch is a cause
- with little behind it), then the decision and the to-do */
.nt { opacity: 0; animation: note 12s infinite both; font-size: 13px; }
.nt.why { animation-delay: 1.6s; } .nt.items { animation-delay: 8.6s; }
-/* Drawn as the app draws it: the question, then the causes in pairs either side of a spine */
.nt.why { padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.nt.why .q { display: flex; align-items: center; gap: 6px; color: var(--grey); }
.nt.why .q b { font-size: 13px; color: var(--ink); }
@@ -217,7 +199,6 @@ kbd { padding: 4px 10px; border-radius: 8px; border: 1px solid #DADDE2; backgrou
.speak kbd { padding: 2px 8px; margin: 0 2px; 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); } }
-/* 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; }
@@ -225,7 +206,6 @@ kbd { padding: 4px 10px; border-radius: 8px; border: 1px solid #DADDE2; backgrou
.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; }
@@ -238,7 +218,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.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); }
@@ -246,14 +225,12 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.verb p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }
.verb .more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none; }
.verb .more:hover { color: var(--orange); }
-/* Scenes under the three cards: 说得出 and 记得住 drawn in the page, not screenshots */
.scene { padding-bottom: 104px; scroll-margin-top: 80px; }
.scene-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; margin-bottom: 28px; }
.scene-head small { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--orange-text); }
.scene-head h2 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 900; }
.scene-head p { margin: 0 0 6px; max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--grey); }
-/* 说得出: a 10 s loop of hold → speak → let go → the room hears it */
.sp { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.sp-call { flex: 999 1 560px; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 80px rgba(21,23,28,.22); display: flex; flex-direction: column; }
.sp-call .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dark2); }
@@ -300,7 +277,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
@keyframes sp-s3 { 0%, 39% { opacity: .35; } 41%, 96% { opacity: 1; } 99%, 100% { opacity: .35; } }
@keyframes sp-s4 { 0%, 54% { opacity: .35; } 56%, 96% { opacity: 1; } 99%, 100% { opacity: .35; } }
-/* 记得住: the notes as one sheet; each conclusion or branch lights up with the line it came from */
.paper { position: relative; box-sizing: border-box; padding: 36px 44px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(21,23,28,.10); display: flex; flex-direction: column; gap: 26px; }
.paper .link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.paper .link path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
@@ -343,7 +319,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
}
.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; }
@@ -355,7 +330,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.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); }
-/* Roadmap */
.roadmap { padding-bottom: 96px; }
.roadmap .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.roadmap h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; letter-spacing: -0.02em; }
@@ -366,7 +340,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.stage-card h3 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 800; }
.stage-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--grey); }
.roadmap .head p { margin: 8px 0 0; font-size: 15px; color: var(--grey); }
-/* Three columns: next on the Mac (numbered), later, not planned. */
.road { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 16px; align-items: stretch; }
.road:has(> .none[hidden]) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.road-col { padding: 24px 26px; }
@@ -385,7 +358,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.road-col li span { display: block; grid-column: 2; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--grey); }
.road-col ul li span { margin-top: 4px; }
-/* FAQ: requirements card on the left, questions on the right. */
.faq { padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq-side { display: flex; flex-direction: column; gap: 14px; }
.faq-side small { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--orange-text); }
@@ -415,7 +387,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
}
.start-head .req a { font-weight: 700; margin-left: 6px; }
-/* 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; }
@@ -429,7 +400,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.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; }
@@ -460,7 +430,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }
-/* Setup guide (start/) */
.start-head { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.start-head h1 { margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; }
.start-head .lead { margin: 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; color: var(--ink2); }
@@ -502,7 +471,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.gains li strong { display: block; color: var(--ink); }
.gains .without { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line2); font-size: 13px; line-height: 1.6; color: var(--grey2); }
.shots { display: flex; flex-direction: column; gap: 18px; }
-/* Step 3: the text on top, both screenshots side by side under it (stacked on phones). */
.step.wide { align-items: flex-start; }
.step.wide .step-text, .step.wide .step-aside { flex-basis: 100%; }
.step.wide .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
@@ -516,7 +484,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.later .card p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--grey); }
.later .more { margin: 28px 0 0; font-size: 14px; color: var(--grey); }
-/* 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); }
@@ -575,7 +542,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.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%; }
@@ -594,14 +560,12 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
}
[hidden] { display: none !important; }
-/* Other platforms. footer.html marks the system on <html> (os-android…) and that JS runs (js). */
.hero .also { margin: 0; font-size: 14px; color: var(--grey); }
.hero .also a { font-weight: 600; color: var(--ink); }
.apkcard { display: none; }
.os-android .apkcard { display: flex; }
.os-android .sendcard.phone { display: none !important; }
-/* Setup guide: one platform's steps at a time once JS runs; without it every platform shows. */
.ptabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.ptabs button { min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ptabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 700; }
@@ -619,7 +583,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.aguide .card h3 { margin-top: 6px; }
.aguide .more { margin: 0 0 18px; }
-/* Downloads */
.dlcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-bottom: 24px; }
.dlcard { padding: 24px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.dlcard:target { border-color: var(--ink); }
@@ -628,7 +591,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.dlcard .yours { padding: 3px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-text); font-size: 12px; font-weight: 700; }
.dlcard .sys { margin: 0; font-size: 14px; color: var(--ink2); }
.dlcard .btn { width: 100%; }
-/* Two buttons side by side only while each has room for its one-line hint; else they stack. */
.dlcard .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.dlcard .pair .btn { flex-direction: column; gap: 4px; min-height: 64px; padding: 10px 12px; line-height: 1.15; }
.dlcard .pair small { font-size: 12px; font-weight: 500; opacity: .75; white-space: nowrap; }
@@ -646,7 +608,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.cmp tbody th { font-weight: 600; white-space: nowrap; color: var(--ink); }
.dlcmp .more { margin: 18px 0 0; font-size: 14px; color: var(--grey); }
.pblock > .steps:last-child { padding-bottom: 96px; }
-/* 上手页第 2 步(Mac): two services, the first one (per the page's language) stands out. */
.svc { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.svc-card { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.svc-card h3 { margin: 0; font-size: 18px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@@ -662,9 +623,6 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.step-text p.alt-svc { margin-top: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); font-size: 13px; line-height: 1.6; color: var(--grey); }
.step-text p.alt-svc b { color: var(--ink); }
-/* Share page (/s/<id>, share.html + share.js). One white page that discloses step by step: the
- notes first, each chapter's dialogue only when it is opened, the speakers and the original text
- only when asked for. The page's CSP allows no inline styles: all of it is here. */
html:has(.sh-body) { scroll-padding-top: 72px; }
html:has(.sh-search-row:not([hidden])) { scroll-padding-top: 132px; }
.sh-body { background: var(--card); color: #1D1D1F; overflow-x: clip; }
@@ -695,9 +653,7 @@ html[lang="ko"] .sh-body { word-break: keep-all; }
.share { max-width: 768px; margin: 0 auto; padding: 64px 24px 96px; }
.share [hidden] { display: none !important; }
.sh-status { margin: 80px 0; text-align: center; color: #6E6E73; }
-/* The locked and the gone page: one glyph, one sentence, one thing to do, in the middle of the screen. */
.sh-gate { max-width: 400px; min-height: calc(100vh - 56px - 160px); min-height: calc(100dvh - 56px - 160px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
-/* The app icon, with what happened to the link as a small dark badge on its corner. */
.sh-mark { position: relative; width: 88px; height: 88px; margin-bottom: 4px; }
.sh-mark img { display: block; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px rgba(232,85,43,0.22); }
.sh-mark .badge { position: absolute; right: -8px; bottom: -8px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1D1D1F; color: #FFFFFF; box-shadow: 0 0 0 3px #FFFFFF; }
@@ -712,7 +668,6 @@ html[lang="ko"] .sh-body { word-break: keep-all; }
#sh-gone[data-kind="missing"] .k-missing, #sh-gone[data-kind="expired"] .k-expired, #sh-gone[data-kind="locked"] .k-locked { display: block; }
.sh-gate .sh-get { height: 44px; padding: 0 22px; border-radius: 22px; font-size: 15px; }
-/* The password field: the show and go buttons sit inside it, like a system sign-in. */
.sh-pw { position: relative; width: 100%; margin-top: 4px; }
.sh-pw input { width: 100%; height: 52px; padding: 0 100px 0 20px; border: 1px solid #D2D2D7; border-radius: 26px; background: #FFFFFF; font: inherit; font-size: 17px; color: #1D1D1F; outline: none; transition: border-color .15s, box-shadow .15s; }
.sh-pw input::placeholder { color: #8E8E93; }