body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1c1c1c 0%, #2c2c2c 100%);
}

body > .navbar {
    border-bottom: none;
    box-shadow: none;
}

.upload-page {
    min-height: calc(100vh - 70px);
    background: transparent;
    padding: 20px;
    margin-top: 70px;
    position: relative;
}

.upload-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 3rem 4rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.upload-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.upload-desc {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #1c69d4;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area.dragover {
    background: rgba(28, 105, 212, 0.1);
    border-color: #0c4da2;
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.editor-section {
    display: flex;
    flex-direction: column; /* 改为垂直布局 */
    gap: 1rem;
}

.input-editor-container,
.output-editor-container {
    width: 100%;
}

/* 如果你希望标签内的文字能够自动换行并且根据内容扩展 */
.input-editor-container label,
.output-editor-container label {
    display: inline-block; /* 改为inline-block以适应内容 */
    vertical-align: top; /* 保持与其他元素顶部对齐 */
    min-height: 200px; /* 设置最小高度 */
    margin-bottom: 0.5rem;
    color: #aaa;
    padding: 10px; /* 根据需要调整内边距 */
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: pre-wrap;
}


.input-editor:focus,
.output-editor:focus {
    border-color: #333;
    outline: none;
}

.output-editor.success {
    border-color: #333;
}

.output-editor.error {
    border-color: #333;
}

/* 自动调整编辑框大小 */
textarea {
    min-height: 100px; /* 设置最小高度 */
    height: auto; /* 根据内容自动调整高度 */
}

textarea::placeholder {
    color: #333;
}

/* 提示框 */
.notice-box {
    background: #333;
    border-left: 4px solid #1c69d4;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 5px 5px 0;
}

.notice-box p {
    color: #aaa;
    line-height: 1.4;
}
.form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #1c69d4;
    outline: none;
}

.file-info {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.file-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.file-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.remove-file {
    color: #dc3545;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.remove-file:hover {
    text-decoration: underline;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.submit-btn, .cancel-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn {
    background: #1c69d4;
    color: white;
}

.submit-btn:hover {
    background: #0c4da2;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cancel-btn {
    background: #f8f8f8;
    color: #666;
}

.cancel-btn:hover {
    background: #eee;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .upload-container {
        margin: 0 2rem;
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .upload-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    /* 手机端上传区域容器改为垂直布局 */
    .upload-area-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* 手机端上传区域宽度调整 */
    .upload-area {
        width: 100%;
        min-height: 150px;
        padding: 1rem;
    }

    /* 手机端文件内容区域调整 */
    .file-content {
        width: 100%;
        padding: 1rem;
    }

    /* 调整XML内容显示区域的高度 */
    .xml-content {
        height: 200px;
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    /* 调整上传图标大小 */
    .upload-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    /* 调整按钮组样式 */
    .button-group {
        flex-direction: column;
    }

    .submit-btn, .cancel-btn {
        width: 100%;
    }

    /* 调整提示文字大小 */
    .upload-hint {
        font-size: 0.8rem;
    }
}

/* 平板端的调整 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .upload-area-container {
        gap: 1rem;
    }

    .upload-area {
        min-width: 250px;
    }

    .xml-content {
        height: 250px;
    }
}

/* 添加提示框样式 */
.notice-box {
    background: #f8f8f8;
    border-left: 4px solid #1c69d4;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 5px 5px 0;
}

.notice-box p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* 调整上传区域的间距 */
.upload-area {
    margin-bottom: 1.5rem;
}

/* 文件信息区域的调整 */
#faFileInfo, #svtFileInfo {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

#faFileInfo:last-child, #svtFileInfo:last-child {
    border-bottom: none;
}

/* VIN输入框样式 */
.form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1c69d4;
}

/* 输入框错误状态 */
.form-control.error {
    border-color: #dc3545;
}

/* 复选框容器样式 */
.checkbox-group {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 5px;
}

/* 复选框标签样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: #333;
}

/* 复选框本身的样式 */
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1c69d4;
}

/* 复选框标签悬停效果 */
.checkbox-label:hover {
    color: #1c69d4;
}

/* 上传区域容器 */
.upload-area-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 左侧上传区域 */
.upload-area {
    flex: 1;
    min-width: 300px;
}

/* 右侧文件内容区域 */
.file-content {
    flex: 2;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem;
}

.file-content h3 {
    color: #1C86EE;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

/* XML内容显示区域 */
.xml-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin: 0;
    height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 自定义滚动条样式 */
.xml-content::-webkit-scrollbar {
    width: 8px;
}

.xml-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.xml-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.xml-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.content-details {
    color: #666;
}

.content-details p {
    margin-bottom: 0.5rem;
}

.content-details strong {
    color: #333;
}

/* SA代码展示区域 */
.sa-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sa-code {
    background: #1c69d4;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
} 