/* ========== 编辑资料页面样式 ========== */

/* 页面标题区 */
.ue-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ue-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.ue-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--color-primary, #226AFF);
    text-decoration: none;
    transition: opacity 0.2s;
}

.ue-back-link:hover {
    opacity: 0.8;
}

.ue-back-link svg {
    width: 16px;
    height: 16px;
}

/* 表单卡片 */
.ue-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 头像上传区 */
.ue-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f3f4f6;
}

.ue-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
}

.ue-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ue-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ue-avatar-tip {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.ue-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    color: var(--color-primary, #226AFF);
    border: 1px solid var(--color-primary, #226AFF);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ue-upload-btn:hover {
    background: var(--color-primary, #226AFF);
    color: #fff;
}

.ue-upload-btn svg {
    width: 16px;
    height: 16px;
}

/* 表单 */
.ue-form {
    max-width: 560px;
}

.ue-form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ue-form-label {
    width: 80px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 40px;
    text-align: right;
    padding-right: 16px;
}

.ue-form-control {
    flex: 1;
}

.ue-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ue-input:focus {
    outline: none;
    border-color: var(--color-primary, #226AFF);
    box-shadow: 0 0 0 3px rgba(34,106,255,0.1);
}

.ue-input::placeholder {
    color: #d1d5db;
}

/* 单选按钮 */
.ue-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 40px;
}

.ue-radio input[type="radio"] {
    display: none;
}

.ue-radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.ue-radio input[type="radio"]:checked + .ue-radio-mark {
    border-color: var(--color-primary, #226AFF);
}

.ue-radio input[type="radio"]:checked + .ue-radio-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--color-primary, #226AFF);
    border-radius: 50%;
}

/* 提交按钮区 */
.ue-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-left: 96px;
}

.ue-submit-btn {
    height: 42px;
    padding: 0 36px;
    background: var(--color-primary, #226AFF);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(34,106,255,0.25);
}

.ue-submit-btn:hover {
    background: var(--color-primary-dark, #1a54cc);
}

.ue-submit-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

.ue-cancel-btn {
    height: 42px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ue-cancel-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* 响应式 */
@media (max-width: 768px) {
    .ue-form-card {
        padding: 20px;
    }

    .ue-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .ue-form-label {
        width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .ue-form-group {
        flex-direction: column;
    }

    .ue-form-actions {
        padding-left: 0;
        flex-direction: column;
    }

    .ue-submit-btn,
    .ue-cancel-btn {
        width: 100%;
        justify-content: center;
    }

    .ue-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
