.resources-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 120px);
    background-color: #f5f5f5;
}

.resources-sidebar {
    width: 250px;
    background: transparent;
    border-radius: 8px;
    padding: 20px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.course-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.course-item.active {
    background-color: #4a90e2;
    color: white;
}

.course-icon {
    width: 24px;
    height: 24px;
}

.add-course button {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 2px dashed #e0e0e0;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.add-course button:hover {
    background-color: rgba(74,144,226,0.1);
    border-color: #4a90e2;
    color: #4a90e2;
}

.resources-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-btn {
    padding: 4px 12px;
    background-color: #f8f9fa;
    border: none;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 32px;
}

.edit-btn:hover {
    background-color: #e9ecef;
}

.edit-btn.active {
    background-color: #4a90e2;
    color: white;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-item {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background-color: #e9ecef;
}

.resource-item h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.resource-item h3.editing {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    outline: none;
}

.add-resource button {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 2px dashed #e0e0e0;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.add-resource button:hover {
    background-color: rgba(74,144,226,0.1);
    border-color: #4a90e2;
    color: #4a90e2;
}

.hidden {
    display: none !important;
}

.back-btn {
    padding: 4px 12px;
    background-color: #f8f9fa;
    border: none;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 32px;
}

.back-btn:hover {
    background-color: #e9ecef;
}

.section-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.video-preview {
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.video-preview video {
    width: 100%;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.video-description {
    font-size: 12px;
    color: #fff;
}

/* 教程样式 */
.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tutorial-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tutorial-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.tutorial-tag {
    padding: 4px 8px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
}

.tutorial-content {
    color: #666;
    line-height: 1.6;
}

.tutorial-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.tutorial-content li {
    margin: 5px 0;
}

/* CSS示例样式 */
.example-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.example-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.example-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.example-actions {
    display: flex;
    gap: 10px;
}

.preview-btn,
.code-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.preview-btn {
    background-color: #4a90e2;
    color: white;
}

.code-btn {
    background-color: #f8f9fa;
    color: #333;
}

.preview-btn:hover {
    background-color: #357abd;
}

.code-btn:hover {
    background-color: #e9ecef;
}

.example-preview {
    padding: 20px;
}

.example-preview img {
    width: 100%;
    border-radius: 4px;
} 