/**
 * 云信IM - 移动端个人资料编辑页面
 * 微信风格全屏编辑器
 */

@media screen and (max-width: 768px) {
    /* ========== 个人资料编辑页面 ========== */
    .yunxin-mobile-profile-editor {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #EDEDED;
        z-index: 99998;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .yunxin-mobile-profile-editor.visible {
        transform: translateX(0);
    }
    
    /* ========== 页面头部 ========== */
    .yunxin-mobile-profile-header {
        display: flex;
        align-items: center;
        height: 44px;
        padding-top: env(safe-area-inset-top, 0);
        background: #EDEDED;
        border-bottom: 0.5px solid #E5E5E5;
        flex-shrink: 0;
    }
    
    .yunxin-mobile-profile-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #000000;
        -webkit-tap-highlight-color: transparent;
    }
    
    .yunxin-mobile-profile-back:active {
        opacity: 0.6;
    }
    
    .yunxin-mobile-profile-title {
        flex: 1;
        text-align: center;
        font-size: 17px;
        font-weight: 600;
        color: #000000;
    }
    
    .yunxin-mobile-profile-save {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        height: 44px;
        background: none;
        border: none;
        font-size: 16px;
        color: #07C160;
        font-weight: 500;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .yunxin-mobile-profile-save:active {
        opacity: 0.6;
    }
    
    .yunxin-mobile-profile-save:disabled {
        color: #999999;
    }
    
    /* ========== 内容区域 ========== */
    .yunxin-mobile-profile-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* ========== 分组区域 ========== */
    .yunxin-mobile-profile-section {
        background: #FFFFFF;
        margin-top: 8px;
    }
    
    .yunxin-mobile-profile-section:first-child {
        margin-top: 0;
    }
    
    /* ========== 单项 ========== */
    .yunxin-mobile-profile-item {
        display: flex;
        align-items: center;
        min-height: 56px;
        padding: 12px 16px;
        background: #FFFFFF;
        position: relative;
    }
    
    .yunxin-mobile-profile-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 0;
        height: 0.5px;
        background: #E5E5E5;
    }
    
    .yunxin-mobile-profile-item:last-child::after {
        display: none;
    }
    
    .yunxin-mobile-profile-editable {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .yunxin-mobile-profile-editable:active {
        background: #F5F5F5;
    }
    
    .yunxin-mobile-profile-label {
        width: 80px;
        font-size: 16px;
        color: #000000;
        flex-shrink: 0;
    }
    
    .yunxin-mobile-profile-value {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 16px;
        color: #888888;
        min-width: 0;
    }
    
    .yunxin-mobile-profile-value span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .yunxin-mobile-profile-readonly {
        color: #999999;
    }
    
    .yunxin-mobile-profile-arrow {
        color: #C8C8CD;
        margin-left: 8px;
        flex-shrink: 0;
    }
    
    /* ========== 头像项 ========== */
    .yunxin-mobile-profile-avatar-item {
        padding: 12px 16px;
    }
    
    .yunxin-mobile-profile-avatar {
        width: 64px;
        height: 64px;
        border-radius: 4px;
        object-fit: cover;
    }
    
    /* ========== 字段编辑页面 ========== */
    .yunxin-mobile-field-editor {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #EDEDED;
        z-index: 99999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .yunxin-mobile-field-editor.visible {
        transform: translateX(0);
    }
    
    .yunxin-mobile-field-content {
        flex: 1;
        padding: 16px;
    }
    
    .yunxin-mobile-field-input-wrap {
        display: flex;
        align-items: center;
        background: #FFFFFF;
        border-radius: 8px;
        padding: 12px 16px;
    }
    
    .yunxin-mobile-field-input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 16px;
        color: #000000;
        outline: none;
    }
    
    .yunxin-mobile-field-input::placeholder {
        color: #C8C8CD;
    }
    
    .yunxin-mobile-field-clear {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #C8C8CD;
        -webkit-tap-highlight-color: transparent;
    }
    
    .yunxin-mobile-field-clear:active {
        opacity: 0.6;
    }
    
    .yunxin-mobile-field-hint {
        margin-top: 12px;
        font-size: 13px;
        color: #888888;
        padding: 0 4px;
    }
}

/* ========== 桌面端隐藏 ========== */
@media screen and (min-width: 769px) {
    .yunxin-mobile-profile-editor,
    .yunxin-mobile-field-editor {
        display: none !important;
    }
}

