/* 华文教师平台专用样式 */
:root {
    --teacher-primary: #2C5AA0;
    --teacher-secondary: #4CAF50;
    --teacher-accent: #FF9800;
    --teacher-light: #E8F5E9;
    --teacher-dark: #1A237E;
    --teacher-warning: #FF5252;
    --teacher-info: #2196F3;
    --teacher-success: #4CAF50;
}

/* 课程设计页面 */
.course-design-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.design-toolbar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.design-canvas {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 600px;
}

.lesson-module {
    background: var(--teacher-light);
    border: 2px dashed var(--teacher-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.lesson-module:hover {
    border-color: var(--teacher-accent);
    background: #F0F7FF;
}

/* 教案管理页面 */
.lesson-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lesson-plan-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.lesson-plan-card:hover {
    transform: translateY(-5px);
}

.lesson-header {
    background: linear-gradient(135deg, var(--teacher-primary), var(--teacher-dark));
    color: white;
    padding: 20px;
    position: relative;
}

.lesson-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.lesson-content {
    padding: 20px;
}

.lesson-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lesson-tag {
    background: var(--teacher-light);
    color: var(--teacher-primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* 资源库页面 */
.resource-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.resource-category-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.resource-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.resource-item:hover {
    border-color: var(--teacher-primary);
    background: #F5F9FF;
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: var(--teacher-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--teacher-primary);
}

/* 学生管理页面 */
.student-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.student-table th {
    background: var(--teacher-primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.student-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.student-table tr:hover {
    background: #f5f9ff;
}

.progress-cell {
    min-width: 150px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--teacher-success);
    transition: width 0.3s ease;
}

/* 测评中心 */
.assessment-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.assessment-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px;
    background: var(--teacher-light);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--teacher-primary);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 协作空间 */
.collaboration-room {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--teacher-light);
}

.room-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: var(--teacher-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .design-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .lesson-plan-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-categories {
        grid-template-columns: 1fr;
    }
    
    .student-table {
        display: block;
        overflow-x: auto;
    }
    
    .assessment-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--teacher-light);
    border-top-color: var(--teacher-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* 表单样式 */
.teacher-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--teacher-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--teacher-primary);
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    color: var(--teacher-light);
    margin-bottom: 20px;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--teacher-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teacher-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--teacher-primary);
}