/* 主页面样式 - 第1部分：表单区域 */

/* 创建任务区域 */
.create-section {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.create-section h2 {
    margin-bottom: 25px;
    color: #667eea;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #b0b0b0;
}

#promptInput {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 16px;
    resize: vertical;
}

#promptInput:focus {
    outline: none;
    border-color: #667eea;
}

#imageInput {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
}

/* 图片预览区域 */
.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.image-preview .thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.image-preview .thumbnail:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 任务列表区域 */
.tasks-section {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
}

.tasks-section h2 {
    margin-bottom: 25px;
    color: #667eea;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 任务卡片 */
.task-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.task-card .status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.status-pending { background: #ffa500; color: #000; }
.status-processing { background: #4a90e2; color: #fff; }
.status-completed { background: #4caf50; color: #fff; }
.status-failed { background: #f44336; color: #fff; }

.task-card .task-images {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.task-card .task-images img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(100, 200, 255, 0.3);
}

.task-card .task-images img:hover {
    border-color: #667eea;
}

/* 图片浮窗 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    z-index: 1001;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
