/* 编辑个人资料页面样式 */
.edit-profile-page {
    min-height: calc(100vh - 44px);
    background: var(--background-color);
    padding: 20px 16px;
}

/* 背景图片区域 */
.ep-background-section {
    margin-bottom: 20px;
}

.ep-background-wrap {
    position: relative;
    cursor: pointer;
}

.ep-background-preview {
    width: 100%;
    height: 120px;
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.ep-background-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-background-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary-color);
    font-size: 14px;
    gap: 8px;
    background: var(--background-color);
}

.ep-background-placeholder .iconify {
    font-size: 24px;
}

/* 头像区域 */
.ep-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 32px;
}

.ep-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    cursor: pointer;
}

.ep-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-avatar-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 24px;
}

.ep-avatar-wrap:hover .ep-avatar-mask {
    opacity: 1;
}

.ep-avatar-tip {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary-color);
}

/* 表单 */
.ep-form {
    background: var(--card-color);
    border-radius: 12px;
    padding: 8px 0;
}

.ep-form-group {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ep-form-group:last-child {
    border-bottom: none;
}

.ep-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.ep-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.ep-input:focus {
    border-bottom-color: var(--primary-color);
}

.ep-input::placeholder {
    color: var(--text-secondary-color);
}

.ep-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    font-size: 15px;
    color: var(--text-color);
    outline: none;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ep-textarea:focus {
    border-color: var(--primary-color);
}

.ep-textarea::placeholder {
    color: var(--text-secondary-color);
}

.ep-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary-color);
}

/* 底部操作 */
.ep-actions {
    margin-top: 32px;
    padding: 0 16px;
}

.ep-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ep-btn:hover {
    opacity: 0.9;
}

.ep-btn:active {
    opacity: 0.8;
}

.ep-btn:disabled {
    background: var(--border-color);
    color: var(--text-secondary-color);
    cursor: not-allowed;
}

/* 加载遮罩 */
.ep-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ep-loading.active {
    display: flex;
}

.ep-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}