/* 对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.dialog-overlay .regist-text {
    background-image: url(../image/dialog_bg1.png);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain
}

.dialog-container {
    position: relative;
    width: 850px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.dialog-header {
    width: 100%;
    text-align: right;
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
}

.dialog-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.dialog-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.dialog-close img {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.dialog-body {
    padding: 0 20px 0 0;
    background-color: #fff;
    height: 26.75rem;
}
/* 修改regist容器为水平flex布局 */
.regist {
    width: 100%;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* 在容器内均匀分布 */
    align-items: flex-start; /* 顶部对齐 */
    padding: 0;
}

/* 设置regist-text的宽度和样式 */
.dialog-overlay .regist-text {
    background-image: url(../images/dialog_bg1.png); /* 修正图片路径 */
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    width: 40%; /* 设置宽度为容器的40% */
    height: 26.75rem; /* 与dialog-body高度一致 */
}

/* 调整表单宽度和位置 */
#dialogForm {
    width: 55%; /* 设置宽度为容器的55% */
    height: auto;
    background: transparent;
    border-radius: 0.2rem 1rem 0.2rem 1rem;
    padding: 0 1.5rem 1rem; /* 减小内边距以适应并排布局 */
    position: relative;
    margin-top: 3.5rem;
}

/* 调整表单项宽度 */
.dialog-form-item input,
.dialog-form-item select,
.dialog-form-item textarea {
    width: 100%; /* 使输入框填满父容器 */
    max-width: 280px; /* 设置最大宽度 */
}
.dialog-form-item {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.dialog-form-item label {
    font-size: 16px;
    color: #333;
    width: 100px;
    display: inline-block;
    margin-right: 20px;
}

.dialog-form-item input,
.dialog-form-item select,
.dialog-form-item textarea {
    padding: 0 10px;
    box-sizing: border-box;
    width: 320px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.dialog-form-item textarea {
    height: 100px;
    padding: 10px;
}

.dialog-footer {
    padding: 20px;
    text-align: right;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
}

.dialog-submit {
    margin-left: 128px;
    width: 260px;
    height: 40px;
    background: #2580FF;
    border-radius: 20px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    border: none;
}

.dialog-submit:hover {
    background-color: #1a70e8;
}