body {
    font-family: Arial, sans-serif;
    background-color: #FCFDFE;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.des_header {
    padding: 10px;
    position: relative;
    text-align: center;
    line-height: 30px;
    height: 30px;
}

.des_header .title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 96%;
}

.des_header .back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
}

.des_header .back-button::before {
    content: '';
    display: block;
    background-image: url('../icon/back.png');
    background-size: cover;
    width: 100%;
    height: 100%;
}

.des_header .title {
    margin: 0;
    font-size: 1rem;
    padding: 0 10px;
    white-space: nowrap;
    font-weight: bold;
}

/* Red Packet List Styles */
.red_packet_container {
    margin: 0 auto;
    padding: 10px;
}

.red_packet_item {
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.get_red_packet_item {
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    margin-bottom: 10px;
    display: flex;
    height: 3rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.send_red_packet_item {
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    margin-bottom: 10px;
    display: flex;
    height: 3rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.red_packet_item-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
}
.red_packet_item-icon img {
    width: 24px;
    height: 24px;
    background-size: cover;
}
.red_packet_item_detail_not_list{
    height: 2rem;
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    color: #ccc;
}
.red_packet_item-details {
    flex-grow: 1;
    margin-left: 10px;
}

.red_packet_item-title {
    font-size: 16px;
    color: #333;
}

.red_packet_item-time {
    font-size: 12px;
    color: #999;
}

.red_packet_item-amount {
    font-size: 14px;
    color: #333;
    text-align: right;
}

.red_packet_item-amount .red_packet_source {
    font-size: 12px;
    color: #999;
}

/* Gold Coin Popup Styles */
.rp_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

.rp_popup {
    position: relative;
    background-color: #FCFDFE;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    z-index: 1001;
    -webkit-overflow-scrolling: touch;
    display: flex;
    height: 80vh;
    flex-direction: column;
    padding-bottom: 20px;
}

.rp_close {
    position: sticky;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    align-self: flex-end;
    z-index: 1002;
    padding: 10px;
}

.rp_coin_list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    white-space: nowrap;
    touch-action: pan-x;
    width: 100%;
    min-height: 130px;
    height: 80px;
    align-items: center;
    box-sizing: border-box;
}

.rp_coin_item {
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 60px;
    padding-left: 10px;
    padding-right: 10px;
    justify-content: center;
    flex-shrink: 0;
}

.rp_coin_item img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

.rp_treasure {
    background-color: #ff4d4d;
    border-radius: 10px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}
#rp_red_list{
    height: auto;
    overflow-y: auto;
}
.rp_price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 5px 20px;
}

.rp_price_text {
    text-align: left;
}

.rp_price_text ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp_price_text li {
    font-size: 14px;
    font-weight: normal;
}

.rp_price_text li:first-child {
    font-size: 18px;
    font-weight: bold;
}

.rp_button {
    background-color: #ff3333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.rp_button:hover {
    background-color: #e60000;
}

/* Red Packet Detail Overlay Styles */
.rp_detail_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* 稍深的遮罩 */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* 高于 rp_overlay 的 z-index (1000) */
}

.rp_detail_popup {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding: 20px 20px 10px;
    text-align: center;
}

.rp_detail_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.rp_detail_content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rp_detail_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.rp_detail_user_amount {
    font-size: 16px;
    color: #ff3333;
    font-weight: bold;
}

.rp_detail_user_amount .amount {
    font-size: 18px;
}

.rp_detail_list {
    border-top: 1px solid #eee;
    padding-top: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.rp_detail_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.rp_detail_left {
    text-align: left;
    flex-grow: 1;
}

.rp_detail_time {
    font-size: 12px;
    color: #999;
}

.rp_detail_name {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.rp_detail_amount {
    font-size: 14px;
    color: #ff3333;
    text-align: right;
    min-width: 80px;
}

.rp_detail_rules {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.rp_detail_rules h4 {
    font-size: 14px;
    color: #333;
    margin: 10px 0 5px;
}

.rp_detail_rules p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Send Red Packet Overlay Styles */
.rp_send_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* 与 rp_detail_overlay 一致，高于 rp_overlay */
}

.rp_send_content {
    padding: 0 10px;
    gap: 20px; /* 增加间距，使布局更宽松 */
}

.rp_send_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rp_send_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
}

.rp_send_label {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    flex: 0 0 100px; /* 固定左侧标题宽度 */
    text-align: left;
}

.rp_send_input {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.rp_send_input input {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.rp_send_input input:focus {
    border-color: #ff3333;
    outline: none;
}

.rp_send_input .unit {
    position: absolute;
    right: 10px;
    font-size: 14px;
    color: #999;
}

.rp_send_tabs {
    flex: 1;
    display: flex;
    gap: 10px;
}

.rp_tab {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.rp_tab.active,
.rp_tab:hover {
    background-color: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

.rp_send_button {
    background-color: #ff3333;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.rp_send_button:hover {
    background-color: #e60000;
}

/* 响应式设计 */
@media (max-width: 360px) {
    .rp_send_label {
        flex: 0 0 80px;
        font-size: 14px;
    }
    .rp_send_input input {
        font-size: 12px;
    }
    .rp_tab {
        font-size: 12px;
        padding: 6px;
    }
    .rp_send_button {
        font-size: 14px;
        padding: 10px 0;
    }
}

@keyframes shake {
    0% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.05) translateY(-2px); }
    50% { transform: scale(1) translateY(2px); }
    75% { transform: scale(1.05) translateY(-2px); }
    100% { transform: scale(1) translateY(0); }
}
.shake {
    animation: shake 3.6s infinite;
    transform-origin: center; /* 确保缩放和移动以中心为基准 */
}


.rps_container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 96%;
    margin-left: 2%;
}
.rps_message-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    width: 96%;
    margin-left: 10px;
    border-bottom: 1px solid #eee;
}

.rps_message-item:last-child {
    border-bottom: none;
}
.rps_icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.rps_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rps_text {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    margin-left: 10px;
}
.rps_text .rps_title {
    font-weight: bold;
    margin-bottom: 2px;
}
.rps_text .rps_subtitle {
    color: #666;
    font-size: 14px;
}
.rps_date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}
.rps_badge {
    width: 18px;
    height: 18px;
    background: #FF3B30;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 10px;
    line-height: 10px;
    margin-left: 10px;
}
.rps_badge.rps_hidden {
    display: none;
}