chore: migrate frontend assets to OSS and same-origin APIs

This commit is contained in:
2026-06-04 16:03:49 +08:00
parent 7c6129555b
commit c7c52c1467
55 changed files with 728 additions and 292 deletions
+143 -69
View File
@@ -2831,10 +2831,10 @@
.product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
display: grid;
grid-template-columns: minmax(210px, 300px) 54px minmax(330px, 560px);
grid-template-columns: minmax(260px, 380px) 54px minmax(400px, 1fr);
align-items: center;
gap: 20px;
width: min(100%, 960px);
gap: 28px;
width: min(100%, 1120px);
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result,
@@ -2842,24 +2842,26 @@
position: relative;
overflow: hidden;
border: 1px solid #2c3038;
border-radius: 14px;
border-radius: 16px;
background: #1b1d23;
padding: 0;
cursor: pointer;
transition:
border-color 160ms ease,
transform 160ms ease;
border-color 200ms ease,
transform 200ms ease,
box-shadow 200ms ease;
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result:hover,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:hover {
border-color: #00ff88;
transform: translateY(-1px);
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(0, 255, 136, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result:active,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:active {
transform: scale(0.98);
transform: scale(0.97);
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result img,
@@ -2868,39 +2870,46 @@
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 300ms ease;
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result:hover img,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:hover img {
transform: scale(1.03);
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result {
height: 360px;
height: 440px;
}
.product-clone-page[data-tool="clone"] .clone-ai-result-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
gap: 14px;
}
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button {
height: 172px;
height: 210px;
}
.product-clone-page[data-tool="clone"] .clone-ai-result-grid button:first-child {
grid-column: 1 / -1;
height: 190px;
height: 240px;
}
.product-clone-page[data-tool="clone"] .clone-ai-main-result span,
.product-clone-page[data-tool="clone"] .clone-ai-result-grid span {
position: absolute;
left: 11px;
top: 11px;
max-width: calc(100% - 22px);
left: 12px;
top: 12px;
max-width: calc(100% - 24px);
overflow: hidden;
border: 1px solid #303540;
border: 1px solid rgba(48, 53, 64, 0.6);
border-radius: 999px;
background: #15171c;
background: rgba(21, 23, 28, 0.85);
backdrop-filter: blur(8px);
color: #d8deed;
padding: 6px 10px;
padding: 7px 13px;
font-size: 12px;
font-weight: 900;
text-overflow: ellipsis;
@@ -3793,8 +3802,8 @@
.product-clone-thumb-row,
.product-clone-ref-grid {
display: grid;
gap: 8px;
margin-top: 10px;
gap: 10px;
margin-top: 12px;
}
.product-clone-thumb-row {
@@ -3805,7 +3814,13 @@
.product-clone-ref-grid img {
width: 100%;
object-fit: cover;
border-radius: 8px;
border-radius: 10px;
transition: transform 250ms ease;
}
.product-clone-thumb-row img:hover,
.product-clone-ref-grid img:hover {
transform: scale(1.03);
}
.product-clone-thumb-row img {
@@ -3989,12 +4004,12 @@
display: grid;
align-content: center;
justify-items: center;
gap: 34px;
gap: 36px;
min-width: 0;
min-height: 0;
overflow: auto;
background: #f5f6f8;
padding: 42px;
padding: 48px;
}
.product-clone-preview__headline {
@@ -4018,21 +4033,29 @@
.product-clone-demo-board {
position: relative;
display: grid;
grid-template-columns: minmax(260px, 340px) 44px minmax(300px, 360px);
grid-template-columns: minmax(300px, 400px) 48px minmax(340px, 420px);
align-items: center;
gap: 30px;
width: min(100%, 780px);
border-radius: 22px;
gap: 34px;
width: min(100%, 920px);
border-radius: 24px;
background: #ffffff;
padding: 30px;
padding: 34px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.product-clone-source-card,
.product-clone-result-stack figure {
position: relative;
overflow: hidden;
border-radius: 14px;
border-radius: 16px;
background: #f2f4f7;
transition: transform 250ms ease, box-shadow 250ms ease;
}
.product-clone-source-card:hover,
.product-clone-result-stack figure:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.product-clone-source-card img,
@@ -4041,16 +4064,23 @@
width: 100%;
aspect-ratio: 1.55;
object-fit: cover;
transition: transform 300ms ease;
}
.product-clone-source-card:hover img,
.product-clone-result-stack figure:hover img {
transform: scale(1.02);
}
.product-clone-source-card span,
.product-clone-result-stack figcaption {
position: absolute;
top: 10px;
right: 10px;
top: 12px;
right: 12px;
border-radius: 999px;
background: #ffffff;
padding: 6px 10px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(6px);
padding: 7px 13px;
color: #111827;
font-size: 12px;
font-weight: 800;
@@ -4099,7 +4129,7 @@
.product-clone-result-stack {
display: grid;
gap: 10px;
gap: 12px;
}
.product-clone-result-stack figure {
@@ -4849,19 +4879,25 @@
.product-set-demo-board {
display: grid;
grid-template-columns: 336px 40px 338px;
grid-template-columns: minmax(300px, 420px) 44px minmax(340px, 1fr);
align-items: center;
gap: 24px;
width: min(100%, 802px);
min-height: 336px;
gap: 28px;
width: min(100%, 960px);
min-height: 380px;
}
.product-set-demo-board figure {
position: relative;
overflow: hidden;
margin: 0;
border-radius: 12px;
border-radius: 14px;
background: #ffffff;
transition: transform 250ms ease, box-shadow 250ms ease;
}
.product-set-demo-board figure:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.product-set-demo-board img {
@@ -4869,6 +4905,11 @@
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 300ms ease;
}
.product-set-demo-board figure:hover img {
transform: scale(1.03);
}
.product-set-demo-board figcaption {
@@ -4878,35 +4919,43 @@
max-width: calc(100% - 24px);
overflow: hidden;
border-radius: 999px;
background: rgba(255, 255, 255, 0.86);
background: rgba(255, 255, 255, 0.88);
backdrop-filter: blur(6px);
color: #111827;
padding: 6px 10px;
font-size: 12px;
padding: 7px 14px;
font-size: 13px;
font-weight: 900;
text-overflow: ellipsis;
white-space: nowrap;
}
.product-set-main-card {
height: 336px;
height: 380px;
border-radius: 16px;
transition: transform 250ms ease, box-shadow 250ms ease;
}
.product-set-main-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.product-set-flow-arrow {
width: 40px;
height: 24px;
width: 44px;
height: 26px;
border-radius: 999px;
background: #b8c3d1;
background: linear-gradient(90deg, #b8c3d1, #d7dde6);
clip-path: polygon(0 28%, 58% 28%, 58% 0, 100% 50%, 58% 100%, 58% 72%, 0 72%);
}
.product-set-card-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
gap: 14px;
}
.product-set-card-grid figure {
height: 162px;
height: 184px;
}
.product-set-generated-note {
@@ -5360,13 +5409,13 @@
}
.product-clone-page[data-tool="set"] .product-set-demo-board {
grid-template-columns: minmax(360px, 486px) 44px minmax(360px, 486px);
gap: 28px;
width: min(100%, 1150px);
min-height: 576px;
grid-template-columns: minmax(380px, 1fr) 48px minmax(380px, 1fr);
gap: 32px;
width: min(100%, 1200px);
min-height: 620px;
border-radius: 32px;
background: #ffffff;
padding: 37px 30px;
padding: 40px 34px;
}
.product-clone-page[data-tool="set"] .product-set-demo-board figure {
@@ -5376,16 +5425,16 @@
}
.product-clone-page[data-tool="set"] .product-set-main-card {
height: 502px;
height: 540px;
background: #ffffff;
}
.product-clone-page[data-tool="set"] .product-set-card-grid {
gap: 18px;
gap: 20px;
}
.product-clone-page[data-tool="set"] .product-set-card-grid figure {
height: 242px;
height: 260px;
}
.product-clone-page[data-tool="set"] .product-set-demo-board figcaption {
@@ -6840,26 +6889,37 @@
.product-try-on-generated {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
width: min(100%, 766px);
border-radius: 18px;
gap: 14px;
width: min(100%, 820px);
border-radius: 20px;
background: #ffffff;
padding: 14px;
padding: 16px;
}
.product-try-on-generated figure {
position: relative;
overflow: hidden;
margin: 0;
border-radius: 12px;
border-radius: 14px;
background: #edf1f6;
transition: transform 250ms ease, box-shadow 250ms ease;
}
.product-try-on-generated figure:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.product-try-on-generated img {
display: block;
width: 100%;
height: 180px;
height: 200px;
object-fit: cover;
transition: transform 300ms ease;
}
.product-try-on-generated figure:hover img {
transform: scale(1.03);
}
.product-try-on-generated figcaption {
@@ -6867,8 +6927,9 @@
left: 10px;
bottom: 10px;
border-radius: 999px;
background: #ffffff;
padding: 5px 10px;
background: rgba(255, 255, 255, 0.88);
backdrop-filter: blur(6px);
padding: 6px 12px;
color: #111827;
font-size: 12px;
font-weight: 800;
@@ -7524,15 +7585,27 @@
overflow: hidden;
margin: 0;
border: 1px solid #dfe5ee;
border-radius: 10px;
border-radius: 12px;
background: #f5f6f8;
aspect-ratio: 1;
transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.product-set-thumb:hover {
border-color: #c6cdd8;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.product-set-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 250ms ease;
}
.product-set-thumb:hover img {
transform: scale(1.04);
}
.product-set-thumb button {
@@ -7540,12 +7613,13 @@
top: 6px;
right: 6px;
display: grid;
width: 24px;
height: 24px;
width: 26px;
height: 26px;
place-items: center;
border: 1px solid #dfe5ee;
border: 1px solid rgba(223, 229, 238, 0.7);
border-radius: 999px;
background: #ffffff;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(4px);
color: #111827;
cursor: pointer;
transition:
+70 -29
View File
@@ -596,14 +596,27 @@ textarea.image-workbench-prompt {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
color: var(--fg-dim);
gap: 12px;
width: 100%;
height: 100%;
color: var(--fg-muted);
font-size: 14px;
}
.image-workbench-empty .anticon {
font-size: 32px;
opacity: 0.5;
font-size: 40px;
opacity: 0.35;
}
.image-workbench-empty strong {
font-size: 18px;
color: var(--fg-body, #eee);
}
.image-workbench-empty span {
max-width: 320px;
text-align: center;
line-height: 1.5;
}
.image-workbench-empty--button {
@@ -824,22 +837,24 @@ textarea.image-workbench-prompt {
.image-workbench-panel--right .image-workbench-result-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
gap: 8px;
margin-top: 8px;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 10px;
margin-top: 10px;
}
.image-workbench-result-thumb {
display: block;
overflow: hidden;
border-radius: 6px;
border-radius: 8px;
border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
aspect-ratio: 1;
transition: border-color 0.15s;
transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.image-workbench-result-thumb:hover {
border-color: var(--accent, #2dd4bf);
transform: scale(1.04);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.image-workbench-result-thumb img {
@@ -1598,30 +1613,30 @@ textarea.image-workbench-prompt {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
gap: 14px;
width: 100%;
height: 100%;
color: var(--fg-muted);
}
.image-workbench-generating strong {
font-size: 20px;
font-size: 22px;
color: var(--fg-default);
}
.image-workbench-progress-bar {
width: 320px;
height: 8px;
border-radius: 4px;
width: min(420px, 80%);
height: 10px;
border-radius: 5px;
background: var(--bg-inset);
overflow: hidden;
}
.image-workbench-progress-fill {
height: 100%;
border-radius: 4px;
background: var(--accent);
transition: width 0.3s ease;
border-radius: 5px;
background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white));
transition: width 0.35s ease;
}
.image-workbench-cancel {
@@ -1642,30 +1657,30 @@ textarea.image-workbench-prompt {
}
.image-workbench-result-grid {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
align-content: center;
justify-items: center;
width: 100%;
height: 100%;
margin: 0;
padding: 24px;
padding: 32px;
overflow-y: auto;
gap: 16px;
gap: 20px;
}
.image-workbench-result-item {
display: block;
border-radius: var(--radius-sm);
border-radius: var(--radius-md, 12px);
overflow: hidden;
border: 1px solid var(--border-weak);
transition: border-color 0.15s, box-shadow 0.15s;
transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.image-workbench-result-item:hover {
border-color: var(--accent);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(var(--accent-rgb, 45, 212, 191), 0.1);
transform: translateY(-2px);
}
.image-workbench-result-item img {
@@ -1674,20 +1689,26 @@ textarea.image-workbench-prompt {
height: auto;
object-fit: contain;
background: var(--bg-inset);
transition: transform 300ms ease;
}
.image-workbench-result-item:hover img {
transform: scale(1.02);
}
.image-workbench-result-card {
display: grid;
min-width: 0;
width: min(100%, 500px);
width: 100%;
max-width: 560px;
align-content: start;
gap: 12px;
gap: 14px;
}
.image-workbench-result-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
gap: 10px;
}
.image-workbench-result-actions button {
@@ -1735,3 +1756,23 @@ textarea.image-workbench-prompt {
opacity: 0.6;
cursor: not-allowed;
}
/* Result card entrance animation */
@keyframes image-workbench-result-enter {
from {
opacity: 0;
transform: translateY(12px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.image-workbench-result-card {
animation: image-workbench-result-enter 0.4s ease-out both;
}
.image-workbench-result-card:nth-child(2) { animation-delay: 0.08s; }
.image-workbench-result-card:nth-child(3) { animation-delay: 0.16s; }
.image-workbench-result-card:nth-child(4) { animation-delay: 0.24s; }