/* 打赏系统核心样式 - 保留所有美化效果 */
:root {
    --primary: #0d6efd;        /* 主色调，可自行修改 */
    --wechat: #07c160;         /* 微信绿 */
    --alipay: #1677ff;         /* 支付宝蓝 */
    --qq: #12b7f5;             /* QQ蓝 */
    --gold: #ffc107;           /* 金牌色 */
    --silver: #e9ecef;         /* 银牌色 */
    --bronze: #fd7e14;         /* 铜牌色 */
    --light-bg: #f5f7fa;       /* 背景浅色调 */
    --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.1); /* 卡片阴影 */
    --hover-shadow: 0 4px 15px rgba(13, 110, 253, 0.15); /* 悬浮阴影 */
}

/* 打赏卡片基础样式 */
.wp-reward-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    max-width: 580px;
    width: 100%;
    margin: 2rem auto;
    text-align: center;
}

/* 榜单卡片基础样式 */
.wp-ranking-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 2.5rem 2rem;
    max-width: 850px;
    width: 100%;
    margin: 2rem auto;
}

/* 标题样式 */
.reward-title, .ranking-title {
    font-size: 2rem;
    color: #212529;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.ranking-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.reward-title i {
    color: var(--primary);
    animation: pulse 2s infinite ease-in-out;
    font-size: 1.8rem;
}
.ranking-title i {
    color: var(--gold);
    animation: pulse 2s infinite ease-in-out;
    font-size: 2rem;
}

/* 描述文本 */
.reward-desc, .ranking-desc {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.ranking-desc {
    margin-bottom: 1.5rem;
}

/* 金额选择区域 */
.amount-wrap {
    margin-bottom: 2.5rem;
}
.amount-label {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}
.amount-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.amount-item {
    width: 75px;
    height: 42px;
    line-height: 42px;
    border-radius: 22px;
    border: 1px solid #dee2e6;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}
.amount-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--hover-shadow);
}
.amount-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.custom-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
.custom-amount input {
    width: 130px;
    height: 42px;
    border: 1px solid #dee2e6;
    border-radius: 22px;
    padding: 0 1.2rem;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.custom-amount input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* 支付方式选择 */
.pay-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.pay-item {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}
.pay-item.active {
    transform: translateY(-6px);
    background: rgba(13, 110, 253, 0.05);
}
.pay-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}
.pay-name {
    color: #6c757d;
    font-size: 1.05rem;
}
.pay-item.active .pay-name {
    color: var(--primary);
    font-weight: 500;
}
.wechat-icon { color: var(--wechat); }
.alipay-icon { color: var(--alipay); }
.qq-icon { color: var(--qq); }

/* 二维码区域 */
.qrcode-wrap {
    margin-bottom: 2rem;
}
.qrcode-tip {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.qrcode-tip span {
    color: var(--primary);
    font-weight: 500;
}
.qrcode-box {
    width: 230px;
    height: 230px;
    margin: 0 auto;
    border: 10px solid #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.qrcode-box:hover .qrcode-img {
    transform: scale(1.1);
}
.qrcode-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

/* 打赏按钮 */
.reward-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--hover-shadow);
    margin: 1rem 0;
}
.reward-btn:hover {
    color: #fff;
    background: #0a58ca;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.2);
    text-decoration: none;
}

/* 底部功能区 */
.reward-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px dashed #dee2e6;
}
.ranking-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.ranking-link:hover {
    color: #0a58ca;
    transform: translateX(4px);
    text-decoration: none;
}
.copyright {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* 榜单标签栏 */
.rank-tab-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f8f9fa;
}
.rank-tabs {
    display: flex;
    gap: 1.5rem;
}
.rank-tab {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.rank-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--hover-shadow);
}
.rank-update {
    color: #adb5bd;
    font-size: 0.95rem;
}
.rank-update span {
    color: var(--primary);
    font-weight: 500;
}

/* 榜单统计 */
.rank-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-num {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.stat-name {
    color: #6c757d;
    font-size: 0.95rem;
}

/* 榜单列表 */
.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}
.rank-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.rank-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* 排名样式 */
.rank-num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
}
.rank-num.first {
    background: var(--gold);
    color: #212529;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}
.rank-num.second {
    background: var(--silver);
    color: #212529;
    box-shadow: 0 0 15px rgba(233, 236, 239, 0.5);
}
.rank-num.third {
    background: var(--bronze);
    color: #fff;
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.3);
}

/* 用户信息 */
.rank-user {
    display: flex;
    align-items: center;
    flex: 1;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
}
.user-info {
    text-align: left;
}
.user-name {
    color: #212529;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.user-pay {
    color: #adb5bd;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.user-time {
    color: #adb5bd;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* 打赏金额 */
.rank-amount {
    color: var(--wechat);
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

/* 空榜单样式 */
.rank-empty {
    text-align: center;
    padding: 4rem 0;
    color: #adb5bd;
}
.rank-empty i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #f8f9fa;
}
.rank-empty p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 打赏成功弹窗 */
.reward-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9998;
    display: none;
}
.reward-mask.active {
    display: block;
}
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 90%;
    max-width: 380px;
}
.success-modal.active {
    transform: translate(-50%, -50%) scale(1);
}
.success-icon {
    font-size: 4.5rem;
    color: var(--wechat);
    margin-bottom: 1.5rem;
    animation: bounce 0.6s ease;
}
.success-modal h4 {
    color: #212529;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.success-modal p {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.close-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.7rem 2.5rem;
    border-radius: 28px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.close-btn:hover {
    background: #0a58ca;
    box-shadow: var(--hover-shadow);
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes bounce {
    0% { transform: translateY(-30px); opacity: 0; }
    60% { transform: translateY(10px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* 移动端适配 */
@media (max-width: 576px) {
    .wp-reward-card {
        padding: 2rem 1.2rem;
    }
    .wp-ranking-card {
        padding: 2rem 1.2rem;
    }
    .reward-title {
        font-size: 1.6rem;
        gap: 0.8rem;
    }
    .ranking-title {
        font-size: 1.8rem;
    }
    .reward-title i {
        font-size: 1.5rem;
    }
    .ranking-title i {
        font-size: 1.8rem;
    }
    .reward-desc {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
    .amount-item {
        width: 65px;
        height: 38px;
        line-height: 38px;
        font-size: 0.95rem;
    }
    .custom-amount input {
        width: 110px;
        height: 38px;
        font-size: 0.95rem;
    }
    .pay-list {
        gap: 2rem;
    }
    .pay-icon {
        font-size: 2.5rem;
    }
    .qrcode-box {
        width: 200px;
        height: 200px;
        border-width: 8px;
    }
    .success-modal {
        padding: 2.5rem 2rem;
    }
    .success-icon {
        font-size: 4rem;
    }
    .rank-tabs {
        gap: 1rem;
    }
    .rank-tab {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    .rank-stats {
        gap: 1.5rem;
    }
    .stat-num {
        font-size: 1.5rem;
    }
    .rank-item {
        padding: 1rem 0.8rem;
    }
    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .user-name {
        font-size: 0.95rem;
    }
    .user-pay, .user-time {
        font-size: 0.85rem;
    }
    .rank-amount {
        font-size: 1.1rem;
        min-width: 70px;
    }
}