/* ============================================================
   会员中心（member）
   ============================================================ */

/* 会员中心布局：左侧菜单 + 右侧内容 */
.tp-member {
    padding: 48px 0 64px;
    min-height: 480px;
    font-size: 16px;
    line-height: 1.65;
}

.tp-member .btn {
    font-size: 15px;
}

.tp-member .btn-sm,
.tp-member .tp-order__actions .btn {
    font-size: 14px;
    padding: 5px 14px;
}

/* ===== 左侧菜单 ===== */
.tp-member__side {
    position: sticky;
    top: 20px;
}

.tp-member__user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 12px 12px 0 0;
    color: #fff;
}

.tp-member__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .55);
    background: #fff;
    flex-shrink: 0;
}

.tp-member__name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tp-member__level {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .22);
    margin-bottom: 6px;
}

.tp-member__points {
    font-size: 15px;
    opacity: .92;
}

.tp-member__points b {
    font-size: 18px;
}

/* 菜单 */
.tp-member__nav {
    background: #fff;
    border: 1px solid #e9edf4;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px 0;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .06);
}

.tp-member__nav-group {
    font-size: 15px;
    color: #9aa3b2;
    padding: 12px 20px 6px;
    letter-spacing: 2px;
}

.tp-member__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #55606f;
    font-size: 18px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s;
}

.tp-member__nav-link:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, .05);
    text-decoration: none;
}

.tp-member__nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, .08);
    border-left-color: #0d6efd;
    font-weight: 600;
}

.tp-member__nav-link i {
    width: 22px;
    text-align: center;
    font-size: 19px;
}

.tp-member__nav-link .tp-member__nav-badge {
    margin-left: auto;
    font-size: 14px;
    padding: 3px 9px;
    border-radius: 20px;
    background: #0d6efd;
    color: #fff;
}

/* ===== 右侧内容 ===== */
.tp-member__main {
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .06);
}

.tp-member__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f6;
}

.tp-member__title {
    font-size: 23px;
    font-weight: 700;
    color: #1c2430;
    margin: 0;
}

.tp-member__title small {
    font-size: 15px;
    font-weight: 400;
    color: #9aa3b2;
    margin-left: 8px;
}

.tp-member__sub {
    color: #9aa3b2;
    font-size: 15px;
}

/* 统计卡片 */
.tp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.tp-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e9edf4;
    border-radius: 10px;
    background: #fafbfd;
    transition: all .2s;
}

.tp-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, .08);
}

.tp-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.tp-stat__num {
    font-size: 26px;
    font-weight: 700;
    color: #1c2430;
    line-height: 1.1;
}

.tp-stat__label {
    font-size: 14px;
    color: #9aa3b2;
}

/* 面板 */
.tp-member__panel {
    border: 1px solid #eef1f6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.tp-member__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #eef1f6;
}

.tp-member__panel-title {
    font-size: 17px;
    font-weight: 700;
    color: #1c2430;
    margin: 0;
}

.tp-member__panel-more {
    font-size: 15px;
    color: #0d6efd;
    text-decoration: none;
}

/* 订单行 */
.tp-order {
    padding: 16px 18px;
    border-bottom: 1px solid #f2f4f8;
}

.tp-order:last-child {
    border-bottom: none;
}

.tp-order__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #9aa3b2;
}

.tp-order__id {
    font-weight: 600;
    color: #55606f;
}

.tp-order__body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tp-order__thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eef1f6;
}

.tp-order__info {
    flex: 1;
    min-width: 0;
}

.tp-order__name {
    font-size: 17px;
    font-weight: 600;
    color: #1c2430;
    margin-bottom: 4px;
}

.tp-order__meta {
    font-size: 14px;
    color: #9aa3b2;
    line-height: 1.6;
}

.tp-order__right {
    text-align: right;
    flex-shrink: 0;
}

.tp-order__amount {
    font-size: 19px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}

