/* 基础样式复位 - 保持简洁 */
body, div, p, input, button, a {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ebebeb;
    color: #000;
    -webkit-user-select: none;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}


/* =================================================================================

   全局 Toast 提示

   ================================================================================= */
.global-tip-box {
    position: fixed;
    top: 50%;
    left: 50%;
    /* 使用负 Margin 进行精准居中，兼容性优于 transform */
    width: 200px;
    margin-left: -100px;
    margin-top: -40px;

    background-color: rgba(0, 0, 0, 0.75); /* 半透明黑色背景 */
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 15px;
    z-index: 9999;

    -webkit-border-radius: 8px; /* iOS 5/6 圆角 */
    border-radius: 8px;

    /* 简单的渐显动画 */
    -webkit-transition: opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none; /* 防止遮挡点击 */
}

.global-tip-box.tip-show {
    opacity: 1;
}

/* =================================================================================

   全局 加载动画

   ================================================================================= */
/* --- 加载动画样式 (Namespace: profile-edit-loading) --- */

/* 背景遮罩，防止加载时用户误操作 */
.profile-edit-loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none; /* 初始隐藏 */
}

/* 加载方块容器 */
.profile-edit-loading-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
    background-color: rgba(0, 0, 0, 0.75);
    -webkit-border-radius: 10px;
    border-radius: 10px;

    /* 使用旧版弹性盒居中内容 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    color: #fff;
    z-index: 10001;
}

/* 旋转的加载图标 */
.profile-edit-loading-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: profile-edit-spin 1s linear infinite;
    margin-bottom: 15px;
}

/* 加载文字 */
.profile-edit-loading-text {
    font-size: 14px;
    color: #eee;
}

/* iOS 5/6 兼容的旋转动画定义 */
@-webkit-keyframes profile-edit-spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}


/* =================================================================================

   登陆界面

   ================================================================================= */

/* 顶部导航栏 */
.login-header {
    height: 50px;
    background-color: #12b7f5;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    font-weight: bold;
}


/* 登录内容容器 */
.login-container {
    padding: 30px 20px;
    text-align: center;
}

/* Logo 区域 - 已改为 .login-logo-box */
.login-logo-box {
    margin-bottom: 30px;
}

.login-icon-svg {
    fill: #12b7f5;
    vertical-align: middle;
}

/* 表单组 - 已改为 .login-form-group */
.login-form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* 输入框样式 */
.login-input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    background-color: #f9f9f9;
}

.login-input:focus {
    border-color: #12b7f5;
    background-color: #fff;
}

