diff --git a/public/app.js b/public/app.js index dcdfc5a..7fecfc8 100644 --- a/public/app.js +++ b/public/app.js @@ -178,9 +178,7 @@ const VIRTUAL_LIST_ITEM_LIMIT = 160; const EDITABLE_OUTPUT_FORMATS = new Set(["md", "html", "txt", "json", "csv", "xml"]); const BINARY_OUTPUT_FORMATS = new Set(["docx", "xlsx", "pptx", "epub", "pdf"]); const INPUT_EDITOR_MIN_HEIGHT = 144; -const INPUT_EDITOR_MAX_HEIGHT = 420; const BINARY_INPUT_EDITOR_MIN_HEIGHT = 118; -const BINARY_INPUT_EDITOR_MAX_HEIGHT = 280; const HISTORY_PREFERENCE_KEY = "trans2former.history.optIn"; const MARKDOWN_PROFILE_PREFERENCE_KEY = "trans2former.markdown.profile"; const PROGRESS_STAGE_LABELS = { @@ -218,6 +216,8 @@ function setStatus(message, type = "info") { // 修复 issue #37: 只设置 data-type,颜色由 CSS 控制 statusText.textContent = message; statusText.dataset.type = type; + // 长状态文案在芯片内省略显示,悬停可见完整内容 + statusText.title = String(message || ""); } function setFileMeta(message) { @@ -1065,13 +1065,13 @@ function updateWordCount() { } function fitInputEditorHeight() { + // 编辑器在源面板内垂直铺满(flex 拉伸),这里只同步模式对应的最小高度; + // 不再按内容钉死像素高度,避免宽屏/高视口下面板底部出现大片空白。 const isBinary = inputContent.classList.contains("is-binary-input"); const minHeight = isBinary ? BINARY_INPUT_EDITOR_MIN_HEIGHT : INPUT_EDITOR_MIN_HEIGHT; - const maxHeight = isBinary ? BINARY_INPUT_EDITOR_MAX_HEIGHT : INPUT_EDITOR_MAX_HEIGHT; - inputContent.style.height = "auto"; - const nextHeight = Math.min(maxHeight, Math.max(minHeight, inputContent.scrollHeight + 2)); - inputContent.style.height = `${nextHeight}px`; - inputContent.style.overflowY = inputContent.scrollHeight > maxHeight ? "auto" : "hidden"; + inputContent.style.minHeight = `${minHeight}px`; + inputContent.style.height = ""; + inputContent.style.overflowY = "auto"; } function isBinaryInputFormat(format = fromFormatSelect.value) { @@ -1417,6 +1417,41 @@ function getLargePreviewSample(rawContent, mode) { .join("\n"); } +// 输入预览空态:清空标准化预览并给出与当前输入一致的提示, +// 避免载入新文件/恢复工作区后残留示例文档等陈旧内容(CSS :empty + attr(data-empty-hint) 呈现)。 +function showInputPreviewHint(message = "") { + if (!htmlPreview) { + return; + } + htmlPreview.replaceChildren(); + if (message) { + htmlPreview.dataset.emptyHint = message; + } else { + delete htmlPreview.dataset.emptyHint; + } +} + +// 扫描件/图片型 PDF:PDF.js 解析出页面但整篇无文本 run(数据层 warning PDF_NO_TEXT_RUNS, +// 或 metadata.pdf.extraction === "pdfjs-no-text")。UI 应引导本地 OCR,而不是笼统报"不可读"。 +function getPdfNoTextRunsWarning(model) { + const warnings = model?.metadata?.warnings; + if (!Array.isArray(warnings)) { + return null; + } + return warnings.find((warning) => warning?.code === "PDF_NO_TEXT_RUNS") || null; +} + +function isNoTextRunsPdfModel(model) { + return Boolean(getPdfNoTextRunsWarning(model)) || model?.metadata?.pdf?.extraction === "pdfjs-no-text"; +} + +function describeNoTextRunsPdf(model) { + const warning = getPdfNoTextRunsWarning(model); + const pageCount = Number(warning?.details?.pageCount) || Number(model?.metadata?.pdf?.pageCount) || 0; + const pagesText = pageCount > 0 ? `共 ${pageCount} 页,` : ""; + return `这份 PDF ${pagesText}均无文本层,疑似扫描件/图片型——点击转换将使用本地 OCR 识别。`; +} + function renderLargeDocumentPreview(rawContent, fileName = currentFileName) { updateLargePreviewControls(rawContent.length); const mode = largePreviewModeSelect?.value || "structure"; @@ -1429,6 +1464,7 @@ function renderLargeDocumentPreview(rawContent, fileName = currentFileName) { `

当前仅渲染前 ${Math.min(model.blocks.length, LARGE_PREVIEW_BLOCK_LIMIT)} 个结构块,转换仍在 Worker 中完整执行。

`, ].join(""); htmlPreview.innerHTML = summary + renderPreviewHtml(previewContent, fromFormatSelect.value, fileName); + delete htmlPreview.dataset.emptyHint; renderMathIn(htmlPreview); renderDocumentModelPanel({ ...model, @@ -1468,6 +1504,12 @@ function renderPreview() { const model = toDocumentModel(content, fromFormatSelect.value, currentFileName); const bodyHtml = renderPreviewHtml(content, fromFormatSelect.value, currentFileName); htmlPreview.innerHTML = bodyHtml; + if (String(bodyHtml || "").trim()) { + delete htmlPreview.dataset.emptyHint; + } else { + // 解析成功但没有可渲染正文(如无文本 PDF 之外的空文档),如实呈现空态而非残留旧内容 + htmlPreview.dataset.emptyHint = "未生成可预览内容"; + } if (currentInputPdfPreviewUrl) { URL.revokeObjectURL(currentInputPdfPreviewUrl); currentInputPdfPreviewUrl = ""; @@ -1481,7 +1523,9 @@ function renderPreview() { const notice = document.createElement("p"); notice.textContent = model.metadata?.pdf?.encrypted ? "此 PDF 已加密,无法提取正文。请先解除密码后重试。" - : "目前未能提取可编辑正文。可在下方查看原 PDF;转换需要可提取文本或可用的 OCR。"; + : isNoTextRunsPdfModel(model) + ? `${describeNoTextRunsPdf(model)}可在下方查看原 PDF。` + : "目前未能提取可编辑正文。可在下方查看原 PDF;转换需要可提取文本或可用的 OCR。"; htmlPreview.prepend(notice); } const originalDataUrl = content.match(/^data:application\/pdf;base64,[A-Za-z0-9+/=]+/i)?.[0]; @@ -1562,6 +1606,8 @@ function renderPreviewWhenIdle() { try { renderPreview(); } catch (error) { + // 预览渲染失败时清空残留内容(如示例文档),避免误导 + showInputPreviewHint(`预览生成失败:${error.message}。可点击“刷新预览”重试。`); setStatus(error.message, "error"); } }); @@ -1591,7 +1637,19 @@ async function handleInputText(rawContent, fileName = currentFileName, { renderI setWorkflowStep("preview"); currentFileName = fileName; currentInputContent = String(rawContent ?? ""); - inputContent.value = createReadableInputDisplay(currentInputContent, fromFormatSelect.value, fileName); + let inputDisplayText = createReadableInputDisplay(currentInputContent, fromFormatSelect.value, fileName); + if (String(fromFormatSelect.value).toLowerCase() === "pdf") { + // 扫描件/图片型 PDF:占位文案明确引导本地 OCR(与加密提示并列的专门分支) + try { + const inputModel = toDocumentModel(currentInputContent, fromFormatSelect.value, fileName); + if (isNoTextRunsPdfModel(inputModel)) { + inputDisplayText = describeNoTextRunsPdf(inputModel); + } + } catch { + // 解析失败时保留默认可读摘要 + } + } + inputContent.value = inputDisplayText; syncInputEditorMode(); fitInputEditorHeight(); setFileMeta(fileName); @@ -1612,6 +1670,11 @@ async function handleInputText(rawContent, fileName = currentFileName, { renderI } else if (renderInitialPreview) { renderPreviewWhenIdle(); } else { + // 不自动生成初始预览时(恢复工作区/超大文件),清空旧预览并给出与输入一致的空态, + // 否则右侧会残留示例文档或上一个文件的内容 + showInputPreviewHint(isBinaryInputFormat() + ? `${String(fromFormatSelect.value).toUpperCase()} 文件已载入,未自动生成预览。可点击“刷新预览”查看。` + : `已载入 ${fileName},预览未自动生成。点击“刷新预览”查看。`); setStatus("大文件已载入,预览保持手动刷新以避免卡顿", "info"); } scheduleWorkspaceSnapshot(); diff --git a/public/landing-view.js b/public/landing-view.js index 64509b1..716e0f9 100644 --- a/public/landing-view.js +++ b/public/landing-view.js @@ -33,34 +33,43 @@ const ROUTE_CLASS_BADGES = { const FEATURE_CARDS = [ { icon: "shield", + tag: "F.01", title: "本地优先", body: "文档处理、预览、编辑、导出全部在浏览器或 Tauri 壳内完成。零云端依赖、零数据上传,处理阶段禁联网。", }, { icon: "graph", + tag: "F.02", title: "五模型路由", body: "SemanticDoc / WorkbookModel / SlideModel / FixedLayoutModel / AssetGraph 五个并列规范模型,Capability Registry + Route Planner 计算路径温度与降级。", }, { icon: "wand", + tag: "F.03", title: "Repair Engine 自动修复", body: "结构化修复动作 + 规则驱动 validator + post-repair 复核。当前实现:replaceTextRun + selectFallbackRoute 自动应用;insertTextRun / reorderBlocks / restoreTableGrid / adjustBoundingBox / regeneratePageLayout 为占位(S3/S4 路线图)。", + wide: true, + scan: true, }, { icon: "scope", + tag: "F.04", title: "三层转换检验", body: "规则 diff + SSIM 视觉对比 + OCR 回读三层组合写入 QualityReport,提供可解释的转换质量证据。", }, ]; const WORKFLOW_STEPS = [ - { step: "1", title: "导入", body: "拖入或选择文件,自动识别格式" }, - { step: "2", title: "路由", body: "Planner 计算最佳路径与温度等级" }, - { step: "3", title: "Repair", body: "Repair Engine 提议、应用(当前 2/7 动作)、复核" }, - { step: "4", title: "质检", body: "规则 + SSIM + OCR 回读三层证据" }, - { step: "5", title: "输出", body: "高质量目标格式,可下载、可独立预览" }, + { step: "01", title: "导入", body: "拖入或选择文件,自动识别格式" }, + { step: "02", title: "路由", body: "Planner 计算最佳路径与温度等级" }, + { step: "03", title: "Repair", body: "Repair Engine 提议、应用(当前 2/7 动作)、复核" }, + { step: "04", title: "质检", body: "规则 + SSIM + OCR 回读三层证据" }, + { step: "05", title: "输出", body: "高质量目标格式,可下载、可独立预览" }, ]; +// 扫描带里循环滚动的格式文档图标(两份副本实现无缝 marquee) +const SCAN_STRIP_FORMATS = ["md", "html", "txt", "json", "xml", "csv", "docx", "xlsx", "epub", "pdf", "pptx", "png"]; + function formatNameOf(format) { return FORMAT_LABELS[format] || String(format || "").toUpperCase(); } @@ -77,46 +86,107 @@ function svgIcon(name) { return ``; } +function scanDocIcon(format) { + const key = String(format || "").toUpperCase(); + return ` + + `; +} + +function buildScanStrip() { + const set = SCAN_STRIP_FORMATS.map(scanDocIcon).join(""); + return ` + + `; +} + function buildHero(host, stats) { const wrapper = document.createElement("section"); wrapper.id = "hero"; - // 注意:eyebrow 中的版本号需与 package.json 的 version 保持一致(当前 2.4.0) + // 注意:meta 行中的版本号需与 package.json 的 version 保持一致(当前 2.4.0) wrapper.className = "landing-hero reveal-on-scroll"; wrapper.innerHTML = ` - + +
+ TRANS2FORMER + V2.4.0 + LOCAL-FIRST + ${stats.inputFormats} IN × ${stats.outputFormats} OUT +
- v2.4 · local-first 多格式转换工作台 -

把文档跨格式转换变成
可验证、可修复、可解释的工程

-

${stats.inputFormats} 种输入 × ${stats.outputFormats} 种输出 · ${stats.recommendedRoutes} 条推荐路径 · Repair Engine(2/7 动作已实现) · 处理阶段禁联网

+

把文档跨格式转换变成
可验证、可修复、可解释的工程

+

${stats.inputFormats} 种输入 × ${stats.outputFormats} 种输出//${stats.recommendedRoutes} 条推荐路径//Repair Engine 2/7 动作已实现//处理阶段禁联网

查看路径矩阵
-
+ `; host.appendChild(wrapper); } -function buildFeatures(host) { +function buildReadoutPanel(stats) { + const rows = [ + ["INPUTS", String(stats.inputFormats)], + ["OUTPUTS", String(stats.outputFormats)], + ["RECOMMENDED", String(stats.recommendedRoutes)], + ["REPAIR ACTIONS", "2/7"], + ["NETWORK", "OFF"], + ]; + return ` + + `; +} + +function buildFeatures(host, stats) { const wrapper = document.createElement("section"); wrapper.id = "features"; wrapper.className = "landing-section landing-features"; + const cards = FEATURE_CARDS.map((card) => ` +
+ + ${svgIcon(card.icon)} +

${card.title}

+

${card.body}

+ ${card.scan ? buildScanStrip() : ""} +
+ `); + // 宽卡(Repair Engine)与 Registry 快照面板占据第一行,其余卡片第二行 + const [localFirst, routing, repair, verification] = cards; wrapper.innerHTML = `
- 核心特性 + CORE CAPABILITIES / 核心特性

用工程方法保住跨格式转换的真实质量

- ${FEATURE_CARDS.map((card) => ` -
- ${svgIcon(card.icon)} -

${card.title}

-

${card.body}

-
- `).join("")} + ${repair} + ${buildReadoutPanel(stats)} + ${localFirst} + ${routing} + ${verification}
`; host.appendChild(wrapper); @@ -137,8 +207,8 @@ function buildFormats(host) { return `
- ${formatNameOf(from)} ${String(from).toUpperCase()} + ${formatNameOf(from)}
@@ -146,16 +216,23 @@ function buildFormats(host) { }).join(""); wrapper.innerHTML = `
- 格式矩阵 + ROUTE MATRIX / 格式矩阵

${inputs.length} 种输入 × 推荐输出

每条路径的徽章颜色映射到 Capability Registry 的 routeClass:推荐 / 降级 / 生成 / 受限。

-
${rows}
-
- 推荐 - 降级 - 生成 - 受限 +
+ +
${rows}
+
+ ROUTECLASS + 推荐 + 降级 + 生成 + 受限 +
`; host.appendChild(wrapper); @@ -167,7 +244,7 @@ function buildWorkflow(host) { wrapper.className = "landing-section landing-workflow"; wrapper.innerHTML = `
- 工作流 + PIPELINE / 工作流

从导入到输出,每一步都有可观察的质量证据

    @@ -190,13 +267,26 @@ function buildCta(host) { wrapper.id = "cta"; wrapper.className = "landing-section landing-cta reveal-on-scroll"; wrapper.innerHTML = ` -

    现在就开始一次本地优先的转换

    + READY / 开始 +

    现在就开始一次本地优先的转换

    无需注册、无云端依赖、无插件安装。打开工作台,拖入文件,立刻看到结构化质量报告。

    `; host.appendChild(wrapper); } +function buildFooter(host) { + const footer = document.createElement("footer"); + footer.className = "landing-footer"; + footer.innerHTML = ` + + `; + host.appendChild(footer); +} + function attachRevealObserver(root) { const targets = root.querySelectorAll(".reveal-on-scroll"); const revealAll = () => targets.forEach((el) => el.classList.add("is-revealed")); @@ -261,10 +351,11 @@ export function mountLanding(root) { const stats = computeStats(capabilities); root.innerHTML = ""; buildHero(root, stats); - buildFeatures(root); + buildFeatures(root, stats); buildFormats(root); buildWorkflow(root); buildCta(root); + buildFooter(root); attachCtas(root); attachRevealObserver(root); } diff --git a/public/styles.css b/public/styles.css index 4ad6616..373d18b 100644 --- a/public/styles.css +++ b/public/styles.css @@ -36,9 +36,9 @@ --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06); --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04); - /* 字体家族 */ - --font-ui: "Inter", "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; - --mono: "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, monospace; + /* 字体家族:UI 走现代无衬线 + 中文回退;等宽仅用于代码块、统计数字、步骤序号 */ + --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; + --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace; /* 圆角 */ --radius: 10px; @@ -76,7 +76,7 @@ } @supports (font-variation-settings: normal) { - :root { --font-ui: "Inter var", "Inter", "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif; } + :root { --font-ui: "Inter var", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; } } * { @@ -174,6 +174,31 @@ body[data-active-view="landing"] .auxiliary-actions { } body[data-active-view="workbench"] .is-landing-only { display: none !important; } +/* 落地页为深色工程控制台:顶栏随之切换为深色发丝线风格(工作台保持浅色) */ +body[data-active-view="landing"] .topbar { + background: rgba(11, 14, 19, 0.94); + border-bottom-color: rgba(255, 255, 255, 0.07); + /* 落地态隐藏了中间两列,改用两列网格让动作区贴右 */ + grid-template-columns: minmax(180px, auto) 1fr; +} +body[data-active-view="landing"] .topbar-actions { + grid-column: 2; + justify-content: flex-end; +} +body[data-active-view="landing"] #navWorkbenchButton { + border-radius: 999px; + padding-inline: 20px; +} +body[data-active-view="landing"] .brand h1 { + color: #f4f7fa; +} +body[data-active-view="landing"] .brand span { + color: #7d8894; +} +body[data-active-view="landing"] .brand-link:hover h1 { + color: #4bf3c8; +} + .viewer-card-actions { display: inline-flex; align-items: center; @@ -198,6 +223,8 @@ body[data-active-view="workbench"] .is-landing-only { display: none !important; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface-soft); + font-family: var(--mono); + letter-spacing: 0.04em; transition: color var(--duration-fast) ease, background var(--duration-fast) ease, border-color var(--duration-fast) ease; } @@ -420,16 +447,19 @@ body[data-active-view="workbench"] .is-landing-only { display: none !important; border-radius: var(--radius); padding: 10px 12px; background: var(--surface); - box-shadow: var(--shadow-soft); } +/* 输入/输出等技术标签等宽化(工程控制台气质);控件本身保持 UI 字体可读性 */ .compact-field { display: grid; gap: 4px; min-width: 0; color: var(--muted); + font-family: var(--mono); font-size: 0.68rem; - font-weight: 800; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; } .compact-field select, @@ -442,6 +472,11 @@ body[data-active-view="workbench"] .is-landing-only { display: none !important; padding: 0 10px; background: #ffffff; color: var(--text); + font-family: var(--font-ui); + font-size: 0.82rem; + font-weight: 600; + letter-spacing: 0; + text-transform: none; outline: none; } @@ -492,7 +527,8 @@ body[data-active-view="workbench"] .is-landing-only { display: none !important; line-height: 1; text-decoration: none; white-space: nowrap; - transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease; + /* 过渡曲线统一(与 landing 的 --l-ease 同族),时长走 duration token */ + transition: background-color var(--duration-fast) cubic-bezier(0.075, 0.82, 0.165, 1), border-color var(--duration-fast) cubic-bezier(0.075, 0.82, 0.165, 1), color var(--duration-fast) cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow var(--duration-fast) cubic-bezier(0.075, 0.82, 0.165, 1), transform 0.06s cubic-bezier(0.075, 0.82, 0.165, 1); } .primary-button { @@ -673,6 +709,7 @@ button:disabled { .topbar-progress .status-chip { min-width: 0; + max-width: 300px; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); @@ -698,6 +735,7 @@ button:disabled { .topbar-progress #progressPercent { min-width: 32px; text-align: right; + font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted-strong); @@ -705,7 +743,9 @@ button:disabled { .progress-stage { /* 修复 issue #36: 移除 display:none,让阶段文案可见 */ + font-family: var(--mono); font-size: 0.75rem; + letter-spacing: 0.03em; color: var(--muted); } @@ -741,6 +781,8 @@ button:disabled { } .progress-track { + width: 100%; + max-width: 320px; height: 6px; overflow: hidden; border-radius: 999px; @@ -776,6 +818,19 @@ button:disabled { overflow: visible; } +/* 宽屏收敛:顶栏与工作区内容限宽居中,避免超宽屏上 grid fr 列被无限拉伸失衡 */ +@media (min-width: 1808px) { + .topbar { + padding-inline: calc((100% - 1760px) / 2); + } +} + +@media (min-width: 1968px) { + .workspace { + padding-inline: calc((100% - 1920px) / 2); + } +} + .source-pane, .result-pane, .viewer-card { @@ -1006,7 +1061,9 @@ button:disabled { .format-note { min-width: 0; color: var(--muted-strong); + font-family: var(--mono); font-size: 0.76rem; + letter-spacing: 0.02em; } .editor-stats { @@ -1014,7 +1071,9 @@ button:disabled { gap: 10px; flex: 0 0 auto; color: var(--muted); + font-family: var(--mono); font-size: 0.72rem; + letter-spacing: 0.02em; } #inputContent { @@ -1299,10 +1358,15 @@ button:disabled { text-align: center; } -.preview-markdown:empty::before { +.preview-markdown:empty:not([data-empty-hint])::before { content: "等待预览"; } +/* 载入新文件/恢复工作区后若预览未生成,用 attr 提示与输入一致的状态(替代残留的示例文档) */ +.preview-markdown:empty[data-empty-hint]::before { + content: attr(data-empty-hint); +} + .text-output-preview:empty::before { content: "等待输出"; } @@ -1369,7 +1433,8 @@ button:disabled { } .preview-markdown strong { font-weight: 700; color: #0f172a; } -.preview-markdown em { font-style: italic; } +/* 中文正文不使用 italic(合成斜体对 CJK 可读性差),强调改为加粗 */ +.preview-markdown em { font-style: normal; font-weight: 600; color: var(--muted-strong); } .preview-markdown del { text-decoration: line-through; color: var(--muted); } .preview-markdown a { @@ -2059,7 +2124,7 @@ button:disabled { border-radius: 6px; background: var(--surface); color: var(--muted); - font-style: italic; + font-style: normal; text-align: center; } diff --git a/public/styles/landing.css b/public/styles/landing.css index e41ebb4..1756354 100644 --- a/public/styles/landing.css +++ b/public/styles/landing.css @@ -1,14 +1,53 @@ /* Landing 视图样式 — Trans2Former 入口页面 - 复用 styles.css 顶部的 CSS 变量;只新增 hero/卡片/格式矩阵的动画与布局。 */ + 深色「工程控制台」美学:技术图纸式发丝线 + 等宽技术标签 + 青蓝冷色渐变。 + 变量全部定义在 .landing-view 作用域,不改 styles.css 的全局 token。 */ .landing-view { + /* 底色层级 */ + --l-bg: #0b0e13; + --l-bg-raise: #0d0f14; + --l-panel: #11151c; + --l-panel-2: #151a22; + /* 文字阶梯 */ + --l-text-hi: #f4f7fa; + --l-text: #c3ccd6; + --l-text-dim: #7d8894; + /* 发丝线(核心材质) */ + --l-line: rgba(255, 255, 255, 0.07); + --l-line-strong: rgba(255, 255, 255, 0.14); + /* 辅助强调(扫描光束 / 渐变文字) */ + --l-teal: #4bf3c8; + --l-blue: #5b8cff; + /* 状态色(深色底重配,描边 + 淡底) */ + --l-ok: #5eead4; + --l-ok-line: rgba(94, 234, 212, 0.38); + --l-ok-bg: rgba(94, 234, 212, 0.09); + --l-warn: #fbbf24; + --l-warn-line: rgba(251, 191, 36, 0.36); + --l-warn-bg: rgba(251, 191, 36, 0.08); + --l-gen: #7ea4ff; + --l-gen-line: rgba(126, 164, 255, 0.42); + --l-gen-bg: rgba(126, 164, 255, 0.1); + --l-stop: #fb7185; + --l-stop-line: rgba(251, 113, 133, 0.4); + --l-stop-bg: rgba(251, 113, 133, 0.09); + /* 字体 */ + --l-font-ui: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; + --l-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; + /* 动效 */ + --l-ease: cubic-bezier(0.075, 0.82, 0.165, 1); + /* 几何(扫描光束 / 图纸网格) */ + --l-beam-w: 64px; + --l-doc-w: 34px; + --l-doc-h: 44px; + --l-grid: 56px; + display: block; width: 100%; - background: - radial-gradient(1200px 600px at 20% -10%, rgba(13, 148, 136, 0.18), transparent 60%), - radial-gradient(900px 500px at 90% 10%, rgba(15, 118, 110, 0.14), transparent 60%), - linear-gradient(180deg, #f8fafc 0%, #eef2f7 60%, #e9eef5 100%); - color: var(--text); + color-scheme: dark; + background: var(--l-bg); + color: var(--l-text); + font-family: var(--l-font-ui); overflow-y: auto; } @@ -20,20 +59,24 @@ .landing-section-heading { margin-bottom: var(--space-8); - max-width: 720px; + max-width: 760px; } .landing-section-eyebrow { display: inline-block; - padding: var(--space-1) var(--space-3); - border-radius: var(--radius-full); - background: var(--accent-soft); - color: var(--accent-strong); + margin-bottom: var(--space-4); + font-family: var(--l-mono); font-size: var(--text-xs); - font-weight: 600; - letter-spacing: 0.08em; + font-weight: 500; + letter-spacing: 0.14em; text-transform: uppercase; - margin-bottom: var(--space-3); + color: var(--l-teal); +} + +.landing-section-eyebrow::before { + content: "//"; + margin-right: var(--space-2); + color: var(--l-text-dim); } .landing-section-heading h3 { @@ -42,12 +85,12 @@ line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; - color: var(--text); + color: var(--l-text-hi); } .landing-section-sub { margin-top: var(--space-3); - color: var(--muted); + color: var(--l-text-dim); font-size: var(--text-base); line-height: 1.7; } @@ -62,238 +105,441 @@ /* Hero ----------------------------------------------------------- */ .landing-hero { position: relative; - /* 垂直节奏收紧:96/64 → 72/48,视觉重心上移,首屏留白减少 */ - padding: calc(var(--space-8) * 2.25) var(--space-6) calc(var(--space-8) * 1.5); max-width: 1200px; margin: 0 auto; + padding: calc(var(--space-8) * 1.75) var(--space-6) calc(var(--space-8) * 1.5); overflow: hidden; } -.landing-hero-glow { +/* 图纸网格底纹(向四周淡出,避免满屏网点) */ +.landing-hero-grid { position: absolute; - inset: -20% -10% auto -10%; - height: 480px; - background: - radial-gradient(closest-side, rgba(13, 148, 136, 0.35), transparent 70%), - radial-gradient(closest-side at 70% 50%, rgba(94, 234, 212, 0.32), transparent 70%); - filter: blur(80px); - opacity: 0.85; - z-index: 0; + inset: 0; + background-image: + linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), + linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); + background-size: var(--l-grid) var(--l-grid); + -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 0%, #000 30%, transparent 78%); + mask-image: radial-gradient(ellipse 90% 80% at 30% 0%, #000 30%, transparent 78%); pointer-events: none; - animation: landingHeroGlow 18s ease-in-out infinite alternate; } -.landing-hero-inner { +/* 顶部 meta 行:发丝线夹住的等宽技术参数 */ +.landing-hero-meta { position: relative; - z-index: 1; - text-align: left; - max-width: 820px; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: var(--space-3) var(--space-6); + padding: var(--space-3) 0; + border-top: 1px solid var(--l-line); + border-bottom: 1px solid var(--l-line); + font-family: var(--l-mono); + font-size: var(--text-xs); + letter-spacing: 0.12em; + text-transform: uppercase; + color: var(--l-text-dim); +} + +.landing-hero-meta-item.is-live { + color: var(--l-teal); } -.landing-hero-eyebrow { +.landing-hero-meta-item.is-live::before { + content: ""; display: inline-block; - padding: var(--space-2) var(--space-3); + width: 6px; + height: 6px; + margin-right: var(--space-2); border-radius: var(--radius-full); - background: var(--accent-soft); - color: var(--accent-strong); - font-size: var(--text-sm); - font-weight: 600; - letter-spacing: 0.05em; - margin-bottom: var(--space-4); + background: var(--l-teal); + vertical-align: 1px; +} + +.landing-hero-inner { + position: relative; + max-width: 880px; + padding-top: calc(var(--space-8) * 1.5); } .landing-hero-title { margin: 0; - font-size: clamp(34px, 4.6vw, 56px); - line-height: 1.12; + font-size: clamp(2.4rem, 5.6vw, 3.8rem); + line-height: 1.08; font-weight: 800; - color: #0b1220; - letter-spacing: -0.01em; + letter-spacing: -0.015em; + color: var(--l-text-hi); } .landing-hero-accent { - /* 修复 issue #43: 使用更深的青蓝色以满足 WCAG 3:1 大文本对比度要求 */ - /* 原: #38bdf8 vs #f8fafc ≈ 2.0:1, #14b8a6 ≈ 2.5:1 (不达标) */ - /* 新: #0e7490 vs #f8fafc ≈ 4.5:1, #0891b2 ≈ 3.8:1 (达标) */ - background: linear-gradient(120deg, #0d9488 0%, #0891b2 45%, #0e7490 100%); + background: linear-gradient(105deg, var(--l-teal) 0%, var(--l-blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; - background-size: 200% 100%; - animation: landingGradientShift 8s ease-in-out infinite alternate; } .landing-hero-sub { - margin: var(--space-5) 0 var(--space-6); - font-size: var(--text-lg); + display: flex; + flex-wrap: wrap; + align-items: baseline; + gap: var(--space-2) var(--space-3); + margin: var(--space-6) 0 var(--space-7); + font-family: var(--l-mono); + font-size: var(--text-sm); line-height: 1.7; - color: var(--muted-strong); - max-width: 720px; - text-wrap: balance; + letter-spacing: 0.02em; + color: var(--l-text-dim); } -/* 副标题按语义分组整体换行,避免「处理阶段禁联网」被拆开留下单字孤行 */ .landing-hero-sub .keep-together { white-space: nowrap; } +.landing-hero-sep { + color: var(--l-teal); + opacity: 0.65; +} + .landing-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; - margin-bottom: var(--space-6); } +/* landing 内主按钮改为 pill,渐变仍由全局 .btn-gradient 提供 */ +.landing-view .primary-button.btn-gradient.btn-lg { + border-radius: var(--radius-full); + padding-left: calc(var(--space-6) + var(--space-1)); + padding-right: calc(var(--space-6) + var(--space-1)); + box-shadow: 0 0 0 1px rgba(75, 243, 200, 0.18), 0 8px 28px -12px rgba(13, 148, 136, 0.55); +} .landing-cta-ghost { display: inline-flex; align-items: center; - padding: var(--space-3) var(--space-6); - border-radius: var(--radius-lg); - border: 1px solid rgba(15, 118, 110, 0.25); - color: var(--accent-strong); - background: rgba(255, 255, 255, 0.55); + min-height: 44px; + padding: 0 var(--space-6); + border-radius: var(--radius-full); + border: 1px solid var(--l-line-strong); + color: var(--l-text); + background: transparent; font-size: var(--text-sm); font-weight: 600; text-decoration: none; - transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease; + transition: border-color var(--duration-base) var(--l-ease), background var(--duration-base) var(--l-ease), color var(--duration-base) var(--l-ease); } .landing-cta-ghost:hover { - background: rgba(255, 255, 255, 0.85); - border-color: rgba(15, 118, 110, 0.45); + border-color: rgba(75, 243, 200, 0.45); + background: rgba(255, 255, 255, 0.04); + color: var(--l-text-hi); } .landing-cta-ghost:focus-visible { - outline: 3px solid var(--focus); + outline: 3px solid rgba(75, 243, 200, 0.35); outline-offset: 3px; } +/* 底部徽章行:发丝线分隔的等宽小字 */ .landing-hero-badges { + position: relative; list-style: none; - padding: 0; - margin: 0; + margin: calc(var(--space-8) * 1.5) 0 0; + padding: var(--space-4) 0 0; + border-top: 1px solid var(--l-line); display: flex; flex-wrap: wrap; - gap: 10px; -} - -.landing-hero-badges li { - padding: var(--space-2) var(--space-3); - border-radius: var(--radius-full); - background: rgba(255, 255, 255, 0.7); - border: 1px solid rgba(15, 118, 110, 0.2); - color: var(--text); + gap: var(--space-2) var(--space-5); + font-family: var(--l-mono); font-size: var(--text-xs); - font-weight: 500; - backdrop-filter: blur(8px); - transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease; + letter-spacing: 0.06em; + color: var(--l-text-dim); } -.landing-hero-badges li:hover { - border-color: rgba(15, 118, 110, 0.42); - background: rgba(255, 255, 255, 0.92); +.landing-hero-badges li:not(:last-child)::after { + content: "//"; + margin-left: var(--space-5); + color: rgba(75, 243, 200, 0.5); } /* Features -------------------------------------------------------- */ .landing-feature-grid { display: grid; - grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); - gap: 20px; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: var(--space-4); } .landing-feature-card { position: relative; padding: var(--space-6); - border-radius: var(--radius-xl); - background: rgba(255, 255, 255, 0.92); - border: 1px solid rgba(148, 163, 184, 0.25); - box-shadow: 0 16px 40px -32px rgba(15, 23, 42, 0.25); - transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease, border-color var(--duration-base) ease; + border-radius: var(--radius-lg); + border: 1px solid var(--l-line); + background: linear-gradient(180deg, var(--l-panel-2), var(--l-panel)); + transition: border-color var(--duration-base) var(--l-ease), background var(--duration-base) var(--l-ease); } .landing-feature-card:hover { - transform: translateY(-3px); - box-shadow: 0 22px 46px -28px rgba(15, 118, 110, 0.3); - border-color: rgba(15, 118, 110, 0.45); + border-color: rgba(75, 243, 200, 0.28); + background: linear-gradient(180deg, #171d26, #12161e); } -.landing-feature-card:hover .landing-feature-icon { - transform: translateY(-2px); - background: linear-gradient(135deg, rgba(13, 148, 136, 0.22), rgba(56, 189, 248, 0.26)); +/* Repair Engine 宽卡:跨 2 列 */ +.landing-feature-card.is-wide { + grid-column: span 2; +} + +.landing-feature-tag { + position: absolute; + top: var(--space-5); + right: var(--space-5); + font-family: var(--l-mono); + font-size: var(--text-xs); + letter-spacing: 0.12em; + color: var(--l-text-dim); + opacity: 0.75; } .landing-feature-icon { display: inline-flex; align-items: center; justify-content: center; - width: 44px; - height: 44px; - border-radius: var(--radius-lg); - background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(56, 189, 248, 0.18)); - color: var(--accent-strong); - margin-bottom: var(--space-4); - transition: transform var(--duration-base) ease, background var(--duration-base) ease; + width: 42px; + height: 42px; + border-radius: var(--radius-sm); + border: 1px solid var(--l-line-strong); + color: var(--l-teal); + margin-bottom: var(--space-5); + transition: border-color var(--duration-base) var(--l-ease), color var(--duration-base) var(--l-ease); +} + +.landing-feature-card:hover .landing-feature-icon { + border-color: rgba(75, 243, 200, 0.4); } .landing-feature-card h4 { margin: 0 0 var(--space-2); font-size: var(--text-lg); - color: var(--text); + color: var(--l-text-hi); font-weight: 700; } .landing-feature-card p { margin: 0; font-size: var(--text-sm); - line-height: 1.7; - color: var(--muted); + line-height: 1.75; + color: var(--l-text-dim); +} + +/* Registry 快照面板:虚线描边的终端读数 */ +.landing-feature-readout { + display: flex; + flex-direction: column; + justify-content: center; + gap: var(--space-3); + padding: var(--space-6); + border-radius: var(--radius-lg); + border: 1px dashed var(--l-line-strong); + background: rgba(255, 255, 255, 0.015); + font-family: var(--l-mono); +} + +.landing-readout-title { + margin-bottom: var(--space-2); + font-size: var(--text-xs); + letter-spacing: 0.14em; + color: var(--l-teal); +} + +.landing-readout-row { + display: flex; + align-items: baseline; + gap: var(--space-2); + font-size: var(--text-xs); + letter-spacing: 0.06em; +} + +.landing-readout-key { + color: var(--l-text-dim); +} + +.landing-readout-leader { + flex: 1 1 auto; + border-bottom: 1px dotted var(--l-line-strong); + transform: translateY(-3px); +} + +.landing-readout-value { + color: var(--l-text-hi); + font-weight: 700; +} + +/* 签名动画:文档扫描光束 ---------------------------------------------- + 一列横向循环滚动的格式文档条带 + 竖直扫描光束(青→蓝渐变)。 + 默认 paused;卡片 hover / focus-within / reveal 进入视口后 running。 + prefers-reduced-motion 下完全静止。 */ +.landing-scan { + position: relative; + margin-top: var(--space-5); + padding: var(--space-4) 0; + border-top: 1px solid var(--l-line); + border-bottom: 1px solid var(--l-line); + overflow: hidden; + background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px); + background-size: 100% 11px; + -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); + mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); +} + +.landing-scan-track { + display: flex; + width: max-content; + animation: landingScanMarquee 46s linear infinite; + animation-play-state: paused; +} + +.landing-scan-set { + display: flex; + gap: var(--space-4); + padding-right: var(--space-4); +} + +.landing-scan-doc { + width: var(--l-doc-w); + height: var(--l-doc-h); + color: rgba(195, 204, 214, 0.5); + flex: 0 0 auto; +} + +.landing-scan-doc-label { + font-family: var(--l-mono); + font-size: 7px; + letter-spacing: 0.04em; + fill: currentColor; +} + +.landing-scan-beam { + position: absolute; + top: 0; + bottom: 0; + left: 50%; + width: var(--l-beam-w); + margin-left: calc(var(--l-beam-w) / -2); + background: linear-gradient(90deg, + transparent 0%, + rgba(75, 243, 200, 0.14) 32%, + rgba(91, 140, 255, 0.32) 50%, + rgba(75, 243, 200, 0.14) 68%, + transparent 100%); + filter: blur(2px); + mix-blend-mode: screen; + pointer-events: none; + animation: landingBeamSway 7s ease-in-out infinite alternate; + animation-play-state: paused; +} + +/* 光束核心亮线 */ +.landing-scan-beam::before { + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 50%; + width: 1px; + background: linear-gradient(180deg, + transparent, + rgba(91, 140, 255, 0.85) 35%, + rgba(75, 243, 200, 0.85) 65%, + transparent); +} + +/* 光束辉光 */ +.landing-scan-beam::after { + content: ""; + position: absolute; + inset: -12px -28px; + background: radial-gradient(closest-side, rgba(91, 140, 255, 0.2), transparent 72%); + filter: blur(8px); +} + +.landing-feature-card.is-revealed .landing-scan-track, +.landing-feature-card.is-revealed .landing-scan-beam, +.landing-feature-card:hover .landing-scan-track, +.landing-feature-card:hover .landing-scan-beam, +.landing-feature-card:focus-within .landing-scan-track, +.landing-feature-card:focus-within .landing-scan-beam { + animation-play-state: running; +} + +@keyframes landingScanMarquee { + to { transform: translateX(-50%); } +} + +@keyframes landingBeamSway { + from { transform: translateX(-26px); } + to { transform: translateX(26px); } +} + +/* Formats matrix:技术数据行 ---------------------------------------- */ +.landing-format-table { + border-bottom: 1px solid var(--l-line); +} + +.landing-format-head { + display: grid; + grid-template-columns: 170px 1fr; + gap: var(--space-5); + padding: var(--space-3) var(--space-2); + border-top: 1px solid var(--l-line); + border-bottom: 1px solid var(--l-line); + font-family: var(--l-mono); + font-size: var(--text-xs); + letter-spacing: 0.14em; + color: var(--l-text-dim); } -/* Formats matrix --------------------------------------------------- */ .landing-format-grid { display: flex; flex-direction: column; - gap: 12px; } .landing-format-row { display: grid; - grid-template-columns: 160px 1fr; - gap: var(--space-4); + grid-template-columns: 170px 1fr; + gap: var(--space-5); align-items: center; - padding: var(--space-4) var(--space-5); - border-radius: var(--radius-lg); - background: rgba(255, 255, 255, 0.9); - border: 1px solid rgba(148, 163, 184, 0.22); - transition: background var(--duration-base) ease, border-color var(--duration-base) ease, box-shadow var(--duration-base) ease, transform var(--duration-base) ease; + padding: var(--space-4) var(--space-2); + border-bottom: 1px solid var(--l-line); + transition: background var(--duration-base) var(--l-ease); +} + +.landing-format-row:last-child { + border-bottom: 0; } .landing-format-row:hover { - background: #ffffff; - border-color: rgba(15, 118, 110, 0.35); - box-shadow: 0 12px 30px -22px rgba(15, 118, 110, 0.4); - transform: translateY(-1px); + background: rgba(255, 255, 255, 0.025); } .landing-format-input { display: flex; flex-direction: column; - gap: 2px; + gap: calc(var(--space-1) / 2); } -.landing-format-name { +.landing-format-key { + font-family: var(--l-mono); font-weight: 700; - font-size: var(--text-base); - color: var(--text); + font-size: var(--text-lg); + letter-spacing: 0.08em; + color: var(--l-text-hi); } -.landing-format-key { - font-size: 11px; - color: var(--muted); - font-family: var(--mono, ui-monospace, "SFMono-Regular", "Consolas", monospace); - letter-spacing: 0.04em; +.landing-format-name { + font-size: var(--text-xs); + letter-spacing: 0.06em; + color: var(--l-text-dim); } .landing-route-chips { @@ -302,97 +548,122 @@ margin: 0; display: flex; flex-wrap: wrap; - gap: 6px; + gap: var(--space-2); } .landing-route-chip { padding: var(--space-1) var(--space-3); - border-radius: var(--radius-full); + border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; - font-family: var(--mono, ui-monospace, "SFMono-Regular", "Consolas", monospace); - background: var(--accent-soft); - color: var(--accent-strong); - border: 1px solid transparent; + letter-spacing: 0.06em; + font-family: var(--l-mono); + text-transform: uppercase; + color: var(--l-text); + border: 1px solid var(--l-line-strong); + background: rgba(255, 255, 255, 0.02); } -.landing-route-chip.is-recommended { background: var(--color-success-soft); color: var(--color-success); } -.landing-route-chip.is-degraded { background: var(--color-warning-soft); color: var(--color-warning); } -.landing-route-chip.is-generated { background: rgba(99, 102, 241, 0.14); color: #4338ca; } -.landing-route-chip.is-restricted { background: var(--danger-soft); color: var(--danger); } +.landing-route-chip.is-recommended { color: var(--l-ok); border-color: var(--l-ok-line); background: var(--l-ok-bg); } +.landing-route-chip.is-degraded { color: var(--l-warn); border-color: var(--l-warn-line); background: var(--l-warn-bg); } +.landing-route-chip.is-generated { color: var(--l-gen); border-color: var(--l-gen-line); background: var(--l-gen-bg); } +.landing-route-chip.is-restricted { color: var(--l-stop); border-color: var(--l-stop-line); background: var(--l-stop-bg); } .landing-format-legend { - margin-top: 20px; display: flex; flex-wrap: wrap; - gap: 10px; + gap: var(--space-2); align-items: center; - justify-content: center; + padding: var(--space-4) var(--space-2); } -/* Workflow -------------------------------------------------------- */ +.landing-format-legend-label { + margin-right: var(--space-2); + font-family: var(--l-mono); + font-size: var(--text-xs); + letter-spacing: 0.14em; + color: var(--l-text-dim); +} + +/* Workflow:横向轨道 + 等宽序号 + 发丝连接线 ------------------------- */ .landing-workflow-track { list-style: none; padding: 0; margin: 0; display: grid; - grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); - gap: 16px; + grid-template-columns: repeat(5, minmax(0, 1fr)); + gap: var(--space-5); } .landing-workflow-step { - display: flex; - gap: var(--space-3); - padding: var(--space-4); - border-radius: var(--radius-lg); - background: rgba(255, 255, 255, 0.92); - border: 1px solid rgba(148, 163, 184, 0.22); - transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease, border-color var(--duration-base) ease; + position: relative; + padding-top: var(--space-6); +} + +/* 发丝连接线 */ +.landing-workflow-step::before { + content: ""; + position: absolute; + top: 3px; + left: calc(var(--space-3) + 2px); + right: calc(var(--space-5) * -1); + height: 1px; + background: rgba(255, 255, 255, 0.18); } -.landing-workflow-step:hover { - transform: translateY(-2px); - border-color: rgba(15, 118, 110, 0.35); - box-shadow: 0 14px 30px -24px rgba(15, 118, 110, 0.4); +.landing-workflow-step:last-child::before { + right: 0; +} + +/* 轨道节点 */ +.landing-workflow-step::after { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 7px; + height: 7px; + border-radius: var(--radius-full); + border: 1px solid var(--l-teal); + background: var(--l-bg); } .landing-workflow-index { - flex-shrink: 0; - width: 36px; - height: 36px; - border-radius: 50%; - background: linear-gradient(135deg, #0d9488, #38bdf8); - color: #fff; - display: inline-flex; - align-items: center; - justify-content: center; + display: block; + margin-bottom: var(--space-2); + font-family: var(--l-mono); + font-size: var(--text-2xl); font-weight: 700; - font-size: var(--text-base); + letter-spacing: 0.04em; + background: linear-gradient(120deg, var(--l-teal), var(--l-blue)); + -webkit-background-clip: text; + background-clip: text; + color: transparent; } .landing-workflow-step strong { display: block; font-size: var(--text-base); - color: var(--text); + color: var(--l-text-hi); } .landing-workflow-step p { margin: var(--space-1) 0 0; font-size: var(--text-sm); - line-height: 1.6; - color: var(--muted); + line-height: 1.65; + color: var(--l-text-dim); } -/* CTA ------------------------------------------------------------- */ +/* CTA:深色面板 + 顶部品牌渐变细条 + 渐变文字标题 -------------------- */ .landing-cta { position: relative; overflow: hidden; text-align: center; - padding: calc(var(--space-8) * 2) var(--space-6) calc(var(--space-8) * 2.5); - background: linear-gradient(180deg, rgba(15, 118, 110, 0.05) 0%, rgba(15, 118, 110, 0.12) 100%); - border: 1px solid rgba(15, 118, 110, 0.16); + padding: calc(var(--space-8) * 2) var(--space-6) calc(var(--space-8) * 2.25); + background: linear-gradient(180deg, var(--l-panel-2), var(--l-panel)); + border: 1px solid var(--l-line); border-radius: var(--radius-xl); - margin: var(--space-8) auto calc(var(--space-8) * 2); + margin: var(--space-8) auto calc(var(--space-8) * 1.5); max-width: 1100px; } @@ -405,10 +676,29 @@ background: var(--btn-gradient-primary); } +.landing-cta-eyebrow { + display: inline-block; + margin-bottom: var(--space-4); + font-family: var(--l-mono); + font-size: var(--text-xs); + letter-spacing: 0.14em; + text-transform: uppercase; + color: var(--l-text-dim); +} + .landing-cta h3 { margin: 0 0 var(--space-3); - font-size: var(--text-2xl); - color: var(--text); + font-size: var(--text-3xl); + font-weight: 700; + letter-spacing: -0.01em; + color: var(--l-text-hi); +} + +.landing-cta-accent { + background: linear-gradient(105deg, var(--l-teal), var(--l-blue)); + -webkit-background-clip: text; + background-clip: text; + color: transparent; } .landing-cta p { @@ -416,21 +706,41 @@ max-width: 640px; font-size: var(--text-base); line-height: 1.7; - color: var(--muted); + color: var(--l-text-dim); +} + +/* Footer ----------------------------------------------------------- */ +.landing-footer { + max-width: 1200px; + margin: 0 auto; + padding: 0 var(--space-6) calc(var(--space-8) * 1.75); } +.landing-footer-inner { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + gap: var(--space-2) var(--space-4); + padding-top: var(--space-5); + border-top: 1px solid var(--l-line); + font-family: var(--l-mono); + font-size: var(--text-xs); + letter-spacing: 0.12em; + text-transform: uppercase; + color: var(--l-text-dim); +} /* Scroll reveal --------------------------------------------------- */ /* reveal-armed 门控:只有 JS 成功武装 IntersectionObserver 后, 未 reveal 的区块才会被隐藏;fullPage 截图、打印、JS 未执行等 场景下所有内容默认可见。 */ .reveal-on-scroll { - transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease; + transition: opacity var(--duration-slow) var(--l-ease), transform var(--duration-slow) var(--l-ease); } .reveal-armed .reveal-on-scroll:not(.is-revealed) { opacity: 0; - transform: translateY(16px); + transform: translateY(8px); } .reveal-on-scroll.is-revealed { @@ -446,20 +756,9 @@ } } -/* Animations ------------------------------------------------------ */ -@keyframes landingGradientShift { - 0% { background-position: 0% 50%; } - 100% { background-position: 100% 50%; } -} - -@keyframes landingHeroGlow { - 0% { transform: translate3d(-3%, 0, 0) scale(1); opacity: 0.7; } - 100% { transform: translate3d(3%, 2%, 0) scale(1.06); opacity: 0.95; } -} - @media (prefers-reduced-motion: reduce) { - .landing-hero-glow, - .landing-hero-accent, + .landing-scan-track, + .landing-scan-beam, .reveal-on-scroll { animation: none !important; transition: none !important; @@ -472,15 +771,40 @@ } /* Responsive ------------------------------------------------------ */ -@media (max-width: 820px) { +@media (max-width: 960px) { + .landing-feature-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + .landing-feature-card.is-wide { + grid-column: span 2; + } + .landing-feature-readout { + grid-column: span 2; + } + .landing-workflow-track { + grid-template-columns: repeat(3, minmax(0, 1fr)); + row-gap: var(--space-7); + } +} + +@media (max-width: 640px) { .landing-section { padding: calc(var(--space-8) * 1.5) var(--space-4); } - .landing-hero { padding: calc(var(--space-8) * 1.75) var(--space-4) calc(var(--space-8) * 1.25); } - .landing-section-heading h3 { font-size: 26px; } - .landing-format-row { grid-template-columns: 1fr; gap: var(--space-2); } + .landing-hero { padding: var(--space-7) var(--space-4) calc(var(--space-8) * 1.25); } + .landing-hero-inner { padding-top: var(--space-7); } + .landing-hero-title { font-size: clamp(1.75rem, 8vw, 2.2rem); } + .landing-section-heading h3 { font-size: var(--text-2xl); } + .landing-feature-grid { grid-template-columns: 1fr; } + .landing-feature-card.is-wide, + .landing-feature-readout { grid-column: span 1; } + .landing-format-head { display: none; } + .landing-format-row { grid-template-columns: 1fr; gap: var(--space-3); } + .landing-workflow-track { grid-template-columns: 1fr; row-gap: var(--space-6); } + .landing-workflow-step::before { right: 0; } .landing-cta { - margin: var(--space-6) var(--space-3) calc(var(--space-8) * 1.75); + margin: var(--space-6) var(--space-3) calc(var(--space-8) * 1.25); padding: calc(var(--space-8) * 1.5) var(--space-4) calc(var(--space-8) * 1.75); } + .landing-footer { padding: 0 var(--space-4) calc(var(--space-8) * 1.5); } } /* 锚点跳转(如「查看路径矩阵」)时给目标区块留出顶部呼吸空间 */