body {
    margin: 0;
    padding: 2rem;
    background: #f7fafc;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.4;
}

/* 左侧主内容区域容器 */
.main-content {
    width: 75%;
    background: white;
    padding: 1rem 1.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 0 0.5rem 2rem auto;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: 600;
    margin: 0;
    padding: 0.75rem 0;
}

/* 上传区域样式 */
.upload-section {
    width: 100%;
}

.upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.model-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.upload-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* 标签文件上传行样式 */
.label-upload-row {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.label-upload-button {
    background: #805ad5 !important;
    color: white;
    min-width: 200px;
}

.label-upload-button:hover:not(:disabled) {
    background: #6b46c1 !important;
}

/* 标签文件信息区域样式 */
.label-file-section {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem 0 0;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
    white-space: nowrap;
}

.label-file-section .file-info-label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.label-file-section .file-info-name {
    color: #2d3748;
    font-weight: 500;
}

/* NR Depth参数输入区域样式 */
.nr-depth-section {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem 0 0;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
    white-space: nowrap;
}

.nr-depth-section .file-info-label {
    margin-right: 0.5rem;
    font-weight: 500;
}

.nr-depth-input {
    width: 80px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2d3748;
    background: white;
    text-align: center;
}

.nr-depth-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.nr-depth-input.error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.nr-depth-input.error:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.nr-depth-error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fed7d7;
    color: #c53030;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0 0 4px 4px;
    border: 1px solid #e53e3e;
    border-top: none;
    z-index: 10;
    margin-top: -1px;
}

.nr-depth-section {
    position: relative;
}

.nr-depth-unit {
    margin-left: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.file-info {
    flex: none;
}

.buttons-container {
    flex: 0 0 auto;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 2rem;
    box-sizing: border-box;
}

.buttons-container {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

.file-input {
    display: none;
}

.upload-button, .start-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    height: 40px;
    border: none;
    gap: 0.75rem;
    box-sizing: border-box;
}

.upload-button {
    background: #4299e1;
    color: white;
    min-width: 180px;
    text-decoration: none;
    white-space: nowrap;
}

.start-upload-button {
    background: #48bb78;
    color: white;
    min-width: 120px;
}

.upload-button:hover:not(:disabled) {
    background: #3182ce;
}

.start-upload-button:hover:not(:disabled) {
    background: #38a169;
}

.upload-button:disabled, .start-upload-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    opacity: 0.7;
}

.file-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 1rem 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.file-info-label {
    margin-right: 0.5rem;
}

.file-info-name {
    color: #2d3748;
    font-weight: 500;
}

/* 右侧信息框样式 */
.requirements-box {
    position: fixed;
    top: 2rem;
    left: 0.5rem;
    width: 22%;
    background: #fff;
    border-left: 4px solid #4299e1;
    padding: 1.5rem;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    z-index: 1000;
    box-sizing: border-box;
}

/* 处理状态样式 */
.processing-status {
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
}

.processing-status h3 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.server-status {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.status-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-label {
    color: #4a5568;
}

.count-number {
    font-weight: 600;
    color: #2b6cb0;
}

/* 任务列表样式 */
.my-tasks h4 {
    margin: 1rem 0;
    color: #2d3748;
}

.task-item {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-info {
    flex-grow: 1;
    min-width: 0;
}

.task-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-model {
    font-weight: 600;
    color: #2d3748;
    background: #edf2f7;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.task-time {
    color: #718096;
    font-size: 0.875rem;
}

.task-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.task-filename {
    color: #4a5568;
    font-size: 0.95rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-status {
    font-weight: 500;
    font-size: 0.9rem;
}

.task-error {
    color: #e53e3e;
    font-size: 0.875rem;
    font-style: italic;
}

/* 状态样式 */
.status-processing .task-status { color: #4299e1; }
.status-completed .task-status { color: #48bb78; }
.status-error .task-status { color: #e53e3e; }

/* 下载按钮样式 */
.task-item button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.task-item button:hover {
    background: #3182ce;
}

/* 模型选择器样式 */
.model-selector {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    background: #4299e1;
    border-radius: 4px;
    color: white;
    height: 40px;
    box-sizing: border-box;
    flex-grow: 1;
    flex-wrap: wrap;
    max-width: 100%;
}

.model-label {
    background-color: #ed8936;
    color: white;
    padding: 0 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 40px;
}

.model-list {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.model-option {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
    position: relative;
    text-transform: none;
}

/* 添加竖线分隔符 */
.model-option:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.model-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.model-option.active {
    background-color: #ed8936;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 拖放区域样式 */
.upload-container.dragover {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content,
    .tasks-section {
        width: 100%;
        margin: 0 0 2rem 0;
    }

    .requirements-box {
        position: static;
        width: 100%;
        margin: 0 0 2rem 0;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .upload-controls {
        flex-direction: column;
    }

    .model-selector {
        width: 100%;
        flex-direction: column;
    }

    .model-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 需求框样式 */
.requirements-content {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.requirements-content h2 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.requirements-list {
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.requirements-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f2f5;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 0.8rem;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li::before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0.75rem;
}

/* 添加悬停效果 */
.requirements-list li:hover {
    background: #f7fafc;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
    .requirements-content {
        padding: 1rem;
    }
    
    .requirements-list li {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* 添加到现有样式中 */
.requirement-label {
    color: #718096;
    width: 120px;
    min-width: 120px;
    font-weight: 500;
    margin-left: 1.5rem;
    text-align: left;
    position: relative;
}

.requirement-value {
    display: inline-block;
    line-height: 1.4;
}

/* 需求提示样式 */
.requirements-notice {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notice-icon {
    font-size: 1.25rem;
}

.notice-text {
    color: #2b6cb0;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 底部警告样式 */
.requirements-footer {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.1rem;
}

.warning-text {
    color: #c53030;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .requirements-notice,
    .requirements-footer {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
    }
    
    .requirements-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .requirement-value {
        align-self: stretch;
        text-align: center;
    }
}

/* 模型标题样式 */
.model-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.model-type {
    background: #ed8936;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.2);
    transition: background-color 0.2s ease;
}

.model-type:hover {
    background: #dd6b20;
}

.model-header h2 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .model-type {
        font-size: 1rem;
    }
}

/* 添加新的 My Tasks 区域样式 */
.tasks-section {
    width: 75%;
    margin: 0 0.5rem 2rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    height: 1.5rem;
}

.tasks-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5rem;
}

.tasks-warning {
    color: #ed8936;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5rem;
    height: 1.5rem;
}

.tasks-warning-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}
