.earn-modal-mask * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}


.earn-modal-mask,
.withdraw-modal-mask,
.withdraw-account-modal-mask,
.withdraw-record-modal-mask
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0 16px; /* 移动端左右边距 */
}

.earn-modal-mask.show,
.withdraw-modal-mask.show,
.withdraw-account-modal-mask.show,
.withdraw-record-modal-mask.show
{
    opacity: 1;
    visibility: visible;
}


.earn-modal-body,
.withdraw-modal-body,
.withdraw-account-modal-body,
.withdraw-record-modal-body
{
    width: 100%;
    /*max-width: 500px; !* 最大宽度限制 *!*/
    max-width: 430px; /* 最大宽度限制 */
    max-height: 95%;

    /*background: #eaeaea;*/
    /*background: linear-gradient(to bottom, #c1f8d6, #f2f2f2);*/
    /*background: linear-gradient(to bottom, #fff897 0%, #fff897 20%, #f8fafc 20%, #f8fafc 100%);*/
    background: linear-gradient(to bottom, #fff9a4, #f8fafc 50%);
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;

    position: relative;

    padding: 30px 20px;
    overflow-y: auto;
}


.earn-modal-body {
    /*background: linear-gradient(to bottom, #c1f8d6, #f2f2f2);*/
    /*background: linear-gradient(to bottom, #affcdc, #f2f2f2);*/
    /*background: linear-gradient(to bottom, #d4f99e, #f2f2f2);*/
    background: linear-gradient(to bottom, #fff9a4, #f8fafc 50%);
}


.earn-modal-mask.show .earn-modal-body,
.withdraw-modal-mask.show .withdraw-modal-body,
.withdraw-account-modal-mask.show .withdraw-account-modal-body,
.withdraw-record-modal-mask.show .withdraw-record-modal-body
{
    transform: scale(1);
}

.earn-modal-close-btn {
    background: rgba(255, 255, 255, 0.5);
    --size: 45px;
    height: var(--size);
    width: var(--size);
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;


    display: flex;
    align-items: center;
    justify-content: center;

}

.earn-modal-close-btn i {
    font-size: 12px;
}


.earn-modal-tip {
    font-size: 12px;
    opacity: 0.7;
    padding-right: 55px;
}

.earn-modal-tip.big {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 1;
}


.earn-modal-card {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    background: #ffffff;

    margin-bottom: 15px;

    position: relative;
}

.earn-modal-card-title {
    font-size: 11px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.earn-modal-card-value {
    font-size: 16px;
    font-weight: bold;
}


.earn-modal-link {
    padding: 10px;
    border-radius: 5px;
    /*background: #F8F9FA;*/
    border: dashed 1px rgba(0, 0, 0, 0.5);
    font-size: 11px;

    position: relative;
    cursor: pointer;
}


.earn-modal-link-copy-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 12px;

    background: var(--sub-btn-bg);
    color: var(--sub-btn-text-color);
}

.earn-modal-link-copy-btn * {
    font-size: inherit;
}


.earn-modal-card-flex-wrapper {
    display: flex;
    justify-content: space-between;
}


.earn-modal-card-flex-wrapper .earn-modal-card {
    width: 49%;
}


.earn-modal-withdraw-btn {
    position: absolute;
    bottom: 15px;
    right: 10px;
    min-width: 60px;
    padding: 10px;
    border-radius: 10px;
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}


.earn-modal-withdraw-btn .not-allowed-text {
    display: none;
}


.earn-modal-withdraw-btn .withdraw-text {
    display: block;
}


.earn-modal-withdraw-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.earn-modal-withdraw-btn.disabled .not-allowed-text {
    display: block;
}


.earn-modal-withdraw-btn.disabled .withdraw-text {
    display: none;
}




.earn-modal-alipy-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.earn-modal-alipy-btn .left,
.earn-modal-alipy-btn .right {
    display: flex;
    align-items: center;
}

.earn-modal-alipy-btn * {
    font-size: 14px;
}

.earn-modal-alipy-btn .icon-alipay {
    color: #009FE9;
    margin-right: 10px;
}

.earn-modal-alipy-btn .arrow-icon {
    margin-left: 10px;
    font-size: 11px;
}


.earn-modal-bottom-btn-group {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earn-modal-bottom-btn {
    font-size: 11px;
    color: rgba(0,0,0,0.6);
}

.earn-modal-bottom-btn:hover {
    color: var(--text-color);
}


.earn-modal-bottom-btn-group .divider {
    height: 6px;
    width: 1px;
    margin: 0 15px;
    background: rgba(0,0,0,0.2);
}


.earn-modal-main-btn {
    height: 55px;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
   box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.earn-modal-main-btn.sub-btn {
    border: 1px solid rgba(0,0,0,0.2);
}

.earn-modal-main-btn:not(:last-child) {
    margin-bottom: 10px;
}

.withdraw-modal-hint {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.6;
}

.withdraw-modal-hint.big {
    font-size: 18px;
    font-weight: bold;
    opacity: 1;

}


.withdraw-account-input-group {
    margin-bottom: 15px;
}


.withdraw-account-input-group label {
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}

.withdraw-account-input-group input {
    display: block;
    width: 100%;
    height: 55px;
    padding: 0 10px;
    outline: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
}

.withdraw-account-input-group input:focus {
    border: 2px solid rgba(0,0,0,0.9);
}




/* ================= 提现记录弹窗样式 ================= */
/* 遮罩层 */
.withdraw-record-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0 16px;
}

.withdraw-record-modal-mask.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.withdraw-record-modal-body {
    width: 100%;
    max-width: 430px;
    max-height: 85%;
    /*background: linear-gradient(145deg, #ffffff, #f8fafc);*/
    background: #f8fafc;
    border-radius: 28px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    display: flex;
    flex-direction: column;

    padding: 0;

    min-height: 500px;
}

.withdraw-record-modal-mask.show .withdraw-record-modal-body {
    transform: scale(1);
}

/* 头部区域 */
.withdraw-record-header {
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.withdraw-record-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e2a3e, #2c3e50);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.withdraw-record-close-btn {
    background: rgba(0, 0, 0, 0.05);
    height: 38px;
    width: 38px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.withdraw-record-close-btn:active {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(0.94);
}

.withdraw-record-close-icon {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
    font-style: normal;
}

/* 记录列表容器 */
.withdraw-record-list-container {
    flex: 1;
    overflow-y: auto;
    /*padding: 8px 16px 24px 16px;*/
    /*padding: 8px 16px 24px 16px;*/
    padding: 15px;
}

/* 滚动条 */
.withdraw-record-list-container::-webkit-scrollbar {
    width: 4px;
}

.withdraw-record-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.withdraw-record-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

/* 记录卡片 */
.withdraw-record-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* 左侧信息区 */
.withdraw-record-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.withdraw-record-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1f2a44;
    letter-spacing: -0.2px;
}

.withdraw-record-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    font-size: 12px;
    color: #6c7a91;
}

.withdraw-record-date {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.6;
}

.withdraw-record-account-badge {
    background: #f0f3f9;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    color: #2c3e66;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    cursor: pointer;
}

.withdraw-record-account-badge i {
    color: dodgerblue;
    font-size: inherit;
    margin-right: 2px;
}

/* 右侧状态区 */
.withdraw-record-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}

.withdraw-record-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 40px;
    white-space: nowrap;
}

