* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.container {
    max-width: 100%;
    padding: 15px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.required::after {
    content: "*";
    color: #f56c6c;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    transition: border-color 0.2s;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #409eff;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606266' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

textarea.form-control {
    height: 80px;
    padding: 8px 12px;
    resize: vertical;
}

.error-message {
    color: #f56c6c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-control.error {
    border-color: #f56c6c;
}

.form-control.error + .error-message {
    display: block;
}

.btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 16px;
    color: #fff;
    background-color: #409eff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit {
    margin-top: 20px;
    font-weight: 500;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-btn {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 38px;
    text-align: center;
    font-size: 14px;
    color: #409eff;
    background-color: #fff;
    border: 1px dashed #409eff;
    border-radius: 4px;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #f5f7fa;
    border-radius: 4px;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.file-delete {
    color: #f56c6c;
    font-size: 12px;
    padding: 2px 4px;
}

/* 日期选择器样式 */
.date-picker-wrapper {
    position: relative;
}

.date-picker-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23606266' d='M5 2v2h6V2h2v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V2h2zm8 4H2v8h12V6h-1zm-7 2v2H4V8h2zm3 0v2H7V8h2zm3 0v2h-2V8h2zm-6 3v2H4v-2h2zm3 0v2H7v-2h2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #409eff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.success {
    background-color: #67c23a;
}

.toast.error {
    background-color: #f56c6c;
}

.toast.show {
    opacity: 1;
}

.tip-message {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 5px;
}