.tp-order__amount small {
    font-size: 14px;
    font-weight: 400;
    color: #9aa3b2;
}

.tp-order__rev {
    display: inline-block;
    margin-top: 6px;
}

.tp-order__rev--btn {
    padding: 4px 14px;
    border: 1px solid #ffb03a;
    border-radius: 16px;
    background: #fff;
    color: #ff8a00;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}

.tp-order__rev--btn:hover {
    background: #ff8a00;
    color: #fff;
}

.tp-order__rev--done {
    font-size: 12px;
    color: #16a34a;
}

/* 评价弹窗 */
.tp-rev-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-rev-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
}

.tp-rev-modal__box {
    position: relative;
    width: 460px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    animation: tpRevIn .22s ease;
}

@keyframes tpRevIn {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tp-rev-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tp-rev-modal__head b {
    font-size: 17px;
    color: #1c2430;
}

.tp-rev-modal__close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f1f4f9;
    color: #8a94a6;
    cursor: pointer;
    transition: all .2s;
}

.tp-rev-modal__close:hover {
    background: #e74c3c;
    color: #fff;
}

.tp-rev-modal__title {
    font-size: 14px;
    color: #4a5468;
    background: #f6f8fc;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.tp-rev-modal__stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tp-rev-modal__stars i {
    font-size: 30px;
    color: #d5dbe4;
    cursor: pointer;
    transition: all .15s;
}

.tp-rev-modal__stars i.active {
    color: #ffb400;
}

.tp-rev-modal__text {
    width: 100%;
    height: 110px;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #1c2430;
    resize: none;
    outline: none;
}

.tp-rev-modal__text:focus {
    border-color: #0d6efd;
}

.tp-rev-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.tp-rev-modal__btn {
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e3e7ef;
    background: #fff;
    color: #8a94a6;
    transition: all .2s;
}

.tp-rev-modal__btn--cancel:hover {
    color: #4a5468;
    border-color: #c8d0dc;
}

