.main {
    display: flex;
    min-height: calc(100vh - 60px - 100px); /* 减去header和footer的高度 */
}
a {
    text-decoration: none;
    color: rgb(106, 115, 139);
}
.content-area-left {
    width: 15%;
    background-color: #f5f5f5;
    padding: 30px;
    border-right: 1px solid #ddd;
}

.editor-section {
    margin-bottom: 20px;
}

.editor-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.content-area-right {
    width: 80%;
    padding: 10px 50px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1px 20px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.toolbar-left {
    display: flex;
    gap: 20px;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.toolbar-btn.active {
    color: #2196F3;
    font-weight: 500;
}

.toolbar-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2196F3;
}


.content-right-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.right-container {
    text-align: center;
}

.right-btn {
    padding: 15px 40px;
    font-size: 18px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.right-btn:hover {
    background-color: #1976D2;
}

.right-tip {
    color: #666;
    font-size: 14px;
    margin: 0;
}


.task-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
   
}

.task-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     max-width: 300px;
}

.task-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.task-cover {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.task-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-cover video {
    width: 100%;
}

.task-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-header {
    justify-content: space-between;
    align-items: center;
}

.task-no {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.task-time {
    color: #999;
    font-size: 12px;
}

.task-progress {
    margin: 8px 0;
}

.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress {
    height: 100%;
    background: #1890ff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: right;
    font-size: 12px;
    color: #666;
}

.task-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.point-cost {
    color: #ff4d4f;
    font-size: 14px;
    font-weight: 500;
}

.empty-message, .error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    margin: 20px;
}

.error-message {
    color: #ff4d4f;
    background: #fff2f0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    color: #1890ff;
    border-color: #1890ff;
}

.pagination button:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.pagination span {
    color: #666;
    font-size: 14px;
}

.empty-message, .error-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.error-message {
    color: #ff4d4f;
}

#rightContainer {
    min-height: 200px;
    background: #fff;
    border-radius: 4px;
    margin-top: 16px;
}