From 9b9e98a6b4da0a74a75ec19f994373c0795a93c4 Mon Sep 17 00:00:00 2001 From: zhanjunhao <642307404@qq.com> Date: Mon, 23 Nov 2026 19:51:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(desktop-download):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=A1=B5=E5=B8=83=E5=B1=80=E4=B8=8E=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E8=A1=A8=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/CHANGELOG.md | 8 + docs/ui/GLOBAL_UI_BASELINE.md | 4 +- src/pages/WeyAiDownload/index.jsx | 526 +++++++------ src/pages/WeyAiDownload/weyai-download.css | 818 ++++++++++++++++----- 4 files changed, 969 insertions(+), 387 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 29107ad2..c790e638 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -10,6 +10,14 @@ ## 2026-11-23 +### 优化 · WeyAi 独立下载页原型对齐 + +- **范围**:`/weyai/download` 独立下载页和此路由的顶栏下载入口。 +- **变更**:首屏并排展示推荐安装区和工作台示意。安装包按系统分组,文件名和大小分行,指引区跟随可用宽度折行。 +- **影响**:首屏光晕、推荐提示、焦点环和顶栏选中态随当前主题生效。 +- **回滚**:按关联文件还原本条的布局与样式变更。 +- **关联**:`src/pages/WeyAiDownload/{index.jsx,weyai-download.css}`、`docs/ui/GLOBAL_UI_BASELINE.md` 第 5 节。 + ### 调整 · 官网设置关于我们文案 - **范围**:控制台官网设置。 diff --git a/docs/ui/GLOBAL_UI_BASELINE.md b/docs/ui/GLOBAL_UI_BASELINE.md index fd8f8c57..cfec0706 100644 --- a/docs/ui/GLOBAL_UI_BASELINE.md +++ b/docs/ui/GLOBAL_UI_BASELINE.md @@ -1,6 +1,6 @@ # 后台 UI 全局基线 -> 状态:有效 · 适用:antd 6.7.0 · 更新:2026-11-23 · 版本:v3.13 +> 状态:有效 · 适用:antd 6.7.0 · 更新:2026-11-23 · 版本:v3.14 后台外壳与布局基线:顶栏、侧栏、公告、页头与内容边距、登录页,以及原型未定义场景、登录关卡与验收流程。主题与组件样式见 `UI_COMPONENT_STANDARDS.md`。 @@ -94,7 +94,7 @@ - 带侧栏页面按 4.4;控制台按 `CONSOLE_SPEC.md`;其余页面内容默认 24px 30px、移动 16px。筛选区自然换行,表格在自身容器横向滚动;不通过隐藏正文、裁剪校验信息或固定整页宽度迎合截图。 - 模型超市与技能超市的工作区居中,含内边距的最大宽度为 1760px;横向内边距为 `clamp(20px, 4vw, 80px)`,Hero 搜索区域沿用同一横向留白,600px 及以下为 20px。覆盖 3840 / 2560 / 1920 至 360px 宽度,目录按实际可用宽度减少列数,保留卡片正文和控件正常字号,不通过整体缩放压缩内容。 -- WeyAi 独立下载页以 `clamp(1440px, 82vw, 1920px)` 为居中内容区的最大宽度。介绍与推荐安装包共用首屏容器,窄屏上下排列。安装包按系统分组,按内容区宽度切换列数,文件名可换行;跳转到全部安装包时将焦点移到分区标题。用户中心内嵌页沿用第 4.4 节的页头与内容边距。 +- WeyAi 独立下载页的居中容器含内边距最大宽度为 1464px。页头、安装卡和工作台示意组成首屏,960px 及以下上下排列。随后依次展示平台安装包、功能和使用步骤。安装包分组在 1024px 及以上显示三列,在 768–1023px 显示两列,其余宽度显示一列,文件名可换行。用户中心内嵌页沿用第 4.4 节的页头与内容边距。 - 背景图优先复用原型的原始 SVG / 图片,放入 `src/assets/prototype` 并注明来源;原型用 CSS 绘制的背景按测量值在页面作用域复现,不用生成插画替代。 - 企业工作台横幅 `.ew-hero` 的浅金 / 深棕背景与三层轮廓只用于 `.org-workbench`,不扩散到其他页面。 - 原型未定义、antd 有组件:用当前版本默认样式与主题 token。antd 无对应部件:语义背景 / 文字 / 边框,无装饰背景、阴影与动画,间距 8 / 16 / 24px,窄屏堆叠且操作可达;新增此类统一规则先写入本文。 diff --git a/src/pages/WeyAiDownload/index.jsx b/src/pages/WeyAiDownload/index.jsx index 9ac1c463..2b0a794b 100644 --- a/src/pages/WeyAiDownload/index.jsx +++ b/src/pages/WeyAiDownload/index.jsx @@ -1,7 +1,8 @@ // WeyAi 桌面端下载页(方案 4.8)。两种挂载方式,同一个组件: // - /weyai/download 独立公开路由,不需要登录,自带顶部让位与页面背景; // - /user-center/weyai-download 嵌在用户中心里(embedded),侧栏保留、背景由 shell 提供。 -// 首屏展示版本、入口和推荐安装包,后续按系统列出安装包和使用说明。 +// 独立页首屏并排展示版本、安装入口和工作台示意;内嵌页沿用用户中心布局。 +// 加载失败 / 未开放 / 暂无安装包三种状态都保留 hero 与说明区,只替换安装包区域。 import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js'; import { @@ -10,19 +11,27 @@ import { Globe as ActionGlobe, ExternalLink as ActionExternalLink, } from '@/components/common/icons/ActionIcons'; -import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; +import React, { useContext, useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Button, Skeleton, Tag } from 'antd'; import { AlertTriangle, + ArrowUp, + ChartNoAxesColumn, + Check, + CodeXml, Cpu, + FileText, Laptop, LogIn, + MessageSquare, Monitor, MonitorDown, Package, + Plus, RefreshCw, Smartphone, + Sparkles, Terminal, Wallet, } from 'lucide-react'; @@ -44,7 +53,6 @@ import './weyai-download.css'; // 不带动作只唤起应用(navigate 动作要求目标路由在桌面端白名单里) const OPEN_APP_URL = 'weyai://'; const ALL_PACKAGES_ID = 'weyai-download-all'; -const PACKAGES_HEADING_ID = 'weyai-download-all-title'; // 更新源清单里的 releaseDate 是 ISO 时间串(2026-09-20T08:00:00.000Z), // 展示只需要日期。固定用 ISO 日期(UTC):按语种本地化会让泰语走佛历、 @@ -64,15 +72,80 @@ function PlatformIcon({ platform, size = 18 }) { return ; } -function FileMeta({ name, size, version, releaseVersion }) { - const details = [ - size ? formatSize(size) : '', - version && version !== releaseVersion ? `v${version}` : '', - ].filter(Boolean); +function WorkbenchPreview() { return ( -
{recommended.name}
@@ -329,11 +413,7 @@ const WeyAiDownload = ({ embedded = false }) => {
>
{t('下载 WeyAi')}
- - {t('共 {{count}} 个文件', { - count: files.length + (androidApk ? 1 : 0), - })} - {release?.version ? ` · v${release.version}` : ''} -
-+ {t('共 {{count}} 个文件', { + count: files.length + (androidApk ? 1 : 0), + })} + {release?.version ? ` · v${release.version}` : ''} +
+{t('登录在浏览器完成,客户端不保存你的密码')}
diff --git a/src/pages/WeyAiDownload/weyai-download.css b/src/pages/WeyAiDownload/weyai-download.css index be5563d9..58bc7160 100644 --- a/src/pages/WeyAiDownload/weyai-download.css +++ b/src/pages/WeyAiDownload/weyai-download.css @@ -4,46 +4,64 @@ --wd-muted: var(--text-secondary); --wd-line: var(--border-subtle); --wd-card: var(--surface-card); - --wd-accent: var(--brand-accent); - --wd-accent-deep: var(--brand-selection-text); - --wd-tint: var(--brand-selection-bg); - --wd-tint-strong: color-mix(in srgb, var(--wd-accent) 16%, var(--wd-card)); - --wd-accent-line: color-mix(in srgb, var(--wd-accent) 26%, var(--wd-line)); + --wd-accent: var(--brand-primary); + --wd-accent-deep: var(--brand-primary); + --wd-tint: color-mix(in srgb, var(--brand-primary) 8%, transparent); + --wd-tint-strong: color-mix(in srgb, var(--brand-primary) 14%, transparent); + --wd-accent-line: color-mix(in srgb, var(--brand-primary) 28%, transparent); --wd-danger: var(--ui-color-danger); --wd-danger-tint: color-mix(in srgb, var(--ui-color-danger) 8%, transparent); - --wd-focus: var(--brand-accent); - --wd-meta: color-mix(in srgb, var(--wd-muted) 72%, var(--wd-ink)); + --wd-focus: var(--brand-primary); position: relative; min-width: 0; color: var(--wd-ink); } .weyai-download--standalone { + --wd-accent: var(--brand-selection-text); + --wd-accent-deep: var(--brand-selection-text); + --wd-tint: color-mix(in srgb, var(--brand-selection-bg) 60%, var(--wd-card)); + --wd-tint-strong: var(--brand-selection-bg); + --wd-accent-line: color-mix(in srgb, var(--wd-focus) 32%, var(--wd-line)); + --wd-focus: var(--ui-color-focus-border); margin-top: calc( var(--console-header-offset, 72px) - var(--content-top-offset, 0px) ); min-height: calc(100dvh - var(--console-header-offset, 72px)); - background: var(--surface-bg-base); + background: linear-gradient( + var(--brand-selection-bg), + var(--surface-bg-base) 610px + ); } .weyai-download__inner { - container-type: inline-size; position: relative; - max-width: clamp(1440px, 82vw, 1920px); margin: 0 auto; - padding: clamp(16px, 2.4vw, 48px) clamp(16px, 3vw, 48px); + padding: 24px 30px; display: flex; flex-direction: column; - gap: clamp(20px, 2vw, 32px); + gap: 18px; +} +.weyai-download--standalone .weyai-download__inner { + max-width: 1464px; + padding: clamp(28px, 2.8vw, 52px) clamp(16px, 2.2vw, 32px) 44px; + gap: clamp(32px, 3.1vw, 48px); +} +html:not(.dark) .weyai-download--standalone { + --wd-muted: color-mix( + in srgb, + var(--text-primary) 46%, + var(--text-secondary) + ); } @media (max-width: 768px) { .weyai-download__inner { padding: 16px; } } +/* 嵌入用户中心:跟随内容区宽度,不再居中收窄;内边距与面包屑对齐 .uc-page 统一边距 */ .weyai-download--embedded .weyai-download__inner { max-width: none; - gap: 18px; padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px) var(--uc-page-pad-bottom, 36px); } @@ -55,54 +73,21 @@ scroll-margin-top: 16px; } -.wd-intro { - display: contents; -} -.weyai-download--standalone .wd-intro { - display: grid; - align-items: stretch; - gap: clamp(16px, 3cqw, 40px); - padding: clamp(16px, 3cqw, 40px); - border: 1px solid var(--wd-line); - border-radius: 16px; - background: var(--wd-card); -} -@container (min-width: 880px) { - .weyai-download--standalone .wd-intro { - grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); - align-items: center; - } -} +/* ───── hero ───── */ .wd-hero { min-width: 0; } -.weyai-download--standalone .wd-hero > .wd-eyebrow { - margin-bottom: 12px; +.wd-hero > .wd-eyebrow { + margin-bottom: 8px; } .wd-hero .uc-page-header { margin-bottom: 0; } -.weyai-download--standalone .wd-hero .uc-page-header-main { - flex-direction: column; - align-items: flex-start; - gap: 16px; -} -.weyai-download--standalone .wd-hero .uc-page-title { - font-size: clamp(28px, 3.3cqw, 46px); - line-height: 1.17; - overflow-wrap: anywhere; -} -.weyai-download--standalone .wd-hero .uc-page-subtitle { - margin-top: 8px; - font-size: 15px; - line-height: 1.55; - color: var(--wd-meta); -} .wd-eyebrow { display: inline-flex; align-items: center; gap: 8px; - color: var(--wd-accent-deep); + color: var(--wd-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; @@ -131,7 +116,7 @@ .wd-chip--muted { border-color: var(--wd-line); background: transparent; - color: var(--wd-meta); + color: var(--wd-muted); font-weight: 500; } .wd-hero-actions { @@ -139,14 +124,6 @@ flex-wrap: wrap; gap: 8px; } -.wd-hero-actions .ant-btn, -.wd-reco__actions .ant-btn { - height: auto; - min-height: 36px; - max-width: 100%; - white-space: normal; - text-align: center; -} /* ───── 卡片基础 ───── */ .wd-card { @@ -163,16 +140,6 @@ border-color: var(--wd-accent-line); background: var(--wd-card); } -.weyai-download--standalone .wd-reco { - align-self: stretch; - display: grid; - align-content: center; - padding: clamp(16px, 2.3cqw, 36px); - background: color-mix(in srgb, var(--wd-tint) 66%, var(--wd-card)); -} -.weyai-download--standalone .wd-reco::before { - content: none; -} .wd-reco::before { content: ''; position: absolute; @@ -185,19 +152,13 @@ flex-direction: column; gap: 16px; } -@container (min-width: 680px) { +@media (min-width: 768px) { .wd-reco__row { flex-direction: row; align-items: center; justify-content: space-between; } } -@container (min-width: 880px) { - .weyai-download--standalone .wd-reco__row { - flex-direction: column; - align-items: flex-start; - } -} .wd-reco__main { display: flex; align-items: flex-start; @@ -234,19 +195,19 @@ flex-wrap: wrap; gap: 4px 12px; font-size: 12px; - color: var(--wd-meta); + color: var(--wd-muted); font-variant-numeric: tabular-nums; } .wd-reco__meta code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; - color: inherit; - overflow-wrap: anywhere; + color: var(--wd-muted); + word-break: break-all; } .wd-reco__hint { margin-top: 8px; font-size: 12px; - color: var(--wd-meta); + color: var(--wd-muted); } .wd-reco__actions { display: flex; @@ -254,21 +215,13 @@ align-items: center; gap: 8px; } -@container (min-width: 680px) { - .weyai-download--embedded .wd-reco__actions { +@media (min-width: 768px) { + .wd-reco__actions { flex-direction: column; align-items: stretch; flex-shrink: 0; } } -.weyai-download--standalone .wd-reco__actions .ant-btn { - min-height: 44px; -} -@container (max-width: 480px) { - .weyai-download--standalone .wd-reco__actions { - display: grid; - } -} /* ───── 特性条 ───── */ .wd-features { @@ -276,15 +229,25 @@ grid-template-columns: minmax(0, 1fr); gap: 16px; } -@container (min-width: 510px) { +@media (min-width: 640px) { .wd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } } -@container (min-width: 940px) { +@media (min-width: 1024px) { .wd-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } + /* 嵌入用户中心时内容区少了 240px 侧栏,1024–1279 之间四列每列不足 200px, + 英文描述会折五六行;这一档保持两列,到 1280 再放四列 */ + .weyai-download--embedded .wd-features { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} +@media (min-width: 1280px) { + .weyai-download--embedded .wd-features { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } } .wd-feature { display: flex; @@ -317,11 +280,6 @@ } /* ───── 分区标题 ───── */ -.wd-section { - display: grid; - min-width: 0; - gap: 12px; -} .wd-section-head { display: flex; flex-wrap: wrap; @@ -331,7 +289,7 @@ } .wd-section-head h2 { margin: 0; - font-size: 18px; + font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--wd-ink); @@ -339,107 +297,77 @@ .wd-section-head p { margin: 0; font-size: 12px; - color: var(--wd-meta); + color: var(--wd-muted); } /* ───── 全部安装包 ───── */ .wd-platforms { display: grid; + grid-template-columns: minmax(0, 1fr); gap: 12px; } +@media (min-width: 768px) { + .wd-platforms { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} +@media (min-width: 1024px) { + .wd-platforms { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } +} .wd-platform { - display: grid; - min-width: 0; - gap: 12px; - padding: 12px; + overflow: hidden; } +/* 手机端卡片底部的用途说明 */ .wd-platform__note { - padding-inline: 4px; + padding: 10px 16px 12px; font-size: 12px; - color: var(--wd-meta); + color: var(--wd-muted); } .wd-platform__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; - padding: 4px; + padding: 12px 16px; + border-bottom: 1px solid var(--wd-line); } .wd-platform__name { display: inline-flex; align-items: center; gap: 8px; - margin: 0; - font-size: 15px; - font-weight: 650; + font-size: 14px; + font-weight: 600; color: var(--wd-ink); } .wd-platform__name svg { - flex: none; color: var(--wd-accent-deep); } .wd-platform__count { font-size: 12px; - color: var(--wd-meta); + color: var(--wd-muted); font-variant-numeric: tabular-nums; } -.wd-platform__files { - display: grid; - min-width: 0; - gap: 8px; -} -@container (min-width: 620px) { - .wd-platform__files:has(> :nth-child(2)) { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } -} -@container (min-width: 900px) { - .wd-platform { - grid-template-columns: 148px minmax(0, 1fr); - gap: 16px; - padding: 16px; - } - .wd-platform__head { - flex-direction: column; - justify-content: center; - align-items: flex-start; - gap: 3px; - padding-inline: 8px; - } - .wd-platform__count { - padding-inline-start: 26px; - } - .wd-platform__note { - grid-column: 2; - } -} -@container (min-width: 1230px) { - .wd-platform__files:has(> :nth-child(4)) { - grid-template-columns: repeat(4, minmax(0, 1fr)); - } -} .wd-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; - min-width: 0; - padding: 10px 12px; - border: 1px solid var(--wd-line); - border-radius: 8px; + padding: 12px 16px; + border-bottom: 1px solid var(--wd-line); } .wd-file > .ant-btn { flex-shrink: 0; - min-height: 40px; - max-width: 50%; } -.wd-file:hover, -.wd-file:focus-within { +.wd-file:last-child { + border-bottom: 0; +} +.wd-file:hover { background: var(--wd-tint); } .wd-file--reco { - border-color: var(--wd-accent-line); - background: color-mix(in srgb, var(--wd-tint) 46%, var(--wd-card)); + box-shadow: inset 3px 0 0 var(--wd-accent); } .wd-file__main { min-width: 0; @@ -452,37 +380,32 @@ font-size: 14px; font-weight: 600; color: var(--wd-ink); - overflow-wrap: anywhere; } .wd-file__title .ant-tag { margin-inline-end: 0; } .wd-recommended-tag.ant-tag { - color: var(--wd-accent-deep); + color: var(--wd-accent); background: var(--wd-tint); border-color: var(--wd-accent-line); } .wd-file__meta { - display: flex; - flex-wrap: wrap; - gap: 2px 8px; - margin-top: 4px; + display: block; + margin-top: 2px; font-size: 12px; - color: var(--wd-meta); - overflow-wrap: anywhere; + color: var(--wd-muted); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; font-variant-numeric: tabular-nums; } -.wd-file__name { - min-width: 0; -} - /* ───── 步骤 ───── */ .wd-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } -@container (min-width: 660px) { +@media (min-width: 768px) { .wd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } @@ -502,7 +425,7 @@ height: 28px; border-radius: 999px; background: var(--wd-tint-strong); - color: var(--wd-accent-deep); + color: var(--wd-accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; @@ -580,11 +503,562 @@ } .weyai-download button:focus-visible, -.weyai-download a:focus-visible, -.weyai-download #weyai-download-all-title:focus-visible { +.weyai-download a:focus-visible { outline: 2px solid var(--wd-focus); outline-offset: 2px; } + +/* 独立下载页与当前路由的顶栏入口。 */ +body:has(.weyai-download--standalone) .ui-topbar .ui-header-download.ant-btn { + background: var(--brand-selection-bg); + color: var(--brand-selection-text); +} +body:has(.weyai-download--standalone) + .ui-topbar + .ui-header-download.ant-btn:is(:hover, :active) { + background: color-mix( + in srgb, + var(--brand-selection-bg) 90%, + var(--brand-selection-text) + ); + color: var(--brand-selection-text); +} +body:has(.weyai-download--standalone) + .ui-topbar + :is(a:has(> .ui-header-download), .ui-header-download):focus-visible { + outline: 2px solid var(--ui-color-focus-border); + outline-offset: 2px; + border-radius: var(--ui-border-radius-medium); +} + +.weyai-download--standalone .wd-intro { + display: grid; + grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); + align-items: center; + gap: clamp(24px, 3vw, 48px); +} +.weyai-download--standalone .wd-intro__main { + display: grid; + gap: 24px; + min-width: 0; +} +.weyai-download--standalone .wd-hero .uc-page-title { + color: var(--wd-ink); + font-size: clamp(28px, 3.2vw, 40px); + line-height: 1.24; + font-weight: 750; + overflow-wrap: anywhere; +} +.weyai-download--standalone .wd-hero .uc-page-subtitle { + margin-top: 12px; + color: var(--wd-muted); + font-size: 15px; + line-height: 1.65; +} +.weyai-download--standalone .wd-hero-meta { + gap: 8px 14px; + margin-top: 20px; +} +.weyai-download--standalone .wd-chip { + background: var(--wd-tint-strong); + border: 0; + border-radius: 6px; + overflow-wrap: anywhere; +} +.weyai-download--standalone .wd-chip--muted { + padding-inline: 0; + background: transparent; +} + +.weyai-download--standalone .wd-install-panel { + min-width: 0; + border-radius: 14px; + box-shadow: 0 12px 32px color-mix(in srgb, var(--wd-ink) 6%, transparent); +} +.weyai-download--standalone .wd-install-panel > .wd-card { + border: 0; + border-radius: inherit; + background: transparent; +} +.weyai-download--standalone .wd-reco::before { + content: none; +} +.weyai-download--standalone .wd-reco__row { + position: relative; + flex-direction: column; + align-items: stretch; + gap: 14px; +} +.weyai-download--standalone .wd-reco--with-file .wd-reco__row { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: 12px 16px; +} +.weyai-download--standalone + .wd-reco--with-file + :is( + .wd-reco__main, + .wd-reco__main > div:not(.wd-os-badge), + .wd-reco__actions + ) { + display: contents; +} +.weyai-download--standalone .wd-os-badge { + width: 36px; + height: 36px; + border: 0; + background: var(--wd-tint-strong); +} +.weyai-download--standalone .wd-os-badge svg { + width: 20px; + height: 20px; +} +.weyai-download--standalone .wd-reco--with-file .wd-os-badge { + position: absolute; + inset-block-start: 0; + inset-inline-end: 0; +} +.weyai-download--standalone .wd-reco .wd-eyebrow { + grid-column: 1 / -1; + padding-inline-end: 44px; + color: var(--wd-ink); + font-size: 16px; + letter-spacing: normal; + overflow-wrap: anywhere; +} +.weyai-download--standalone .wd-reco--with-file .wd-reco__title { + grid-row: 2; + grid-column: 1 / -1; + margin: 0; + padding-inline-end: 44px; + padding-block-end: 14px; + border-bottom: 1px solid var(--wd-line); +} +.weyai-download--standalone .wd-reco__selection { + display: flex; + flex-wrap: wrap; + gap: 8px; +} +.weyai-download--standalone .wd-reco__selection > span { + padding: 6px 10px; + border: 1px solid var(--wd-accent-line); + border-radius: var(--ui-border-radius-medium); + background: var(--wd-tint-strong); + color: var(--wd-accent); + font-size: 13px; + line-height: 20px; + font-weight: 600; + overflow-wrap: anywhere; +} +.weyai-download--standalone .wd-reco__meta { + grid-column: 1; + min-width: 0; + gap: 3px 10px; +} +.weyai-download--standalone .wd-reco__meta code { + flex-basis: 100%; + color: var(--wd-ink); + font: inherit; + font-size: 14px; + font-weight: 650; + overflow-wrap: anywhere; + word-break: normal; +} +.weyai-download--standalone .wd-reco--with-file .wd-reco__hint { + grid-column: 1 / -1; + margin: 0; +} +.weyai-download--standalone .wd-reco__actions .ant-btn-primary { + justify-self: start; + min-height: 44px; + height: auto; + max-width: 100%; + padding-block: 8px; + white-space: normal; + font-weight: 600; +} +.weyai-download--standalone .wd-reco--with-file .ant-btn-primary { + grid-area: 3 / 2; +} +.weyai-download--standalone .wd-reco--with-file .ant-btn-text { + grid-column: 1 / -1; + justify-self: start; +} +.weyai-download--standalone .wd-hero-actions { + margin-inline: 24px; + padding-block: 8px 12px; + border-top: 1px solid var(--wd-line); +} +.weyai-download--standalone + :is(.wd-hero-actions .ant-btn, .wd-reco__actions .ant-btn-text) { + max-width: 100%; + min-height: 36px; + height: auto; + padding-inline: 8px; + color: var(--wd-accent); + white-space: normal; + text-align: start; +} +.weyai-download--standalone + :is(.wd-hero-actions .ant-btn, .wd-reco__actions .ant-btn-text):not( + :disabled + ):is(:hover, :active) { + background: var(--wd-tint); + color: var(--wd-accent); +} + +.weyai-download--standalone .wd-section { + gap: 18px; +} +.weyai-download--standalone .wd-section-head h2 { + font-size: 22px; + line-height: 1.5; + font-weight: 700; +} +.weyai-download--standalone .wd-platforms { + gap: 18px; +} +.weyai-download--standalone .wd-platform__head { + padding: 18px; +} +.weyai-download--standalone .wd-platform__name { + font-size: 16px; +} +.weyai-download--standalone .wd-file { + padding: 16px 18px; +} +.weyai-download--standalone .wd-file--reco { + background: var(--wd-tint); + box-shadow: inset 2px 0 0 var(--wd-focus); +} +.weyai-download--standalone .wd-file--reco:hover { + background: var(--wd-tint-strong); +} +.weyai-download--standalone .wd-file__title, +.weyai-download--standalone .wd-file__meta { + overflow-wrap: anywhere; +} +.weyai-download--standalone .wd-file__meta { + margin-top: 5px; + line-height: 1.65; + white-space: normal; +} +.weyai-download--standalone .wd-file__meta > span { + display: block; +} +.weyai-download--standalone .wd-file > .ant-btn { + min-height: 36px; +} +.weyai-download--standalone .wd-feature { + display: grid; + align-content: start; + justify-items: start; + gap: 12px; + padding: 0; + border: 0; + background: transparent; +} +.weyai-download--standalone :is(.wd-feature__title, .wd-step__title) { + font-size: 14px; +} +.weyai-download--standalone :is(.wd-feature__desc, .wd-step__desc) { + margin-top: 6px; + font-size: 13px; + line-height: 1.65; +} +.weyai-download--standalone .wd-step { + padding: 18px 18px 18px 58px; +} +.weyai-download--standalone .wd-steps { + gap: 18px; +} +.weyai-download--standalone .wd-step__num { + inset-block-start: 18px; + inset-inline-start: 18px; +} +.weyai-download--standalone .wd-footnote { + margin: 0; +} + +/* 工作台是随主题着色的静态图形。 */ +.wd-workbench { + --wd-preview-surface: color-mix( + in srgb, + var(--wd-card) 88%, + var(--wd-tint-strong) + ); + --wd-preview-line: color-mix(in srgb, var(--wd-accent) 26%, var(--wd-line)); + --wd-preview-stroke: color-mix(in srgb, var(--wd-muted) 34%, transparent); + position: relative; + display: grid; + place-items: center; + min-width: 0; + aspect-ratio: 1.52; + margin-inline: auto; + width: 100%; + container-type: inline-size; + pointer-events: none; +} +.wd-workbench::before, +.wd-workbench::after { + position: absolute; + content: ''; +} +.wd-workbench::before { + inset: 0; + background: radial-gradient( + ellipse at 54% 48%, + color-mix(in srgb, var(--wd-focus) 14%, transparent), + transparent 69% + ); +} +.wd-workbench::after { + inset: 12% 6%; + border: 1px solid var(--wd-preview-line); + border-radius: 50%; + transform: rotate(-18deg); +} +.wd-workbench__window { + position: relative; + z-index: 1; + display: grid; + grid-template-rows: 8% minmax(0, 1fr); + aspect-ratio: 1.76; + width: 95%; + overflow: hidden; + border: 1px solid var(--wd-preview-line); + border-radius: 2.1cqw; + background: var(--wd-preview-surface); + box-shadow: 0 4cqw 7cqw color-mix(in srgb, var(--wd-ink) 10%, transparent); + transform: perspective(1200px) rotateY(-7deg) rotateX(5deg) rotateZ(1deg); +} +.wd-workbench__bar { + display: flex; + align-items: center; + gap: 0.65cqw; + padding-inline: 2cqw; + border-bottom: 1px solid var(--wd-preview-line); + background: var(--wd-tint); +} +.wd-workbench__bar > span { + width: 0.7cqw; + aspect-ratio: 1; + border-radius: 50%; + background: var(--wd-preview-stroke); +} +.wd-workbench__bar > span:first-child { + background: var(--wd-focus); +} +.wd-workbench i { + display: block; + width: 54%; + height: max(1px, 0.45cqw); + border-radius: 4px; + background: var(--wd-preview-stroke); +} +.wd-workbench__bar i { + width: 11%; + margin-inline-start: 1.25cqw; +} +.wd-workbench__workspace { + display: grid; + grid-template-columns: 17% minmax(0, 1fr); + min-height: 0; +} +.wd-workbench__sidebar { + display: flex; + flex-direction: column; + gap: 2.1cqw; + padding: 2.25cqw 1.4cqw; + border-inline-end: 1px solid var(--wd-preview-line); + background: var(--wd-tint); +} +.wd-workbench :is(svg, i) { + flex-shrink: 0; +} +.wd-workbench svg { + width: 2.2cqw; + height: 2.2cqw; + color: var(--wd-accent); +} +.wd-workbench + :is( + .wd-workbench__brand, + .wd-workbench__new, + .wd-workbench__nav, + .wd-workbench__toolbar + ) { + display: flex; + align-items: center; + gap: 1cqw; +} +.wd-workbench__new { + padding: 0.8cqw; + border-radius: 0.6cqw; + background: var(--wd-tint-strong); +} +.wd-workbench__main { + display: grid; + grid-template-rows: 8% minmax(0, 1fr) 20% 23%; + gap: 1.45cqw; + padding: 1.8cqw 2cqw 2.2cqw; +} +.wd-workbench__toolbar { + padding-bottom: 0.6cqw; + border-bottom: 1px solid var(--wd-preview-line); +} +.wd-workbench__toolbar i { + width: 13%; +} +.wd-workbench__welcome { + display: grid; + align-content: center; + justify-items: center; + gap: 1.15cqw; +} +.wd-workbench__welcome svg { + width: 5.8cqw; + height: 5.8cqw; + margin-bottom: 0.6cqw; + padding: 0.9cqw; + border-radius: 1.6cqw; + background: var(--wd-tint-strong); +} +.wd-workbench__welcome i { + width: 36%; + height: max(2px, 0.75cqw); +} +.wd-workbench__welcome i:last-child { + width: 25%; + height: max(1px, 0.48cqw); +} +.wd-workbench__tiles { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 0.9cqw; +} +.wd-workbench__tiles > div, +.wd-workbench__composer { + position: relative; + display: grid; + align-content: center; + justify-items: start; + gap: 0.7cqw; + padding: 1.3cqw; + border: 1px solid var(--wd-preview-line); + border-radius: 1cqw; + background: var(--wd-tint); +} +.wd-workbench__tiles i:last-child { + width: 77%; +} +.wd-workbench__composer { + align-content: space-between; + background: var(--wd-card); +} +.wd-workbench__composer i { + width: 23%; +} +.wd-workbench__composer > span { + position: absolute; + inset-inline-end: 1.25cqw; + inset-block-end: 1.25cqw; + display: grid; + place-items: center; + width: 3.6cqw; + aspect-ratio: 1; + border-radius: 1cqw; + background: var(--wd-tint-strong); +} +.wd-workbench__card { + position: absolute; + z-index: 2; + display: flex; + align-items: center; + gap: 1.3cqw; + width: 25%; + padding: 1.65cqw; + border: 1px solid var(--wd-preview-line); + border-radius: 1.65cqw; + background: var(--wd-card); + box-shadow: 0 1.1cqw 3cqw color-mix(in srgb, var(--wd-ink) 8%, transparent); +} +.wd-workbench__card--top { + inset-block-start: 4%; + inset-inline-end: 5%; +} +.wd-workbench__card--bottom { + inset-block-end: 5%; + inset-inline-start: 0; +} +.wd-workbench__card > span { + display: grid; + place-items: center; + width: 4.35cqw; + aspect-ratio: 1; + border-radius: 1.2cqw; + background: var(--wd-tint-strong); +} +.wd-workbench__card > div { + display: grid; + flex: 1; + gap: 0.9cqw; +} +.wd-workbench__card i:first-child { + width: 100%; + height: max(2px, 0.65cqw); +} + +@media (max-width: 960px) { + .weyai-download--standalone .wd-intro { + grid-template-columns: minmax(0, 1fr); + } + .wd-workbench { + max-width: 660px; + } +} +@media (max-width: 767px) { + .weyai-download--standalone .wd-features { + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 20px 16px; + } + .weyai-download--standalone + :is( + .wd-file > .ant-btn, + .wd-hero-actions .ant-btn, + .wd-reco__actions .ant-btn + ) { + min-height: 44px; + } +} +@media (max-width: 480px) { + .weyai-download--standalone .wd-intro, + .weyai-download--standalone .wd-intro__main { + gap: 18px; + } + .weyai-download--standalone .wd-reco { + padding: 18px 16px; + } + .weyai-download--standalone .wd-reco--with-file .wd-reco__row { + grid-template-columns: minmax(0, 1fr); + gap: 10px; + } + .weyai-download--standalone .wd-reco--with-file .ant-btn-primary { + grid-area: auto / 1; + } + .weyai-download--standalone .wd-hero-actions { + margin-inline: 16px; + gap: 2px 6px; + } + .weyai-download--standalone :is(.wd-platform__head, .wd-file) { + padding-inline: 14px; + } + .wd-workbench__window { + transform: none; + } +} + @media (prefers-reduced-motion: reduce) { .weyai-download .ant-btn, .weyai-download .wd-skeleton .ant-skeleton.ant-skeleton-active *,