.tp-rev-modal__btn--ok {
    background: linear-gradient(135deg, #ffb03a, #ff8a00);
    border: none;
    color: #fff;
    font-weight: 600;
}

.tp-rev-modal__btn--ok:hover {
    opacity: .9;
}

.tp-rev-modal__btn--ok:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tp-order__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.tp-order__actions .btn {
    font-size: 14px;
    padding: 4px 12px;
}

/* 状态徽章 */
.tp-badge-status {
    display: inline-block;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}

.tp-badge-status--warning { background: #fff3e0; color: #e67e22; }
.tp-badge-status--primary  { background: #e8f1ff; color: #0d6efd; }
.tp-badge-status--info     { background: #e0f2f7; color: #0b7c9e; }
.tp-badge-status--success  { background: #e6f7ef; color: #1e9e6e; }
.tp-badge-status--secondary{ background: #f0f2f5; color: #6b7280; }
.tp-badge-status--danger   { background: #fdecea; color: #e74c3c; }

/* 订单状态徽章（1待付款 2待发货 3待收货 4已完成 5已取消 6售后/退款） */
.tp-badge-status--pending { background: #fff3e0; color: #e67e22; }
.tp-badge-status--ship    { background: #e0f2f7; color: #0b7c9e; }
.tp-badge-status--receive { background: #e8f1ff; color: #0d6efd; }
.tp-badge-status--done    { background: #e6f7ef; color: #1e9e6e; }
.tp-badge-status--cancel  { background: #f0f2f5; color: #6b7280; }
.tp-badge-status--after   { background: #fdecea; color: #e74c3c; }

/* 空状态 */
.tp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #b6bfcc;
}

.tp-empty i {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    color: #d5dbe4;
}

.tp-empty p {
    font-size: 16px;
    margin: 0;
}

/* 通知列表 */
.tp-notice {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f2f4f8;
    align-items: flex-start;
}

.tp-notice:last-child {
    border-bottom: none;
}

.tp-notice__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.tp-notice__body {
    flex: 1;
    min-width: 0;
}

.tp-notice__text {
    font-size: 15px;
    color: #4a5465;
    line-height: 1.7;
}

.tp-notice__time {
    font-size: 14px;
    color: #b6bfcc;
    white-space: nowrap;
}

/* ===== 表单页 ===== */
.tp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.tp-form__item--full {
    grid-column: 1 / -1;
}

.tp-addr-region {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tp-addr-region .form-select {
    font-size: 15px;
    padding: 9px 14px;
    border-radius: 8px;
    border-color: #e4e8ef;
    color: #4a5465;
}

.tp-addr-region .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .1);
}

.tp-form__item label {
    display: block;
    font-size: 15px;
    color: #4a5465;
    margin-bottom: 6px;
    font-weight: 600;
}

.tp-form__item .form-control {
    font-size: 16px;
    padding: 9px 14px;
    border-radius: 8px;
    border-color: #e4e8ef;
}

.tp-form__item .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .1);
}

.tp-form__item textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.tp-form__avatar {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tp-form__avatar img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9edf4;
}

.tp-form__hint {
    font-size: 14px;
    color: #b6bfcc;
    margin-top: 4px;
}

/* ===== 预约/评价/收藏卡片 ===== */
.tp-bk-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #fafbfd;
}

.tp-bk-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.tp-bk-card__info {
    flex: 1;
    min-width: 0;
}

.tp-bk-card__name {
    font-size: 17px;
    font-weight: 600;
    color: #1c2430;
}

.tp-bk-card__meta {
    font-size: 14px;
    color: #9aa3b2;
    margin-top: 3px;
}

.tp-bk-card__note {
    font-size: 14px;
    color: #55606f;
    margin-top: 3px;
}

/* 收藏卡片 */
.tp-fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tp-fav-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: all .25s ease;
}

.tp-fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}

.tp-fav-card__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f7fa;
}

.tp-fav-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tp-fav-card:hover .tp-fav-card__thumb img {
    transform: scale(1.05);
}

.tp-fav-card__heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .2s;
}

.tp-fav-card__heart:hover {
    background: #e74c3c;
    color: #fff;
}

.tp-fav-card__body {
    padding: 14px;
}

.tp-fav-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #1c2430;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-fav-card__desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.tp-fav-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tp-fav-card__price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    line-height: 1;
}

.tp-fav-card__currency {
    font-size: 12px;
    font-weight: 700;
    color: #e74c3c;
    margin-right: 1px;
}

.tp-fav-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.tp-fav-card__unit {
    font-size: 12px;
    color: #e74c3c;
    margin-left: 2px;
}

.tp-fav-card__original {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 6px;
}

.tp-fav-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}

.tp-fav-card__btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

@media (max-width: 1199px) {
    .tp-fav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .tp-fav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .tp-fav-card__body {
        padding: 12px;
    }

    .tp-fav-card__name {
        font-size: 14px;
    }

    .tp-fav-card__price {
        font-size: 18px;
    }

    .tp-fav-card__btn {
        padding: 4px 10px;
    }
}

/* 地址卡片 */
.tp-addr-card {
    border: 1px solid #eef1f6;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
    background: #fafbfd;
}

.tp-addr-card--default {
    border-color: rgba(13, 110, 253, .45);
    background: rgba(13, 110, 253, .03);
}

.tp-addr-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tp-addr-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #1c2430;
}

.tp-addr-card__phone {
    font-size: 15px;
    color: #55606f;
}

.tp-addr-card__tag {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #0d6efd;
    color: #fff;
}

.tp-addr-card__detail {
    font-size: 15px;
    color: #4a5465;
    line-height: 1.7;
    margin-bottom: 12px;
}

.tp-addr-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #e4e8ef;
    padding-top: 10px;
}

.tp-addr-card__default {
    font-size: 14px;
    color: #9aa3b2;
}

.tp-addr-card__default i {
    color: #20c997;
}

