/* reward records modal */
body.modal-open {
    overflow: hidden;
}

.reward-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.16rem;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.reward-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reward-dialog {
    width: min(6.96rem, calc(100vw - 0.32rem));
    height: min(6.2rem, calc(100vh - 0.32rem));
    min-height: 4.8rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e8a06d;
    background: linear-gradient(180deg, #1c0a02 0%, #3d190a 100%);
    border: 1px solid #b96934;
    border-radius: 0.04rem;
    box-shadow: 0 0.12rem 0.45rem rgba(0, 0, 0, 0.46);
    transform: scale(0.96) translateY(0.08rem);
    transition: transform 220ms ease;
}

.reward-modal.is-open .reward-dialog {
    transform: scale(1) translateY(0);
}

.reward-header {
    min-height: 0.58rem;
    margin: 0 0.22rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(186, 105, 52, 0.72);
}

.reward-header h2 {
    margin: 0;
    color: #ffc45c;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 0.2rem;
    line-height: 1;
}

.reward-close-btn {
    width: 0.32rem;
    height: 0.32rem;
    padding: 0;
    color: #b96a31;
    background: transparent;
    font-size: 0.34rem;
    font-weight: 300;
    line-height: 0.26rem;
    cursor: pointer;
    transition: color 180ms ease, transform 180ms ease;
}

.reward-close-btn:hover,
.reward-close-btn:focus-visible {
    color: #ffd178;
    transform: rotate(90deg);
}

.reward-table {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0.22rem;
}

.reward-table-head,
.reward-row {
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr) 0.7rem;
    align-items: center;
    column-gap: 0.04rem;
}

.reward-table-head {
    min-height: 0.38rem;
    color: #d8a77f;
    border-bottom: 1px solid rgba(186, 105, 52, 0.55);
    font-size: 0.16rem;
    text-align: center;
}

.reward-table-head span:nth-child(2) {
    text-align: center;
}

.reward-list {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-color: #92512c #291006;
    scrollbar-width: thin;
    margin: 0.1rem 0 0.1rem;
}

.reward-row {
    min-height: 0.34rem;
    color: #e58a57;
    font-size: 0.16rem;
    line-height: 1;
}

.reward-row time {
    text-align: center;
}

.reward-code {
    min-width: 0;
    overflow: hidden;
    color: #e98b57;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.reward-copy-btn {
    min-width: 0.48rem;
    height: 0.25rem;
    color: #d88a56;
    background: #603019;
    border: 1px solid #9e572b;
    border-radius: 0.1rem;
    font-size: 0.12rem;
    line-height: 1;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
    padding: 0 0.06rem;
    white-space: nowrap;
    justify-self: center;
}

.reward-copy-btn:hover,
.reward-copy-btn:focus-visible,
.reward-copy-btn.is-copied {
    color: #ffe0a7;
    background: #8a4825;
    border-color: #d78345;
}

.reward-note {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.15rem 0.15rem 0.17rem;
    color: #d5a786;
    border-top: 1px solid rgba(186, 105, 52, 0.38);
    font-size: 0.14rem;
    line-height: 1.2;
}





/* 弹框样式 */

/* alert */
#alert {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: alertIn 0.3s ease forwards;
    pointer-events: none;
}

#alert.remove {
    animation: alertOut 0.3s ease forwards;
}

#alert div {
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
}

#alert div.success {
    background: #67c23a;
}

#alert div.error {
    background: #f56c6c;
}

#alert div.warning {
    background: #e6a23c;
}

@keyframes alertIn {
    from {
        opacity: 0;
        top: 0;
    }

    to {
        opacity: 1;
        top: 30px;
    }
}

@keyframes alertOut {
    from {
        opacity: 1;
        top: 30px;
    }

    to {
        opacity: 0;
        top: 0;
    }
}