/* 登录按钮 - 已改为 .login-btn-submit */
.login-btn-submit {
    width: 100%;
    height: 45px;
    background-color: #12b7f5;
    color: #fff;
    border: none;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    font-size: 17px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

.login-btn-submit:active {
    background-color: #0faade;
}

/* 底部链接区 - 已改为 .login-footer-links */
.login-footer-links {
    margin-top: 20px;
    font-size: 14px;
}

.login-footer-links a {
    color: #12b7f5;
    text-decoration: none;
    padding: 10px;
}

.login-footer-links .login-divider {
    color: #ddd;
}

/* 错误提示 - 已改为 .login-error-msg */
#login-error-msg {
    color: #f74c31;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

/* =================================================================================

   消息列表

   ================================================================================= */
/* SVG 通用颜色 */
.index-icon-svg {
    fill: currentColor;
    vertical-align: middle;
}


/* --- 搜索框部分 --- */
/* --- 搜索框部分 --- */
.index-search-container {
    margin-top: 55px;
    padding: 8px;
    background-color: #f3f3f3;
    border-bottom: 1px solid #e5e5e5;
}

.index-search-box {
    /* 1. 兼容 iOS 6 的老版弹性盒子 */
    display: -webkit-box;
    -webkit-box-align: center; /* 垂直居中 */
    -webkit-box-pack: start; /* 左对齐 */

    background-color: #fff;
    height: 30px;

    /* 2. 兼容 iOS 6 的圆角 */
    -webkit-border-radius: 6px;
    border-radius: 6px;

    border: 1px solid #e0e0e0;
    padding: 0 10px;

    /* 解决盒子模型宽度问题 */
    box-sizing: border-box;
}

.index-search-icon {
    display: block; /* 在 webkit-box 下设为 block 更稳定 */
    margin-right: 4px;
}

.index-search-input {
    /* 3. 让输入框占据剩余宽度 (老版写法) */
    -webkit-box-flex: 1;

    border: none;
    outline: none;
    background: transparent;
    margin-left: 5px;
    font-size: 14px;
    color: #333;

    /* 4. 关键：清除 iOS 默认的内阴影和圆角外观 */
    -webkit-appearance: none;

    /* 5. 确保高度一致，防止文字偏移 */
    height: 20px;
    line-height: 20px;
    padding: 0;
    display: block;
}

/* 6. iOS 6 必须使用特定的伪类前缀 */
.index-search-input::-webkit-input-placeholder {
    color: #999;
}


/* --- 消息列表 --- */
.index-list-container {
    padding-bottom: 60px;
}

.index-item {
    display: block;
    height: 72px;
    position: relative;
    color: inherit;
    overflow: hidden;
    border-bottom: 1px solid #f2f2f2;
    background-color: #fff;
}

.index-item:active {
    background-color: #f5f5f5;
}

/* 列表头像与红点 */
.index-avatar-box {
    float: left;
    width: 72px;
    height: 72px;
    position: relative;
}

.index-avatar {
    width: 45px;
    height: 45px;
    margin: 15px;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}
.index-avatar img {
    width: 100%;
    height: 100%;
}

.index-list-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #f74c31;
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1px solid #fff;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

/* 列表文本区域 */
.index-content-box {
    margin-left: 72px;
    padding-right: 12px;
    padding-top: 15px;
}

.index-row-top {
    height: 22px;
    line-height: 22px;
    overflow: hidden;
}

.index-name {
    float: left;
    font-size: 17px;
    color: #000;
    font-weight: 500;
}

.index-time {
    float: right;
    font-size: 12px;
    color: #b2b2b2;
}

.index-row-bottom {
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    margin-top: 3px;
}

.index-msg {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =================================================================================

   联系人界面

   ================================================================================= */


/* --- 联系人主区域 --- */
.contacts-main-content {
    margin-bottom: 60px;
    background-color: #fff;
}

/* 菜单项 (新朋友/群聊) */
.contacts-menu-item {
    display: -webkit-box;
    -webkit-box-align: center;
    height: 52px;
    padding: 0 15px;
    border-bottom: 1px solid #f2f2f2;
    background-color: #fff;
}

.contacts-menu-item:active {
    background-color: #f5f5f5;
}

.contacts-menu-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    display: block;
}

.contacts-menu-text {
    font-size: 16px;
    color: #000;
}

/* 分组标题 */
.contacts-group-header {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.contacts-group-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ccc;
    margin-right: 8px;
    -webkit-transition: -webkit-transform 0.2s;
}

/* 折叠逻辑控制 */
.contacts-collapsed .contacts-group-arrow {
    -webkit-transform: rotate(-90deg);
}

.contacts-collapsed + .contacts-friend-list {
    display: none !important;
}

/* 好友列表项 */
.contacts-friend-item {
    display: -webkit-box;
    -webkit-box-align: center;
    height: 64px;
    padding: 0 12px;
    border-bottom: 1px solid #f9f9f9;
}

.contacts-friend-item:active {
    background-color: #f5f5f5;
}

.contacts-f-avatar {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    -webkit-border-radius: 22px;
    border-radius: 22px;
    background-color: #eee;
    display: block;
}

.contacts-f-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;

}


.contacts-f-info {
    -webkit-box-flex: 1;
    overflow: hidden;
}

.contacts-f-name {
    font-size: 16px;
    color: #000;
    margin: 0 0 2px 0;
    font-weight: bold;
}

