Files
unicut/src/pages/editor/components/sources/ai/styles.module.less
T
3970260761 5b8e53f9c8 AI一键出片素材三选一与纯文本模型提示;修复/grab/网址反代两个致命bug;断网lint门禁external_refs归零
- 素材导入三选一:图片 / Word·PDF 文档(新 sourceImport.ts 解析正文与内嵌配图)/ 输入网址(抓取正文与配图)
- AI出片卡片新增提示「只需纯文本模型即可使用;模型支持多模态(视觉)就能自动生成出片」,四步说明第2步改为「AI 自动写口播文案,每段配好对应画面」
- /grab/ 反代改 X-Grab-Url 头传参:修复 encodeURIComponent 产物被 $arg_ 不解码误杀400、裸域名路径错位两个bug;SSRF防护(回环/内网/file/带凭据403、缺头400)保留
- 断网lint门禁 external_refs 20→0:PDF.js命名空间、example.com示例域名、${A}截断产物、ai/nav.88531.cn 自有域名登记白名单
- README/CHANGELOG 已同步本次更新
2026-11-11 14:21:39 +08:00

299 lines
5.7 KiB
Plaintext

.ai {
color: var(--theme-text);
height: 100%;
overflow: auto;
h1 {
padding: 20px 20px 0 20px;
font-size: 14px;
font-weight: bolder;
}
h2 {
padding: 10px 0;
font-size: 14px;
font-weight: bolder;
}
.model {
padding: 10px 20px;
.desc {
padding: 10px 0px;
font-size: 12px;
}
}
.item {
position: relative;
.imgbox {
margin: 0 5px 5px 0;
background-repeat: no-repeat;
background-size: cover;
background-color: var(--theme-input);
background-position: center;
border-radius: 4px;
position: relative;
overflow: hidden;
display: inline-block;
}
.empty {
font-size: 12px;
color: var(--theme-text-default);
text-align: center;
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.extra {
position: absolute;
top: 5px;
right: 5px;
font-size: 12px;
color: #fff;
background-color: rgba(0, 0, 0, 0.5);
padding: 2px 4px;
border-radius: 4px;
}
}
.credit {
margin: 10px 0;
display: flex;
font-size: 12px;
justify-content: space-between;
em {
// font-weight: bolder;
font-size: 14px;
}
i {
display: inline-block;
font-style: normal;
font-weight: bolder;
font-size: 14px;
color: #fff;
background: linear-gradient(
278deg,
rgba(233, 69, 255),
rgba(166, 71, 255) 30%,
rgba(107, 97, 255) 60%,
rgba(46, 140, 255)
);
border-radius: 100px;
padding: 0px 6px;
}
}
}
.btn {
background: linear-gradient(
278deg,
rgba(233, 69, 255),
rgba(166, 71, 255) 30%,
rgba(107, 97, 255) 60%,
rgba(46, 140, 255)
);
}
.main {
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
/* 一键出片主入口:常驻顶部,不随页签切换 */
.qvHero {
flex: 0 0 auto;
margin: 12px 12px 4px;
padding: 14px 16px 14px;
border-radius: 10px;
cursor: pointer;
color: #fff;
background: linear-gradient(135deg, #6a5cff 0%, #2f7bff 55%, #16b9ff 100%);
box-shadow: 0 6px 18px rgba(63, 108, 255, 0.32);
transition: transform 0.16s ease, box-shadow 0.16s ease;
position: relative;
overflow: hidden;
&:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(63, 108, 255, 0.42);
}
/* 右上角淡色圆环做点缀 */
&:after {
content: '';
position: absolute;
right: -34px;
top: -34px;
width: 108px;
height: 108px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
}
.qvHeroHead {
display: flex;
align-items: center;
gap: 8px;
}
.qvBadge {
font-size: 12px;
line-height: 1;
padding: 4px 8px;
border-radius: 4px;
background: #ffd84d;
color: #5a4300;
font-weight: 700;
}
.qvTitle {
font-size: 17px;
font-weight: 700;
letter-spacing: 0.5px;
}
.qvSub {
margin-top: 8px;
font-size: 12.5px;
line-height: 1.7;
color: rgba(255, 255, 255, 0.92);
}
.qvChips {
margin-top: 9px;
display: flex;
gap: 6px;
flex-wrap: wrap;
i {
font-style: normal;
font-size: 12px;
padding: 3px 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.18);
border: 1px solid rgba(255, 255, 255, 0.28);
}
}
.qvHeroHint {
margin-top: 8px;
font-size: 11.5px;
line-height: 1.6;
color: rgba(255, 255, 255, 0.68);
}
.qvCta {
margin-top: 11px;
display: inline-block;
padding: 7px 18px;
border-radius: 6px;
background: #fff;
color: #2f5cff;
font-size: 13px;
font-weight: 700;
}
}
.tabs {
flex: 1;
min-height: 0;
height: auto;
.qvTab {
display: inline-flex;
align-items: center;
gap: 5px;
.qvTabDot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #ff5a3c;
display: inline-block;
}
}
.qvIntro {
padding: 16px 20px;
color: var(--theme-text);
.qvIntroTitle {
font-size: 14px;
margin-bottom: 10px;
}
.qvSteps {
margin: 0;
padding-left: 18px;
font-size: 13px;
line-height: 2;
color: var(--theme-text-default);
}
.qvStartBtn {
margin-top: 14px;
}
.qvHint {
margin-top: 10px;
font-size: 12px;
color: var(--theme-text-default);
opacity: 0.8;
}
}
:global {
.semi-tabs-bar {
display: flex;
justify-content: center;
border-bottom: var(--theme-border);
}
.semi-tabs-tab-line.semi-tabs-tab {
color: var(--theme-text-default);
&:hover {
color: var(--theme-text-default);
}
}
.semi-tabs-tab-line.semi-tabs-tab-active {
color: var(--theme-text);
&:hover {
color: var(--theme-text-default);
}
}
.semi-tabs-content {
height: calc(100% - 53px);
padding: 0;
}
.semi-tabs-pane {
height: 100%;
& > div {
height: 100%;
}
}
}
}
}
.unlogin {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 14px;
a {
color: var(--theme-main);
margin-left: 5px;
}
& > span {
text-align: center;
display: inline-block;
}
}
.loginTip {
a {
color: var(--theme-main);
}
& > div {
display: inline-block;
}
}