1073 lines
24 KiB
CSS
1073 lines
24 KiB
CSS
/* The standalone and embedded download views share the system theme. */
|
|
.weyai-download {
|
|
--wd-ink: var(--text-primary);
|
|
--wd-muted: var(--text-secondary);
|
|
--wd-line: var(--border-subtle);
|
|
--wd-card: var(--surface-card);
|
|
--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-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: linear-gradient(
|
|
var(--brand-selection-bg),
|
|
var(--surface-bg-base) 610px
|
|
);
|
|
}
|
|
|
|
.weyai-download__inner {
|
|
position: relative;
|
|
margin: 0 auto;
|
|
padding: 24px 30px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
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;
|
|
padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px)
|
|
var(--uc-page-pad-bottom, 36px);
|
|
}
|
|
/* Keep package headings visible below the fixed header and announcement. */
|
|
.weyai-download--standalone #weyai-download-all {
|
|
scroll-margin-top: calc(var(--console-header-offset, 72px) + 16px);
|
|
}
|
|
.weyai-download--embedded #weyai-download-all {
|
|
scroll-margin-top: 16px;
|
|
}
|
|
|
|
/* ───── hero ───── */
|
|
.wd-hero {
|
|
min-width: 0;
|
|
}
|
|
.wd-hero > .wd-eyebrow {
|
|
margin-bottom: 8px;
|
|
}
|
|
.wd-hero .uc-page-header {
|
|
margin-bottom: 0;
|
|
}
|
|
.wd-eyebrow {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--wd-accent);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
.wd-hero-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
.wd-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 3px 10px;
|
|
border: 1px solid var(--wd-accent-line);
|
|
border-radius: 8px;
|
|
background: var(--wd-tint);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--wd-accent-deep);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.wd-chip--muted {
|
|
border-color: var(--wd-line);
|
|
background: transparent;
|
|
color: var(--wd-muted);
|
|
font-weight: 500;
|
|
}
|
|
.wd-hero-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ───── 卡片基础 ───── */
|
|
.wd-card {
|
|
border: 1px solid var(--wd-line);
|
|
border-radius: 12px;
|
|
background: var(--wd-card);
|
|
}
|
|
|
|
/* ───── 推荐安装包 ───── */
|
|
.wd-reco {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 24px;
|
|
border-color: var(--wd-accent-line);
|
|
background: var(--wd-card);
|
|
}
|
|
.wd-reco::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0 auto 0 0;
|
|
width: 4px;
|
|
background: var(--wd-accent);
|
|
}
|
|
.wd-reco__row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
@media (min-width: 768px) {
|
|
.wd-reco__row {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
.wd-reco__main {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
}
|
|
.wd-os-badge {
|
|
flex-shrink: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--wd-accent-line);
|
|
background: var(--wd-tint-strong);
|
|
color: var(--wd-accent-deep);
|
|
}
|
|
/* 推荐卡的眉标带插值的平台名(macOS),不能全大写 */
|
|
.wd-reco .wd-eyebrow {
|
|
text-transform: none;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.wd-reco__title {
|
|
margin: 2px 0 4px;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
line-height: 1.3;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-reco__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 12px;
|
|
font-size: 12px;
|
|
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: var(--wd-muted);
|
|
word-break: break-all;
|
|
}
|
|
.wd-reco__hint {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: var(--wd-muted);
|
|
}
|
|
.wd-reco__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
@media (min-width: 768px) {
|
|
.wd-reco__actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
/* ───── 特性条 ───── */
|
|
.wd-features {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 16px;
|
|
}
|
|
@media (min-width: 640px) {
|
|
.wd-features {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
@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;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
}
|
|
.wd-feature__icon {
|
|
flex-shrink: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
background: var(--wd-tint);
|
|
color: var(--wd-accent-deep);
|
|
}
|
|
.wd-feature__title {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-feature__desc {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--wd-muted);
|
|
}
|
|
|
|
/* ───── 分区标题 ───── */
|
|
.wd-section-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
.wd-section-head h2 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-section-head p {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
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 {
|
|
overflow: hidden;
|
|
}
|
|
/* 手机端卡片底部的用途说明 */
|
|
.wd-platform__note {
|
|
padding: 10px 16px 12px;
|
|
font-size: 12px;
|
|
color: var(--wd-muted);
|
|
}
|
|
.wd-platform__head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--wd-line);
|
|
}
|
|
.wd-platform__name {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-platform__name svg {
|
|
color: var(--wd-accent-deep);
|
|
}
|
|
.wd-platform__count {
|
|
font-size: 12px;
|
|
color: var(--wd-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.wd-file {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--wd-line);
|
|
}
|
|
.wd-file > .ant-btn {
|
|
flex-shrink: 0;
|
|
}
|
|
.wd-file:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
.wd-file:hover {
|
|
background: var(--wd-tint);
|
|
}
|
|
.wd-file--reco {
|
|
box-shadow: inset 3px 0 0 var(--wd-accent);
|
|
}
|
|
.wd-file__main {
|
|
min-width: 0;
|
|
}
|
|
.wd-file__title {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-file__title .ant-tag {
|
|
margin-inline-end: 0;
|
|
}
|
|
.wd-recommended-tag.ant-tag {
|
|
color: var(--wd-accent);
|
|
background: var(--wd-tint);
|
|
border-color: var(--wd-accent-line);
|
|
}
|
|
.wd-file__meta {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 12px;
|
|
color: var(--wd-muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
/* ───── 步骤 ───── */
|
|
.wd-steps {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 12px;
|
|
}
|
|
@media (min-width: 768px) {
|
|
.wd-steps {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
.wd-step {
|
|
position: relative;
|
|
padding: 16px 16px 16px 56px;
|
|
}
|
|
.wd-step__num {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 999px;
|
|
background: var(--wd-tint-strong);
|
|
color: var(--wd-accent);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.wd-step__title {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-step__desc {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: var(--wd-muted);
|
|
}
|
|
|
|
/* ───── 状态卡(加载失败 / 未开放 / 暂无安装包) ───── */
|
|
.wd-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
gap: 8px;
|
|
padding: 36px 20px;
|
|
}
|
|
.wd-state__icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 12px;
|
|
background: var(--wd-tint);
|
|
color: var(--wd-accent-deep);
|
|
margin-bottom: 4px;
|
|
}
|
|
.wd-state--danger .wd-state__icon {
|
|
background: var(--wd-danger-tint);
|
|
color: var(--wd-danger);
|
|
}
|
|
.wd-state__title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--wd-ink);
|
|
}
|
|
.wd-state__desc {
|
|
max-width: 520px;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
color: var(--wd-muted);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.wd-state__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* ───── 骨架 ───── */
|
|
.wd-skeleton {
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.wd-footnote {
|
|
font-size: 12px;
|
|
color: var(--wd-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.weyai-download button: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 *,
|
|
.weyai-download *,
|
|
.weyai-download *::before,
|
|
.weyai-download *::after {
|
|
animation: none;
|
|
transition: none;
|
|
scroll-behavior: auto;
|
|
}
|
|
}
|