.withdraw-record-status-badge.success {
    background: #e6f9ed;
    color: #1e7b48;
}

.withdraw-record-status-badge.pending {
    background: #fff3e0;
    color: #c97e0a;
}

.withdraw-record-status-badge.failed {
    background: #ffe9e9;
    color: #c23d3d;
}

.withdraw-record-status-badge.process {
    background: #e9f0ff;
    color: #2c6b9e;
}

.withdraw-record-remark {
    font-size: 10px;
    color: #94a3b8;
    max-width: 120px;
    text-align: right;
}

/* 空状态样式 */
.withdraw-record-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
}

.withdraw-record-empty-icon {
    font-size: 56px;
    opacity: 0.5;
    margin-bottom: 16px;
    color: #a0c0e0;
}

.withdraw-record-empty-text {
    font-size: 15px;
    color: #7f8c9a;
    font-weight: 450;
}

.withdraw-record-empty-sub {
    font-size: 12px;
    color: #9aaebf;
    margin-top: 8px;
}

/* 底部提示 */
.withdraw-record-footer {
    text-align: center;
    font-size: 11px;
    padding: 12px 16px 18px;
    color: #94a3b8;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    background: #fbfdfe;
}



/* ================= 订单记录弹窗样式 ================= */
/* 遮罩层 */
.order-record-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0 16px;
}

.order-record-modal-mask.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.order-record-modal-body {
    width: 100%;
    max-width: 430px;
    max-height: 85%;
    background: #f8fafc;
    border-radius: 28px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 500px;
}

.order-record-modal-mask.show .order-record-modal-body {
    transform: scale(1);
}

/* 头部区域 */
.order-record-header {
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.order-record-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e2a3e, #2c3e50);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.order-record-close-btn {
    background: rgba(0, 0, 0, 0.05);
    height: 38px;
    width: 38px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.order-record-close-btn:active {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(0.94);
}

.order-record-close-icon {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
    font-style: normal;
}

/* 记录列表容器 */
.order-record-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* 滚动条 */
.order-record-list-container::-webkit-scrollbar {
    width: 4px;
}

.order-record-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.order-record-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

/* 订单卡片 */
.order-record-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 左侧信息区 */
.order-record-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* 订单名称 + 金额行 */
.order-record-name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.order-record-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2a44;
}

.order-record-amount {
    font-size: 15px;
    font-weight: 600;
    color: orange;
}

/* 元数据行 */
.order-record-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    font-size: 12px;
    color: #6c7a91;
}

.order-record-date {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.6;
}

.order-record-email {
    background: #f0f3f9;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    color: #2c3e66;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-record-email i {
    font-size: 10px;
    margin-right: 4px;
}

/* 右侧状态标签 */
.order-record-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.order-record-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 40px;
    white-space: nowrap;
    background: #e6f9ed;
    color: #1e7b48;
}

/* 空状态样式 */
.order-record-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    text-align: center;
}

.order-record-empty-icon {
    font-size: 56px;
    opacity: 0.5;
    margin-bottom: 16px;
    color: #a0c0e0;
}

.order-record-empty-text {
    font-size: 15px;
    color: #7f8c9a;
    font-weight: 450;
}

.order-record-empty-sub {
    font-size: 12px;
    color: #9aaebf;
    margin-top: 8px;
}

/* 底部提示 */
.order-record-footer {
    text-align: center;
    font-size: 11px;
    padding: 12px 16px 18px;
    color: #94a3b8;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    background: #fbfdfe;
}