Fix/ecommerce video 400 bug #11
@@ -90,7 +90,7 @@ function AppShell({
|
||||
"avatarConsole",
|
||||
"characterMix",
|
||||
] as WebViewKey[];
|
||||
const showPageScrollActions = showFloatingNav && !toolSurfaceViews.includes(activeView);
|
||||
const showPageScrollActions = false;
|
||||
|
||||
const visibleNavItems = useMemo(
|
||||
() => {
|
||||
|
||||
@@ -2062,6 +2062,13 @@ function ProductClonePage(_props: ProductClonePageProps = {}) {
|
||||
<span>
|
||||
上传商品图,AI 即刻生成 <b>符合多电商平台规范</b> 的高转化率商品素材。
|
||||
</span>
|
||||
<div className="clone-ai-preview-summary" aria-label="当前生成配置">
|
||||
<span>{selectedCloneOutput.label}</span>
|
||||
<span>{platform}</span>
|
||||
<span>{market}</span>
|
||||
<span>{language}</span>
|
||||
<span>{formatRatioDisplayValue(ratio)}</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{status === "done" ? (
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import {
|
||||
CameraOutlined,
|
||||
CheckOutlined,
|
||||
CheckCircleFilled,
|
||||
CloseOutlined,
|
||||
DeleteOutlined,
|
||||
EditOutlined,
|
||||
LockOutlined,
|
||||
MailOutlined,
|
||||
MobileOutlined,
|
||||
@@ -134,6 +137,48 @@ function mapAssetToSavedItem(asset: Awaited<ReturnType<typeof assetClient.list>>
|
||||
};
|
||||
}
|
||||
|
||||
function formatProfileDate(value: string | null | undefined): string {
|
||||
if (!value) return "刚刚";
|
||||
const date = new Date(value);
|
||||
if (Number.isNaN(date.getTime())) return value;
|
||||
|
||||
return new Intl.DateTimeFormat("zh-CN", {
|
||||
month: "numeric",
|
||||
day: "numeric",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
}).format(date);
|
||||
}
|
||||
|
||||
function formatTaskType(type: WebGenerationPreviewTask["type"]): string {
|
||||
const labels: Record<WebGenerationPreviewTask["type"], string> = {
|
||||
image: "图像",
|
||||
video: "视频",
|
||||
agent: "智能体",
|
||||
"digital-human": "数字人",
|
||||
"character-mix": "角色融合",
|
||||
};
|
||||
return labels[type] || type;
|
||||
}
|
||||
|
||||
function formatTaskStatus(status: WebGenerationPreviewTask["status"]): string {
|
||||
const labels: Record<WebGenerationPreviewTask["status"], string> = {
|
||||
queued: "排队中",
|
||||
running: "生成中",
|
||||
completed: "已完成",
|
||||
failed: "失败",
|
||||
};
|
||||
return labels[status] || status;
|
||||
}
|
||||
|
||||
function formatAssetStatus(status: string | undefined): string {
|
||||
const normalized = String(status || "").toLowerCase();
|
||||
if (normalized === "completed" || normalized === "ready" || normalized === "success") return "可用";
|
||||
if (normalized === "running" || normalized === "processing") return "处理中";
|
||||
if (normalized === "failed" || normalized === "error") return "失败";
|
||||
return status || "资产";
|
||||
}
|
||||
|
||||
function ProfilePage({
|
||||
session,
|
||||
usage,
|
||||
@@ -187,6 +232,9 @@ function ProfilePage({
|
||||
const [profileNotice, setProfileNotice] = useState<string | null>(null);
|
||||
const [localAvatarUrl, setLocalAvatarUrl] = useState(() => session?.user.avatarUrl || readLocalProfileValue(userId, "avatar"));
|
||||
const [profileBio, setProfileBio] = useState(() => session?.user.bio || readLocalProfileValue(userId, "bio"));
|
||||
const [isBioEditing, setIsBioEditing] = useState(false);
|
||||
const [bioEditBackup, setBioEditBackup] = useState("");
|
||||
const [bioStatusNotice, setBioStatusNotice] = useState<string | null>(null);
|
||||
const [bannerUrl, setBannerUrl] = useState(() => session?.user.backgroundUrl || readLocalProfileValue(userId, "background"));
|
||||
|
||||
const completedTasks = tasks.filter((task) => task.status === "completed");
|
||||
@@ -195,6 +243,9 @@ function ProfilePage({
|
||||
const packageLabel = session?.user.activePackages?.[0]?.name || "按量积分";
|
||||
const avatarUrl = session?.user.avatarUrl || localAvatarUrl || null;
|
||||
const displayedBio = profileBio.trim() || "这个人还没有填写个性签名";
|
||||
const emailLooksValid = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.trim());
|
||||
const phoneLooksValid = /^1[3-9]\d{9}$/.test(phone.trim());
|
||||
const passwordLooksReady = password.length >= (mode === "register" ? 6 : 1);
|
||||
|
||||
useEffect(() => {
|
||||
setLocalAvatarUrl(session?.user.avatarUrl || readLocalProfileValue(userId, "avatar"));
|
||||
@@ -525,8 +576,29 @@ function ProfilePage({
|
||||
void syncProfilePatch({ bio: nextBio || null });
|
||||
};
|
||||
|
||||
const startBioEdit = () => {
|
||||
setBioEditBackup(profileBio);
|
||||
setBioStatusNotice(null);
|
||||
setIsBioEditing(true);
|
||||
};
|
||||
|
||||
const confirmBioEdit = () => {
|
||||
handleBioBlur();
|
||||
setIsBioEditing(false);
|
||||
setBioStatusNotice("个性签名已保存");
|
||||
};
|
||||
|
||||
const cancelBioEdit = () => {
|
||||
setProfileBio(bioEditBackup);
|
||||
setIsBioEditing(false);
|
||||
setBioStatusNotice(null);
|
||||
};
|
||||
|
||||
const renderEmptyState = (text: string, actionLabel: string, action: () => void) => (
|
||||
<div className="profile-page__empty-state">
|
||||
<span className="profile-page__empty-mark" aria-hidden="true">
|
||||
<PlusOutlined />
|
||||
</span>
|
||||
<p className="profile-page__empty-text">{text}</p>
|
||||
<button type="button" className="profile-page__empty-btn" onClick={action}>
|
||||
<PlusOutlined />
|
||||
@@ -543,12 +615,12 @@ function ProfilePage({
|
||||
<article key={task.id} className="profile-page__list-card">
|
||||
<div className="profile-page__list-card-head">
|
||||
<strong>{task.title}</strong>
|
||||
<span>{task.type}</span>
|
||||
<span>{formatTaskType(task.type)}</span>
|
||||
</div>
|
||||
<p>{task.prompt}</p>
|
||||
<div className="profile-page__list-card-meta">
|
||||
<span>{task.status}</span>
|
||||
<span>{task.createdAt}</span>
|
||||
<span>{formatTaskStatus(task.status)}</span>
|
||||
<span>{formatProfileDate(task.createdAt)}</span>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
@@ -565,7 +637,7 @@ function ProfilePage({
|
||||
<article key={project.id} className="profile-page__list-card">
|
||||
<div className="profile-page__list-card-head">
|
||||
<strong>{project.name}</strong>
|
||||
<span>{project.updatedAt}</span>
|
||||
<span>{formatProfileDate(project.updatedAt)}</span>
|
||||
{onDeleteProject ? (
|
||||
<button
|
||||
type="button"
|
||||
@@ -597,12 +669,12 @@ function ProfilePage({
|
||||
<article key={asset.id} className="profile-page__list-card">
|
||||
<div className="profile-page__list-card-head">
|
||||
<strong>{asset.name}</strong>
|
||||
<span>{asset.status}</span>
|
||||
<span>{formatAssetStatus(asset.status)}</span>
|
||||
</div>
|
||||
<p>{asset.description}</p>
|
||||
<div className="profile-page__list-card-meta">
|
||||
<span>{asset.type}</span>
|
||||
<span>{asset.updatedAt}</span>
|
||||
<span>{formatProfileDate(asset.updatedAt)}</span>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
@@ -665,15 +737,39 @@ function ProfilePage({
|
||||
</span>
|
||||
</div>
|
||||
<strong className="profile-page__username">{displayName}</strong>
|
||||
{isBioEditing ? (
|
||||
<div className="profile-page__bio-editor">
|
||||
<textarea
|
||||
className="profile-page__bio"
|
||||
value={profileBio}
|
||||
onChange={(event) => setProfileBio(event.target.value)}
|
||||
onBlur={handleBioBlur}
|
||||
placeholder={displayedBio}
|
||||
placeholder="填写一句个人签名"
|
||||
rows={2}
|
||||
maxLength={80}
|
||||
autoFocus
|
||||
/>
|
||||
<div className="profile-page__bio-actions">
|
||||
<button type="button" className="profile-page__bio-action profile-page__bio-action--save" onClick={confirmBioEdit}>
|
||||
<CheckOutlined />
|
||||
保存
|
||||
</button>
|
||||
<button type="button" className="profile-page__bio-action" onClick={cancelBioEdit}>
|
||||
<CloseOutlined />
|
||||
取消
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<button
|
||||
type="button"
|
||||
className={`profile-page__bio-display${profileBio.trim() ? "" : " is-empty"}`}
|
||||
onClick={startBioEdit}
|
||||
>
|
||||
<span>{displayedBio}</span>
|
||||
<EditOutlined className="profile-page__bio-edit-icon" />
|
||||
</button>
|
||||
)}
|
||||
{bioStatusNotice ? <span className="profile-page__bio-status">{bioStatusNotice}</span> : null}
|
||||
{profileNotice ? <span className="profile-page__sync-notice">{profileNotice}</span> : null}
|
||||
</div>
|
||||
|
||||
@@ -692,18 +788,21 @@ function ProfilePage({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="button" className="profile-page__share-btn">
|
||||
<button type="button" className="profile-page__share-btn profile-page__share-btn--plan">
|
||||
<ShareAltOutlined />
|
||||
{packageLabel}
|
||||
</button>
|
||||
|
||||
<button type="button" className="profile-page__share-btn" onClick={onOpenWorkbench}>
|
||||
<button type="button" className="profile-page__share-btn profile-page__share-btn--primary" onClick={onOpenWorkbench}>
|
||||
<PlusOutlined />
|
||||
进入工作台
|
||||
</button>
|
||||
<button type="button" className="profile-page__share-btn" onClick={onOpenCommunity}>
|
||||
<button type="button" className="profile-page__share-btn profile-page__share-btn--secondary" onClick={onOpenCommunity}>
|
||||
<ShareAltOutlined />
|
||||
打开社区
|
||||
</button>
|
||||
<button type="button" className="profile-page__share-btn" onClick={onLogout}>
|
||||
<button type="button" className="profile-page__share-btn profile-page__share-btn--danger" onClick={onLogout}>
|
||||
<LockOutlined />
|
||||
退出登录
|
||||
</button>
|
||||
</aside>
|
||||
@@ -759,13 +858,25 @@ function ProfilePage({
|
||||
<div className="profile-page__upload-card profile-page__upload-card--meta">
|
||||
{accountPanel === "credits" ? (
|
||||
<>
|
||||
<span>当前账号:{displayName}</span>
|
||||
<span>积分剩余:{(usage.balanceCents / 100).toFixed(2)}</span>
|
||||
<span className="profile-page__meta-item">
|
||||
<small>当前账号</small>
|
||||
<strong>{displayName}</strong>
|
||||
</span>
|
||||
<span className="profile-page__meta-item">
|
||||
<small>积分剩余</small>
|
||||
<strong>{(usage.balanceCents / 100).toFixed(2)}</strong>
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<span>任务总数:{tasks.length}</span>
|
||||
<span>已完成:{completedTasks.length}</span>
|
||||
<span className="profile-page__meta-item">
|
||||
<small>任务总数</small>
|
||||
<strong>{tasks.length}</strong>
|
||||
</span>
|
||||
<span className="profile-page__meta-item">
|
||||
<small>已完成</small>
|
||||
<strong>{completedTasks.length}</strong>
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
@@ -784,13 +895,31 @@ function ProfilePage({
|
||||
<source src={AUTH_SHOWCASE_VIDEO_URL} type="video/mp4" />
|
||||
</video>
|
||||
<div className="auth-page__video-overlay">
|
||||
<div className="auth-page__showcase-content">
|
||||
<div className="auth-page__brand-row">
|
||||
<h1 className="auth-page__brand">OmniAI</h1>
|
||||
</div>
|
||||
<p className="auth-page__tagline">一句话,从创意到成片</p>
|
||||
<div className="auth-page__features">
|
||||
<span>AI 视频生成</span>
|
||||
<span>AI 图片创作</span>
|
||||
<span>AI 电商素材</span>
|
||||
</div>
|
||||
<div className="auth-page__showcase-stats" aria-label="平台能力">
|
||||
<span>
|
||||
<strong>Studio</strong>
|
||||
创作工作台
|
||||
</span>
|
||||
<span>
|
||||
<strong>Assets</strong>
|
||||
资产沉淀
|
||||
</span>
|
||||
<span>
|
||||
<strong>Team</strong>
|
||||
团队协作
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -840,7 +969,8 @@ function ProfilePage({
|
||||
<MailOutlined /> 邮箱
|
||||
</button>
|
||||
<button type="button" className={authTab === "phone" ? "is-active" : ""} onClick={() => { setAuthTab("phone"); setFieldErrors({}); }}>
|
||||
<MobileOutlined /> 手机验证码
|
||||
<MobileOutlined />
|
||||
<span className="auth-page__tab-label-short">手机</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -920,6 +1050,11 @@ function ProfilePage({
|
||||
autoComplete={mode === "login" ? "current-password" : "new-password"}
|
||||
/>
|
||||
{fieldErrors.password ? <span className="auth-page__field-error">{fieldErrors.password}</span> : null}
|
||||
{mode === "register" && passwordLooksReady && !fieldErrors.password ? (
|
||||
<span className="auth-page__field-hint">
|
||||
<CheckCircleFilled /> 密码长度符合要求
|
||||
</span>
|
||||
) : null}
|
||||
</label>
|
||||
{mode === "login" ? (
|
||||
<div className="auth-page__forgot">
|
||||
@@ -957,6 +1092,11 @@ function ProfilePage({
|
||||
autoComplete="email"
|
||||
/>
|
||||
{fieldErrors.email ? <span className="auth-page__field-error">{fieldErrors.email}</span> : null}
|
||||
{emailLooksValid && !fieldErrors.email ? (
|
||||
<span className="auth-page__field-hint">
|
||||
<CheckCircleFilled /> 邮箱格式正确
|
||||
</span>
|
||||
) : null}
|
||||
</label>
|
||||
<label className={`auth-page__field${fieldErrors.password ? " auth-page__field--error" : ""}`}>
|
||||
<span>
|
||||
@@ -971,6 +1111,11 @@ function ProfilePage({
|
||||
autoComplete={mode === "login" ? "current-password" : "new-password"}
|
||||
/>
|
||||
{fieldErrors.password ? <span className="auth-page__field-error">{fieldErrors.password}</span> : null}
|
||||
{mode === "register" && passwordLooksReady && !fieldErrors.password ? (
|
||||
<span className="auth-page__field-hint">
|
||||
<CheckCircleFilled /> 密码长度符合要求
|
||||
</span>
|
||||
) : null}
|
||||
</label>
|
||||
</>
|
||||
) : null}
|
||||
@@ -986,6 +1131,11 @@ function ProfilePage({
|
||||
<input type="tel" value={phone} onChange={(event) => { setPhone(event.target.value); clearFieldError("phone"); }} onBlur={() => handleFieldBlur("phone", phone)} placeholder="输入手机号" autoComplete="tel" />
|
||||
</div>
|
||||
{fieldErrors.phone ? <span className="auth-page__field-error">{fieldErrors.phone}</span> : null}
|
||||
{phoneLooksValid && !fieldErrors.phone ? (
|
||||
<span className="auth-page__field-hint">
|
||||
<CheckCircleFilled /> 手机号格式正确
|
||||
</span>
|
||||
) : null}
|
||||
</label>
|
||||
<label className={`auth-page__field${fieldErrors.smsCode ? " auth-page__field--error" : ""}`}>
|
||||
<span>
|
||||
@@ -1011,6 +1161,11 @@ function ProfilePage({
|
||||
</span>
|
||||
<input type="password" value={password} onChange={(event) => { setPassword(event.target.value); clearFieldError("password"); }} onBlur={() => handleFieldBlur("password", password)} placeholder="至少 6 位" autoComplete="new-password" />
|
||||
{fieldErrors.password ? <span className="auth-page__field-error">{fieldErrors.password}</span> : null}
|
||||
{passwordLooksReady && !fieldErrors.password ? (
|
||||
<span className="auth-page__field-hint">
|
||||
<CheckCircleFilled /> 密码长度符合要求
|
||||
</span>
|
||||
) : null}
|
||||
</label>
|
||||
) : null}
|
||||
</>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import {
|
||||
BarChartOutlined,
|
||||
CheckCircleFilled,
|
||||
CopyOutlined,
|
||||
DownloadOutlined,
|
||||
FileTextOutlined,
|
||||
LoadingOutlined,
|
||||
ThunderboltOutlined,
|
||||
UploadOutlined,
|
||||
} from "@ant-design/icons";
|
||||
import { useEffect, useRef, useState, type ChangeEvent, type KeyboardEvent } from "react";
|
||||
@@ -186,6 +189,50 @@ async function extractDocxText(bytes: Uint8Array): Promise<string> {
|
||||
const dataStart = pos + 30 + fileNameLen + extraLen;
|
||||
entries.push({ name, offset: dataStart, size: compressedSize, compressed });
|
||||
pos = dataStart + compressedSize;
|
||||
}
|
||||
const docEntry = entries.find((e) => e.name === "word/document.xml");
|
||||
if (!docEntry) return "";
|
||||
const xmlBytes = bytes.slice(docEntry.offset, docEntry.offset + docEntry.size);
|
||||
let xmlText: string;
|
||||
if (docEntry.compressed) {
|
||||
try {
|
||||
const ds = new DecompressionStream("deflate-raw");
|
||||
const writer = ds.writable.getWriter();
|
||||
writer.write(xmlBytes);
|
||||
writer.close();
|
||||
const reader = ds.readable.getReader();
|
||||
const chunks: Uint8Array[] = [];
|
||||
while (true) {
|
||||
const { done, value } = await reader.read();
|
||||
if (done) break;
|
||||
chunks.push(value);
|
||||
}
|
||||
const totalLen = chunks.reduce((s, c) => s + c.length, 0);
|
||||
const combined = new Uint8Array(totalLen);
|
||||
let offset = 0;
|
||||
for (const c of chunks) { combined.set(c, offset); offset += c.length; }
|
||||
xmlText = new TextDecoder().decode(combined);
|
||||
} catch {
|
||||
xmlText = new TextDecoder().decode(xmlBytes);
|
||||
}
|
||||
} else {
|
||||
xmlText = new TextDecoder().decode(xmlBytes);
|
||||
}
|
||||
const paraMatches = xmlText.match(/<w:p[ >][\s\S]*?<\/w:p>/g);
|
||||
if (paraMatches) {
|
||||
return paraMatches.map((p) => {
|
||||
const tMatches = p.match(/<w:t[^>]*>([\s\S]*?)<\/w:t>/g);
|
||||
if (!tMatches) return "";
|
||||
return tMatches.map((m) => m.replace(/<[^>]+>/g, "").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, "\"")).join("");
|
||||
}).filter(Boolean).join("\n").trim();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
function formatFileSize(size: number): string {
|
||||
if (size < 1024) return `${size} B`;
|
||||
if (size < 1024 * 1024) return `${(size / 1024).toFixed(1)} KB`;
|
||||
return `${(size / 1024 / 1024).toFixed(1)} MB`;
|
||||
}
|
||||
const docEntry = entries.find((e) => e.name === "word/document.xml");
|
||||
if (!docEntry) return "";
|
||||
@@ -233,6 +280,12 @@ async function extractDocxText(bytes: Uint8Array): Promise<string> {
|
||||
}).filter(Boolean).join("\n").trim();
|
||||
}
|
||||
return currentLine.trim();
|
||||
=======
|
||||
function formatFileSize(size: number): string {
|
||||
if (size < 1024) return `${size} B`;
|
||||
if (size < 1024 * 1024) return `${(size / 1024).toFixed(1)} KB`;
|
||||
return `${(size / 1024 / 1024).toFixed(1)} MB`;
|
||||
>>>>>>> origin/master
|
||||
}
|
||||
|
||||
const SCORE_DIMENSIONS: ScoreDimension[] = [
|
||||
@@ -446,9 +499,10 @@ function ScriptTokensPage() {
|
||||
const compactTitle = uploadedFile?.name?.replace(/\.[^.]+$/, "") ?? "剧本评测";
|
||||
const scriptMinutes = Math.max(8, Math.round(script.length / 460));
|
||||
const reportDate = new Date().toLocaleDateString("zh-CN", { month: "2-digit", day: "2-digit" });
|
||||
const statusClass = loading ? "is-loading" : result ? "is-complete" : hasContent ? "is-ready" : "is-idle";
|
||||
|
||||
return (
|
||||
<section className="script-eval-v5 page-motion">
|
||||
<section className={`script-eval-v5 page-motion ${statusClass}`}>
|
||||
<div className="script-eval-v5-page">
|
||||
{/* Left Panel */}
|
||||
<aside className="script-eval-v5-left">
|
||||
@@ -464,7 +518,10 @@ function ScriptTokensPage() {
|
||||
{uploadedFile ? (
|
||||
<div className="script-eval-v5-upload-done is-show">
|
||||
<CheckCircleFilled />
|
||||
<span className="script-eval-v5-uf-meta">
|
||||
<span className="script-eval-v5-uf-name">{uploadedFile.name}</span>
|
||||
<span className="script-eval-v5-uf-size">{formatFileSize(uploadedFile.size)}</span>
|
||||
</span>
|
||||
<span className="script-eval-v5-uf-re" onClick={(e) => { e.stopPropagation(); handleReset(); }}>
|
||||
重新上传
|
||||
</span>
|
||||
@@ -474,7 +531,7 @@ function ScriptTokensPage() {
|
||||
<div className="script-eval-v5-upload-icon"><UploadOutlined /></div>
|
||||
<div className="script-eval-v5-upload-text">拖拽或点击上传</div>
|
||||
<button type="button" className="script-eval-v5-upload-btn" onClick={(e) => { e.stopPropagation(); fileInputRef.current?.click(); }}>
|
||||
+ 上传剧本
|
||||
<UploadOutlined /> 选择剧本
|
||||
</button>
|
||||
<div className="script-eval-v5-upload-hint">{TEXT_FILE_HINT}</div>
|
||||
</>
|
||||
@@ -547,10 +604,12 @@ function ScriptTokensPage() {
|
||||
disabled={loading || !hasContent}
|
||||
onClick={() => void handleEvaluate()}
|
||||
>
|
||||
{loading ? "◆ 评测中..." : "◆ 开始评测"}
|
||||
{loading ? <LoadingOutlined /> : <ThunderboltOutlined />}
|
||||
<span>{loading ? "评测中..." : "开始评测"}</span>
|
||||
</button>
|
||||
<button type="button" className="script-eval-v5-export-btn" disabled={!result} onClick={handleExportMarkdown}>
|
||||
导出评测报告
|
||||
<DownloadOutlined />
|
||||
<span>导出评测报告</span>
|
||||
</button>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -584,6 +643,11 @@ function ScriptTokensPage() {
|
||||
<div className="page-loading-spinner" />
|
||||
<strong>AI 正在分析剧本...</strong>
|
||||
<p>正在调用模型进行六维评分,预计需要 15-30 秒</p>
|
||||
<div className="script-eval-v5-loading-steps" aria-hidden="true">
|
||||
<span>结构识别</span>
|
||||
<span>冲突评估</span>
|
||||
<span>商业潜力</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -670,13 +734,23 @@ function ScriptTokensPage() {
|
||||
<span>0%</span>
|
||||
</div>
|
||||
<div className="script-eval-report__chart-grid">
|
||||
{SCORE_DIMENSIONS.map((dim) => {
|
||||
{SCORE_DIMENSIONS.map((dim, dimIndex) => {
|
||||
const score = result.dimensionScores[dim.key] ?? 0;
|
||||
const pct = Math.max(0, Math.min(1, score / dim.maxScore));
|
||||
const lossPct = 1 - pct;
|
||||
const isPerfect = score === dim.maxScore;
|
||||
const isActive = activeDim === null || activeDim === dimIndex;
|
||||
return (
|
||||
<button key={dim.key} type="button" className="script-eval-report__bar-col">
|
||||
<button
|
||||
key={dim.key}
|
||||
type="button"
|
||||
className={`script-eval-report__bar-col${isActive ? "" : " is-dimmed"}`}
|
||||
onMouseEnter={() => setActiveDim(dimIndex)}
|
||||
onFocus={() => setActiveDim(dimIndex)}
|
||||
onMouseLeave={() => setActiveDim(null)}
|
||||
onBlur={() => setActiveDim(null)}
|
||||
aria-label={`${dim.label} ${score}/${dim.maxScore},${dim.hint}`}
|
||||
>
|
||||
<div className="script-eval-report__bar-score">
|
||||
<b>{score}</b><small>/{dim.maxScore}</small>{isPerfect ? <em>*</em> : null}
|
||||
</div>
|
||||
@@ -691,6 +765,14 @@ function ScriptTokensPage() {
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
<div className="script-eval-report__chart-note">
|
||||
<BarChartOutlined />
|
||||
<span>
|
||||
{activeDim === null
|
||||
? "悬停维度可查看当前分项表现,优先从低分项制定改稿计划。"
|
||||
: `${SCORE_DIMENSIONS[activeDim].label}:${SCORE_DIMENSIONS[activeDim].detail}`}
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div className="script-eval-report__findings">
|
||||
|
||||
@@ -142,6 +142,8 @@ function TokenUsagePage({
|
||||
onSelectView,
|
||||
}: TokenUsagePageProps) {
|
||||
const [enterpriseUsage, setEnterpriseUsage] = useState<WebEnterpriseUsageSummary | null>(null);
|
||||
const [enterpriseUsageLoading, setEnterpriseUsageLoading] = useState(false);
|
||||
const [enterpriseUsageError, setEnterpriseUsageError] = useState<string | null>(null);
|
||||
const isEnterpriseAdmin = session?.user.enterpriseRole === "admin";
|
||||
const isEnterpriseAccount = Boolean(session?.user.enterpriseId || session?.user.accountType === "enterprise");
|
||||
|
||||
@@ -152,10 +154,15 @@ function TokenUsagePage({
|
||||
setEnterpriseUsage(null);
|
||||
return;
|
||||
}
|
||||
setEnterpriseUsageLoading(true);
|
||||
setEnterpriseUsageError(null);
|
||||
try {
|
||||
setEnterpriseUsage(await loader());
|
||||
} catch (error) {
|
||||
setEnterpriseUsage(null);
|
||||
setEnterpriseUsageError(error instanceof Error ? error.message : "加载失败");
|
||||
} finally {
|
||||
setEnterpriseUsageLoading(false);
|
||||
}
|
||||
}, [session, isEnterpriseAdmin, loadEnterpriseUsage, loadPersonalUsage]);
|
||||
|
||||
@@ -222,22 +229,35 @@ function TokenUsagePage({
|
||||
{ label: "账户类型", value: isEnterpriseAccount ? "企业账户" : "个人账户", tone: "good" },
|
||||
{ label: "企业空间", value: enterpriseUsage?.enterpriseName || session?.user.enterpriseName || "-" },
|
||||
];
|
||||
const pageStatusClass = enterpriseUsageLoading
|
||||
? "is-syncing"
|
||||
: enterpriseUsageError
|
||||
? "has-sync-error"
|
||||
: isLowBalance
|
||||
? "has-low-balance"
|
||||
: "is-healthy";
|
||||
|
||||
return (
|
||||
<section className="script-token-page token-usage-page management-center-page" aria-label="管理中心">
|
||||
<section className={`script-token-page token-usage-page management-center-page ${pageStatusClass}`} aria-label="管理中心">
|
||||
<main className="management-center-shell">
|
||||
<header className="management-center-toolbar" aria-label="管理中心操作">
|
||||
<div className="management-center-toolbar__title">
|
||||
<button type="button" className="management-center-toolbar__back" aria-label="返回工具盒" onClick={onOpenMore}>
|
||||
<ArrowLeftOutlined />
|
||||
</button>
|
||||
<span>
|
||||
<strong>管理中心</strong>
|
||||
<small>用量、成员与模型调用监控</small>
|
||||
</span>
|
||||
</div>
|
||||
<button type="button" onClick={refreshEnterpriseUsage}>
|
||||
<span className={`management-center-status-pill ${enterpriseUsageError ? "is-error" : enterpriseUsageLoading ? "is-loading" : "is-online"}`}>
|
||||
{enterpriseUsageLoading ? "正在同步企业用量" : enterpriseUsageError || "服务器已连接"}
|
||||
</span>
|
||||
<button type="button" onClick={refreshEnterpriseUsage} disabled={enterpriseUsageLoading}>
|
||||
<ReloadOutlined />
|
||||
刷新数据
|
||||
</button>
|
||||
<button type="button">
|
||||
<button type="button" className="is-muted-action">
|
||||
<UserOutlined />
|
||||
成员管理
|
||||
</button>
|
||||
@@ -251,8 +271,9 @@ function TokenUsagePage({
|
||||
) : null}
|
||||
|
||||
<section className="management-metric-cards" aria-label="关键指标">
|
||||
{metricCards.map((card) => (
|
||||
{metricCards.map((card, index) => (
|
||||
<article key={card.key} className={`management-metric-card is-${card.tone}`}>
|
||||
<span className="management-metric-card__index">{String(index + 1).padStart(2, "0")}</span>
|
||||
<span className="management-metric-card__label">{card.label}</span>
|
||||
<strong className="management-metric-card__value">{card.value}</strong>
|
||||
<span className="management-metric-card__hint">{card.hint}</span>
|
||||
@@ -267,7 +288,7 @@ function TokenUsagePage({
|
||||
<BarChartOutlined />
|
||||
模型消耗分布
|
||||
</h2>
|
||||
<span>{modelBreakdown.length ? `${modelBreakdown.length} 个模型` : "LIVE"}</span>
|
||||
<span>{enterpriseUsageLoading ? "SYNC" : modelBreakdown.length ? `${modelBreakdown.length} 个模型` : "LIVE"}</span>
|
||||
</div>
|
||||
{modelBreakdown.length ? (
|
||||
<div className="management-model-list">
|
||||
@@ -294,7 +315,10 @@ function TokenUsagePage({
|
||||
|
||||
<article className="management-card management-status-card">
|
||||
<div className="management-card__head">
|
||||
<h2>系统状态</h2>
|
||||
<h2>
|
||||
<LineChartOutlined />
|
||||
系统状态
|
||||
</h2>
|
||||
</div>
|
||||
<dl>
|
||||
{systemStatus.map((item) => (
|
||||
@@ -348,7 +372,10 @@ function TokenUsagePage({
|
||||
|
||||
<section className="management-card management-records">
|
||||
<div className="management-card__head">
|
||||
<h2>调用记录</h2>
|
||||
<h2>
|
||||
<BarChartOutlined />
|
||||
调用记录
|
||||
</h2>
|
||||
<span>{records.length} 条记录</span>
|
||||
</div>
|
||||
<div className="management-record-table" role="table" aria-label="调用记录">
|
||||
|
||||
@@ -237,6 +237,7 @@ function WorkbenchPage({
|
||||
const keepaliveTasksRef = useRef<Record<string, WorkbenchKeepaliveTask>>(readStoredKeepaliveTasks());
|
||||
const taskAbortControllersRef = useRef<Map<string, AbortController>>(new Map());
|
||||
const lastScrollTopRef = useRef(0);
|
||||
const scrollActionsHideTimerRef = useRef<number | null>(null);
|
||||
const shouldFollowNewMessagesRef = useRef(true);
|
||||
const pendingScrollToLatestRef = useRef(true);
|
||||
const genTracker = useGenerationTasks({ sourceView: "workbench" });
|
||||
@@ -275,6 +276,8 @@ function WorkbenchPage({
|
||||
const [promptSelectionRange, setPromptSelectionRange] = useState({ start: 0, end: 0 });
|
||||
const [mentionActiveIndex, setMentionActiveIndex] = useState(0);
|
||||
const [composerHidden, setComposerHidden] = useState(false);
|
||||
const [scrollActionsVisible, setScrollActionsVisible] = useState(false);
|
||||
const [scrollActionDirection, setScrollActionDirection] = useState<"top" | "bottom" | null>(null);
|
||||
const [workspaceStarted, setWorkspaceStarted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -443,6 +446,27 @@ function WorkbenchPage({
|
||||
"--accent-glow": `0 0 24px rgba(${accentRgb}, 0.22)`,
|
||||
} as CSSProperties;
|
||||
|
||||
const revealScrollActionsTemporarily = useCallback((direction: "top" | "bottom") => {
|
||||
setScrollActionDirection(direction);
|
||||
setScrollActionsVisible(true);
|
||||
if (scrollActionsHideTimerRef.current !== null) {
|
||||
window.clearTimeout(scrollActionsHideTimerRef.current);
|
||||
}
|
||||
scrollActionsHideTimerRef.current = window.setTimeout(() => {
|
||||
setScrollActionsVisible(false);
|
||||
setScrollActionDirection(null);
|
||||
scrollActionsHideTimerRef.current = null;
|
||||
}, 950);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
if (scrollActionsHideTimerRef.current !== null) {
|
||||
window.clearTimeout(scrollActionsHideTimerRef.current);
|
||||
}
|
||||
};
|
||||
}, []);
|
||||
|
||||
const scrollMessagesToLatest = useCallback((behavior: ScrollBehavior = "smooth") => {
|
||||
const scroll = () => {
|
||||
const surface = messagesSurfaceRef.current;
|
||||
@@ -453,6 +477,7 @@ function WorkbenchPage({
|
||||
|
||||
setComposerHidden(false);
|
||||
shouldFollowNewMessagesRef.current = true;
|
||||
revealScrollActionsTemporarily("bottom");
|
||||
surface.scrollTo({ top: surface.scrollHeight, behavior });
|
||||
lastScrollTopRef.current = surface.scrollTop;
|
||||
};
|
||||
@@ -461,7 +486,7 @@ function WorkbenchPage({
|
||||
scroll();
|
||||
window.setTimeout(scroll, 80);
|
||||
});
|
||||
}, []);
|
||||
}, [revealScrollActionsTemporarily]);
|
||||
|
||||
const imageSettingGroups = useMemo<WorkbenchFieldGroup[]>(
|
||||
() => [
|
||||
@@ -1375,6 +1400,9 @@ function WorkbenchPage({
|
||||
const delta = top - lastScrollTopRef.current;
|
||||
const atTop = top <= edgeThreshold;
|
||||
const atBottom = top + surface.clientHeight >= surface.scrollHeight - edgeThreshold;
|
||||
if (surface.scrollHeight > surface.clientHeight + edgeThreshold && Math.abs(delta) > 1) {
|
||||
revealScrollActionsTemporarily(delta > 0 ? "bottom" : "top");
|
||||
}
|
||||
shouldFollowNewMessagesRef.current = atBottom;
|
||||
if (atTop || atBottom) {
|
||||
setComposerHidden(false);
|
||||
@@ -1386,7 +1414,7 @@ function WorkbenchPage({
|
||||
|
||||
surface.addEventListener("scroll", handleScroll, { passive: true });
|
||||
return () => surface.removeEventListener("scroll", handleScroll);
|
||||
}, [hasActivatedWorkspace]);
|
||||
}, [hasActivatedWorkspace, revealScrollActionsTemporarily]);
|
||||
|
||||
const scrollMessagesSurface = useCallback((direction: "top" | "bottom") => {
|
||||
const surface = messagesSurfaceRef.current;
|
||||
@@ -1394,8 +1422,9 @@ function WorkbenchPage({
|
||||
|
||||
const top = direction === "top" ? 0 : surface.scrollHeight;
|
||||
setComposerHidden(false);
|
||||
revealScrollActionsTemporarily(direction);
|
||||
surface.scrollTo({ top, behavior: "smooth" });
|
||||
}, []);
|
||||
}, [revealScrollActionsTemporarily]);
|
||||
|
||||
const closeToolbarMenus = () => setToolbarMenuId(null);
|
||||
const toggleToolbarMenu = (menuId: Exclude<ToolbarMenuId, null>) => {
|
||||
@@ -3026,10 +3055,13 @@ function WorkbenchPage({
|
||||
{renderComposerToolbar(false, isGenerating)}
|
||||
</div>
|
||||
</section>
|
||||
<div className="wb-chat-scroll-actions" aria-label="聊天滚动">
|
||||
<div
|
||||
className={`wb-chat-scroll-actions${scrollActionsVisible ? " is-visible" : ""}${scrollActionDirection ? ` is-${scrollActionDirection}` : ""}`}
|
||||
aria-label="聊天滚动"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
className="wb-chat-scroll-actions__button"
|
||||
className="wb-chat-scroll-actions__button wb-chat-scroll-actions__button--top"
|
||||
title="返回聊天顶部"
|
||||
aria-label="返回聊天顶部"
|
||||
onClick={() => scrollMessagesSurface("top")}
|
||||
@@ -3038,7 +3070,7 @@ function WorkbenchPage({
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="wb-chat-scroll-actions__button"
|
||||
className="wb-chat-scroll-actions__button wb-chat-scroll-actions__button--bottom"
|
||||
title="到达聊天底部"
|
||||
aria-label="到达聊天底部"
|
||||
onClick={() => scrollMessagesSurface("bottom")}
|
||||
|
||||
@@ -7981,3 +7981,863 @@
|
||||
font-size: 12px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Ecommerce generation page SaaS polish: visual-only refinement for the product creation workspace. */
|
||||
.product-clone-page {
|
||||
--ecm-page: #0e1012;
|
||||
--ecm-panel: rgba(20, 23, 25, 0.96);
|
||||
--ecm-panel-strong: rgba(24, 28, 30, 0.98);
|
||||
--ecm-inset: rgba(255, 255, 255, 0.035);
|
||||
--ecm-inset-hover: rgba(255, 255, 255, 0.06);
|
||||
--ecm-line: rgba(255, 255, 255, 0.095);
|
||||
--ecm-line-strong: rgba(255, 255, 255, 0.14);
|
||||
--ecm-text: #eef4f0;
|
||||
--ecm-muted: rgba(232, 240, 235, 0.62);
|
||||
--ecm-soft: rgba(232, 240, 235, 0.42);
|
||||
--ecm-accent: var(--accent, #00ff88);
|
||||
--ecm-accent-rgb: var(--accent-rgb, 0, 255, 136);
|
||||
--ecm-radius-sm: 10px;
|
||||
--ecm-radius-md: 14px;
|
||||
--ecm-radius-lg: 18px;
|
||||
--ecm-shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.2);
|
||||
--ecm-shadow-panel: 0 18px 54px rgba(0, 0, 0, 0.28);
|
||||
background:
|
||||
radial-gradient(circle at 26% 0%, rgba(var(--ecm-accent-rgb), 0.055), transparent 34%),
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 150px),
|
||||
var(--ecm-page);
|
||||
color: var(--ecm-text);
|
||||
font-family: var(--font-sans, Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif);
|
||||
}
|
||||
|
||||
.product-clone-page > .product-clone-shell {
|
||||
background:
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 22%, transparent 76%, rgba(255, 255, 255, 0.014)),
|
||||
transparent;
|
||||
}
|
||||
|
||||
.product-clone-page :is(button, select, textarea, input) {
|
||||
font-family: inherit;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.product-clone-page :is(button, select, textarea):focus-visible {
|
||||
outline: 2px solid rgba(var(--ecm-accent-rgb), 0.48);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.product-clone-page :is(button, select, textarea):disabled {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] {
|
||||
--clone-settings-panel-width: clamp(420px, 36vw, 540px);
|
||||
background:
|
||||
radial-gradient(circle at 72% 12%, rgba(var(--ecm-accent-rgb), 0.045), transparent 31%),
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 180px),
|
||||
var(--ecm-page);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] > .product-clone-shell,
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .product-clone-panel {
|
||||
border-right-color: var(--ecm-line);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 150px),
|
||||
var(--ecm-panel);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-panel {
|
||||
gap: 12px;
|
||||
padding: 18px;
|
||||
scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-logo {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
margin: -18px -18px 2px;
|
||||
padding: 16px 18px 14px;
|
||||
border-bottom-color: var(--ecm-line);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(21, 24, 26, 0.98), rgba(21, 24, 26, 0.9));
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-logo__mark {
|
||||
border-radius: 9px;
|
||||
box-shadow: 0 0 0 1px rgba(var(--ecm-accent-rgb), 0.18), 0 10px 24px rgba(var(--ecm-accent-rgb), 0.14);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-logo strong {
|
||||
font-size: 15px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-logo em {
|
||||
border-color: var(--ecm-line);
|
||||
background: var(--ecm-inset);
|
||||
color: var(--ecm-muted);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-card,
|
||||
.clone-ai-platform-spec,
|
||||
.clone-ai-count-panel,
|
||||
.clone-ai-replicate-panel,
|
||||
.clone-ai-module-panel,
|
||||
.clone-ai-model-panel,
|
||||
.clone-ai-video-panel
|
||||
) {
|
||||
border-color: var(--ecm-line);
|
||||
border-radius: var(--ecm-radius-md);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%),
|
||||
var(--ecm-panel-strong);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-card {
|
||||
padding: 13px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-card h2 {
|
||||
margin-bottom: 10px;
|
||||
color: var(--ecm-muted);
|
||||
font-size: 11px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-upload-zone {
|
||||
min-height: 140px;
|
||||
border-color: rgba(255, 255, 255, 0.16);
|
||||
border-radius: var(--ecm-radius-md);
|
||||
background:
|
||||
radial-gradient(circle at 50% 0%, rgba(var(--ecm-accent-rgb), 0.09), transparent 58%),
|
||||
var(--ecm-inset);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-upload-zone:hover,
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-upload-zone.is-dragging {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.55);
|
||||
background:
|
||||
radial-gradient(circle at 50% 0%, rgba(var(--ecm-accent-rgb), 0.14), transparent 60%),
|
||||
rgba(var(--ecm-accent-rgb), 0.055);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-upload-icon {
|
||||
background: rgba(var(--ecm-accent-rgb), 0.09);
|
||||
color: var(--ecm-accent);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-tag-group button,
|
||||
.clone-ai-basic-select > button,
|
||||
.clone-ai-basic-select__menu,
|
||||
.clone-ai-basic-select__menu button,
|
||||
.clone-ai-replicate-tabs button,
|
||||
.clone-ai-replicate-upload,
|
||||
.clone-ai-replicate-levels button,
|
||||
.clone-ai-count-row,
|
||||
.clone-ai-count-stepper button,
|
||||
.clone-ai-module-list button,
|
||||
.clone-ai-model-tabs button,
|
||||
.clone-ai-model-scene-grid button,
|
||||
.clone-ai-model-select,
|
||||
.clone-ai-model-select > button,
|
||||
.clone-ai-model-select__menu,
|
||||
.clone-ai-model-select__menu button,
|
||||
.clone-ai-video-options button,
|
||||
.clone-ai-video-smart
|
||||
) {
|
||||
border-color: var(--ecm-line);
|
||||
background: var(--ecm-inset);
|
||||
color: var(--ecm-muted);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-tag-group button:hover,
|
||||
.clone-ai-basic-select > button:hover,
|
||||
.clone-ai-basic-select > button.is-open,
|
||||
.clone-ai-basic-select__menu button:hover,
|
||||
.clone-ai-replicate-tabs button:hover,
|
||||
.clone-ai-replicate-upload:hover,
|
||||
.clone-ai-replicate-levels button:hover,
|
||||
.clone-ai-count-stepper button:hover:not(:disabled),
|
||||
.clone-ai-module-list button:hover,
|
||||
.clone-ai-model-tabs button:hover,
|
||||
.clone-ai-model-scene-grid button:hover,
|
||||
.clone-ai-model-select > button:hover,
|
||||
.clone-ai-model-select > button.is-open,
|
||||
.clone-ai-model-select__menu button:hover,
|
||||
.clone-ai-video-options button:hover,
|
||||
.clone-ai-video-smart:hover
|
||||
) {
|
||||
border-color: var(--ecm-line-strong);
|
||||
background: var(--ecm-inset-hover);
|
||||
color: var(--ecm-text);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-tag-group button.is-active,
|
||||
.clone-ai-basic-select__menu button.is-active,
|
||||
.clone-ai-replicate-tabs button.is-active,
|
||||
.clone-ai-replicate-levels button.is-active,
|
||||
.clone-ai-module-list button.is-active,
|
||||
.clone-ai-model-tabs button.is-active,
|
||||
.clone-ai-model-scene-grid button.is-active,
|
||||
.clone-ai-model-select__menu button.is-active,
|
||||
.clone-ai-video-options button.is-active,
|
||||
.clone-ai-video-smart.is-on
|
||||
) {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.48);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(var(--ecm-accent-rgb), 0.16), rgba(var(--ecm-accent-rgb), 0.07));
|
||||
color: var(--ecm-accent);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(.clone-ai-generate, .clone-ai-send-button, .clone-ai-upload-zone strong) {
|
||||
background: var(--ecm-accent);
|
||||
color: var(--dg-button-text, #061014);
|
||||
box-shadow: 0 10px 28px rgba(var(--ecm-accent-rgb), 0.18);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(.clone-ai-generate:hover:not(:disabled), .clone-ai-send-button:hover:not(:disabled)) {
|
||||
filter: brightness(1.03);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(.clone-ai-generate:disabled, .clone-ai-send-button:disabled) {
|
||||
border-color: var(--ecm-line);
|
||||
background: var(--ecm-inset);
|
||||
color: var(--ecm-soft);
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle {
|
||||
border-color: var(--ecm-line-strong);
|
||||
background: rgba(20, 23, 25, 0.86);
|
||||
color: var(--ecm-muted);
|
||||
box-shadow: var(--ecm-shadow-soft);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:hover,
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:focus-visible {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.5);
|
||||
background: rgba(var(--ecm-accent-rgb), 0.09);
|
||||
color: var(--ecm-accent);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
align-content: center;
|
||||
gap: 20px;
|
||||
padding: 90px clamp(22px, 4vw, 46px) 134px;
|
||||
background:
|
||||
radial-gradient(circle at 50% 42%, rgba(var(--ecm-accent-rgb), 0.035), transparent 38%),
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 160px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
|
||||
top: 28px;
|
||||
right: clamp(22px, 4vw, 46px);
|
||||
left: clamp(22px, 4vw, 46px);
|
||||
max-width: none;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.055);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-header strong {
|
||||
font-size: clamp(18px, 1.6vw, 22px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-header span {
|
||||
max-width: 620px;
|
||||
color: var(--ecm-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-empty-state {
|
||||
width: min(100%, 580px);
|
||||
min-height: 260px;
|
||||
padding: 28px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.055);
|
||||
border-radius: 22px;
|
||||
background: rgba(255, 255, 255, 0.014);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-empty-state .anticon {
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
border-color: var(--ecm-line);
|
||||
background:
|
||||
radial-gradient(circle at 50% 16%, rgba(var(--ecm-accent-rgb), 0.12), transparent 62%),
|
||||
var(--ecm-panel-strong);
|
||||
color: rgba(var(--ecm-accent-rgb), 0.46);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(.clone-ai-main-result, .clone-ai-result-grid button) {
|
||||
border-color: var(--ecm-line);
|
||||
background: var(--ecm-panel-strong);
|
||||
box-shadow: var(--ecm-shadow-soft);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(.clone-ai-main-result:hover, .clone-ai-result-grid button:hover) {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.38);
|
||||
box-shadow: var(--ecm-shadow-panel);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
|
||||
right: clamp(18px, 4vw, 46px);
|
||||
bottom: 20px;
|
||||
left: clamp(18px, 4vw, 46px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper {
|
||||
border-color: var(--ecm-line);
|
||||
border-radius: 18px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
|
||||
rgba(20, 24, 23, 0.92);
|
||||
box-shadow: var(--ecm-shadow-panel);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper:focus-within {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.42);
|
||||
box-shadow:
|
||||
0 20px 58px rgba(0, 0, 0, 0.34),
|
||||
0 0 0 1px rgba(var(--ecm-accent-rgb), 0.08);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper textarea {
|
||||
color: var(--ecm-text);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-char-count {
|
||||
color: var(--ecm-soft);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) {
|
||||
background: var(--ecm-page);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-panel,
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-rail {
|
||||
border-color: var(--ecm-line);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 160px),
|
||||
var(--ecm-panel);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="detail"], [data-tool="wear"]) .product-clone-rail button {
|
||||
border-radius: var(--ecm-radius-sm);
|
||||
color: var(--ecm-muted);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="detail"], [data-tool="wear"]) .product-clone-rail button:hover,
|
||||
.product-clone-page:is([data-tool="detail"], [data-tool="wear"]) .product-clone-rail button.is-active {
|
||||
background: rgba(var(--ecm-accent-rgb), 0.1);
|
||||
color: var(--ecm-accent);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-clone-field,
|
||||
.product-set-upload-section,
|
||||
.product-set-settings-section,
|
||||
.product-set-detail-section
|
||||
) {
|
||||
border-color: var(--ecm-line);
|
||||
border-radius: var(--ecm-radius-lg);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 54%),
|
||||
var(--ecm-panel-strong);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-clone-field h2,
|
||||
.product-set-upload-section h2,
|
||||
.product-set-settings-section h2,
|
||||
.product-set-detail-section h2
|
||||
) {
|
||||
color: var(--ecm-text);
|
||||
font-size: 15px;
|
||||
font-weight: 820;
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
select,
|
||||
textarea,
|
||||
.product-clone-upload-zone,
|
||||
.product-set-upload,
|
||||
.product-set-output-grid button,
|
||||
.product-set-structure-grid button,
|
||||
.product-detail-module-grid button,
|
||||
.product-clone-scene-grid button,
|
||||
.product-clone-ratio-row button,
|
||||
.product-clone-segment button,
|
||||
.product-clone-model-button,
|
||||
.product-clone-switch-row,
|
||||
.product-set-style-toggle
|
||||
) {
|
||||
border-color: var(--ecm-line);
|
||||
border-radius: var(--ecm-radius-sm);
|
||||
background: var(--ecm-inset);
|
||||
color: var(--ecm-muted);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
select:hover,
|
||||
textarea:hover,
|
||||
.product-clone-upload-zone:hover,
|
||||
.product-set-upload:hover,
|
||||
.product-set-output-grid button:hover,
|
||||
.product-set-structure-grid button:hover,
|
||||
.product-detail-module-grid button:hover,
|
||||
.product-clone-scene-grid button:hover,
|
||||
.product-clone-ratio-row button:hover,
|
||||
.product-clone-segment button:hover,
|
||||
.product-clone-model-button:hover,
|
||||
.product-clone-switch-row:hover,
|
||||
.product-set-style-toggle:hover
|
||||
) {
|
||||
border-color: var(--ecm-line-strong);
|
||||
background: var(--ecm-inset-hover);
|
||||
color: var(--ecm-text);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-set-output-grid button.is-active,
|
||||
.product-set-structure-grid button.is-active,
|
||||
.product-detail-module-grid button.is-active,
|
||||
.product-clone-scene-grid button.is-active,
|
||||
.product-clone-ratio-row button.is-active,
|
||||
.product-clone-segment button.is-active,
|
||||
.product-set-style-toggle.is-active
|
||||
) {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.48);
|
||||
background: rgba(var(--ecm-accent-rgb), 0.12);
|
||||
color: var(--ecm-accent);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(.product-clone-primary, .product-set-floating-submit) {
|
||||
border: 0;
|
||||
background: var(--ecm-accent);
|
||||
color: var(--dg-button-text, #061014);
|
||||
box-shadow: 0 12px 30px rgba(var(--ecm-accent-rgb), 0.18);
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(.product-clone-primary, .product-set-floating-submit):disabled {
|
||||
background: var(--ecm-inset);
|
||||
color: var(--ecm-soft);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-preview {
|
||||
background:
|
||||
radial-gradient(circle at 50% 40%, rgba(var(--ecm-accent-rgb), 0.032), transparent 40%),
|
||||
transparent;
|
||||
}
|
||||
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-set-empty-preview,
|
||||
.product-clone-empty-panel
|
||||
) {
|
||||
border-color: rgba(255, 255, 255, 0.055);
|
||||
border-radius: 22px;
|
||||
background: rgba(255, 255, 255, 0.014);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="set"] .product-set-floating-detail {
|
||||
border-color: var(--ecm-line);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
|
||||
rgba(20, 24, 23, 0.92);
|
||||
box-shadow: var(--ecm-shadow-panel);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.ecommerce-progress-bar {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.22);
|
||||
background: rgba(var(--ecm-accent-rgb), 0.07);
|
||||
}
|
||||
|
||||
.ecommerce-progress-bar__fill {
|
||||
box-shadow: 0 0 18px rgba(var(--ecm-accent-rgb), 0.36);
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.product-clone-page[data-tool="clone"] {
|
||||
--clone-settings-panel-width: clamp(390px, 45vw, 440px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
padding-right: 28px;
|
||||
padding-left: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.product-clone-page[data-tool="clone"] {
|
||||
height: auto;
|
||||
min-height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] > .product-clone-shell,
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto minmax(620px, 1fr);
|
||||
height: auto;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
|
||||
grid-template-rows: 0 minmax(620px, 1fr);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .product-clone-panel {
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--ecm-line);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-panel {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle,
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-settings-toggle {
|
||||
top: 14px;
|
||||
right: 14px;
|
||||
left: auto;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-settings-toggle:active {
|
||||
transform: scale(0.94);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
min-height: 620px;
|
||||
padding: 92px 18px 134px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
|
||||
top: 24px;
|
||||
right: 18px;
|
||||
left: 18px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-showcase {
|
||||
grid-template-columns: 1fr;
|
||||
width: min(100%, 520px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-flow-arrow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-main-result {
|
||||
height: 260px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) .product-clone-panel__scroll,
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-panel {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-logo {
|
||||
margin: -14px -14px 0;
|
||||
padding: 14px 54px 12px 14px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-card,
|
||||
.product-clone-page[data-tool="clone"] :is(.clone-ai-platform-spec, .clone-ai-count-panel, .clone-ai-replicate-panel, .clone-ai-module-panel, .clone-ai-model-panel, .clone-ai-video-panel) {
|
||||
padding: 11px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-upload-zone {
|
||||
min-height: 120px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-tag-group,
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-basic-select-grid,
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-model-select-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
min-height: 560px;
|
||||
padding: 86px 12px 128px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-empty-state {
|
||||
min-height: 220px;
|
||||
padding: 22px 16px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
|
||||
right: 10px;
|
||||
bottom: 12px;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-input-wrapper {
|
||||
grid-template-columns: minmax(0, 1fr) 36px;
|
||||
gap: 8px;
|
||||
padding: 10px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-send-button {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.product-clone-page {
|
||||
box-sizing: border-box;
|
||||
padding-top: 58px;
|
||||
}
|
||||
|
||||
.product-clone-page > .product-clone-shell {
|
||||
min-height: calc(100% - 58px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.product-clone-page {
|
||||
padding-top: 56px;
|
||||
}
|
||||
|
||||
.product-clone-page > .product-clone-shell {
|
||||
min-height: calc(100% - 56px);
|
||||
}
|
||||
}
|
||||
|
||||
/* Ecommerce refinement pass: make the preview state more informative and selected controls quieter. */
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
padding-top: 138px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
max-width: min(100%, 720px);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-summary span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
max-width: 180px;
|
||||
min-height: 26px;
|
||||
padding: 0 10px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, 0.095);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
color: rgba(232, 240, 235, 0.68);
|
||||
font-size: 11px;
|
||||
font-weight: 780;
|
||||
line-height: 1;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-summary span:first-child {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.28);
|
||||
background: rgba(var(--ecm-accent-rgb), 0.08);
|
||||
color: var(--ecm-accent);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-module-list button,
|
||||
.clone-ai-model-scene-grid button,
|
||||
.clone-ai-replicate-levels button,
|
||||
.clone-ai-video-options button
|
||||
),
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-set-structure-grid button,
|
||||
.product-detail-module-grid button,
|
||||
.product-clone-scene-grid button,
|
||||
.product-clone-ratio-row button
|
||||
) {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-module-list button.is-active,
|
||||
.clone-ai-model-scene-grid button.is-active,
|
||||
.clone-ai-replicate-levels button.is-active,
|
||||
.clone-ai-video-options button.is-active
|
||||
),
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-set-structure-grid button.is-active,
|
||||
.product-detail-module-grid button.is-active,
|
||||
.product-clone-scene-grid button.is-active,
|
||||
.product-clone-ratio-row button.is-active
|
||||
) {
|
||||
border-color: rgba(var(--ecm-accent-rgb), 0.5);
|
||||
background:
|
||||
linear-gradient(90deg, rgba(var(--ecm-accent-rgb), 0.13), rgba(var(--ecm-accent-rgb), 0.035)),
|
||||
rgba(255, 255, 255, 0.035);
|
||||
color: var(--ecm-text);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] :is(
|
||||
.clone-ai-module-list button.is-active,
|
||||
.clone-ai-model-scene-grid button.is-active,
|
||||
.clone-ai-replicate-levels button.is-active,
|
||||
.clone-ai-video-options button.is-active
|
||||
)::before,
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-set-structure-grid button.is-active,
|
||||
.product-detail-module-grid button.is-active,
|
||||
.product-clone-scene-grid button.is-active,
|
||||
.product-clone-ratio-row button.is-active
|
||||
)::before {
|
||||
position: absolute;
|
||||
inset: 8px auto 8px 0;
|
||||
width: 3px;
|
||||
border-radius: 999px;
|
||||
background: var(--ecm-accent);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-module-list button.is-active span,
|
||||
.product-clone-page:is([data-tool="set"], [data-tool="detail"], [data-tool="wear"]) :is(
|
||||
.product-set-structure-grid button.is-active em,
|
||||
.product-detail-module-grid button.is-active span
|
||||
) {
|
||||
color: rgba(232, 240, 235, 0.62);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
padding-top: 148px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
padding-top: 158px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-summary {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-summary span {
|
||||
max-width: 138px;
|
||||
min-height: 24px;
|
||||
padding: 0 8px;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 760px) {
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-preview {
|
||||
grid-template-rows: auto minmax(220px, 1fr) auto;
|
||||
align-content: stretch;
|
||||
justify-items: stretch;
|
||||
overflow: auto;
|
||||
padding-top: clamp(28px, 7vh, 72px);
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-preview-header {
|
||||
position: static;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-empty-state {
|
||||
align-self: center;
|
||||
justify-self: center;
|
||||
min-height: min(260px, 36vh);
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"].is-settings-collapsed .clone-ai-bottom-input {
|
||||
position: static;
|
||||
width: min(100%, 780px);
|
||||
align-self: end;
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
grid-template-rows: auto minmax(220px, 1fr) auto;
|
||||
align-content: stretch;
|
||||
justify-items: stretch;
|
||||
overflow: auto;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview-header {
|
||||
position: static;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-empty-state {
|
||||
align-self: center;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-bottom-input {
|
||||
position: static;
|
||||
width: min(100%, 780px);
|
||||
align-self: end;
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
grid-template-rows: auto minmax(210px, 1fr) auto;
|
||||
gap: 16px;
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-empty-state {
|
||||
min-height: min(220px, 34vh);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile preview rhythm: once the preview header is in normal flow, remove the desktop top reserve. */
|
||||
@media (max-width: 860px) {
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
min-height: 520px;
|
||||
padding-top: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.product-clone-page[data-tool="clone"] .clone-ai-preview {
|
||||
min-height: 440px;
|
||||
padding-top: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+62
-16
@@ -148,37 +148,83 @@
|
||||
min-width: 0;
|
||||
min-height: 72px;
|
||||
padding: 0 28px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: 8px;
|
||||
background: var(--bg-inset);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(180deg, rgba(20, 23, 26, 0.72) 0%, rgba(15, 17, 19, 0.84) 100%);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.04) inset,
|
||||
0 2px 8px rgba(0, 0, 0, 0.28);
|
||||
color: var(--fg-body);
|
||||
cursor: pointer;
|
||||
font-size: 17px;
|
||||
font-weight: 850;
|
||||
transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
transition:
|
||||
border-color 240ms ease,
|
||||
background 240ms ease,
|
||||
color 240ms ease,
|
||||
transform 240ms cubic-bezier(0.34, 1.2, 0.64, 1),
|
||||
box-shadow 240ms ease;
|
||||
}
|
||||
|
||||
.omni-home__entry .anticon {
|
||||
font-size: 18px;
|
||||
font-size: 19px;
|
||||
transition: color 240ms ease, transform 240ms ease;
|
||||
}
|
||||
|
||||
.omni-home__entry:hover {
|
||||
border-color: var(--border-default);
|
||||
background: var(--bg-hover);
|
||||
border-color: rgba(255, 255, 255, 0.16);
|
||||
background: linear-gradient(180deg, rgba(28, 32, 36, 0.78) 0%, rgba(18, 22, 25, 0.88) 100%);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.06) inset,
|
||||
0 0 24px rgba(var(--accent-rgb), 0.06),
|
||||
0 4px 16px rgba(0, 0, 0, 0.36);
|
||||
color: #ffffff;
|
||||
transform: translateY(-1px);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.omni-home__entry:hover .anticon {
|
||||
color: var(--accent);
|
||||
transform: scale(1.08);
|
||||
}
|
||||
|
||||
.omni-home__entry:active {
|
||||
transform: translateY(0) scale(0.97);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.02) inset,
|
||||
0 1px 4px rgba(0, 0, 0, 0.32);
|
||||
transition-duration: 80ms;
|
||||
}
|
||||
|
||||
.omni-home__entry--primary {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: var(--dg-button-text, #061014);
|
||||
border-color: rgba(var(--accent-rgb), 0.48);
|
||||
background: linear-gradient(180deg, rgba(0, 255, 136, 0.22) 0%, rgba(0, 220, 118, 0.14) 100%), var(--accent);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.12) inset,
|
||||
0 0 28px rgba(var(--accent-rgb), 0.18),
|
||||
0 2px 12px rgba(0, 0, 0, 0.28);
|
||||
color: #061014;
|
||||
}
|
||||
|
||||
.omni-home__entry--primary:hover {
|
||||
border-color: var(--accent-hover, var(--accent));
|
||||
background: var(--accent-hover, var(--accent));
|
||||
color: var(--dg-button-text, #061014);
|
||||
border-color: rgba(var(--accent-rgb), 0.64);
|
||||
background: linear-gradient(180deg, rgba(0, 255, 136, 0.28) 0%, rgba(0, 230, 124, 0.18) 100%), var(--accent-hover);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.16) inset,
|
||||
0 0 40px rgba(var(--accent-rgb), 0.28),
|
||||
0 6px 24px rgba(0, 0, 0, 0.36);
|
||||
color: #061014;
|
||||
}
|
||||
|
||||
.omni-home__entry--primary .anticon {
|
||||
color: #061014;
|
||||
}
|
||||
|
||||
.omni-home__entry--primary:hover .anticon {
|
||||
color: #061014;
|
||||
transform: scale(1.12);
|
||||
}
|
||||
|
||||
.omni-home__carousel {
|
||||
|
||||
@@ -2649,3 +2649,775 @@
|
||||
min-height: 52px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Commercial SaaS polish for script review page ===== */
|
||||
.script-eval-v5 {
|
||||
--v5-radius-xs: 6px;
|
||||
--v5-radius-sm: 8px;
|
||||
--v5-radius-md: 12px;
|
||||
--v5-radius-lg: 16px;
|
||||
--v5-panel: #131616;
|
||||
--v5-panel-2: #181c1b;
|
||||
--v5-panel-3: #101312;
|
||||
--v5-line: rgb(255 255 255 / 7%);
|
||||
--v5-line-strong: rgb(0 255 136 / 22%);
|
||||
--v5-shadow-soft: 0 18px 48px rgb(0 0 0 / 24%);
|
||||
--v5-shadow-tight: 0 10px 24px rgb(0 0 0 / 18%);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 2.2%), transparent 220px),
|
||||
var(--v5-bg);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.script-eval-v5-page {
|
||||
background: linear-gradient(90deg, rgb(0 255 136 / 3%), transparent 28%);
|
||||
}
|
||||
|
||||
.script-eval-v5-left {
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 3.5%), transparent 180px),
|
||||
var(--v5-panel);
|
||||
border-right-color: var(--v5-line);
|
||||
box-shadow: inset -1px 0 0 rgb(0 255 136 / 4%), 18px 0 38px rgb(0 0 0 / 18%);
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-section {
|
||||
border-bottom-color: var(--v5-line);
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #7f8d88;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-label::before {
|
||||
content: "";
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 999px;
|
||||
background: rgb(0 255 136 / 42%);
|
||||
box-shadow: 0 0 14px rgb(0 255 136 / 24%);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-zone {
|
||||
position: relative;
|
||||
min-height: 214px;
|
||||
border: 1px dashed rgb(255 255 255 / 14%);
|
||||
border-radius: var(--v5-radius-lg);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 4%), transparent),
|
||||
rgb(255 255 255 / 2.5%);
|
||||
box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-zone:hover,
|
||||
.script-eval-v5-upload-zone:focus-visible {
|
||||
border-color: var(--v5-line-strong);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(0 255 136 / 8%), transparent),
|
||||
rgb(0 255 136 / 4%);
|
||||
outline: none;
|
||||
box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 16px 36px rgb(0 0 0 / 16%);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
margin: 0 auto 14px;
|
||||
border: 1px solid rgb(255 255 255 / 7%);
|
||||
border-radius: 18px;
|
||||
background: rgb(0 255 136 / 8%);
|
||||
color: color-mix(in srgb, var(--v5-green) 74%, #ffffff);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-text {
|
||||
margin-bottom: 14px;
|
||||
color: #d7dedb;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-btn,
|
||||
.script-eval-v5-eval-btn,
|
||||
.script-eval-v5-export-btn,
|
||||
.script-eval-v5-action-btn,
|
||||
.script-eval-v5-retry-btn {
|
||||
font-family: inherit;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-btn,
|
||||
.script-eval-v5-eval-btn,
|
||||
.script-eval-v5-export-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-btn,
|
||||
.script-eval-v5-eval-btn {
|
||||
background: linear-gradient(180deg, #34ffa9 0%, var(--v5-green) 52%, #07cf73 100%);
|
||||
box-shadow: 0 12px 28px rgb(0 255 136 / 14%), inset 0 1px 0 rgb(255 255 255 / 36%);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-btn:hover,
|
||||
.script-eval-v5-eval-btn:hover:not(:disabled) {
|
||||
background: linear-gradient(180deg, #55ffb8 0%, #10f58c 56%, var(--v5-green-dim) 100%);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-hint {
|
||||
max-width: 300px;
|
||||
margin-inline: auto;
|
||||
color: #74837e;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-done {
|
||||
min-height: 86px;
|
||||
border-color: var(--v5-line-strong);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(0 255 136 / 12%), rgb(0 255 136 / 5%)),
|
||||
rgb(255 255 255 / 2%);
|
||||
}
|
||||
|
||||
.script-eval-v5-uf-meta {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.script-eval-v5-uf-name {
|
||||
display: block;
|
||||
color: #e9fff5;
|
||||
font-size: 14px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.script-eval-v5-uf-size {
|
||||
color: #7f918a;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.script-eval-v5-uf-re {
|
||||
padding: 5px 8px;
|
||||
border-radius: var(--v5-radius-xs);
|
||||
color: #a2b0ab;
|
||||
transition: color 160ms ease, background 160ms ease;
|
||||
}
|
||||
|
||||
.script-eval-v5-uf-re:hover {
|
||||
background: rgb(255 255 255 / 6%);
|
||||
}
|
||||
|
||||
.script-eval-v5-info-grid {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.script-eval-v5-info-item {
|
||||
min-height: 38px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgb(255 255 255 / 5%);
|
||||
border-radius: var(--v5-radius-sm);
|
||||
background: rgb(255 255 255 / 2.6%);
|
||||
}
|
||||
|
||||
.script-eval-v5-info-key {
|
||||
color: #84928d;
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.script-eval-v5-info-val {
|
||||
color: #e5ebe8;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.script-eval-v5-info-tag {
|
||||
border-radius: 999px;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
.script-eval-v5-info-empty,
|
||||
.script-eval-v5-history-empty {
|
||||
min-height: 70px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px dashed rgb(255 255 255 / 9%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: rgb(255 255 255 / 2%);
|
||||
color: #75827e;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.script-eval-v5-history-list {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.script-eval-v5-history-item {
|
||||
border: 1px solid rgb(255 255 255 / 5%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: rgb(255 255 255 / 2.4%);
|
||||
transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.script-eval-v5-history-item:hover {
|
||||
border-color: rgb(255 255 255 / 10%);
|
||||
background: rgb(255 255 255 / 4%);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.script-eval-v5-history-item.is-active {
|
||||
border-color: var(--v5-line-strong);
|
||||
background: linear-gradient(90deg, rgb(0 255 136 / 10%), rgb(0 255 136 / 3%));
|
||||
box-shadow: inset 3px 0 0 var(--v5-green);
|
||||
}
|
||||
|
||||
.script-eval-v5-hi-name {
|
||||
color: #dce5e1;
|
||||
font-size: 14px;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.script-eval-v5-hi-date {
|
||||
color: #73817c;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.script-eval-v5-hi-score {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.script-eval-v5-hi-grade {
|
||||
color: #7d8985;
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-bottom {
|
||||
border-top-color: var(--v5-line);
|
||||
background: linear-gradient(180deg, rgb(19 22 22 / 72%), #111414);
|
||||
box-shadow: 0 -18px 34px rgb(0 0 0 / 18%);
|
||||
}
|
||||
|
||||
.script-eval-v5-eval-btn {
|
||||
min-height: 58px;
|
||||
border-radius: var(--v5-radius-md);
|
||||
font-size: 17px;
|
||||
font-weight: 850;
|
||||
transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
|
||||
}
|
||||
|
||||
.script-eval-v5-eval-btn:disabled {
|
||||
opacity: 0.44;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.script-eval-v5-export-btn {
|
||||
min-height: 50px;
|
||||
border-color: rgb(255 255 255 / 9%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: rgb(255 255 255 / 3.5%);
|
||||
color: #aab8b2;
|
||||
font-size: 14px;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.script-eval-v5-export-btn:hover:not(:disabled) {
|
||||
border-color: var(--v5-line-strong);
|
||||
background: rgb(0 255 136 / 7%);
|
||||
color: #dcfff0;
|
||||
}
|
||||
|
||||
.script-eval-v5-right {
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 2.4%), transparent 240px),
|
||||
#0d0f0f;
|
||||
}
|
||||
|
||||
.script-eval-v5-right-topbar {
|
||||
min-height: 52px;
|
||||
border-bottom-color: var(--v5-line);
|
||||
background: rgb(13 15 15 / 88%);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.script-eval-v5-right-title {
|
||||
color: #87938f;
|
||||
font-size: 14px;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.script-eval-v5-rt-green {
|
||||
color: #b7ffdc;
|
||||
}
|
||||
|
||||
.script-eval-v5-action-btn {
|
||||
min-height: 32px;
|
||||
border-color: rgb(255 255 255 / 9%);
|
||||
border-radius: var(--v5-radius-sm);
|
||||
background: rgb(255 255 255 / 3.8%);
|
||||
color: #a8b5b0;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.script-eval-v5-action-btn:hover {
|
||||
border-color: var(--v5-line-strong);
|
||||
background: rgb(0 255 136 / 7%);
|
||||
color: #dffff0;
|
||||
}
|
||||
|
||||
.script-eval-v5-right-content {
|
||||
padding: 20px 32px 42px;
|
||||
}
|
||||
|
||||
.script-eval-v5-illustration-hit {
|
||||
border: 1px solid rgb(255 255 255 / 7%);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 4.5%), transparent),
|
||||
var(--v5-panel-3);
|
||||
box-shadow: var(--v5-shadow-soft);
|
||||
}
|
||||
|
||||
.script-eval-v5-illustration-hit:hover,
|
||||
.script-eval-v5-illustration-hit:focus-visible {
|
||||
border-color: var(--v5-line-strong);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(0 255 136 / 7%), transparent),
|
||||
var(--v5-panel-3);
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-card-icon {
|
||||
border: 1px solid var(--v5-line-strong);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(0 255 136 / 18%), rgb(0 255 136 / 8%)),
|
||||
#101714;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-card-title {
|
||||
color: #f4fbf8;
|
||||
font-size: 22px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-card-desc {
|
||||
color: #91a19b;
|
||||
}
|
||||
|
||||
.script-eval-v5-loading {
|
||||
min-width: min(520px, 92%);
|
||||
border: 1px solid rgb(255 255 255 / 7%);
|
||||
border-radius: var(--v5-radius-lg);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 4%), transparent),
|
||||
var(--v5-panel-3);
|
||||
box-shadow: var(--v5-shadow-soft);
|
||||
}
|
||||
|
||||
.script-eval-v5-loading strong {
|
||||
color: #f4fbf8;
|
||||
}
|
||||
|
||||
.script-eval-v5-loading p {
|
||||
margin: 0;
|
||||
color: #8f9f99;
|
||||
}
|
||||
|
||||
.script-eval-v5-loading-steps {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.script-eval-v5-loading-steps span {
|
||||
border: 1px solid rgb(0 255 136 / 18%);
|
||||
border-radius: 999px;
|
||||
background: rgb(0 255 136 / 7%);
|
||||
color: #b6ffdc;
|
||||
padding: 5px 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 780;
|
||||
}
|
||||
|
||||
.script-eval-v5-error {
|
||||
border-color: rgb(244 178 46 / 28%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: rgb(244 178 46 / 8%);
|
||||
color: #f4c767;
|
||||
box-shadow: var(--v5-shadow-tight);
|
||||
}
|
||||
|
||||
.script-eval-v5-error span:first-child {
|
||||
color: #ffe0a1;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.script-eval-v5-retry-btn {
|
||||
border-color: rgb(244 178 46 / 32%);
|
||||
color: #ffd47a;
|
||||
}
|
||||
|
||||
.script-eval-report {
|
||||
--report-panel: #151918;
|
||||
--report-panel-2: #111514;
|
||||
--report-row: #181e1c;
|
||||
--report-border: rgb(255 255 255 / 8%);
|
||||
--report-muted: #93a29c;
|
||||
--report-dim: #67736f;
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 3.2%), transparent 230px),
|
||||
var(--report-bg);
|
||||
}
|
||||
|
||||
.script-eval-report::before,
|
||||
.script-eval-report::after {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.script-eval-report--inside .script-eval-report__body {
|
||||
padding: 18px 32px 46px;
|
||||
}
|
||||
|
||||
.script-eval-report--inside .script-eval-report__hero {
|
||||
align-items: center;
|
||||
padding: 4px 0 22px;
|
||||
}
|
||||
|
||||
.script-eval-report__score-block {
|
||||
min-height: 184px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 18px 22px;
|
||||
border: 1px solid rgb(255 255 255 / 7%);
|
||||
border-radius: var(--v5-radius-lg);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(0 255 136 / 9%), rgb(0 255 136 / 2%)),
|
||||
#101413;
|
||||
box-shadow: var(--v5-shadow-tight);
|
||||
}
|
||||
|
||||
.script-eval-report__score {
|
||||
text-shadow: 0 0 28px rgb(0 255 136 / 14%);
|
||||
}
|
||||
|
||||
.script-eval-report__score-total {
|
||||
color: #7e8b86;
|
||||
}
|
||||
|
||||
.script-eval-report__grade {
|
||||
border-radius: 999px;
|
||||
box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
|
||||
}
|
||||
|
||||
.script-eval-report__beat {
|
||||
color: #a6b4ae;
|
||||
}
|
||||
|
||||
.script-eval-report__summary {
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
.script-eval-report__summary h1 {
|
||||
color: #f6fbf9;
|
||||
font-size: clamp(25px, 2vw, 32px);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.script-eval-report__summary p {
|
||||
color: #7d8b86;
|
||||
}
|
||||
|
||||
.script-eval-report__desc {
|
||||
max-width: 980px;
|
||||
color: #cbd5d1 !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
.script-eval-report__chart-card,
|
||||
.script-eval-report__path-card {
|
||||
border-color: var(--report-border);
|
||||
border-radius: var(--v5-radius-lg);
|
||||
background:
|
||||
linear-gradient(180deg, rgb(255 255 255 / 3.8%), transparent),
|
||||
var(--report-panel);
|
||||
box-shadow: var(--v5-shadow-tight);
|
||||
}
|
||||
|
||||
.script-eval-report__card-head {
|
||||
min-height: 50px;
|
||||
padding-inline: 18px;
|
||||
border-bottom: 1px solid rgb(255 255 255 / 5%);
|
||||
color: #b5c0bc;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.script-eval-report__legend {
|
||||
color: #7e8a86;
|
||||
}
|
||||
|
||||
.script-eval-report__chart {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.script-eval-report__chart-grid {
|
||||
gap: clamp(18px, 3vw, 52px);
|
||||
}
|
||||
|
||||
.script-eval-report__bar-col {
|
||||
cursor: pointer;
|
||||
transition: opacity 180ms ease, transform 180ms ease;
|
||||
}
|
||||
|
||||
.script-eval-report__bar-col:hover,
|
||||
.script-eval-report__bar-col:focus-visible {
|
||||
outline: none;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.script-eval-report__bar-col.is-dimmed {
|
||||
opacity: 0.36;
|
||||
}
|
||||
|
||||
.script-eval-report__bar-fill {
|
||||
box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 10px 22px rgb(0 255 136 / 12%);
|
||||
}
|
||||
|
||||
.script-eval-report__bar-col:hover .script-eval-report__bar-fill,
|
||||
.script-eval-report__bar-col:focus-visible .script-eval-report__bar-fill {
|
||||
filter: brightness(1.08);
|
||||
}
|
||||
|
||||
.script-eval-report__bar-col strong {
|
||||
color: #eef5f2;
|
||||
}
|
||||
|
||||
.script-eval-report__bar-col > span {
|
||||
color: #74807c;
|
||||
}
|
||||
|
||||
.script-eval-report__chart-note {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
min-height: 44px;
|
||||
margin: 0 18px 18px;
|
||||
border: 1px solid rgb(0 255 136 / 14%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: rgb(0 255 136 / 5%);
|
||||
color: #a9bbb4;
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.script-eval-report__chart-note .anticon {
|
||||
flex-shrink: 0;
|
||||
color: var(--report-green);
|
||||
}
|
||||
|
||||
.script-eval-report__findings {
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.script-eval-report__finding-group p {
|
||||
border: 1px solid rgb(255 255 255 / 5%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent), var(--report-row);
|
||||
color: #d7e0dc;
|
||||
font-size: 14px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.script-eval-report__path-table th {
|
||||
color: #87938f;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.script-eval-report__path-table td {
|
||||
color: #d8e1dd;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.script-eval-report__path-table tr:hover td {
|
||||
background: rgb(255 255 255 / 2.8%);
|
||||
}
|
||||
|
||||
.script-eval-v5-statusbar {
|
||||
height: 34px;
|
||||
border-top-color: var(--v5-line);
|
||||
background: rgb(18 21 21 / 94%);
|
||||
color: #7c8984;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.script-eval-v5.is-loading .script-eval-v5-status-dot {
|
||||
animation: v5-pulse 1.2s ease infinite;
|
||||
}
|
||||
|
||||
.script-eval-v5.is-complete .script-eval-v5-status-dot,
|
||||
.script-eval-v5.is-ready .script-eval-v5-status-dot {
|
||||
box-shadow: 0 0 16px rgb(0 255 136 / 34%);
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.script-eval-report--inside .script-eval-report__body {
|
||||
padding-inline: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.script-eval-v5-page {
|
||||
padding-left: 0;
|
||||
padding-top: 74px;
|
||||
scroll-padding-top: 74px;
|
||||
}
|
||||
|
||||
.script-eval-v5-left {
|
||||
flex-basis: 320px;
|
||||
}
|
||||
|
||||
.script-eval-v5-right-content {
|
||||
padding: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.script-eval-v5 {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.script-eval-v5-page {
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.script-eval-v5-left {
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
max-height: none;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--v5-line);
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-section.is-fill {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.script-eval-v5-history-list {
|
||||
flex: 0 0 auto;
|
||||
max-height: 180px;
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-section {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-zone {
|
||||
min-height: 148px;
|
||||
padding: 18px 14px;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin-bottom: 10px;
|
||||
border-radius: 15px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-text {
|
||||
margin-bottom: 10px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-btn {
|
||||
padding: 9px 24px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.script-eval-v5-upload-hint {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.script-eval-v5-info-item {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
.script-eval-v5-info-empty,
|
||||
.script-eval-v5-history-empty {
|
||||
min-height: 56px;
|
||||
}
|
||||
|
||||
.script-eval-v5-lp-bottom {
|
||||
gap: 8px;
|
||||
padding: 12px 16px 14px;
|
||||
}
|
||||
|
||||
.script-eval-v5-eval-btn {
|
||||
min-height: 48px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.script-eval-v5-export-btn {
|
||||
min-height: 42px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.script-eval-v5-right-topbar {
|
||||
padding-inline: 16px;
|
||||
}
|
||||
|
||||
.script-eval-v5-right {
|
||||
flex: 0 0 auto;
|
||||
min-height: 560px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.script-eval-report--inside .script-eval-report__body {
|
||||
padding: 16px 16px 36px;
|
||||
}
|
||||
|
||||
.script-eval-report__score-block {
|
||||
min-height: 150px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.script-eval-report--inside .script-eval-report__score {
|
||||
font-size: clamp(62px, 22vw, 82px);
|
||||
}
|
||||
|
||||
.script-eval-report__score-total {
|
||||
padding-top: 24px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.script-eval-report__summary h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.script-eval-report__chart-note {
|
||||
margin-inline: 14px;
|
||||
}
|
||||
|
||||
.script-eval-report__finding-group p,
|
||||
.script-eval-report__path-table td {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3400,6 +3400,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 520px;
|
||||
max-height: 520px;
|
||||
padding: 18px 22px;
|
||||
border: none;
|
||||
outline: none;
|
||||
@@ -3409,6 +3410,7 @@
|
||||
font-size: 14px;
|
||||
line-height: 1.9;
|
||||
resize: none;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.script-eval-v4-text-input::placeholder {
|
||||
@@ -4268,6 +4270,11 @@
|
||||
.script-eval-v4-text-shell,
|
||||
.script-eval-v4-text-input {
|
||||
min-height: calc(100vh - 422px);
|
||||
max-height: calc(100vh - 422px);
|
||||
}
|
||||
|
||||
.script-eval-v4-text-input {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.script-eval-v4-score-card {
|
||||
@@ -5370,3 +5377,559 @@
|
||||
flex-shrink: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* ===== Token usage commercial SaaS polish ===== */
|
||||
.token-usage-page.management-center-page {
|
||||
--usage-panel: rgba(17, 21, 21, 0.96);
|
||||
--usage-panel-strong: rgba(21, 26, 25, 0.98);
|
||||
--usage-inset: rgba(255, 255, 255, 0.035);
|
||||
--usage-inset-strong: rgba(255, 255, 255, 0.055);
|
||||
--usage-line: rgba(255, 255, 255, 0.08);
|
||||
--usage-line-strong: rgba(var(--accent-rgb), 0.28);
|
||||
--usage-muted: rgba(232, 240, 235, 0.66);
|
||||
--usage-soft: rgba(232, 240, 235, 0.44);
|
||||
--usage-card-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
|
||||
background:
|
||||
radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), 0.06), transparent 34%),
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 220px),
|
||||
var(--bg-base);
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-shell {
|
||||
gap: 16px;
|
||||
padding: 0 30px 42px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
min-height: 64px;
|
||||
border-bottom-color: var(--usage-line);
|
||||
border-bottom-left-radius: 18px;
|
||||
background: rgba(14, 17, 17, 0.88);
|
||||
backdrop-filter: blur(18px);
|
||||
box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar__title {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar__title > span {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar__title strong {
|
||||
color: #f2f8f5;
|
||||
font-size: 15px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar__title small {
|
||||
overflow: hidden;
|
||||
color: var(--usage-soft);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar button,
|
||||
.token-usage-page .management-card__head button,
|
||||
.token-usage-page .management-center-status-pill {
|
||||
border-color: var(--usage-line);
|
||||
border-radius: 10px;
|
||||
background: var(--usage-inset);
|
||||
color: var(--usage-muted);
|
||||
transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar button:hover:not(:disabled),
|
||||
.token-usage-page .management-card__head button:hover {
|
||||
border-color: var(--usage-line-strong);
|
||||
background: rgba(var(--accent-rgb), 0.08);
|
||||
color: var(--fg-body);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar button:disabled {
|
||||
opacity: 0.52;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar__back {
|
||||
border-radius: 999px !important;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar button.is-muted-action {
|
||||
color: var(--usage-soft);
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar button.is-primary {
|
||||
border-color: rgba(var(--accent-rgb), 0.72);
|
||||
background: linear-gradient(180deg, #2fffa5, var(--accent));
|
||||
color: rgb(5, 15, 11);
|
||||
box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill {
|
||||
position: relative;
|
||||
gap: 7px;
|
||||
border-radius: 999px;
|
||||
padding-inline: 12px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill::before {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill.is-loading::before {
|
||||
animation: token-usage-pulse 1.2s ease infinite;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill.is-error {
|
||||
border-color: rgba(245, 158, 11, 0.42);
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
color: #f7ca73;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill.is-error::before {
|
||||
background: #f59e0b;
|
||||
box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
|
||||
}
|
||||
|
||||
@keyframes token-usage-pulse {
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.42; transform: scale(0.76); }
|
||||
}
|
||||
|
||||
.token-usage-page .management-balance-alert {
|
||||
margin: 2px 0 0;
|
||||
border-color: rgba(245, 158, 11, 0.34);
|
||||
border-radius: 14px;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.045)),
|
||||
var(--usage-panel);
|
||||
box-shadow: var(--usage-card-shadow);
|
||||
}
|
||||
|
||||
.token-usage-page .management-balance-alert button {
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-cards {
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card {
|
||||
position: relative;
|
||||
min-height: 132px;
|
||||
overflow: hidden;
|
||||
gap: 8px;
|
||||
padding: 18px;
|
||||
border-color: var(--usage-line);
|
||||
border-radius: 18px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.048), transparent 70%),
|
||||
var(--usage-panel-strong);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card::before {
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 3px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card.is-accent {
|
||||
border-color: rgba(var(--accent-rgb), 0.32);
|
||||
background:
|
||||
radial-gradient(circle at 88% 16%, rgba(var(--accent-rgb), 0.18), transparent 38%),
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 72%),
|
||||
var(--usage-panel-strong);
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card.is-accent::before {
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.44);
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card.is-warn::before {
|
||||
background: #f59e0b;
|
||||
box-shadow: 0 0 18px rgba(245, 158, 11, 0.32);
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card__index {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
right: 16px;
|
||||
color: rgba(255, 255, 255, 0.14);
|
||||
font-size: 22px;
|
||||
font-weight: 950;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card__label {
|
||||
color: var(--usage-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card__value {
|
||||
color: #f6fbf8;
|
||||
font-size: clamp(24px, 2.5vw, 34px);
|
||||
font-weight: 920;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card__hint {
|
||||
color: var(--usage-soft);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-overview {
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-card {
|
||||
border-color: var(--usage-line);
|
||||
border-radius: 18px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 64%),
|
||||
var(--usage-panel);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.026);
|
||||
}
|
||||
|
||||
.token-usage-page .management-card__head {
|
||||
min-height: 50px;
|
||||
border-bottom-color: var(--usage-line);
|
||||
padding-inline: 18px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-card__head h2 {
|
||||
color: #ecf5f0;
|
||||
font-size: 14px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-card__head h2 .anticon {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.token-usage-page .management-card__head > span,
|
||||
.token-usage-page .management-card__head button {
|
||||
border-color: var(--usage-line);
|
||||
border-radius: 999px;
|
||||
background: var(--usage-inset);
|
||||
color: var(--usage-muted);
|
||||
}
|
||||
|
||||
.token-usage-page .management-card--chart {
|
||||
height: clamp(390px, 50vh, 580px);
|
||||
}
|
||||
|
||||
.token-usage-page .management-empty-chart,
|
||||
.token-usage-page .management-record-empty,
|
||||
.token-usage-page .management-status-trend__empty {
|
||||
border: 1px dashed var(--usage-line);
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 255, 255, 0.024);
|
||||
}
|
||||
|
||||
.token-usage-page .management-model-list {
|
||||
gap: 10px;
|
||||
padding: 14px 18px 18px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-model-bar {
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.045);
|
||||
border-radius: 14px;
|
||||
background: var(--usage-inset);
|
||||
transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.token-usage-page .management-model-bar:hover {
|
||||
border-color: var(--usage-line-strong);
|
||||
background: rgba(var(--accent-rgb), 0.052);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.token-usage-page .management-model-bar__top strong {
|
||||
color: #eef6f2;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-model-bar__track {
|
||||
height: 7px;
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
.token-usage-page .management-status-card dl {
|
||||
padding: 14px 18px 10px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-status-card div {
|
||||
min-height: 38px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.045);
|
||||
}
|
||||
|
||||
.token-usage-page .management-status-card div:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-status-card dt {
|
||||
color: var(--usage-soft);
|
||||
font-weight: 780;
|
||||
}
|
||||
|
||||
.token-usage-page .management-status-trend {
|
||||
padding: 14px 18px 18px;
|
||||
border-top-color: var(--usage-line);
|
||||
}
|
||||
|
||||
.token-usage-page .management-status-trend__title {
|
||||
margin-bottom: 8px;
|
||||
color: var(--usage-muted);
|
||||
font-weight: 820;
|
||||
}
|
||||
|
||||
.token-usage-page .usage-trend__svg {
|
||||
min-height: 160px;
|
||||
}
|
||||
|
||||
.token-usage-page .usage-trend__line {
|
||||
filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.22));
|
||||
}
|
||||
|
||||
.token-usage-page .usage-trend__dot {
|
||||
transition: r 160ms ease;
|
||||
}
|
||||
|
||||
.token-usage-page .usage-trend__meta {
|
||||
border-top-color: var(--usage-line);
|
||||
color: var(--usage-soft);
|
||||
}
|
||||
|
||||
.token-usage-page .management-members,
|
||||
.token-usage-page .management-records {
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-list {
|
||||
gap: 10px;
|
||||
padding: 12px 18px 2px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-row {
|
||||
min-height: 64px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.045);
|
||||
border-radius: 14px;
|
||||
background: var(--usage-inset);
|
||||
transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-row:hover {
|
||||
border-color: var(--usage-line-strong);
|
||||
background: rgba(var(--accent-rgb), 0.052);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-avatar {
|
||||
color: rgb(5, 15, 11);
|
||||
box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.16);
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-role {
|
||||
border-color: var(--usage-line);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table {
|
||||
min-width: 0;
|
||||
padding: 14px 18px 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__head,
|
||||
.token-usage-page .management-record-table__row {
|
||||
min-width: 880px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__head {
|
||||
min-height: 38px;
|
||||
background: rgba(255, 255, 255, 0.045);
|
||||
color: var(--usage-muted);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__row {
|
||||
min-height: 46px;
|
||||
background: var(--usage-inset);
|
||||
transition: border-color 160ms ease, background 160ms ease;
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__row:hover {
|
||||
border-color: rgba(255, 255, 255, 0.065);
|
||||
background: rgba(255, 255, 255, 0.052);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__row span.is-good,
|
||||
.token-usage-page .management-record-table__row span.is-error {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: max-content;
|
||||
min-width: 44px;
|
||||
min-height: 24px;
|
||||
border-radius: 999px;
|
||||
padding: 0 9px;
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__row span.is-good {
|
||||
background: rgba(var(--accent-rgb), 0.1);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-table__row span.is-error {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-pagination {
|
||||
border-top-color: var(--usage-line);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-pagination button {
|
||||
border-color: var(--usage-line);
|
||||
border-radius: 9px;
|
||||
background: var(--usage-inset);
|
||||
color: var(--usage-muted);
|
||||
}
|
||||
|
||||
.token-usage-page .management-record-pagination button:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: rgb(5, 15, 11);
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.token-usage-page.management-center-page {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-shell {
|
||||
padding-inline: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 901px) and (max-width: 1180px) {
|
||||
.token-usage-page.management-center-page {
|
||||
padding-left: 82px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.token-usage-page.management-center-page {
|
||||
padding-top: 74px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-shell {
|
||||
padding: 0 16px 34px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar {
|
||||
top: 0;
|
||||
align-items: stretch;
|
||||
margin: 0 -16px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 0 0 18px 18px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-toolbar__title {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-cards {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-overview {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.token-usage-page .management-card--chart {
|
||||
height: auto;
|
||||
min-height: 360px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-row {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: 10px 12px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-member-role,
|
||||
.token-usage-page .management-member-row > span:not(.management-member-avatar):not(.management-member-role):not(.management-member-meter),
|
||||
.token-usage-page .management-member-meter,
|
||||
.token-usage-page .management-member-row > .anticon {
|
||||
grid-column: 2;
|
||||
justify-self: start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.token-usage-page .management-center-toolbar button:not(.management-center-toolbar__back) {
|
||||
flex: 1 1 calc(50% - 6px);
|
||||
padding-inline: 10px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-center-status-pill {
|
||||
flex: 1 1 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card {
|
||||
min-height: 118px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-metric-card__value {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-card__head {
|
||||
min-height: 46px;
|
||||
padding-inline: 14px;
|
||||
}
|
||||
|
||||
.token-usage-page .management-model-list,
|
||||
.token-usage-page .management-member-list,
|
||||
.token-usage-page .management-record-table {
|
||||
padding-inline: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user