151 lines
2.7 KiB
CSS
151 lines
2.7 KiB
CSS
/* 基础重置 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
background: #f5f7fb;
|
|
color: #1e293b;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 导航栏 */
|
|
.channel-nav {
|
|
background: white;
|
|
padding: 1rem 2rem;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
display: flex;
|
|
gap: 2rem;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.nav-link {
|
|
text-decoration: none;
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 2px solid transparent;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: #0284c7;
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: #0284c7;
|
|
border-bottom-color: #0284c7;
|
|
}
|
|
|
|
/* 路由视图容器 */
|
|
.router-view {
|
|
flex: 1;
|
|
padding: 2rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
background: white;
|
|
border-radius: 12px 12px 0 0;
|
|
box-shadow: 0 -4px 12px rgba(0,0,0,0.02);
|
|
}
|
|
|
|
/* 状态栏 */
|
|
.status-bar {
|
|
background: #1e293b;
|
|
color: #94a3b8;
|
|
padding: 0.75rem 2rem;
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
border-top: 1px solid #334155;
|
|
}
|
|
|
|
/* 卡片网格 */
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.module-card {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
padding: 1.5rem 1rem;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
|
|
}
|
|
|
|
.module-card:hover {
|
|
transform: translateY(-4px);
|
|
border-color: #0284c7;
|
|
box-shadow: 0 12px 20px -8px rgba(2, 132, 199, 0.2);
|
|
}
|
|
|
|
.module-card h3 {
|
|
margin-bottom: 0.5rem;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.module-card p {
|
|
font-size: 0.9rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.loader {
|
|
display: inline-block;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid #e2e8f0;
|
|
border-top-color: #0284c7;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 错误提示 */
|
|
.error-message {
|
|
background: #fee2e2;
|
|
border: 1px solid #ef4444;
|
|
color: #b91c1c;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
/* 模块内容区 */
|
|
.module-content {
|
|
margin-top: 2rem;
|
|
border-top: 1px dashed #cbd5e1;
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.back-button {
|
|
background: none;
|
|
border: 1px solid #cbd5e1;
|
|
padding: 0.5rem 1.5rem;
|
|
border-radius: 30px;
|
|
cursor: pointer;
|
|
font-size: 0.95rem;
|
|
color: #475569;
|
|
transition: all 0.2s;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: #f1f5f9;
|
|
border-color: #94a3b8;
|
|
}
|