.page {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    background: #eef1f6;
    padding: 0 12px 24px;
}

/* ---------- 用户信息区 ---------- */
.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 12px;
    margin-top: -50px;
}

.user-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.user-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ff4d2e, #ff7a1a);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.4;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    color: #1b2a5e;
    margin-top: 6px;
}

/* ---------- 订单统计 ---------- */
.stats-card {
    /*margin-top: 12px;*/
    padding: 52px 0 10px;
    background: #fff;
    border-radius: 16px;
    margin-top: 60px;
}

.stats-row {
    display: flex;
    justify-content: space-around;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 8px 0;
    text-decoration: none;
}

.stats-num {
    font-size: 22px;
    font-weight: bold;
    /*color: #1b2a5e;*/
    color: #000;
    line-height: 1.2;
}

.stats-label {
    margin-top: 6px;
    font-size: 13px;
    color: #8a93a6;
}

/* ---------- 常用功能 ---------- */
.func-card {
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
}

.func-title {
    font-size: 16px;
    font-weight: bold;
    color: #1b2a5e;
    margin-bottom: 14px;
}

.func-grid {
    display: flex;
    flex-wrap: wrap;
}

.func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    padding: 12px 0;
    text-decoration: none;
}

.func-item svg {
    margin-bottom: 6px;
}

.func-item span {
    font-size: 13px;
    color: #333;
}

/* ---------- 联系客服弹窗 ---------- */
.my-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

.my-modal-mask.show {
    opacity: 1;
    visibility: visible;
}

.my-modal {
    position: relative;
    width: 320px;
    padding: 28px 20px 20px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    transform: scale(.85) translateY(10px);
    transition: transform .25s ease;
}

.my-modal-mask.show .my-modal {
    transform: scale(1) translateY(0);
}

.my-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f2f3f7;
    color: #8a93a6;
    cursor: pointer;
}

.my-modal-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d8bff, #2f7cf6);
    box-shadow: 0 4px 12px rgba(47, 124, 246, .35);
}

.my-modal-title {
    margin-top: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #1b2a5e;
}

.my-modal-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #8a93a6;
}

.my-modal-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 196px;
    height: 196px;
    margin: 14px auto 0;
    padding: 8px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.my-modal-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.my-modal-qrcode-empty {
    font-size: 13px;
    color: #b6bdc9;
}

.my-modal-wx {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.my-modal-wx span {
    color: #2f7cf6;
    font-weight: bold;
}

.my-modal-btn {
    margin-top: 12px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    background: linear-gradient(90deg, #3d8bff, #2f7cf6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
