/* 钱包与个人中心独立覆盖旧布局，账户内容及交互沿用原页面。 */
body.syh-theme.syh-page-wallet,
body.syh-theme.syh-page-mine {
    background: var(--syh-surface, #f4f7fc);
    color: var(--syh-ink, #182b4d);
}

/* 弹性布局无需旧网格的清浮动占位，避免产生额外间距。 */
body.syh-theme.syh-page-wallet .wallet_head::before,
body.syh-theme.syh-page-wallet .wallet_head::after,
body.syh-theme.syh-page-wallet .wallet_card_bottom::before,
body.syh-theme.syh-page-wallet .wallet_card_bottom::after,
body.syh-theme.syh-page-mine .mine_top > .am-g:first-child::before,
body.syh-theme.syh-page-mine .mine_top > .am-g:first-child::after,
body.syh-theme.syh-page-mine .tx-title::before,
body.syh-theme.syh-page-mine .tx-title::after {
    content: none;
}

/* 钱包账户信息与余额卡。 */
body.syh-theme.syh-page-wallet .wallet_head {
    display: flex;
    align-items: center;
    width: auto;
    margin: 0 16px;
    padding: 22px 0 18px;
    background: transparent;
    color: var(--syh-muted, #78879d);
    font-size: 13px;
    line-height: 1.65;
}
body.syh-theme.syh-page-wallet .wallet_head > .am-u-sm-10 {
    flex: 1;
    width: auto;
    padding: 0;
}
body.syh-theme.syh-page-wallet .wallet_head > .am-u-sm-2 {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--syh-blue, #2563eb);
    font-size: 20px !important;
    line-height: 44px !important;
    text-align: center !important;
}
body.syh-theme.syh-page-wallet .head_img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border: 3px solid #fff;
    border-radius: 16px;
    background: #e8efff;
}
body.syh-theme.syh-page-wallet .wallet_head .f_number,
body.syh-theme.syh-page-wallet .wallet_head .please_login {
    color: var(--syh-ink, #182b4d);
    font-size: 17px;
    font-weight: 600;
}
body.syh-theme.syh-page-wallet .wallet_card_con {
    height: auto;
    margin: 0 16px 16px;
}
body.syh-theme.syh-page-wallet .wallet_card_bg {
    position: relative;
    z-index: auto;
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}
body.syh-theme.syh-page-wallet .wallet_card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: linear-gradient(125deg, #1d4ed8 0%, #2872ee 58%, #64a3ff 100%);
    color: #fff;
    text-align: left;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}
body.syh-theme.syh-page-wallet .wallet_card::after,
body.syh-theme.syh-page-mine .mine_top::after {
    position: absolute;
    top: -65px;
    right: -48px;
    width: 190px;
    height: 190px;
    border: 28px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
body.syh-theme.syh-page-wallet .wallet_card > div:first-child,
body.syh-theme.syh-page-wallet .wallet_card > br {
    display: none;
}
body.syh-theme.syh-page-wallet .wallet_card .zhye {
    position: relative;
    z-index: 1;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
body.syh-theme.syh-page-wallet .wallet_card > small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: #e8f0ff;
    font-size: 13px;
}
body.syh-theme.syh-page-wallet .wallet_card > small:last-child {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}
body.syh-theme.syh-page-wallet .wallet_card_bottom {
    position: relative;
    bottom: auto;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 16px;
    padding: 18px 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(24, 43, 77, .04);
}
body.syh-theme.syh-page-wallet .wallet_card_bottom .bottom_avg_box {
    flex: 0 0 50%;
    width: 50%;
    margin: 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--syh-muted, #78879d);
    font-size: 12px;
    line-height: 1.6;
}
body.syh-theme.syh-page-wallet .wallet_card_bottom .bottom_avg_box:first-child {
    border-right: 1px solid #e8eef7;
}
body.syh-theme.syh-page-wallet .bottom_avg_box .f_number {
    display: inline-block;
    margin-top: 8px;
    color: var(--syh-ink, #182b4d);
    font-size: 23px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
body.syh-theme.syh-page-wallet .ljtx {
    flex: 0 0 100%;
    width: 100%;
    padding: 18px 0 0;
}
body.syh-theme.syh-page-wallet .ljtx #edit {
    height: 46px;
    padding: 0;
    border-radius: 12px !important;
    background: var(--syh-blue, #2563eb) !important;
    color: #fff;
    font-size: 16px;
    line-height: 46px !important;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .16);
}
body.syh-theme.syh-page-wallet .ljtx #edit b {
    font-weight: 600;
}

/* 银行卡与原有借款说明使用同一白卡间距。 */
body.syh-theme.syh-page-wallet .bank_info,
body.syh-theme.syh-page-wallet .loan {
    width: auto;
    margin: 16px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(24, 43, 77, .04);
}
body.syh-theme.syh-page-wallet .bank_info h2 {
    margin: 0;
    padding: 0;
    background: none;
    color: var(--syh-ink, #182b4d);
    font-size: 16px;
    font-weight: 600;
}
body.syh-theme.syh-page-wallet .bank_card_info {
    width: 100%;
    margin: 16px 0 0;
    padding: 20px;
    border: 1px solid #e2eafb;
    border-radius: 14px;
    background: linear-gradient(110deg, #edf3ff, #f8faff);
    color: var(--syh-ink, #182b4d);
}
body.syh-theme.syh-page-wallet .bank_card_info > span:first-child,
body.syh-theme.syh-page-wallet .bank_card_info > br {
    display: none;
}
body.syh-theme.syh-page-wallet .bank_card_info .f_number {
    font-size: 18px;
    letter-spacing: 1px;
}
body.syh-theme.syh-page-wallet .loan .represent {
    min-height: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
body.syh-theme.syh-page-wallet .loan .represent b {
    font-weight: 500;
}
body.syh-theme.syh-page-wallet .loan .represent p {
    margin: 8px 0 0;
    color: var(--syh-muted, #78879d);
}
body.syh-theme.syh-page-wallet .bank_bz {
    margin: 24px 16px;
    color: var(--syh-muted, #78879d);
    font-size: 12px;
}
body.syh-theme.syh-page-wallet .bank_bz i {
    margin-right: 4px;
    color: var(--syh-blue, #2563eb);
}

/* 个人中心账户卡保留原头像和两个快捷入口。 */
body.syh-theme.syh-page-mine .wd-head {
    padding: 0 16px;
    background: transparent;
}
body.syh-theme.syh-page-mine .wd-head .comm_top_nav {
    padding: 22px 0 18px;
    color: var(--syh-ink, #182b4d) !important;
    font-size: 20px;
    letter-spacing: 0;
}
body.syh-theme.syh-page-mine .mine_top_bg,
body.syh-theme.syh-page-mine .mine_top_div {
    display: none;
}
body.syh-theme.syh-page-mine .mine_top {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 22px 0 0;
    border-radius: 20px;
    background: linear-gradient(125deg, #1d4ed8 0%, #2872ee 58%, #64a3ff 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}
body.syh-theme.syh-page-mine .mine_top > .am-g:first-child {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
}
body.syh-theme.syh-page-mine .mine_top .head_height {
    flex: 0 0 64px;
    width: 64px;
    height: 64px !important;
    margin-left: 0;
    padding: 0;
}
body.syh-theme.syh-page-mine .head_height img {
    border: 3px solid rgba(255, 255, 255, .85);
    background: #e8efff;
}
body.syh-theme.syh-page-mine .mine_top > .am-g:first-child > .am-u-sm-7 {
    flex: 1;
    width: auto;
    padding: 0;
    color: #fff !important;
    font-size: 13px;
    line-height: 1.8 !important;
}
body.syh-theme.syh-page-mine .mine_top .f_number,
body.syh-theme.syh-page-mine .mine_top .please_login {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}
body.syh-theme.syh-page-mine .mine_top > .am-g:last-child {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 14px 12px !important;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .1);
    line-height: 1.5 !important;
}
body.syh-theme.syh-page-mine .mine_top > .am-g:last-child > .am-u-sm-6 + .am-u-sm-6 {
    border-left: 1px solid rgba(255, 255, 255, .22);
}
body.syh-theme.syh-page-mine .mine_top a {
    color: #fff !important;
}
body.syh-theme.syh-page-mine .left_li_div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-left: 0 !important;
    font-size: 14px;
}
body.syh-theme.syh-page-mine .left_li_txt {
    float: none;
}
body.syh-theme.syh-page-mine .left_li_img {
    float: none;
    width: 22px;
    height: 22px;
    margin: 0;
    filter: brightness(0) invert(1);
}
body.syh-theme.syh-page-mine .left_li_div .clear {
    display: none;
}

/* 白卡菜单仅调整已有可见行，原内联隐藏菜单保持隐藏。 */
body.syh-theme.syh-page-mine .tx-title,
body.syh-theme.syh-page-mine .menu-list,
body.syh-theme.syh-page-mine .system-list {
    width: auto;
    margin: 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(24, 43, 77, .04);
}
body.syh-theme.syh-page-mine .tx-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px;
    color: var(--syh-muted, #78879d);
    font-size: 13px;
    line-height: 1.5;
}
body.syh-theme.syh-page-mine .tx-title > .am-u-sm-1 {
    flex: 0 0 14px;
    width: 14px;
    padding: 0;
}
body.syh-theme.syh-page-mine .tx-title .point {
    width: 8px;
    height: 8px;
    margin: 0;
    background: var(--syh-blue, #2563eb);
}
body.syh-theme.syh-page-mine .tx-title > a {
    flex: 1;
    color: var(--syh-ink, #182b4d) !important;
}
body.syh-theme.syh-page-mine .tx-title a > .am-u-sm-9 {
    width: 100%;
    padding: 0;
}
body.syh-theme.syh-page-mine .tx-title .quota {
    margin-left: 6px;
    color: var(--syh-blue, #2563eb);
    font-size: 28px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
body.syh-theme.syh-page-mine .tx-title > .am-u-sm-2 {
    flex: 0 0 18px;
    width: 18px;
    padding: 0;
    color: #aab6c7;
}
body.syh-theme.syh-page-mine .menu-list,
body.syh-theme.syh-page-mine .system-list {
    padding: 2px 16px;
}
body.syh-theme.syh-page-mine .menu-list > .am-g + .am-g,
body.syh-theme.syh-page-mine .system-list > .am-g + .am-g {
    border-top: 1px solid #edf1f7;
}
body.syh-theme.syh-page-mine .menu-list a,
body.syh-theme.syh-page-mine .system-list a {
    display: flex;
    align-items: center;
    min-height: 62px;
    color: var(--syh-ink, #182b4d);
    font-size: 15px;
    line-height: 1.5;
}
body.syh-theme.syh-page-mine .menu-list a > .am-u-sm-10,
body.syh-theme.syh-page-mine .system-list a > .am-u-sm-10 {
    flex: 1;
    width: auto;
    padding: 0;
    line-height: 34px;
}
body.syh-theme.syh-page-mine .menu-list a > .am-u-sm-2,
body.syh-theme.syh-page-mine .system-list a > .am-u-sm-2 {
    flex: 0 0 18px;
    width: 18px;
    padding: 0;
    color: #aab6c7;
}
body.syh-theme.syh-page-mine .menu-list .menu-icon,
body.syh-theme.syh-page-mine .system-list .menu-icon {
    width: 34px;
    height: 34px;
    margin: 0 12px 0 0;
    padding: 6px;
    border-radius: 10px;
    background: #f0f5ff;
    object-fit: contain;
    filter: hue-rotate(180deg);
}

/* 窄屏保留卡片边距，金额和账号可在卡片内换行。 */
@media (max-width: 360px) {
    body.syh-theme.syh-page-wallet .wallet_card {
        padding: 24px 20px 20px;
    }
    body.syh-theme.syh-page-wallet .wallet_card .zhye {
        font-size: 38px;
    }
    body.syh-theme.syh-page-wallet .wallet_card_bottom .bottom_avg_box {
        padding: 0 7px;
        font-size: 11px;
    }
    body.syh-theme.syh-page-wallet .bottom_avg_box .f_number {
        font-size: 21px;
    }
    body.syh-theme.syh-page-mine .mine_top > .am-g:first-child {
        gap: 12px;
        padding: 0 16px;
    }
    body.syh-theme.syh-page-mine .mine_top .f_number {
        font-size: 18px;
    }
    body.syh-theme.syh-page-mine .tx-title .quota {
        font-size: 25px;
    }
}

/* 审核及处理分支的原空按钮保持无事件，不展示旧的黄色装饰背景。 */
body.syh-theme.syh-page-wallet .ljtx button:not(#edit) {
    background: transparent;
    box-shadow: none;
}

/* 停用的预付费入口仅保留文字说明。 */
body.syh-theme.syh-page-wallet .syh-withdraw-notice { display: block; color: #6c7d95; font-size: 13px; line-height: 1.8; }
