.main {
    display: flex;
    min-height: calc(100vh - 60px - 100px); /* 减去header和footer的高度 */
}
.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%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

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

.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;
}


/* 全屏图片查看器 */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e91e63;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .virtual-fitting-room {
        padding: 40px 0;
    }
    
    .main-display,
    .control-panel {
        padding: 20px;
    }
    
    .option-btn {
        min-width: 60px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .selection-item {
        padding: 12px;
    }
    
    .selection-item img {
        width: 70px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .close-btn {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    
    .nav-btn {
        font-size: 24px;
        padding: 8px 12px;
    }
    
    .fullscreen-image {
        max-width: 95%;
        max-height: 85%;
    }
}