refactor: 统一CSS设计系统 — 移除各页面重复内联样式,改用theme-modern.css自定义属性

This commit is contained in:
Yuzhiran Dev
2026-05-17 10:09:56 +08:00
parent 9c37c9a574
commit d32fc05f4f
7 changed files with 413 additions and 548 deletions
+4 -19
View File
@@ -7,29 +7,14 @@
<link rel="stylesheet" href="element-plus.css"> <link rel="stylesheet" href="element-plus.css">
<link rel="stylesheet" href="theme-modern.css"> <link rel="stylesheet" href="theme-modern.css">
<style> <style>
.search-bar { margin-left: auto; width: 240px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot.draft { background: #E6A23C; }
.status-dot.reviewed { background: #67C23A; }
.status-dot.published { background: #409EFF; }
.article-card-list { display: none; } .article-card-list { display: none; }
@media (max-width: 768px) { @media (max-width: 768px) {
.el-table { display: none; }
.article-card-list { display: block; } .article-card-list { display: block; }
.article-card { .article-card { background: var(--color-bg-raised); border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
background: white;
border-radius: 12px;
padding: 12px;
margin-bottom: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .article-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.article-card-title { font-size: 14px; font-weight: 600; color: #303133; flex: 1; margin-right: 8px; } .article-card-title { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text-primary); flex: 1; margin-right: 8px; }
.article-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: #606266; margin-bottom: 12px; } .article-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: var(--font-size-caption); color: var(--color-text-regular); margin-bottom: 12px; }
.article-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebeef5; } .article-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.article-card-actions .el-button { margin: 0; width: 100%; justify-content: center; } .article-card-actions .el-button { margin: 0; width: 100%; justify-content: center; }
.search-bar { width: 100%; margin-left: 0; } .search-bar { width: 100%; margin-left: 0; }
} }
+11 -121
View File
@@ -7,134 +7,24 @@
<link rel="stylesheet" href="element-plus.css"> <link rel="stylesheet" href="element-plus.css">
<link rel="stylesheet" href="theme-modern.css"> <link rel="stylesheet" href="theme-modern.css">
<style> <style>
/* 仪表盘统计卡片 */
.page { display: none; animation: fadeIn 0.5s ease-out; } .page { display: none; animation: fadeIn 0.5s ease-out; }
.page.active { display: block; } .page.active { display: block; }
@keyframes fadeIn { @keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); } from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(0); }
} }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-lg); }
.stats-grid { .module-card { background: var(--color-bg-raised); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--spacing-lg); transition: all 0.3s var(--ease-out); }
display: grid; .module-card:hover { transform: translateY(-6px); border-color: var(--color-border-hover); box-shadow: var(--shadow-lg); }
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); .module-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-md); }
gap: 20px; .module-title { font-size: var(--font-size-h3); font-weight: 600; color: var(--color-text-primary); display: flex; align-items: center; gap: var(--spacing-sm); }
margin-bottom: 40px; .module-status { padding: 6px 12px; border-radius: var(--radius-xl); font-size: var(--font-size-caption); font-weight: 600; background: rgba(103,194,58,0.12); color: #67c23a; border: 1px solid rgba(103,194,58,0.25); }
} .module-status.running { animation: pulse-glow 2s infinite; }
.stat-card { .module-content { font-size: var(--font-size-body); color: var(--color-text-regular); line-height: 1.8; }
background: white; .module-content div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--color-border); }
border: 1px solid #ebeef5;
border-radius: 16px;
padding: 24px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
overflow: hidden;
}
.stat-card:hover {
transform: translateY(-8px) scale(1.02);
border-color: #c6d8ff;
box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}
.stat-title {
font-size: 13px;
color: #909399;
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 500;
}
.stat-value {
font-size: 36px;
font-weight: 800;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1.2;
}
.stat-card.primary .stat-value { background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.success .stat-value { background: linear-gradient(135deg, #67c23a, #85e61d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.warning .stat-value { background: linear-gradient(135deg, #e6a23c, #f5c543); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.danger .stat-value { background: linear-gradient(135deg, #f56c6c, #f79296); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.info .stat-value { background: linear-gradient(135deg, #409eff, #5cd0f3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
/* 模块卡片 */
.module-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.module-card {
background: white;
border: 1px solid #ebeef5;
border-radius: 16px;
padding: 24px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.module-card:hover {
transform: translateY(-6px);
border-color: #c6d8ff;
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.module-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.module-title {
font-size: 16px;
font-weight: 600;
color: #303133;
display: flex;
align-items: center;
gap: 8px;
}
.module-status {
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
background: rgba(103, 194, 58, 0.12);
color: #67c23a;
border: 1px solid rgba(103, 194, 58, 0.25);
}
.module-status.running {
animation: pulse-glow 2s infinite;
}
.module-content {
font-size: 14px;
color: #606266;
line-height: 1.8;
}
.module-content div {
display: flex;
justify-content: space-between;
padding: 4px 0;
border-bottom: 1px dashed #f0f0f0;
}
.module-content div:last-child { border-bottom: none; } .module-content div:last-child { border-bottom: none; }
.stat-title { font-size: var(--font-size-small); color: var(--color-text-secondary); margin-bottom: var(--spacing-md); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
@media (max-width: 768px) { @media (max-width: 768px) { .module-grid { grid-template-columns: 1fr; } }
.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { padding: 16px; }
.stat-value { font-size: 24px; }
.module-grid { grid-template-columns: 1fr; }
}
</style>
<style>
body { background: #f5f7fa !important; color: #303133 !important; }
.navbar { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; border-bottom: none !important; backdrop-filter: none !important; }
.navbar-title { background: none !important; -webkit-text-fill-color: white !important; color: white !important; }
.user-info { color: white !important; }
.avatar { background: rgba(255,255,255,0.2) !important; color: white !important; }
.sidebar { background: white !important; border-right: 1px solid #ebeef5 !important; backdrop-filter: none !important; }
#page-overview h2, #page-overview h3, #page-overview .module-title { color: #303133 !important; }
#page-overview .module-content { color: #303133 !important; }
</style> </style>
<script src="uni-nav.js"></script> <script src="uni-nav.js"></script>
+1 -212
View File
@@ -5,218 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>宇之然内容创作平台 - 登录</title> <title>宇之然内容创作平台 - 登录</title>
<link rel="stylesheet" href="element-plus.css"> <link rel="stylesheet" href="element-plus.css">
<style> <link rel="stylesheet" href="theme-modern.css">
/* 重置与基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
/* 紫蓝渐变背景 */
background: linear-gradient(135deg, #667eea 0%, #764ba2 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 ease-in-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); }
}
/* 登录卡片 */
.login-card {
position: relative;
z-index: 10;
width: 100%;
max-width: 420px;
padding: 48px 40px;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(255, 255, 255, 0.2) inset;
animation: slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slide-up {
from {
opacity: 0;
transform: translateY(40px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.login-title {
text-align: center;
font-size: 28px;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-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: 14px;
margin-top: -24px;
margin-bottom: 32px;
}
/* 表单样式 */
.form-group {
margin-bottom: 24px;
position: relative;
}
.form-input {
width: 100%;
padding: 14px 16px;
border: 2px solid #e5e7eb;
border-radius: 12px;
font-size: 16px;
color: #1f2937;
background: #f9fafb;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
outline: none;
}
.form-input:focus {
border-color: #667eea;
background: #ffffff;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
transform: translateY(-2px);
}
.form-input:not(:placeholder-shown) {
border-color: #764ba2;
}
.form-label {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: #9ca3af;
pointer-events: none;
transition: all 0.2s ease;
font-size: 16px;
background: transparent;
padding: 0 4px;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
top: 0;
font-size: 12px;
color: #667eea;
background: #ffffff;
}
/* 登录按钮 */
.login-btn {
width: 100%;
padding: 14px;
margin-top: 8px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
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: 8px;
vertical-align: middle;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* 底部信息 */
.login-footer {
text-align: center;
margin-top: 24px;
color: #6b7280;
font-size: 13px;
}
.login-footer a {
color: #667eea;
text-decoration: none;
transition: color 0.2s;
}
.login-footer a:hover {
color: #764ba2;
}
/* 响应式 */
@media (max-width: 480px) {
.login-card {
max-width: 90%;
padding: 32px 24px;
margin: 16px;
border-radius: 20px;
}
.login-title {
font-size: 24px;
margin-bottom: 24px;
}
}
</style>
</head> </head>
<body> <body>
<!-- 背景装饰 --> <!-- 背景装饰 -->
+6 -6
View File
@@ -28,14 +28,14 @@
} }
.metrics-table { display: block; } .metrics-table { display: block; }
.metrics-card-list { display: none; } .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: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-row:last-child { border-bottom: none; }
.metrics-card-label { color: #909399; } .metrics-card-label { color: var(--color-text-secondary); }
.metrics-card-value { color: #303133; font-weight: 500; } .metrics-card-value { color: var(--color-text-primary); font-weight: 500; }
.metrics-card-title { font-size: 15px; font-weight: 600; color: #303133; margin-bottom: 10px; } .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: 12px; color: #606266; margin-top: 6px; line-height: 1.5; } .metrics-card-reason { font-size: var(--font-size-caption); color: var(--color-text-regular); margin-top: 6px; line-height: 1.5; }
</style> </style>
<script src="uni-nav.js"></script> <script src="uni-nav.js"></script>
<script src="chart.umd.min.js"></script> <script src="chart.umd.min.js"></script>
+379 -137
View File
@@ -1,107 +1,234 @@
/* Modern page fade-in */ /* ============================================
.page-fade { animation: fadeIn 0.4s ease-out; } 宇之然 · Design System
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } Inspired by opencode.ai — clean, modern, responsive
============================================ */
/* Enhanced cards */ /* ========== Design Tokens ========== */
.card-modern { border-radius: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } :root {
.card-modern:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); } /* 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 */ --color-bg: #f5f7fa;
.text-gradient { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } --color-bg-raised: #ffffff;
.text-gradient-primary { background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } --color-bg-subtle: #f0f5ff;
.text-gradient-success { background: linear-gradient(135deg, #67c23a, #85e61d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } --color-border: #ebeef5;
.text-gradient-warning { background: linear-gradient(135deg, #e6a23c, #f5c543); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } --color-border-hover: #c6d8ff;
.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; }
/* Pulse animation */ --color-text-primary: #303133;
@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-regular: #606266;
--color-text-secondary: #909399;
--color-text-placeholder: #c0c4cc;
/* Shimmer hover effect */ /* Spacing */
.shimmer { position: relative; overflow: hidden; } --spacing-xs: 4px;
.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; } --spacing-sm: 8px;
.shimmer:hover::before { left: 100%; } --spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;
--spacing-2xl: 48px;
/* Elastic hover lift */ /* Font scale */
.hover-lift { transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
.hover-lift:hover { transform: translateY(-6px) scale(1.02); } --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 */ /* Border radius */
.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; } --radius-sm: 8px;
.stat-card-modern:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #c6d8ff; } --radius-md: 12px;
.stat-card-modern .stat-value { font-size: 32px; font-weight: 800; line-height: 1.2; } --radius-lg: 16px;
.stat-card-modern .stat-label { font-size: 13px; color: #909399; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; } --radius-xl: 20px;
--radius-full: 24px;
/* Status badge */ /* Shadows */
.status-badge-modern { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; } --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
.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; } --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 */ /* Transitions */
.el-table { border-radius: 12px; overflow: hidden; width: 100%; } --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
.el-table .el-table__cell { word-break: break-word; } --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
/* Smooth page transitions */ /* Layout */
.page-enter-active { animation: fadeIn 0.4s ease-out; } --nav-height: 60px;
--content-max-width: 1400px;
/* ========== 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; }
} }
/* ========== 预览对话框(选题/文章共用) ========== */ /* ========== Dark Mode ========== */
.preview-iframe { box-sizing: border-box; } @media (prefers-color-scheme: dark) {
.preview-dialog-custom.el-dialog { max-height: calc(100vh - 90px); overflow: hidden; display: flex; flex-direction: column; margin-top: 0 !important; } :root {
.preview-dialog-custom.el-dialog .el-dialog__header { padding: 8px 12px; margin: 0; flex-shrink: 0; } --color-bg: #1a1a2e;
.preview-dialog-custom.el-dialog .el-dialog__body { padding: 12px; overflow: hidden; } --color-bg-raised: #16213e;
.preview-dialog-custom.el-dialog .el-dialog__footer { flex-shrink: 0; padding: 8px 12px; } --color-bg-subtle: #1a1a3e;
.preview-dialog-custom.is-fullscreen { z-index: 100001 !important; } --color-border: #2a2a4e;
body:has(.preview-dialog-custom.is-fullscreen) > [class*="el-overlay"] { z-index: 100000 !important; } --color-border-hover: #4a4a6e;
@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; } }
/* ========== 共享卡片无数据状态 ========== */ --color-text-primary: #e0e6ed;
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #909399; } --color-text-regular: #a0a6b0;
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; } --color-text-secondary: #6b7280;
.empty-state .empty-text { font-size: 14px; margin-bottom: 16px; } --color-text-placeholder: #4a4a5e;
.loading-state { text-align: center; padding: 60px 20px; color: #909399; font-size: 16px; }
/* ========== 通用移动端卡片列表(替代表格) ========== */ --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-table { display: block; }
.card-list-mobile { display: none; } .card-list-mobile { display: none; }
@media (max-width: 768px) { @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 { display: block; }
} }
.card-list-mobile .card-item { .card-list-mobile .card-item {
background: #fafbfc; border-radius: 10px; padding: 14px; margin-bottom: 10px; background: var(--color-bg); border-radius: 10px; padding: 14px; margin-bottom: 10px;
border: 1px solid #ebeef5; transition: all 0.2s ease; 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-item:active { transform: scale(0.99); }
.card-list-mobile .card-row { .card-list-mobile .card-row {
display: flex; justify-content: space-between; padding: 6px 0; 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-row:last-child { border-bottom: none; }
.card-list-mobile .card-label { color: #909399; flex-shrink: 0; margin-right: 8px; } .card-list-mobile .card-label { color: var(--color-text-secondary); flex-shrink: 0; margin-right: var(--spacing-sm); }
.card-list-mobile .card-value { color: #303133; text-align: right; word-break: break-word; } .card-list-mobile .card-value { color: var(--color-text-primary); text-align: right; word-break: break-word; }
.card-list-mobile .card-actions { .card-list-mobile .card-actions {
display: flex; gap: 8px; justify-content: flex-end; display: flex; gap: var(--spacing-sm); justify-content: flex-end;
padding-top: 10px; margin-top: 6px; border-top: 1px solid #ebeef5; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--color-border);
} }
/* ========== 统计摘要条 ========== */ /* ========== Status Badge & Dots ========== */
.stat-summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--spacing-xs); }
.stat-summary .stat-item { .status-dot.pending, .status-dot.\34 pending { background: var(--color-warning); }
background: #f0f5ff; border-radius: 8px; padding: 12px 20px; .status-dot.review, .status-dot.\34 review { background: var(--color-danger); }
display: flex; flex-direction: column; align-items: center; min-width: 100px; .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; } .bg-circle {
.stat-summary .stat-item .label { font-size: 12px; color: #909399; margin-top: 4px; } 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) { @media (max-width: 768px) {
.stat-summary { gap: 8px; } .content-area { padding: var(--spacing-md) !important; padding-bottom: 80px; }
.stat-summary .stat-item { min-width: 70px; padding: 8px 12px; } .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; } .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 { flex-direction: column; align-items: stretch; }
.search-bar .el-input, .search-bar .el-select { width: 100% !important; } .search-bar .el-input, .search-bar .el-select { width: 100% !important; }
}
/* ========== 触摸优化 ========== */ .el-dialog { width: calc(100vw - 24px) !important; max-width: none !important; }
@media (max-width: 768px) { .el-dialog__body { padding: var(--spacing-md) !important; }
.el-row .el-col-12 { width: 100% !important; }
.el-button { min-height: 36px; } .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-button--default { padding: 10px 16px !important; }
.el-input__inner { min-height: 38px; } .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; } .preview-iframe { max-height: calc(100vh - 250px) !important; }
.btn-group-mobile .el-button { flex: 1; min-width: 0; justify-content: center; } .preview-dialog-custom { position: relative; }
.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; }
} }
@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; }
+6 -22
View File
@@ -7,35 +7,19 @@
<link rel="stylesheet" href="element-plus.css"> <link rel="stylesheet" href="element-plus.css">
<link rel="stylesheet" href="theme-modern.css"> <link rel="stylesheet" href="theme-modern.css">
<style> <style>
.selected-count { color: #909399; font-size: 14px; margin-left: auto; } .selected-count { color: var(--color-text-secondary); font-size: var(--font-size-body); margin-left: auto; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot.pending { background: #E6A23C; }
.status-dot.review { background: #F56C6C; }
.status-dot.ready { background: #67C23A; }
.status-dot.published { background: #409EFF; }
.topic-card-list { display: none; } .topic-card-list { display: none; }
@media (max-width: 768px) { @media (max-width: 768px) {
.el-table { display: none; }
.topic-card-list { display: block; } .topic-card-list { display: block; }
.topic-card { .topic-card { background: var(--color-bg-raised); border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
background: white;
border-radius: 12px;
padding: 12px;
margin-bottom: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.topic-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .topic-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.topic-card-title { font-size: 16px; font-weight: 600; color: #303133; flex: 1; margin-right: 8px; } .topic-card-title { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text-primary); flex: 1; margin-right: 8px; }
.topic-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .topic-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.topic-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: #606266; margin-bottom: 12px; } .topic-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: var(--font-size-caption); color: var(--color-text-regular); margin-bottom: 12px; }
.topic-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebeef5; } .topic-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.topic-card-actions .el-button { margin: 0; width: 100%; justify-content: center; } .topic-card-actions .el-button { margin: 0; width: 100%; justify-content: center; }
.topic-card-actions .el-button:last-child:nth-child(odd) { grid-column: 1 / -1; } .topic-card-actions .el-button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.topic-card.is-checked { border: 2px solid #409eff; box-shadow: 0 0 0 1px rgba(64,158,255,0.2); } .topic-card.is-checked { border: 2px solid var(--color-primary); box-shadow: 0 0 0 1px rgba(64,158,255,0.2); }
} }
</style> </style>
<script src="uni-nav.js"></script> <script src="uni-nav.js"></script>
+6 -31
View File
@@ -15,39 +15,14 @@
@media (max-width: 768px) { @media (max-width: 768px) {
.user-table { display: none; } .user-table { display: none; }
.user-card-list { display: block; margin: 0 -16px; } .user-card-list { display: block; margin: 0 -16px; }
.user-card { .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; }
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:active { transform: scale(0.99); } .user-card:active { transform: scale(0.99); }
.user-card-header { .user-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
display: flex; .user-card-name { font-size: var(--font-size-h3); font-weight: 600; display: flex; align-items: center; gap: var(--spacing-sm); }
justify-content: space-between; .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; }
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-meta-item { display: flex; flex-direction: column; gap: 2px; } .user-card-meta-item { display: flex; flex-direction: column; gap: 2px; }
.user-card-meta-label { font-size: 11px; color: #909399; } .user-card-meta-label { font-size: var(--font-size-caption); color: var(--color-text-secondary); }
.user-card-actions { .user-card-actions { display: flex; gap: var(--spacing-sm); justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--color-border); }
display: flex;
gap: 8px;
justify-content: flex-end;
padding-top: 12px;
border-top: 1px solid #ebeef5;
}
} }
</style> </style>
<script src="uni-nav.js"></script> <script src="uni-nav.js"></script>