.tp-addr-card__ops {
    display: flex;
    gap: 12px;
}

.tp-addr-card__ops a {
    font-size: 15px;
    color: #55606f;
    text-decoration: none;
}

.tp-addr-card__ops a:hover {
    color: #0d6efd;
}

/* 安全项 */
.tp-sec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #f2f4f8;
}

.tp-sec-item:last-child {
    border-bottom: none;
}

.tp-sec-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(13, 110, 253, .08);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tp-sec-item__info {
    flex: 1;
    min-width: 0;
}

.tp-sec-item__label {
    font-size: 17px;
    font-weight: 600;
    color: #1c2430;
}

.tp-sec-item__desc {
    font-size: 14px;
    color: #b6bfcc;
    margin-top: 2px;
}

.tp-sec-item__status {
    font-size: 15px;
    flex-shrink: 0;
}

.tp-sec-item__btn {
    font-size: 15px;
    padding: 6px 16px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* 评价卡片 */
.tp-rev-card {
    border: 1px solid #eef1f6;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 14px;
}

.tp-rev-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tp-rev-card__name {
    font-size: 17px;
    font-weight: 600;
    color: #1c2430;
}

.tp-rev-card__stars {
    color: #f6b93b;
    font-size: 15px;
    letter-spacing: 2px;
}

.tp-rev-card__content {
    font-size: 16px;
    color: #4a5465;
    line-height: 1.8;
    margin-bottom: 12px;
}

.tp-rev-card__reply {
    background: #f6f8fb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #55606f;
    line-height: 1.7;
}

.tp-rev-card__reply i {
    color: #0d6efd;
    margin-right: 6px;
}

.tp-rev-card__date {
    font-size: 14px;
    color: #b6bfcc;
}

/* 优惠券 */
.tp-coupon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tp-coupon {
    position: relative;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    min-height: 108px;
}

.tp-coupon::after {
    content: '';
    position: absolute;
    right: 30%;
    top: -10px;
    bottom: -10px;
    width: 1px;
    border-left: 2px dashed rgba(255, 255, 255, .35);
}

.tp-coupon--used,
.tp-coupon--danger {
    background: linear-gradient(135deg, #a8b2c1, #8a96a8);
}

.tp-coupon__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
}

.tp-coupon__amount {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.tp-coupon__amount span {
    font-size: 15px;
    font-weight: 400;
    margin-right: 2px;
}

.tp-coupon__limit {
    font-size: 14px;
    opacity: .9;
}

.tp-coupon__right {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-left: none;
    text-align: center;
}

.tp-coupon__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.tp-coupon__valid {
    font-size: 13px;
    opacity: .85;
}

.tp-coupon__status {
    margin-top: 6px;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .25);
}

/* 积分 */
.tp-points-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #f59e0b, #e67e22);
    border-radius: 10px;
    padding: 24px;
    color: #fff;
    margin-bottom: 22px;
}

.tp-points-hero__icon {
    font-size: 46px;
    opacity: .9;
}

