/* =========================================
   全局重置与防穿帮设置 
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* 移除点击高亮 */
    -webkit-touch-callout: none;
    /* 禁用长按菜单 */
    user-select: none;
    /* 禁用文本选择 */
}

body {
    background-color: #EDEDED;
    /* 微信标准背景灰 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #000;
    font-size: 17px;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* 防止页面整体 scroll bounce */
}

/* =========================================
   主内容容器
   ========================================= */
.content-wrapper {
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

/* 通用区块样式 */
.block-section {
    background-color: #FFFFFF;
    width: 100%;
    margin-top: 8px;
    /* 核心间距：区块与区块之间 8px 灰色缝隙 */
}

/* =========================================
   2. 合并后的大信息区块 (Profile + Info)
   ========================================= */
.main-info-group {
    /* 这个大区块包含 头像名片 + 分割线 + 资料行 + 签名行 */
    margin-top: 0;
    /* 紧贴 Header */
    padding-bottom: 0;
    /* 内部都是 row，不需要额外 padding */
    display: flex;
    flex-direction: column;
}

/* 头像与名字区域 */
.profile-area {
    padding: 40px 24px 40px 24px;
    /* 保持原有的宽裕内边距 */
    display: flex;
    align-items: center;
}

/* 头像 */
.avatar-container {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-right: 16px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* 名字 [NEW: 大粗体] */
.nickname {
    font-size: 22px;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分割线 */
.separator {
    height: 1px;
    background-color: transparent;
    border-top: 1px solid #E5E5E5;
    margin-left: 16px;
    /* 左侧对齐文字 (通常是对齐 content not label? 微信通常对齐 label) */
    /* 观察截图：分割线通常是从左侧某个位置开始，一直到最右侧 */
    /* 我们设 margin-left: 16px，跟 row 的 padding-left 一致 */
    transform: scaleY(0.5);
    transform-origin: 0 0;
}


/* =========================================
   3. 资料行与签名行 (Row Styles)
   ========================================= */
.info-row {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    background-color: #FFFFFF;
}

.info-row:active {
    background-color: #F5F5F5;
}

/* Label */
.row-label-black {
    font-size: 17px;
    color: #191919;
    width: 80px;
    font-weight: 400;
}

.row-label-gray {
    font-size: 16px;
    color: #B2B2B2 !important;
    /* 用户指定灰色 */
    width: 80px;
}

/* Right Content */
.row-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* 默认靠右 */
    align-items: center;
    overflow: hidden;
}

.arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #B2B2B2;
    border-right: 2px solid #B2B2B2;
    transform: rotate(45deg);
    margin-right: 2px;
}

/* 签名内容特殊处理 */
#signatureTrigger .row-right {
    justify-content: flex-start;
    /* 签名内容靠左 */
}

.signature-content {
    color: #333333;
    font-size: 16px;
    text-align: left;
    width: 100%;
}


/* =========================================
   4. 朋友圈区块 (Moments Block)
   ========================================= */
/* .moments-block 只需要 margin-top: 8px，
   因为有了 .block-section，这里不需要额外样式 
   除非有特殊 padding */


/* =========================================
   5. 添加好友按钮区块 (Action Block)
   ========================================= */
.action-block {
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-block:active {
    background-color: #F5F5F5;
}

.action-btn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-btn span {
    color: #576B95;
    font-size: 17px;
    font-weight: 600;
}


/* =========================================
   隐藏的魔术照片
   ========================================= */
/* 隐藏的魔术照片 */
.magic-photo {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: auto;

    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 9999;
    pointer-events: none;

    transition: transform 0.1s linear, opacity 0.1s linear;

    /* 仿拍立得/打印照片风格 */
    border: 12px solid #ffffff;
    /* 白边 */
    box-sizing: border-box;
    /* 确保边框算在宽度内 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* 轻微投影模拟厚度 */
    border-radius: 4px;
    /* 稍小的圆角 */

    /* 尺寸限制 */
    max-height: 75vh;
    object-fit: cover;
}