.contacts-f-status {
    font-size: 12px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contacts-status-online {
    color: #12b7f5;
    margin-right: 4px;
}

/* 离线状态置灰 */
.contacts-offline .contacts-f-avatar {
    opacity: 0.4;
}

.contacts-offline .contacts-f-name {
    color: #888;
}

/* =================================================================================

   动态界面

   ================================================================================= */

/* --- 列表分组容器 --- */
.discover-section {
    margin-top: 10px;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* --- 动态菜单项 (关键修复点) --- */
.discover-list-item {
    /* 替换 display: flex */
    display: -webkit-box;
    -webkit-box-align: center; /* 垂直居中 */

    height: 66px;
    padding: 0 15px;
    border-bottom: 1px solid #f2f2f2;
    color: #000;
    text-decoration: none;
    position: relative;
    background-color: #fff;
}

.discover-list-item:last-child {
    border-bottom: none;
}

/* iOS 6 下的点击反馈 */
.discover-list-item:active {
    background-color: #f5f5f5;
}

.discover-item-icon {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    /* 替换 flex 居中 */
    display: block;
    text-align: center;
}

.discover-item-icon svg {
    vertical-align: middle;
}

.discover-item-text {
    /* 替换 flex: 1 */
    -webkit-box-flex: 1;
    font-size: 16px;
    color: #333;
    display: block;
}

/* 右侧辅助信息容器 */
.discover-item-right {
    /* 替换 display: flex */
    display: -webkit-box;
    -webkit-box-align: center;
}

.discover-avatar-mini {
    width: 24px;
    height: 24px;
    /* iOS 6 必须加前缀 */
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border: 1px solid #fff;
    margin-right: 5px;
    display: block;
}

.discover-red-dot {
    width: 8px;
    height: 8px;
    background-color: #f74c31;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin-right: 8px;
    display: block;
}

/* 右侧箭头修复 */
.discover-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    /* 必须加 -webkit- 前缀，否则 iOS 6 不旋转 */
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: 5px;
}

/* =================================================================================

   个人资料编辑界面

   ================================================================================= */

/* --- 顶部导航栏 --- */
.profile-edit-header {
    height: 50px;
    background-color: #12b7f5;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    text-align: center;
    line-height: 50px;
}

.profile-edit-header img {
    width: 35px;
    height: 35px;
    object-fit: cover; /* 3. 确保图片比例正确地填满容器 */
    display: block;
    /* 圆形 */
    border-radius: 50%;
}

.profile-edit-nav-btn {
    position: absolute;
    top: 10px;
    height: 30px;
    background-color: #12b7f5;
    border: 1px solid #0faade;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

.profile-edit-nav-btn:active {
    background-color: #0faade;
    border-color: #0d96c4;
}

.profile-edit-header .profile-edit-btn-left {
    left: 10px;
    width: 38px;
}

.profile-edit-header .profile-edit-btn-right {
    right: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: bold;
    line-height: 28px;
}

.profile-edit-header .profile-edit-title {
    font-size: 18px;
    font-weight: bold;
}


/* --- 主体内容区域 --- */
.profile-edit-main {
    padding-top: 50px;
}

.profile-edit-group-title {
    padding: 15px 15px 8px;
    font-size: 14px;
    color: #888;
}

.profile-edit-list {
    background-color: #fff;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.profile-edit-item {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    min-height: 48px;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
}

.profile-edit-item:last-child {
    border-bottom: none;
}

.profile-edit-label {
    width: 80px;
    font-size: 16px;
    color: #333;
}

.profile-edit-value {
    -webkit-box-flex: 1;
    text-align: right;
    display: block;
}

.profile-edit-value-tip {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    vertical-align: middle;
    margin-left: 15px;

}


.profile-edit-input, .profile-edit-select, .profile-edit-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 16px;
    color: #666;
    text-align: right;
    -webkit-appearance: none;
    font-family: inherit;
}

.profile-edit-textarea-item {
    display: block;
    padding: 12px 15px;
}

.profile-edit-textarea {
    text-align: left;
    height: 80px;
    margin-top: 8px;
    line-height: 1.4;
    resize: none;
}

/* 下拉箭头 */
.profile-edit-select-wrap {
    position: relative;
    padding-right: 15px;
}

.profile-edit-select-wrap:after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ccc;
}

.profile-edit-item:active {
    background-color: #f5f5f5;
}

.profile-edit-icon-svg {
    fill: currentColor;
    display: block;
}


/* =================================================================================

   查找界面 样式

   ================================================================================= */

/* --- 顶部固定区域容器 (总高度: 50 + 57 + 44 = 151px) --- */
.find-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background-color: #f7f7f7;
}

/* 搜索栏 (约57px) */
.find-search-wrap {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.find-input-container {
    float: left;
    width: 80%;
    background-color: #f3f3f3;
    height: 36px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 0 8px;
    overflow: hidden;
}

.find-search-icon {
    float: left;
    margin-top: 9px;
    width: 18px;
    height: 18px;
}

.find-search-input {
    float: left;
    border: none;
    outline: none;
    background: none;
    margin-left: 6px;
    font-size: 14px;
    color: #333;
    width: 85%;
    height: 36px;
    line-height: normal;
    -webkit-appearance: none;
}

.find-btn-search-submit {
    float: right;
    width: 18%;
    height: 36px;
    background-color: #12b7f5;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-appearance: none;
}

/* 选项卡 (44px) */
.find-tabs {
    display: -webkit-box;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    height: 44px;
}

.find-tab-item {
    -webkit-box-flex: 1;
    text-align: center;
    line-height: 44px;
    font-size: 15px;
    color: #666;
    position: relative;
}

.find-tab-item.find-active {
    color: #12b7f5;
    font-weight: bold;
}

.find-tab-item.find-active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 2px;
    background-color: #12b7f5;
}

/* --- 滚动列表区域 --- */
.find-scroll-content {
    position: absolute;
    top: 151px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #f7f7f7;
}

/* 列表项样式 */
.find-result-title {
    padding: 10px 15px;
    font-size: 13px;
    color: #888;
}

.find-list {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.find-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f2f2f2;
    overflow: hidden;
}

.find-item:active {
    background-color: #f5f5f5;
}

.find-avatar {
    float: left;
    width: 45px;
    height: 45px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}