.tp-points-hero__num {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.tp-points-hero__desc {
    font-size: 15px;
    opacity: .92;
}

.tp-point-record {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f2f4f8;
    font-size: 16px;
}

.tp-point-record:last-child {
    border-bottom: none;
}

.tp-point-record__desc {
    flex: 1;
    color: #1c2430;
    font-weight: 500;
}

.tp-point-record__time {
    color: #b6bfcc;
    font-size: 14px;
}

.tp-point-record__num {
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.tp-point-record__num--plus {
    color: #1e9e6e;
}

.tp-point-record__num--minus {
    color: #e74c3c;
}

/* 订单详情 */
.tp-detail-steps {
    display: flex;
    margin-bottom: 24px;
}

.tp-detail-step {
    flex: 1;
    position: relative;
    text-align: center;
    padding-top: 34px;
}

.tp-detail-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9edf4;
}

.tp-detail-step:first-child::before {
    left: 50%;
}

.tp-detail-step:last-child::before {
    right: 50%;
}

.tp-detail-step.done::before {
    background: #0d6efd;
}

.tp-detail-step__dot {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e9edf4;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    z-index: 1;
}

.tp-detail-step.done .tp-detail-step__dot {
    background: #0d6efd;
}

/* 当前进行中的步骤：空心圆点 */
.tp-detail-step:not(.done) .tp-detail-step__dot {
    background: #fff;
    border: 2px solid #c6cfdd;
    line-height: 18px;
    color: #8a94a6;
}

/* 订单已取消 */
.tp-detail-step.cancel::before {
    background: #e74c3c;
}
.tp-detail-step.cancel .tp-detail-step__dot {
    border-color: #e74c3c;
    color: #e74c3c;
}
.tp-detail-step.cancel .tp-detail-step__label {
    color: #e74c3c;
}

/* 售后处理中 */
.tp-detail-step.after::before {
    background: #0d6efd;
}
.tp-detail-step.after .tp-detail-step__dot {
    border-color: #0d6efd;
    color: #0d6efd;
}
.tp-detail-step.after .tp-detail-step__label {
    color: #0d6efd;
}

.tp-detail-step__label {
    font-size: 15px;
    color: #9aa3b2;
    margin-bottom: 2px;
}

.tp-detail-step.done .tp-detail-step__label {
    color: #0d6efd;
    font-weight: 600;
}

.tp-detail-step__time {
    font-size: 13px;
    color: #b6bfcc;
}

/* 详情信息表 */
.tp-info-list {
    border-top: 1px solid #eef1f6;
}

.tp-info-row {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid #f2f4f8;
    font-size: 16px;
}

.tp-info-row__label {
    width: 110px;
    color: #9aa3b2;
    flex-shrink: 0;
}

.tp-info-row__value {
    flex: 1;
    color: #1c2430;
}

.tp-info-row__value a {
    color: #0d6efd;
}

/* 订单筛选 */
.tp-order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tp-order-tab {
    font-size: 15px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #e4e8ef;
    color: #55606f;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.tp-order-tab:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.tp-order-tab.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.tp-order-tab .num {
    font-size: 13px;
    opacity: .75;
    margin-left: 2px;
}

/* 分页（演示） */
.tp-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}

.tp-pager a,
.tp-pager span {
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #e4e8ef;
    color: #55606f;
    text-decoration: none;
    padding: 0 8px;
}

.tp-pager a:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.tp-pager .current {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.tp-pager a.disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    background: #f7f8fb;
    color: #aeb6c2;
    border-color: #eceff5;
}

.tp-pager__info {
    display: inline-flex;
    align-items: center;
    min-width: auto !important;
    border: none !important;
    color: #8a94a6 !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    height: auto !important;
    line-height: 34px !important;
    cursor: default;
}

