7e953afbd2
- 新增创作工作台 studio.html:合并选题/内容工厂/文章管理为单一 tab 入口(iframe embed 模式) - 新增 AI味检测模块(ai_slop API + 页面,合规软硬问题分级) - 新增白标品牌配置(branding API + 页面 + deploy 私有化交付包) - 发布闭环:publishing 放宽至 editor + records/mark-published 接口 - 移动端响应式补全(admin/calendar/ai-slop 表格卡片兜底) - 修复菜单幂等播种缺陷(按 path 对齐,避免功能页孤立) - 新增短视频脚本 shortvideo.py 与 2026 市场调研简报
431 lines
17 KiB
CSS
431 lines
17 KiB
CSS
/* ============================================
|
|
宇之然 · Design System
|
|
Inspired by opencode.ai — clean, modern, responsive
|
|
============================================ */
|
|
|
|
/* ========== v-cloak (hide raw Vue templates) ========== */
|
|
[v-cloak] { display: none !important; }
|
|
|
|
/* ========== Design Tokens ========== */
|
|
:root {
|
|
/* Colors */
|
|
--color-primary: #667eea;
|
|
--color-primary-dark: #5a6fd6;
|
|
--color-primary-light: #8b9cf0;
|
|
--color-accent: #764ba2;
|
|
--color-success: #67c23a;
|
|
--color-warning: #e6a23c;
|
|
--color-danger: #f56c6c;
|
|
--color-info: #909399;
|
|
|
|
--color-bg: #f5f7fa;
|
|
--color-bg-raised: #ffffff;
|
|
--color-bg-subtle: #f0f5ff;
|
|
--color-border: #ebeef5;
|
|
--color-border-hover: #c6d8ff;
|
|
|
|
--color-text-primary: #303133;
|
|
--color-text-regular: #606266;
|
|
--color-text-secondary: #909399;
|
|
--color-text-placeholder: #c0c4cc;
|
|
|
|
/* Spacing */
|
|
--spacing-xs: 4px;
|
|
--spacing-sm: 8px;
|
|
--spacing-md: 16px;
|
|
--spacing-lg: 24px;
|
|
--spacing-xl: 32px;
|
|
--spacing-2xl: 48px;
|
|
|
|
/* Font scale */
|
|
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
--font-size-h1: 28px;
|
|
--font-size-h2: 24px;
|
|
--font-size-h3: 18px;
|
|
--font-size-body: 14px;
|
|
--font-size-small: 13px;
|
|
--font-size-caption: 12px;
|
|
|
|
/* Border radius */
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
--radius-full: 24px;
|
|
|
|
/* Shadows */
|
|
--shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
|
|
--shadow-md: 0 2px 12px rgba(0,0,0,0.06);
|
|
--shadow-lg: 0 8px 28px rgba(0,0,0,0.1);
|
|
--shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
|
|
|
|
/* Transitions */
|
|
--ease-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
--ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
|
/* Layout */
|
|
--nav-height: 60px;
|
|
--content-max-width: 1400px;
|
|
}
|
|
|
|
/* ========== Dark Mode ==========
|
|
注意:Element Plus 组件库为亮色主题,未同步切换会导致弹窗/卡片内
|
|
自定义文字在深色变量下不可读。当前明确采用亮色主题以保证对比度,
|
|
待引入 EP 暗色变量(dark theme vars)后再启用完整暗色模式。
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--color-bg: #1a1a2e;
|
|
--color-bg-raised: #16213e;
|
|
--color-bg-subtle: #1a1a3e;
|
|
--color-border: #2a2a4e;
|
|
--color-border-hover: #4a4a6e;
|
|
--color-text-primary: #e0e6ed;
|
|
--color-text-regular: #a0a6b0;
|
|
--color-text-secondary: #6b7280;
|
|
--color-text-placeholder: #4a4a5e;
|
|
--shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
|
|
--shadow-md: 0 2px 12px rgba(0,0,0,0.3);
|
|
--shadow-lg: 0 8px 28px rgba(0,0,0,0.4);
|
|
}
|
|
body { background: var(--color-bg); color: var(--color-text-primary); }
|
|
.card { background: var(--color-bg-raised); }
|
|
.el-table { --el-table-tr-bg: var(--color-bg-raised); --el-table-header-bg: var(--color-bg-subtle); }
|
|
}
|
|
*/
|
|
|
|
/* ========== Reset & Base ========== */
|
|
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: var(--font-family);
|
|
font-size: var(--font-size-body);
|
|
background: var(--color-bg);
|
|
color: var(--color-text-primary);
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ========== Page Transition ========== */
|
|
.page-fade { animation: fadeIn 0.4s var(--ease-out); }
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ========== Layout ========== */
|
|
.main-content {
|
|
padding-top: var(--nav-height) !important;
|
|
display: flex;
|
|
flex: 1;
|
|
max-width: var(--content-max-width);
|
|
margin: 0 auto;
|
|
min-height: calc(100vh - var(--nav-height));
|
|
}
|
|
|
|
/* 嵌入模式(被创作工作台 iframe 加载时):去掉顶部导航留白 */
|
|
body.embed .main-content {
|
|
padding-top: 0 !important;
|
|
min-height: 100vh;
|
|
}
|
|
.content-area { flex: 1; padding: var(--spacing-md); overflow-y: auto; }
|
|
|
|
/* ========== Card ========== */
|
|
.card {
|
|
background: var(--color-bg-raised);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
margin-bottom: var(--spacing-lg);
|
|
box-shadow: var(--shadow-md);
|
|
transition: all 0.3s var(--ease-out);
|
|
}
|
|
|
|
/* ========== Page Header ========== */
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--spacing-lg);
|
|
flex-wrap: wrap;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
.page-title {
|
|
font-size: var(--font-size-h2);
|
|
font-weight: 700;
|
|
color: var(--color-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
.card-title { font-size: var(--font-size-h3); font-weight: 600; }
|
|
|
|
/* ========== Toolbar & Filters ========== */
|
|
.filter-bar, .toolbar {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
.filter-bar { margin-bottom: 20px; }
|
|
.toolbar { margin-bottom: var(--spacing-md); }
|
|
|
|
/* ========== Stats Grid ========== */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: var(--spacing-md);
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
.stat-card {
|
|
border-radius: var(--radius-md);
|
|
padding: 20px;
|
|
cursor: pointer;
|
|
transition: all 0.3s var(--ease-out);
|
|
background: var(--color-bg-subtle);
|
|
border: 1px solid var(--color-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
.stat-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg);
|
|
border-color: var(--color-border-hover);
|
|
}
|
|
.stat-card .stat-value {
|
|
font-size: var(--font-size-h1);
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
}
|
|
.stat-card .stat-label {
|
|
font-size: var(--font-size-caption);
|
|
color: var(--color-text-secondary);
|
|
margin-top: var(--spacing-sm);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.stat-card.stat-primary .stat-value { color: var(--color-primary); }
|
|
.stat-card.stat-success .stat-value { color: var(--color-success); }
|
|
.stat-card.stat-warning .stat-value { color: var(--color-warning); }
|
|
.stat-card.stat-danger .stat-value { color: var(--color-danger); }
|
|
.stat-card.stat-info .stat-value { color: var(--color-info); }
|
|
|
|
/* ========== Stat Summary Bar ========== */
|
|
.stat-summary { display: flex; gap: var(--spacing-md); flex-wrap: wrap; margin-bottom: var(--spacing-md); }
|
|
.stat-summary .stat-item {
|
|
background: var(--color-bg-subtle); border-radius: var(--radius-sm);
|
|
padding: 12px 20px; display: flex; flex-direction: column;
|
|
align-items: center; min-width: 100px;
|
|
}
|
|
.stat-summary .stat-item .num { font-size: var(--font-size-h2); font-weight: 600; color: var(--color-primary); }
|
|
.stat-summary .stat-item .label { font-size: var(--font-size-caption); color: var(--color-text-secondary); margin-top: var(--spacing-xs); }
|
|
|
|
/* ========== Loading / Empty / Error States ========== */
|
|
.loading-state, .card-loading {
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
min-height: 200px; color: var(--color-text-secondary); font-size: var(--font-size-body);
|
|
}
|
|
.empty-state {
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
padding: 60px 20px; color: var(--color-text-secondary);
|
|
}
|
|
.empty-state .empty-icon { font-size: 48px; margin-bottom: var(--spacing-sm); opacity: 0.4; }
|
|
.empty-state .empty-text { font-size: var(--font-size-body); margin-bottom: var(--spacing-md); }
|
|
|
|
/* ========== Mobile Card List (replaces table on small screens) ========== */
|
|
.card-table { display: block; }
|
|
.card-list-mobile { display: none; }
|
|
@media (max-width: 768px) {
|
|
.card-table { display: none; }
|
|
.card-list-mobile { display: block; }
|
|
}
|
|
.card-list-mobile .card-item {
|
|
background: var(--color-bg); border-radius: 10px; padding: 14px; margin-bottom: 10px;
|
|
border: 1px solid var(--color-border); transition: all 0.2s ease;
|
|
}
|
|
.card-list-mobile .card-item:active { transform: scale(0.99); }
|
|
.card-list-mobile .card-row {
|
|
display: flex; justify-content: space-between; padding: 6px 0;
|
|
font-size: var(--font-size-small); border-bottom: 1px dashed var(--color-border);
|
|
}
|
|
.card-list-mobile .card-row:last-child { border-bottom: none; }
|
|
.card-list-mobile .card-label { color: var(--color-text-secondary); flex-shrink: 0; margin-right: var(--spacing-sm); }
|
|
.card-list-mobile .card-value { color: var(--color-text-primary); text-align: right; word-break: break-word; }
|
|
.card-list-mobile .card-actions {
|
|
display: flex; gap: var(--spacing-sm); justify-content: flex-end;
|
|
padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
/* ========== Status Badge & Dots ========== */
|
|
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--spacing-xs); }
|
|
.status-dot.pending, .status-dot.\34 pending { background: var(--color-warning); }
|
|
.status-dot.review, .status-dot.\34 review { background: var(--color-danger); }
|
|
.status-dot.ready, .status-dot.\34 ready { background: var(--color-success); }
|
|
.status-dot.published, .status-dot.\34 published { background: var(--color-primary); }
|
|
.status-dot.draft { background: var(--color-text-secondary); }
|
|
|
|
/* ========== Search Bar ========== */
|
|
.search-bar { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; align-items: center; margin-bottom: var(--spacing-md); }
|
|
|
|
/* ========== el-table refinements ========== */
|
|
.el-table { border-radius: var(--radius-md); overflow: hidden; width: 100%; }
|
|
.el-table .el-table__cell { word-break: break-word; }
|
|
|
|
/* ========== Gradient Text ========== */
|
|
.text-gradient { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
|
|
|
|
/* ========== Animations ========== */
|
|
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(103, 194, 58, 0.4); } 50% { box-shadow: 0 0 0 8px rgba(103, 194, 58, 0); } }
|
|
.hover-lift { transition: all 0.4s var(--ease-bounce); }
|
|
.hover-lift:hover { transform: translateY(-6px) scale(1.02); }
|
|
.shimmer { position: relative; overflow: hidden; }
|
|
.shimmer::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.06), transparent); transition: left 0.6s; }
|
|
.shimmer:hover::before { left: 100%; }
|
|
|
|
/* ========== Login Page ========== */
|
|
.login-body {
|
|
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
|
|
min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
|
overflow: hidden; position: relative;
|
|
}
|
|
.bg-circle {
|
|
position: absolute; border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
animation: float 20s infinite var(--ease-out);
|
|
}
|
|
.bg-circle:nth-child(1) { width: 300px; height: 300px; top: -150px; left: -150px; animation-delay: 0s; }
|
|
.bg-circle:nth-child(2) { width: 200px; height: 200px; bottom: -100px; right: -100px; animation-delay: -5s; }
|
|
.bg-circle:nth-child(3) { width: 150px; height: 150px; top: 50%; right: 10%; animation-delay: -10s; }
|
|
.bg-circle:nth-child(4) { width: 100px; height: 100px; bottom: 20%; left: 5%; animation-delay: -15s; }
|
|
@keyframes float {
|
|
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
25% { transform: translate(30px, -30px) scale(1.1); }
|
|
50% { transform: translate(-20px, 20px) scale(0.9); }
|
|
75% { transform: translate(20px, 30px) scale(1.05); }
|
|
}
|
|
@keyframes slide-up {
|
|
from { opacity: 0; transform: translateY(40px) scale(0.95); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
.login-card {
|
|
position: relative; z-index: 10;
|
|
width: 100%; max-width: 420px;
|
|
padding: var(--spacing-2xl) 40px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(20px);
|
|
border-radius: var(--radius-full);
|
|
box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.2) inset;
|
|
animation: slide-up 0.6s var(--ease-bounce);
|
|
}
|
|
.login-title {
|
|
text-align: center; font-size: var(--font-size-h1); font-weight: 700;
|
|
background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
|
|
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
|
margin-bottom: 40px; letter-spacing: -0.5px;
|
|
}
|
|
.login-subtitle { text-align: center; color: #9ca3af; font-size: var(--font-size-body); margin-top: -24px; margin-bottom: var(--spacing-xl); }
|
|
.form-group { margin-bottom: var(--spacing-lg); position: relative; }
|
|
.form-input {
|
|
width: 100%; padding: 14px 16px;
|
|
border: 2px solid #e5e7eb; border-radius: var(--radius-md);
|
|
font-size: var(--font-size-body); color: #1f2937;
|
|
background: #f9fafb; outline: none;
|
|
transition: all 0.3s var(--ease-out);
|
|
}
|
|
.form-input:focus { border-color: var(--color-primary); background: #ffffff; box-shadow: 0 0 0 4px rgba(102,126,234,0.1); transform: translateY(-2px); }
|
|
.form-input:not(:placeholder-shown) { border-color: var(--color-accent); }
|
|
.form-label {
|
|
position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
|
|
color: #9ca3af; pointer-events: none; font-size: var(--font-size-body);
|
|
background: transparent; padding: 0 4px; transition: all 0.2s ease;
|
|
}
|
|
.form-input:focus ~ .form-label, .form-input:not(:placeholder-shown) ~ .form-label {
|
|
top: 0; font-size: var(--font-size-caption); color: var(--color-primary); background: #ffffff;
|
|
}
|
|
.login-btn {
|
|
width: 100%; padding: 14px; margin-top: var(--spacing-sm);
|
|
background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
|
|
color: white; border: none; border-radius: var(--radius-md);
|
|
font-size: var(--font-size-body); font-weight: 600; cursor: pointer;
|
|
transition: all 0.3s var(--ease-out); position: relative; overflow: hidden;
|
|
}
|
|
.login-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.4); }
|
|
.login-btn:active:not(:disabled) { transform: translateY(0); }
|
|
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
|
|
.btn-loader {
|
|
display: inline-block; width: 16px; height: 16px;
|
|
border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
|
|
border-radius: 50%; animation: spin 0.8s linear infinite;
|
|
margin-right: var(--spacing-sm); vertical-align: middle;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.login-footer { text-align: center; margin-top: var(--spacing-lg); color: #6b7280; font-size: var(--font-size-small); }
|
|
.login-footer a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
|
|
.login-footer a:hover { color: var(--color-accent); }
|
|
|
|
/* ========== Preview Dialog ========== */
|
|
.preview-iframe { box-sizing: border-box; height: 100%; width: 100%; }
|
|
.preview-dialog-custom.el-dialog {
|
|
max-height: calc(100vh - 90px); overflow: hidden; display: flex;
|
|
flex-direction: column; margin-top: 0 !important;
|
|
}
|
|
.preview-dialog-custom.el-dialog .el-dialog__header { padding: var(--spacing-sm) var(--spacing-md); margin: 0; flex-shrink: 0; }
|
|
.preview-dialog-custom.el-dialog .el-dialog__body { padding: var(--spacing-md); overflow: hidden; flex: 1; min-height: 0; }
|
|
.preview-dialog-custom.el-dialog .el-dialog__footer { flex-shrink: 0; padding: var(--spacing-sm) var(--spacing-md); }
|
|
.preview-dialog-custom.is-fullscreen { z-index: 100001 !important; }
|
|
body:has(.preview-dialog-custom.is-fullscreen) > [class*="el-overlay"] { z-index: 100000 !important; }
|
|
|
|
/* ========== Responsive ========== */
|
|
@media (max-width: 768px) {
|
|
.content-area { padding: var(--spacing-sm) !important; padding-bottom: 80px; }
|
|
.card { padding: var(--spacing-md) !important; }
|
|
.page-header { flex-direction: column; align-items: flex-start !important; gap: var(--spacing-sm) !important; }
|
|
|
|
.stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-sm); }
|
|
.stat-card { padding: var(--spacing-md); }
|
|
.stat-card .stat-value { font-size: 24px; }
|
|
|
|
.stat-summary { gap: var(--spacing-sm); }
|
|
.stat-summary .stat-item { min-width: 70px; padding: var(--spacing-sm) var(--spacing-md); }
|
|
.stat-summary .stat-item .num { font-size: 18px; }
|
|
|
|
.search-bar { flex-direction: column; align-items: stretch; }
|
|
.search-bar .el-input, .search-bar .el-select { width: 100% !important; }
|
|
|
|
.el-dialog { width: calc(100vw - 24px) !important; max-width: none !important; }
|
|
.el-dialog__body { padding: var(--spacing-md) !important; }
|
|
.el-row .el-col-12 { width: 100% !important; }
|
|
|
|
.el-button { min-height: 36px; }
|
|
.el-button--small { min-height: 36px; padding: var(--spacing-sm) 14px !important; }
|
|
.el-button--default { padding: 10px 16px !important; }
|
|
.el-input__inner { min-height: 38px; }
|
|
|
|
.preview-iframe { min-height: 300px; }
|
|
.preview-dialog-custom { position: relative; }
|
|
}
|
|
@media (min-width: 769px) {
|
|
.preview-iframe { min-height: 400px; }
|
|
.preview-dialog-custom { position: relative; }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.login-card { max-width: 90%; padding: var(--spacing-xl) var(--spacing-lg); margin: var(--spacing-md); border-radius: var(--radius-xl); }
|
|
.login-title { font-size: var(--font-size-h2); margin-bottom: var(--spacing-lg); }
|
|
}
|
|
|
|
/* ========== Utility ========== */
|
|
.btn-group-mobile { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
.btn-group-mobile .el-button { flex: 1; min-width: 0; justify-content: center; }
|
|
.action-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
.action-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
|
|
.filter-bar-mobile { flex-direction: column; align-items: stretch !important; }
|
|
.filter-bar-mobile .el-select, .filter-bar-mobile .el-input { width: 100% !important; }
|
|
.page-header-mobile { flex-direction: column; align-items: flex-start !important; gap: var(--spacing-sm) !important; }
|