.find-avatar.find-group-avatar {
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.find-info {
    float: left;
    margin-left: 12px;
    width: 55%;
}

.find-name {
    font-size: 16px;
    color: #000;
    margin-bottom: 4px;
    font-weight: 500;
}

.find-action {
    float: right;
    margin-top: 8px;
}

.find-btn-action {
    display: inline-block;
    padding: 5px 10px;
    background-color: #12b7f5;
    color: #fff;
    font-size: 12px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    border: none;
    -webkit-appearance: none;
}


/* 简介文字截断 - 支持 iOS 5 的 WebKit 内核 */
.find-intro {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box; /* 必须结合 box 使用 */
    -webkit-box-orient: vertical; /* 设置盒子的排版方向为垂直 */
    -webkit-line-clamp: 1; /* 限制显示的行数，2行后显示省略号 */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all; /* 强制打断长单词，防止溢出 */
}

/* 确保头像图片充满容器 */
.find-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    -webkit-border-radius: inherit;
    border-radius: inherit;
}


.find-panel {
    display: none;
}

.find-panel.find-active {
    display: block;
}


/* =================================================================================

   个人卡片

   ================================================================================= */


/* --- 顶部导航栏 (透明优化) --- */
.personal-card-header {
    height: 50px;
    background-color: transparent; /* 透明背景 */
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 300;
    text-align: center;
    line-height: 50px;
}

.personal-card-nav-btn {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    /* 增加一点阴影，防止在亮色背景下看不清白色图标 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.personal-card-btn-left {
    left: 0;
}

.personal-card-btn-right {
    right: 0;
}

.personal-card-title {
    font-size: 18px;
    font-weight: bold;
}

.personal-card-icon-svg {
    fill: #fff;
    display: block;
}

/* --- 头部背景与头像区 --- */
.personal-card-main {
    padding-top: 0;
    padding-bottom: 80px;
}

/* 取消顶部内边距 */

.personal-card-banner {
    height: 240px; /* 增大背景高度 */
    background-color: #12b7f5;
    /* 兼容 iOS 5 的渐变写法 */
    background: -webkit-gradient(linear, left top, left bottom, from(#12b7f5), to(#33ccff));
    position: relative;
}

.personal-card-avatar-wrap {
    position: absolute;
    bottom: -35px;
    left: 20px;
    width: 85px;
    height: 85px;
    padding: 3px;
    background-color: #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.personal-card-avatar {
    width: 100%;
    height: 100%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}

.personal-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 姓名与基本状态 --- */
.personal-card-basic-info {
    background-color: #fff;
    padding: 45px 20px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.personal-card-nickname {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.personal-card-id {
    font-size: 13px;
    color: #888;
}

/* --- 资料列表项 --- */
.personal-card-group {
    margin-top: 12px;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.personal-card-item {
    display: -webkit-box;
    -webkit-box-align: center;
    min-height: 50px;
    padding: 0 15px;
    border-bottom: 1px solid #f2f2f2;
}

.personal-card-item:last-child {
    border-bottom: none;
}

.personal-card-label {
    width: 75px;
    font-size: 15px;
    color: #888;
}

.personal-card-value {
    -webkit-box-flex: 1;
    font-size: 15px;
    color: #333;
}

/* 标签样式 */
.personal-card-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    background-color: #f0f8ff;
    color: #12b7f5;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    margin-right: 5px;
}

/* --- 底部操作栏 --- */
.personal-card-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #dcdcdc;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    padding: 0 15px;
    z-index: 300;
}

.personal-card-btn-action {
    display: block;
    -webkit-box-flex: 1;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background-color: #12b7f5;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.personal-card-btn-action:active {
    background-color: #0faade;
}

.personal-card-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    margin-right: 12px;
    border: 1px solid #ddd;
}


/* =================================================================================

   加好友的 申请弹窗样式

   ================================================================================= */

/* --- 申请弹窗样式 (iOS 5 兼容) --- */
#apply-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    margin-left: -140px; /* 宽度的一半 */
    margin-top: -100px; /* 高度的大约一半 */
    background-color: #fff;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apply-modal-title {
    padding: 15px 15px 10px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.apply-modal-body {
    padding: 0 15px 15px;
}

.apply-modal-body textarea {
    width: 100%;
    height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    -webkit-border-radius: 4px;
    font-size: 14px;
    -webkit-appearance: none; /* 去除iOS内阴影 */
    box-sizing: border-box; /* 确保宽度包含padding */
}

.apply-modal-footer {
    display: -webkit-box; /* 老版 flex 布局 */
    border-top: 1px solid #e5e5e5;
}

.apply-modal-btn {
    -webkit-box-flex: 1;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.apply-btn-cancel {
    color: #666;
    border-right: 1px solid #e5e5e5;
}

.apply-btn-confirm {
    color: #12b7f5;
    font-weight: bold;
}

.apply-modal-btn:active {
    background-color: #f2f2f2;
}