diff --git a/platform/frontend/articles.html b/platform/frontend/articles.html
index 4a027dc..c00420f 100644
--- a/platform/frontend/articles.html
+++ b/platform/frontend/articles.html
@@ -7,29 +7,14 @@
-
diff --git a/platform/frontend/login.html b/platform/frontend/login.html
index 41c70e0..5bc401d 100644
--- a/platform/frontend/login.html
+++ b/platform/frontend/login.html
@@ -5,218 +5,7 @@
宇之然内容创作平台 - 登录
-
+
diff --git a/platform/frontend/metrics.html b/platform/frontend/metrics.html
index c269d69..875c179 100644
--- a/platform/frontend/metrics.html
+++ b/platform/frontend/metrics.html
@@ -28,14 +28,14 @@
}
.metrics-table { display: block; }
.metrics-card-list { display: none; }
- .metrics-card { background: white; border-radius: 10px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
+ .metrics-card { background: var(--color-bg-raised); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.metrics-card:active { transform: scale(0.99); }
- .metrics-card-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; font-size: 13px; }
+ .metrics-card-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-size: var(--font-size-small); }
.metrics-card-row:last-child { border-bottom: none; }
- .metrics-card-label { color: #909399; }
- .metrics-card-value { color: #303133; font-weight: 500; }
- .metrics-card-title { font-size: 15px; font-weight: 600; color: #303133; margin-bottom: 10px; }
- .metrics-card-reason { font-size: 12px; color: #606266; margin-top: 6px; line-height: 1.5; }
+ .metrics-card-label { color: var(--color-text-secondary); }
+ .metrics-card-value { color: var(--color-text-primary); font-weight: 500; }
+ .metrics-card-title { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text-primary); margin-bottom: 10px; }
+ .metrics-card-reason { font-size: var(--font-size-caption); color: var(--color-text-regular); margin-top: 6px; line-height: 1.5; }
diff --git a/platform/frontend/theme-modern.css b/platform/frontend/theme-modern.css
index d77d26c..f019fe7 100644
--- a/platform/frontend/theme-modern.css
+++ b/platform/frontend/theme-modern.css
@@ -1,107 +1,234 @@
-/* Modern page fade-in */
-.page-fade { animation: fadeIn 0.4s ease-out; }
-@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
+/* ============================================
+ 宇之然 · Design System
+ Inspired by opencode.ai — clean, modern, responsive
+ ============================================ */
-/* Enhanced cards */
-.card-modern { border-radius: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
-.card-modern:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
+/* ========== 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;
-/* Gradient text */
-.text-gradient { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
-.text-gradient-primary { background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
-.text-gradient-success { background: linear-gradient(135deg, #67c23a, #85e61d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
-.text-gradient-warning { background: linear-gradient(135deg, #e6a23c, #f5c543); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
-.text-gradient-danger { background: linear-gradient(135deg, #f56c6c, #f79296); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
-.text-gradient-info { background: linear-gradient(135deg, #409eff, #5cd0f3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
+ --color-bg: #f5f7fa;
+ --color-bg-raised: #ffffff;
+ --color-bg-subtle: #f0f5ff;
+ --color-border: #ebeef5;
+ --color-border-hover: #c6d8ff;
-/* Pulse animation */
-@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); } }
+ --color-text-primary: #303133;
+ --color-text-regular: #606266;
+ --color-text-secondary: #909399;
+ --color-text-placeholder: #c0c4cc;
-/* Shimmer hover effect */
-.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%; }
+ /* Spacing */
+ --spacing-xs: 4px;
+ --spacing-sm: 8px;
+ --spacing-md: 16px;
+ --spacing-lg: 24px;
+ --spacing-xl: 32px;
+ --spacing-2xl: 48px;
-/* Elastic hover lift */
-.hover-lift { transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
-.hover-lift:hover { transform: translateY(-6px) scale(1.02); }
+ /* 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;
-/* Modern stat card */
-.stat-card-modern { border-radius: 16px; padding: 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: white; border: 1px solid #ebeef5; }
-.stat-card-modern:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #c6d8ff; }
-.stat-card-modern .stat-value { font-size: 32px; font-weight: 800; line-height: 1.2; }
-.stat-card-modern .stat-label { font-size: 13px; color: #909399; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
+ /* Border radius */
+ --radius-sm: 8px;
+ --radius-md: 12px;
+ --radius-lg: 16px;
+ --radius-xl: 20px;
+ --radius-full: 24px;
-/* Status badge */
-.status-badge-modern { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
-.status-badge-modern.running { background: rgba(103, 194, 58, 0.12); color: #67c23a; border: 1px solid rgba(103, 194, 58, 0.25); animation: pulse-glow 2s infinite; }
+ /* 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);
-/* el-table refinements */
-.el-table { border-radius: 12px; overflow: hidden; width: 100%; }
-.el-table .el-table__cell { word-break: break-word; }
+ /* Transitions */
+ --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
+ --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
-/* Smooth page transitions */
-.page-enter-active { animation: fadeIn 0.4s ease-out; }
-
-/* ========== Reset & Base ========== */
-* { margin: 0; padding: 0; box-sizing: border-box; }
-body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f7fa; color: #303133; min-height: 100vh; }
-
-/* ========== 统一布局 ========== */
-/* 固定顶部导航占位,所有页面自动继承 */
-.main-content { padding-top: 60px !important; display: flex; flex: 1; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 60px); }
-.content-area { flex: 1; padding: 24px; overflow-y: auto; }
-
-/* ========== 共享卡片 ========== */
-.card { background: white; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow-x: auto; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
-
-/* ========== 页面标题 ========== */
-.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
-.page-title { font-size: 24px; font-weight: 700; color: #303133; display: flex; align-items: center; gap: 8px; }
-
-/* ========== 筛选/工具栏 ========== */
-.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
-.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
-
-/* ========== H5响应式 ========== */
-@media (max-width: 768px) {
- /* 对话框自适应宽度 */
- .el-dialog { width: calc(100vw - 24px) !important; max-width: none !important; }
- .el-dialog__body { padding: 16px !important; }
-
- /* 表单网格在手机上改为单列 */
- .el-row .el-col-12 { width: 100% !important; }
-
- /* 手机端表格卡片 */
- .mobile-card { position: relative; }
- .mobile-card:active { transform: scale(0.98); }
-
- /* 共享 content-area + card 响应式 */
- .content-area { padding: 16px !important; padding-bottom: 80px; }
- .card { padding: 16px !important; }
-
- /* 页面标题在手机上紧凑 */
- .page-header { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
+ /* Layout */
+ --nav-height: 60px;
+ --content-max-width: 1400px;
}
-/* ========== 预览对话框(选题/文章共用) ========== */
-.preview-iframe { box-sizing: border-box; }
-.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: 8px 12px; margin: 0; flex-shrink: 0; }
-.preview-dialog-custom.el-dialog .el-dialog__body { padding: 12px; overflow: hidden; }
-.preview-dialog-custom.el-dialog .el-dialog__footer { flex-shrink: 0; padding: 8px 12px; }
-.preview-dialog-custom.is-fullscreen { z-index: 100001 !important; }
-body:has(.preview-dialog-custom.is-fullscreen) > [class*="el-overlay"] { z-index: 100000 !important; }
-@media (max-width: 768px) { .preview-iframe { max-height: calc(100vh - 250px) !important; } }
-@media (min-width: 769px) { .preview-iframe { max-height: calc(100vh - 100px) !important; } .preview-dialog-custom { position: relative; left: 90px; } }
+/* ========== Dark Mode ========== */
+@media (prefers-color-scheme: dark) {
+ :root {
+ --color-bg: #1a1a2e;
+ --color-bg-raised: #16213e;
+ --color-bg-subtle: #1a1a3e;
+ --color-border: #2a2a4e;
+ --color-border-hover: #4a4a6e;
-/* ========== 共享卡片无数据状态 ========== */
-.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #909399; }
-.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
-.empty-state .empty-text { font-size: 14px; margin-bottom: 16px; }
-.loading-state { text-align: center; padding: 60px 20px; color: #909399; font-size: 16px; }
+ --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));
+}
+.content-area { flex: 1; padding: var(--spacing-lg); 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);
+ overflow-x: auto;
+ 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) {
@@ -109,70 +236,185 @@ body:has(.preview-dialog-custom.is-fullscreen) > [class*="el-overlay"] { z-index
.card-list-mobile { display: block; }
}
.card-list-mobile .card-item {
- background: #fafbfc; border-radius: 10px; padding: 14px; margin-bottom: 10px;
- border: 1px solid #ebeef5; transition: all 0.2s ease;
+ 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: 13px; border-bottom: 1px dashed #f0f0f0;
+ 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: #909399; flex-shrink: 0; margin-right: 8px; }
-.card-list-mobile .card-value { color: #303133; text-align: right; word-break: break-word; }
+.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: 8px; justify-content: flex-end;
- padding-top: 10px; margin-top: 6px; border-top: 1px solid #ebeef5;
+ display: flex; gap: var(--spacing-sm); justify-content: flex-end;
+ padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--color-border);
}
-/* ========== 统计摘要条 ========== */
-.stat-summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
-.stat-summary .stat-item {
- background: #f0f5ff; border-radius: 8px; padding: 12px 20px;
- display: flex; flex-direction: column; align-items: center; min-width: 100px;
+/* ========== 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;
}
-.stat-summary .stat-item .num { font-size: 24px; font-weight: 600; color: #409eff; }
-.stat-summary .stat-item .label { font-size: 12px; color: #909399; margin-top: 4px; }
+.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; }
+.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; }
+.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) {
- .stat-summary { gap: 8px; }
- .stat-summary .stat-item { min-width: 70px; padding: 8px 12px; }
+ .content-area { padding: var(--spacing-md) !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; }
-}
-/* ========== 加载中状态 ========== */
-.card-loading { display: flex; justify-content: center; align-items: center; min-height: 200px; color: #909399; font-size: 14px; }
-
-/* ========== 状态圆点 ========== */
-.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
-.status-dot.pending { background: #E6A23C; }
-.status-dot.review { background: #F56C6C; }
-.status-dot.ready { background: #67C23A; }
-.status-dot.published { background: #409EFF; }
-.status-dot.draft { background: #909399; }
-
-/* ========== 搜索栏 ========== */
-.search-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
-@media (max-width: 768px) {
.search-bar { flex-direction: column; align-items: stretch; }
.search-bar .el-input, .search-bar .el-select { width: 100% !important; }
-}
-/* ========== 触摸优化 ========== */
-@media (max-width: 768px) {
+ .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: 8px 14px !important; }
+ .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; }
- .el-table__cell .el-button { padding: 8px 12px !important; }
- .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: 8px !important; }
+ .preview-iframe { max-height: calc(100vh - 250px) !important; }
+ .preview-dialog-custom { position: relative; }
}
+@media (min-width: 769px) {
+ .preview-iframe { max-height: calc(100vh - 100px) !important; }
+ .preview-dialog-custom { position: relative; left: 90px; }
+}
+
+@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; }
diff --git a/platform/frontend/topics.html b/platform/frontend/topics.html
index bacedaf..b8b5d23 100644
--- a/platform/frontend/topics.html
+++ b/platform/frontend/topics.html
@@ -7,35 +7,19 @@
diff --git a/platform/frontend/users.html b/platform/frontend/users.html
index 689c765..fed4d80 100644
--- a/platform/frontend/users.html
+++ b/platform/frontend/users.html
@@ -15,39 +15,14 @@
@media (max-width: 768px) {
.user-table { display: none; }
.user-card-list { display: block; margin: 0 -16px; }
- .user-card {
- background: white;
- border-radius: 10px;
- padding: 16px;
- margin-bottom: 12px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.08);
- transition: all 0.2s ease;
- }
+ .user-card { background: var(--color-bg-raised); border-radius: var(--radius-sm); padding: var(--spacing-md); margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: all 0.2s ease; }
.user-card:active { transform: scale(0.99); }
- .user-card-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- }
- .user-card-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
- .user-card-meta {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 8px;
- font-size: 13px;
- color: #606266;
- margin-bottom: 12px;
- }
+ .user-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
+ .user-card-name { font-size: var(--font-size-h3); font-weight: 600; display: flex; align-items: center; gap: var(--spacing-sm); }
+ .user-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-sm); font-size: var(--font-size-small); color: var(--color-text-regular); margin-bottom: 12px; }
.user-card-meta-item { display: flex; flex-direction: column; gap: 2px; }
- .user-card-meta-label { font-size: 11px; color: #909399; }
- .user-card-actions {
- display: flex;
- gap: 8px;
- justify-content: flex-end;
- padding-top: 12px;
- border-top: 1px solid #ebeef5;
- }
+ .user-card-meta-label { font-size: var(--font-size-caption); color: var(--color-text-secondary); }
+ .user-card-actions { display: flex; gap: var(--spacing-sm); justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--color-border); }
}