This commit introduces a complete visual overhaul of the AutoGLM Dashboard with a distinctive "Industrial Cyber Console" aesthetic that transforms the interface into a futuristic control center. Design Concept: - Industrial control panels + Cyberpunk + Retro CRT terminal aesthetics - Dark background with neon status indicators (green/amber/red) - Monospace code fonts + Sci-fi display typography - Grid lines, scanlines, glowing borders, tech effects - CRT effects, blinking cursors, data flow animations New Files: - dashboard/static/css/cyber-core.css - Core theme variables, global effects, and utility classes (364 lines) Updated Files: - dashboard/static/css/dashboard.css - Main dashboard styles (577 lines) • Animated header with blinking prompt cursor • Device cards with neon glow on hover • Task items with status indicators and data flow effects • Custom button styles with light sweep animation • Toast notifications with colored left borders - dashboard/static/css/video-learning.css - Video learning page styles (649 lines) • Config section with tech-inspired form inputs • Custom checkbox with neon glow effect • Progress bars with shimmer animation • Session cards with holographic border effects • Video placeholders with "NO_SIGNAL" indicator - dashboard/static/css/sessions.css - Sessions list page styles (589 lines) • Session cards with status indicator dots • Progress bars with striped overlays • Filter buttons with active state glow • Empty state with pulsing circle animation • Action buttons with type-specific colors Key Visual Elements: - Font: Orbitron (display) + JetBrains Mono (code) - Colors: Neon green (#00ff9f), Amber (#ffb800), Red (#ff4757) - Backgrounds: Deep navy (#0a0e27) with grid overlay - Effects: CRT scanlines, data flow, pulse animations, glow shadows - Decorations: Corner accents, status indicators, tech borders Technical Details: - CSS custom properties for consistent theming - @import for core styles across all pages - Pseudo-elements for decorative effects (::before, ::after) - Keyframe animations: scanline, pulse, shimmer, blink, dataFlow - Backdrop filters for glass effects - Box-shadow for neon glow effects Co-Authored-By: Claude <noreply@anthropic.com>
649 lines
13 KiB
CSS
649 lines
13 KiB
CSS
/**
|
|
* Video Learning Page - Industrial Cyber Console
|
|
* 视频学习页面样式
|
|
*/
|
|
|
|
/* 导入核心样式 */
|
|
@import url('./cyber-core.css');
|
|
|
|
/* ==================== Header 特殊样式 ==================== */
|
|
.header h1 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* ==================== 配置区域 ==================== */
|
|
.config-section {
|
|
background: linear-gradient(135deg, var(--cyber-bg-secondary) 0%, var(--cyber-bg-tertiary) 100%);
|
|
border: 1px solid var(--cyber-border);
|
|
padding: 2rem;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
.config-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, transparent, var(--cyber-green), transparent);
|
|
}
|
|
|
|
.config-section::after {
|
|
content: 'CONFIG_MODE';
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
right: 1rem;
|
|
font-size: 0.6rem;
|
|
font-family: var(--cyber-font-display);
|
|
color: var(--cyber-green);
|
|
opacity: 0.5;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.config-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
font-family: var(--cyber-font-display);
|
|
color: var(--cyber-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group label::before {
|
|
content: '>';
|
|
color: var(--cyber-green);
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.form-group select,
|
|
.form-group input[type="text"],
|
|
.form-group input[type="number"] {
|
|
padding: 0.75rem 1rem;
|
|
background: var(--cyber-bg-primary);
|
|
border: 1px solid var(--cyber-border);
|
|
color: var(--cyber-text-primary);
|
|
font-size: 0.9rem;
|
|
font-family: var(--cyber-font-mono);
|
|
transition: var(--cyber-transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.form-group select:focus,
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--cyber-green);
|
|
box-shadow: 0 0 15px var(--cyber-green-dim), inset 0 0 10px var(--cyber-green-dim);
|
|
}
|
|
|
|
.form-group select:disabled,
|
|
.form-group input:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.form-group select option {
|
|
background: var(--cyber-bg-secondary);
|
|
color: var(--cyber-text-primary);
|
|
}
|
|
|
|
.form-group small {
|
|
font-size: 0.7rem;
|
|
color: var(--cyber-text-muted);
|
|
font-family: var(--cyber-font-mono);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group small::before {
|
|
content: '//';
|
|
color: var(--cyber-border-bright);
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* 复选框组 */
|
|
.checkbox-group {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 1rem !important;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
flex-direction: row;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-group label::before {
|
|
display: none;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--cyber-border);
|
|
background: var(--cyber-bg-primary);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: var(--cyber-transition-fast);
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"]:checked {
|
|
background: var(--cyber-green);
|
|
border-color: var(--cyber-green);
|
|
box-shadow: 0 0 10px var(--cyber-green-glow);
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"]:checked::after {
|
|
content: '✓';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: var(--cyber-bg-primary);
|
|
font-size: 0.8rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.checkbox-group span {
|
|
font-size: 0.85rem;
|
|
color: var(--cyber-text-primary);
|
|
}
|
|
|
|
/* ==================== 会话区域 ==================== */
|
|
.session-section {
|
|
background: linear-gradient(135deg, var(--cyber-bg-secondary) 0%, var(--cyber-bg-tertiary) 100%);
|
|
border: 1px solid var(--cyber-border);
|
|
padding: 2rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.session-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, var(--cyber-green), var(--cyber-blue), var(--cyber-green));
|
|
animation: dataFlow 3s linear infinite;
|
|
}
|
|
|
|
.session-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.session-header h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--cyber-green);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.session-header h2::before {
|
|
content: '◆';
|
|
font-size: 0.8rem;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.session-controls {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* ==================== 进度条 ==================== */
|
|
.progress-section {
|
|
background: var(--cyber-bg-primary);
|
|
border: 1px solid var(--cyber-border);
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 4px;
|
|
height: 100%;
|
|
background: linear-gradient(180deg, var(--cyber-green), transparent);
|
|
}
|
|
|
|
.progress-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.85rem;
|
|
color: var(--cyber-text-secondary);
|
|
font-family: var(--cyber-font-mono);
|
|
}
|
|
|
|
.progress-info span:first-child::before {
|
|
content: 'PROGRESS::';
|
|
color: var(--cyber-green);
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.progress-info span:last-child::after {
|
|
content: '%';
|
|
color: var(--cyber-green);
|
|
}
|
|
|
|
.progress-bar-large {
|
|
height: 10px;
|
|
background: var(--cyber-bg-secondary);
|
|
border: 1px solid var(--cyber-border);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-bar-large::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: repeating-linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
transparent 4px,
|
|
rgba(0, 0, 0, 0.4) 4px,
|
|
rgba(0, 0, 0, 0.4) 8px
|
|
);
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--cyber-green), var(--cyber-blue));
|
|
transition: width 0.5s ease;
|
|
position: relative;
|
|
box-shadow: 0 0 15px var(--cyber-green-glow);
|
|
}
|
|
|
|
.progress-fill::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 20px;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
|
|
animation: shimmer 1.5s infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% { opacity: 0; }
|
|
50% { opacity: 1; }
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
.progress-stats {
|
|
margin-top: 0.75rem;
|
|
font-size: 0.75rem;
|
|
color: var(--cyber-text-muted);
|
|
font-family: var(--cyber-font-mono);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.progress-stats::before {
|
|
content: '⏱';
|
|
color: var(--cyber-green);
|
|
}
|
|
|
|
/* ==================== 当前视频 ==================== */
|
|
.current-video {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.current-video h3 {
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: var(--cyber-text-primary);
|
|
margin-bottom: 1rem;
|
|
font-family: var(--cyber-font-display);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.current-video h3::before {
|
|
content: '▶';
|
|
color: var(--cyber-green);
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* ==================== 视频卡片 ==================== */
|
|
.video-card {
|
|
background: var(--cyber-bg-primary);
|
|
border: 1px solid var(--cyber-border);
|
|
overflow: hidden;
|
|
transition: var(--cyber-transition-normal);
|
|
position: relative;
|
|
}
|
|
|
|
.video-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
border: 1px solid transparent;
|
|
transition: var(--cyber-transition-normal);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.video-card:hover {
|
|
border-color: var(--cyber-green);
|
|
box-shadow: 0 0 20px var(--cyber-green-dim);
|
|
}
|
|
|
|
.video-card:hover::before {
|
|
border-color: var(--cyber-green);
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.video-screenshot {
|
|
width: 100%;
|
|
aspect-ratio: 9/16;
|
|
background: #000;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.video-screenshot::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
right: 10px;
|
|
bottom: 10px;
|
|
border: 1px solid rgba(0, 255, 159, 0.2);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.video-screenshot img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.video-placeholder {
|
|
width: 100%;
|
|
aspect-ratio: 9/16;
|
|
background: var(--cyber-bg-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--cyber-text-muted);
|
|
position: relative;
|
|
}
|
|
|
|
.video-placeholder::before {
|
|
content: 'NO_SIGNAL';
|
|
position: absolute;
|
|
bottom: 1rem;
|
|
font-size: 0.6rem;
|
|
font-family: var(--cyber-font-display);
|
|
color: var(--cyber-red);
|
|
animation: blink 2s infinite;
|
|
}
|
|
|
|
.video-info {
|
|
padding: 1rem;
|
|
background: var(--cyber-bg-secondary);
|
|
border-top: 1px solid var(--cyber-border);
|
|
}
|
|
|
|
.video-id {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
color: var(--cyber-green);
|
|
margin-bottom: 0.5rem;
|
|
font-family: var(--cyber-font-mono);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.video-id::before {
|
|
content: '#';
|
|
}
|
|
|
|
.video-description {
|
|
font-size: 0.85rem;
|
|
color: var(--cyber-text-primary);
|
|
margin-bottom: 0.75rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.video-stats {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
font-size: 0.75rem;
|
|
color: var(--cyber-text-secondary);
|
|
}
|
|
|
|
.video-stats span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.video-stats svg {
|
|
color: var(--cyber-green);
|
|
}
|
|
|
|
/* 分类标签 */
|
|
.video-category {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.category-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0.25rem 0.6rem;
|
|
background: var(--cyber-green-dim);
|
|
color: var(--cyber-green);
|
|
border: 1px solid var(--cyber-green);
|
|
font-size: 0.65rem;
|
|
font-weight: 500;
|
|
font-family: var(--cyber-font-display);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.category-badge::before {
|
|
content: '◆';
|
|
margin-right: 0.35rem;
|
|
font-size: 0.5rem;
|
|
}
|
|
|
|
/* 标签 */
|
|
.video-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.video-tags .tag {
|
|
font-size: 0.65rem;
|
|
color: var(--cyber-text-secondary);
|
|
background: var(--cyber-bg-primary);
|
|
padding: 0.2rem 0.5rem;
|
|
border: 1px solid var(--cyber-border);
|
|
font-family: var(--cyber-font-mono);
|
|
}
|
|
|
|
.video-tags .tag::before {
|
|
content: '#';
|
|
color: var(--cyber-green);
|
|
}
|
|
|
|
/* ==================== 会话完成 ==================== */
|
|
.session-complete {
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
position: relative;
|
|
}
|
|
|
|
.session-complete::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 250px;
|
|
height: 250px;
|
|
border: 2px solid var(--cyber-green);
|
|
border-radius: 50%;
|
|
opacity: 0.1;
|
|
animation: pulse 3s infinite;
|
|
}
|
|
|
|
.complete-icon {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.complete-icon svg {
|
|
color: var(--cyber-green);
|
|
filter: drop-shadow(0 0 15px var(--cyber-green));
|
|
animation: successPulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes successPulse {
|
|
0%, 100% {
|
|
transform: scale(1);
|
|
filter: drop-shadow(0 0 15px var(--cyber-green));
|
|
}
|
|
50% {
|
|
transform: scale(1.05);
|
|
filter: drop-shadow(0 0 25px var(--cyber-green));
|
|
}
|
|
}
|
|
|
|
.session-complete h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--cyber-green);
|
|
margin-bottom: 0.75rem;
|
|
font-family: var(--cyber-font-display);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
text-shadow: 0 0 20px var(--cyber-green-dim);
|
|
}
|
|
|
|
.session-complete p {
|
|
color: var(--cyber-text-secondary);
|
|
margin-bottom: 2rem;
|
|
font-family: var(--cyber-font-mono);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ==================== 视频网格 ==================== */
|
|
.video-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.video-grid .video-card {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.video-grid .video-screenshot,
|
|
.video-grid .video-placeholder {
|
|
aspect-ratio: 9/16;
|
|
}
|
|
|
|
/* ==================== 历史记录 ==================== */
|
|
.history-section {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.history-section h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--cyber-text-primary);
|
|
margin-bottom: 1rem;
|
|
font-family: var(--cyber-font-display);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.history-section h2::before {
|
|
content: '◆';
|
|
color: var(--cyber-green);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* ==================== 响应式 ==================== */
|
|
@media (max-width: 768px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.session-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.video-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
}
|
|
|
|
.config-section,
|
|
.session-section {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|