/* ===== 响应式（会员子页移动端；首页 APP 布局见下方） ===== */
@media (max-width: 991.98px) {
    .tp-member {
        padding: 16px 0 88px;
    }

    .tp-member .tp-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 会员子页：压缩内页头图（不波及其它栏目） */
    body:has(.tp-member):not(.page-member) .tp-inner-hero {
        min-height: 120px;
        padding: 28px 0 24px;
    }

    body:has(.tp-member):not(.page-member) .tp-inner-hero__title {
        font-size: 1.35rem;
    }

    body:has(.tp-member):not(.page-member) .tp-inner-hero__sub {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    /* 移动端默认不显示左侧会员菜单，主内容全宽 */
    .tp-member__side {
        display: none !important;
    }

    .tp-member .row > [class*="col-"]:has(.tp-member__side) {
        display: none !important;
    }

    .tp-member .row > [class*="col-"]:has(.tp-member__main) {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .tp-member__main {
        padding: 16px;
        border-radius: 12px;
    }

    .tp-member__head {
        margin-bottom: 14px;
        padding-bottom: 12px;
        gap: 8px;
    }

    .tp-member__title {
        font-size: 18px;
        line-height: 1.4;
    }

    .tp-member__title small {
        display: block;
        margin: 4px 0 0;
        font-size: 13px;
    }

    .tp-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .tp-stat {
        padding: 12px;
        gap: 10px;
    }

    .tp-stat__icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .tp-stat__num {
        font-size: 20px;
    }

    .tp-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tp-fav-grid,
    .tp-coupon-list {
        grid-template-columns: 1fr;
    }

    .tp-order-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -4px 14px;
        padding: 0 4px 4px;
        gap: 8px;
    }

    .tp-order-tabs::-webkit-scrollbar {
        display: none;
    }

    .tp-order-tab {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 6px 12px;
    }

    .tp-bk-card {
        flex-wrap: wrap;
        padding: 14px;
    }

    .tp-bk-card__ops,
    .tp-order__actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .tp-points-hero {
        flex-wrap: wrap;
        padding: 18px;
        gap: 12px;
    }

    .tp-points-hero .ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }

    .tp-points-hero .btn {
        width: 100%;
    }

    .tp-point-record {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .tp-point-record__time {
        order: 3;
        width: 100%;
    }

    .tp-sec-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 0;
    }

    .tp-sec-item__btn {
        margin-left: auto;
    }

    .tp-info-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .tp-info-row__label {
        width: auto;
    }

    .tp-detail-steps {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .tp-detail-step {
        min-width: 88px;
    }

    .tp-coupon {
        min-height: 96px;
    }

    .tp-notice {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tp-notice__time {
        width: 100%;
        padding-left: 44px;
    }
}

@media (max-width: 575.98px) {
    .tp-member__main {
        padding: 14px 12px;
    }

    .tp-order__body {
        flex-wrap: wrap;
    }

    .tp-order__thumb {
        width: 56px;
        height: 56px;
    }

    .tp-order__right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        margin-top: 4px;
    }

    .tp-order__meta {
        white-space: normal;
        word-break: break-all;
    }

    .tp-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tp-addr-card__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tp-form__avatar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   移动端 APP 风格会员中心（仅 body.page-member /member.html）
   桌面端与其它会员子页不受影响
   ============================================================ */
@media (min-width: 992px) {
    .tp-app-member {
        display: none;
    }
}

@media (max-width: 991.98px) {
    /* 仅会员首页切换为 APP 布局 */
    body.page-member .tp-member-hero,
    body.page-member .tp-member {
        display: none !important;
    }

    body.page-member .tp-app-member {
        display: block;
    }

    body:not(.page-member) .tp-app-member {
        display: none !important;
    }

    /* 用户信息头 */
    .tp-app-member__header {
        background: linear-gradient(160deg, #2b7fff, #0d6efd 55%, #0a58ca);
        color: #fff;
        padding: 20px 16px 0;
    }

    .tp-app-member__top {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
    }

    .tp-app-member__avatar {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, .55);
        background: #fff;
        flex-shrink: 0;
    }

    .tp-app-member__info {
        flex: 1;
        min-width: 0;
    }

    .tp-app-member__name {
        font-size: 21px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .tp-app-member__level {
        display: inline-block;
        font-size: 12px;
        line-height: 1;
        padding: 4px 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .2);
        border: 1px solid rgba(255, 255, 255, .35);
    }

    .tp-app-member__setting {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
        text-decoration: none;
    }

    .tp-app-member__meta {
        display: flex;
        justify-content: space-around;
        padding: 14px 0 16px;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }

    .tp-app-member__meta-item {
        text-align: center;
    }

    .tp-app-member__meta-item b {
        display: block;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .tp-app-member__meta-item span {
        font-size: 12px;
        opacity: .8;
    }

    /* 订单状态统计（白色卡片吸附在头部下方） */
    .tp-app-member__stats {
        display: flex;
        background: #fff;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        margin: 0 -16px;
        padding: 0 16px;
        box-shadow: 0 -3px 14px rgba(2, 40, 90, .08);
    }

    .tp-app-member__stat {
        flex: 1;
        text-align: center;
        padding: 14px 4px;
        color: #55606f;
        text-decoration: none;
        position: relative;
    }

    .tp-app-member__stat + .tp-app-member__stat::before {
        content: '';
        position: absolute;
        left: 0;
        top: 30%;
        bottom: 30%;
        width: 1px;
        background: #eef1f6;
    }

    .tp-app-member__stat b {
        display: block;
        font-size: 21px;
        font-weight: 800;
        color: #1c2430;
        line-height: 1.1;
        margin-bottom: 3px;
    }

    .tp-app-member__stat span {
        font-size: 12px;
        color: #9aa3b2;
    }

    /* 内容区 */
    .tp-app-member__body {
        background: #f4f6fa;
        padding: 12px;
        padding-bottom: 96px;
        min-height: 60vh;
    }

    /* 功能宫格 */
    .tp-app-member__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        background: #e9edf4;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .tp-app-member__cell {
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        padding: 16px 2px 14px;
        color: #4a5465;
        text-decoration: none;
        font-size: 13px;
    }

    .tp-app-member__cell i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 19px;
        font-style: normal;
    }

    /* 通用卡片 */
    .tp-app-card {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .tp-app-card__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 16px 11px;
    }

    .tp-app-card__head span {
        font-size: 17px;
        font-weight: 700;
        color: #1c2430;
    }

    .tp-app-card__head a {
        font-size: 13px;
        color: #0d6efd;
        text-decoration: none;
    }

    /* 订单行 */
    .tp-app-order {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-top: 1px solid #f2f4f8;
        text-decoration: none;
    }

    .tp-app-order__thumb {
        width: 54px;
        height: 54px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
        background: #f2f4f8;
    }

    .tp-app-order__info {
        flex: 1;
        min-width: 0;
    }

    .tp-app-order__name {
        font-size: 15px;
        font-weight: 600;
        color: #1c2430;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
    }

    .tp-app-order__time {
        font-size: 12px;
        color: #9aa3b2;
    }

    .tp-app-order__time i {
        font-size: 12px;
        margin-right: 2px;
    }

    .tp-app-order__right {
        text-align: right;
        flex-shrink: 0;
    }

    .tp-app-order__amount {
        font-size: 17px;
        font-weight: 800;
        color: #e74c3c;
        margin-bottom: 4px;
    }

    .tp-app-order__status {
        display: inline-block;
        font-size: 12px;
        line-height: 1;
        padding: 4px 9px;
        border-radius: 20px;
    }

    .tp-app-order__status--warning { background: #fff3e0; color: #e67e22; }
    .tp-app-order__status--primary { background: #e7f1ff; color: #0d6efd; }
    .tp-app-order__status--info { background: #e0f2ff; color: #0b9de6; }
    .tp-app-order__status--success { background: #e7f7ef; color: #1e9e6e; }
    .tp-app-order__status--secondary { background: #eef1f6; color: #8a96a8; }

    /* 通知 */
    .tp-app-notice {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
        border-top: 1px solid #f2f4f8;
    }

    .tp-app-notice i {
        color: #0d6efd;
        margin-top: 3px;
        font-size: 15px;
        flex-shrink: 0;
    }

    .tp-app-notice p {
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: 13px;
        color: #4a5465;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tp-app-notice span {
        font-size: 12px;
        color: #b6bfcc;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ============================================================
   账户安全 - 操作弹窗 & 提示（member/security.html）
   ============================================================ */

/* 安全项操作按钮 */
.tp-sec-item__btn {
    min-width: 92px;
    white-space: nowrap;
}

/* 微信绑定二维码占位 */
.tp-sec-qrcode {
    width: 172px;
    height: 172px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f9fc;
    border: 1px dashed #cfd9e6;
    border-radius: 14px;
    font-size: 100px;
    color: #0d6efd;
}

/* 操作结果 Toast */
.tp-sec-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%) translateY(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    color: #fff;
    background: rgba(30, 158, 110, .95);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(30, 158, 110, .35);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    max-width: calc(100vw - 48px);
}

.tp-sec-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tp-sec-toast.is-error {
    background: rgba(230, 126, 34, .95);
    box-shadow: 0 8px 24px rgba(230, 126, 34, .35);
}

/* 移动端适配：按钮紧凑、Toast 上移避开底部工具条 */
@media (max-width: 575.98px) {
    .tp-sec-item__btn {
        min-width: 72px;
        padding: 6px 14px;
        font-size: 14px;
    }

    .tp-sec-toast {
        bottom: 84px;
    }

    .tp-sec-item__status {
        font-size: 13px;
    }
}

/* ============================================================
   我的资产 - 总览卡片 & 资金明细（member/assets.html）
   ============================================================ */
.tp-assets-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.tp-assets-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}

.tp-assets-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.tp-assets-card__label {
    color: #8a94a6;
    font-size: 15px;
}

.tp-assets-card__num {
    font-size: 27px;
    font-weight: 700;
    color: #1f2937;
    margin: 3px 0;
}

.tp-assets-card__desc {
    font-size: 14px;
    color: #9aa3b2;
}

.tp-assets-box {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    padding: 16px;
}

.tp-assets-box__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 4px;
}

.tp-assets-table {
    width: 100%;
    font-size: 15px;
}

.tp-assets-table th {
    background: #f8f9fb;
    color: #6b7280;
    font-weight: 500;
    padding: 12px 12px;
    white-space: nowrap;
    border-bottom: 1px solid #eef1f6;
}

.tp-assets-table td {
    padding: 13px 12px;
    color: #374151;
    border-bottom: 1px solid #f3f5f9;
    white-space: nowrap;
}

.tp-assets-table__time {
    color: #8a94a6;
}

.tp-assets-table__remark {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-assets-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    background: #eef4ff;
    color: #0d6efd;
}

.tp-assets-status {
    display: inline-block;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 4px;
}

.tp-assets-status--ok {
    background: #eaf7f0;
    color: #1e9e6e;
}

.tp-assets-status--warn {
    background: #fff4e5;
    color: #e67e22;
}

.tp-assets-status--bad {
    background: #fdeeee;
    color: #e74c3c;
}

.tp-up {
    color: #1e9e6e;
    font-weight: 600;
}

.tp-down {
    color: #e74c3c;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .tp-assets-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tp-assets-box {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tp-assets-card {
        min-width: 0;
    }

    .tp-assets-card__num {
        font-size: 18px;
        word-break: break-all;
    }

    .tp-assets-table {
        min-width: 640px;
    }

    /* 会员子页通用：内容区不横向溢出 */
    .tp-member__main {
        max-width: 100%;
        overflow-x: hidden;
    }

    .tp-member__head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tp-member__title {
        font-size: 18px;
        word-break: break-word;
    }

    .tp-order {
        max-width: 100%;
    }

    .tp-order__top {
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .tp-order__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }

    .tp-order__actions .btn {
        margin: 0;
    }

    .tp-fav-grid,
    .tp-coupon-list,
    .tp-address-list {
        max-width: 100%;
    }

    .tp-profile-form .row > [class*="col-"],
    .tp-security .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
    }

    /* 弹窗在小屏占宽 92%，避免 50% 过窄或过大 */
    .modal-dialog,
    .modal-dialog.tp-express-modal {
        margin: 0.75rem auto;
        max-width: calc(100vw - 24px) !important;
        width: calc(100vw - 24px) !important;
    }
}

@media (min-width: 992px) {
    .modal-dialog.tp-express-modal {
        width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .tp-assets-cards {
        grid-template-columns: 1fr;
    }

    .tp-assets-card__num {
        font-size: 20px;
    }
}


