* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

header h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav button {
    padding: 10px 24px;
    margin-left: 10px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav button:hover {
    background: #667eea;
    color: white;
}

nav button.active {
    background: #667eea;
    color: white;
}

main {
    padding: 30px 0;
}

.student-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 50px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.student-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #e0e0e0;
}

.success-btn {
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

#training-area {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 150px);
}

.task-sidebar {
    width: 280px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.task-sidebar h3 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 18px;
}

.task-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.task-item:hover {
    background: #f5f5f5;
}

.task-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.task-item.completed {
    border-left: 4px solid #10b981;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-detail {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.task-detail h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.task-detail .scenario {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.task-detail .goals {
    margin-bottom: 15px;
}

.task-detail .goals h4 {
    margin-bottom: 10px;
    color: #555;
}

.task-detail .goals ul {
    margin-left: 20px;
    color: #666;
}

.data-preview {
    margin-top: 15px;
}

.data-preview h4 {
    margin-bottom: 10px;
    color: #555;
}

.data-preview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-preview th,
.data-preview td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.data-preview th {
    background: #f5f5f5;
    font-weight: 600;
}

.chart-workspace {
    display: flex;
    gap: 20px;
    flex: 1;
}

.config-panel {
    width: 350px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.config-panel h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons button {
    flex: 1;
}

.chart-preview {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.chart-preview h3 {
    color: #667eea;
    margin-bottom: 20px;
}

#chart-container {
    flex: 1;
    min-height: 400px;
    width: 100%;
}

#score-report {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.score-header {
    text-align: center;
    margin-bottom: 30px;
}

.score-header .score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.score-circle.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.score-circle.good {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.score-circle.need-improve {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-details {
    margin-top: 20px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 10px;
}

.score-item.correct {
    border-left: 4px solid #10b981;
}

.score-item.wrong {
    border-left: 4px solid #ef4444;
}

.error-hint {
    background: #fef3c7;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #f59e0b;
}

.score-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.score-actions button {
    flex: 1;
}

.scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.scores-header h2 {
    color: white;
}

#scores-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.teacher-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}

.teacher-controls .primary-btn {
    width: auto;
    padding: 10px 24px;
}

#stats-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#error-stats {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#error-stats h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.error-bar {
    margin-bottom: 15px;
}

.error-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.error-bar-track {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.error-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.submissions-table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.submissions-table-container h3 {
    color: #667eea;
    margin-bottom: 20px;
}

#submissions-table {
    width: 100%;
    border-collapse: collapse;
}

#submissions-table th,
#submissions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#submissions-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #555;
}

#submissions-table tr:hover {
    background: #f9f9f9;
}

.score-high {
    color: #10b981;
    font-weight: 600;
}

.score-medium {
    color: #f59e0b;
    font-weight: 600;
}

.score-low {
    color: #ef4444;
    font-weight: 600;
}

.view-btn {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.view-btn:hover {
    background: #5a67d8;
}

@media (max-width: 1200px) {
    .chart-workspace {
        flex-direction: column;
    }
    .config-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #training-area {
        flex-direction: column;
    }
    .task-sidebar {
        width: 100%;
    }
    #stats-dashboard {
        grid-template-columns: 1fr;
    }
    .teacher-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.dashboard-container {
    padding: 20px;
    border-radius: 15px;
}

.dashboard-container.tech-dark {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: #e0e0e0;
}

.dashboard-container.business-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #333;
}

.dashboard-container.cyberpunk {
    background: linear-gradient(135deg, #0d0221 0%, #1a0533 50%, #0d0221 100%);
    color: #00f5ff;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-kpi-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-dark .dashboard-kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.business-light .dashboard-kpi-card {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cyberpunk .dashboard-kpi-card {
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid;
    animation: cyberpunk-glow 2s ease-in-out infinite alternate;
}

.dashboard-kpi-card:hover {
    transform: translateY(-5px);
}

.tech-dark .dashboard-kpi-card:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.business-light .dashboard-kpi-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-kpi-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.dashboard-kpi-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.dashboard-kpi-value {
    font-size: 28px;
    font-weight: bold;
}

.tech-dark .dashboard-kpi-value {
    text-shadow: 0 0 10px currentColor;
}

.cyberpunk .dashboard-kpi-value {
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px currentColor;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-chart-card {
    padding: 20px;
    border-radius: 12px;
}

.tech-dark .dashboard-chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.business-light .dashboard-chart-card {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cyberpunk .dashboard-chart-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.dashboard-chart-card h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.tech-dark .dashboard-chart-card h4 {
    color: #00d4ff;
}

.business-light .dashboard-chart-card h4 {
    color: #1e40af;
}

.cyberpunk .dashboard-chart-card h4 {
    color: #ff006e;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dashboard-chart-container {
    width: 100%;
    height: 300px;
}

.dashboard-full-width {
    grid-column: 1 / -1;
}

@keyframes cyberpunk-glow {
    0% {
        border-color: #ff006e;
        box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
    }
    100% {
        border-color: #00f5ff;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    }
}

@media (max-width: 1024px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* 大屏实训样式 */
.dashboard-section-content {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-section-content h2 {
    color: #1e40af;
    margin-bottom: 10px;
}

.dashboard-section-content p {
    color: #64748b;
    margin-bottom: 20px;
}

.dashboard-container {
    width: 100%;
    min-height: 800px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.dashboard-container.tech-dark {
    background: #0a0a1a;
    color: #e0e0e0;
}

.dashboard-container.neon-blue {
    background: #001a33;
    color: #00ffff;
}

.dashboard-container.cyberpunk {
    background: #0d0221;
    color: #00f5ff;
}

.dashboard-container.business-light {
    background: #ffffff;
    color: #333333;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dashboard-controls select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 20px;
    min-height: 600px;
    margin-bottom: 30px;
}

.dashboard-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.dashboard-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-item-header span {
    font-weight: 600;
    font-size: 14px;
}

.dashboard-item-controls {
    display: flex;
    gap: 5px;
}

.chart-select-btn,
.remove-chart-btn {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-select-btn:hover,
.remove-chart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.dashboard-item-content {
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-item-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.dashboard-atmosphere {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-atmosphere h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.atmosphere-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.atmosphere-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.atmosphere-controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .training-area {
        flex-direction: column;
    }
    
    .task-sidebar {
        width: 100%;
        max-height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .main-content {
        flex: 1;
    }
    
    .chart-workspace {
        flex-direction: column;
    }
    
    .config-panel {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .chart-preview {
        flex: 1;
    }
    
    #chart-container {
        height: 400px;
    }
    
    .teacher-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    
    #stats-dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-controls {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(12, 1fr);
        gap: 10px;
    }
    
    .atmosphere-controls {
        flex-direction: column;
        gap: 10px;
    }
}

