@charset "utf-8";
/* ========================================================
* 苹果CMS 会员中心全端自适应样式表 (user.css 终极完整版)
* 包含：手机端居中卡片 + 电脑端纯白左右双栏网格 + 默认SVG头像
* ======================================================== */

/* 基础重置 */
html { -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *:before, *:after { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft Yahei", SimSun, sans-serif;
    color: #333;
    background-color: #f4f6fa;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
ul, ol, li { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; outline: none; }
img { border: none; vertical-align: middle; max-width: 100%; }
input, button, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #fff inset; }

/* ==================== 1. 移动端默认基础样式 ==================== */
.user-center-wrap {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 24px;
}

/* 顶部个人卡片 */
.user-profile-card {
    background: #fff !important;
    padding: 24px 16px 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 头像居中与相机角标 */
.avatar-center-box {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}
.avatar-wrap {
    position: relative !important;
    display: inline-block !important;
    width: 76px !important;
    height: 76px !important;
    cursor: pointer !important;
    margin: 0 auto !important;
}
.avatar-wrap img {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 默认 SVG 头像 */
.default-avatar-svg {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    background: #e9ecf2 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}
.default-avatar-svg svg {
    width: 46px !important;
    height: 46px !important;
}

.camera-badge {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    background: #ff5722 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

.user-name-txt {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-top: 10px !important;
    text-align: center !important;
    width: 100% !important;
}
.user-tip-txt {
    font-size: 11px !important;
    color: #999 !important;
    margin-top: 2px !important;
    text-align: center !important;
    width: 100% !important;
}

/* 资产数据行 */
.user-stat-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f0f0f0 !important;
    width: 100% !important;
}
.user-stat-bar .stat-item {
    flex: 1 !important;
    text-align: center !important;
}
.user-stat-bar .stat-item:first-child {
    border-right: 1px solid #f0f0f0 !important;
}
.user-stat-bar .stat-num {
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
    display: block !important;
}
.user-stat-bar .stat-label {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: 3px !important;
    text-align: center !important;
    display: block !important;
}

/* 退出登录按钮 */
.user-logout-btn {
    display: block !important;
    margin: 16px auto 0 auto !important;
    height: 36px !important;
    line-height: 36px !important;
    background: #fff0f0 !important;
    color: #ff4d4f !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    text-align: center !important;
    width: 85% !important;
}

/* 功能分组卡片与列表 */
.user-group-card {
    background: #fff !important;
    margin: 0 8px 10px 8px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
}
.group-title {
    font-size: 12px !important;
    color: #999 !important;
    padding: 10px 14px 4px !important;
    font-weight: 500 !important;
}
.group-items {
    background: #fff !important;
}
.user-menu-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 14px !important;
    text-decoration: none !important;
    border-bottom: 1px solid #fbfbfb !important;
    color: #333 !important;
}
.user-menu-item:last-child {
    border-bottom: none !important;
}
.menu-item-left {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
}
.menu-item-left svg {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}
.menu-item-right {
    display: flex !important;
    align-items: center !important;
    font-size: 12px !important;
    color: #999 !important;
}
.menu-item-right svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #ccc !important;
    margin-left: 4px !important;
}

/* 登录/注册通用表单 */
.login-w, .reg-w {
    margin: 20px auto;
    width: 92%;
    max-width: 480px;
    background: #fff;
    padding: 24px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    margin-bottom: 12px;
}
.form-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 14px;
}
.btn-brand {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: #1481eb;
    color: #fff;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

/* ==================== 2. 电脑端响应式：左右双栏布局 + 2列纯白卡片 ==================== */
@media screen and (min-width: 641px) {
    body {
        background: #f4f6fa !important;
    }
    .user-center-wrap {
        max-width: 1100px !important;
        width: calc(100% - 48px) !important;
        margin: 16px auto 30px auto !important;
        padding-bottom: 0 !important;
    }
    .user-center-wrap .back-nav-row {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 10px !important;
        margin: 0 0 16px 0 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
        border-bottom: none !important;
    }
    .user-layout-box {
        display: flex !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }
    .user-layout-left {
        width: 320px !important;
        flex-shrink: 0 !important;
    }
    .user-profile-card {
        background: #fff !important;
        border-radius: 10px !important;
        padding: 30px 20px 24px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .avatar-center-box {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
    .user-profile-card .avatar-wrap {
        position: relative !important;
        display: inline-block !important;
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }
    .user-profile-card .avatar-wrap img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 3px solid #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
        display: block !important;
        margin: 0 auto !important;
    }
    .user-profile-card .default-avatar-svg {
        width: 80px !important;
        height: 80px !important;
    }
    .user-profile-card .default-avatar-svg svg {
        width: 48px !important;
        height: 48px !important;
    }
    .user-name-txt {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-top: 10px !important;
        text-align: center !important;
        width: 100% !important;
    }
    .user-tip-txt {
        font-size: 12px !important;
        color: #999 !important;
        margin-top: 2px !important;
        text-align: center !important;
        width: 100% !important;
    }
    .user-stat-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        margin-top: 18px !important;
        padding-top: 16px !important;
        border-top: 1px solid #f0f0f0 !important;
        width: 100% !important;
    }
    .user-stat-bar .stat-item {
        flex: 1 !important;
        text-align: center !important;
    }
    .user-stat-bar .stat-item:first-child {
        border-right: 1px solid #eee !important;
    }
    .user-stat-bar .stat-num {
        font-size: 18px !important;
        font-weight: bold !important;
        text-align: center !important;
    }
    .user-stat-bar .stat-label {
        font-size: 12px !important;
        color: #888 !important;
        margin-top: 4px !important;
        text-align: center !important;
    }
    .user-logout-btn {
        width: 100% !important;
        display: block !important;
        margin-top: 20px !important;
        height: 38px !important;
        line-height: 38px !important;
        background: #fff0f0 !important;
        color: #ff4d4f !important;
        border-radius: 19px !important;
        font-size: 13px !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        text-align: center !important;
        transition: background 0.2s !important;
    }
    .user-logout-btn:hover {
        background: #ffe6e6 !important;
    }

    .user-layout-right {
        flex: 1 !important;
        min-width: 0 !important;
    }
    .user-layout-right .user-group-card {
        background: #fff !important;
        border-radius: 10px !important;
        margin: 0 0 16px 0 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid #f0f2f7 !important;
    }
    .user-layout-right .group-title {
        font-size: 13px !important;
        color: #888 !important;
        padding: 14px 18px 8px !important;
        font-weight: bold !important;
        background: #fff !important;
    }
    .user-layout-right .group-items {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        background: #fff !important;
        gap: 0 !important;
    }
    .user-layout-right .user-menu-item {
        background: #fff !important;
        padding: 16px 18px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-decoration: none !important;
        border: 1px solid #f4f6fa !important;
        border-top: none !important;
        border-left: none !important;
        transition: background 0.15s ease !important;
    }
    .user-layout-right .user-menu-item:hover {
        background: #f8fafc !important;
    }
    .user-layout-right .user-menu-item svg {
        width: 18px !important;
        height: 18px !important;
    }
}


