/* =========================================================
 * 游戏提醒弹窗 - 共享样式
 * 4类弹窗: 提现提醒 / 福豆不足 / 福豆归零 / 福豆获取 + 签到提醒
 * 与游戏UI风格一致(深紫背景 + 金色主题)
 * 适配移动端 375-428px
 * ========================================================= */

/* ===== 遮罩层 ===== */
.gr-mask {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.gr-mask.show {
    opacity: 1;
    visibility: visible;
}

/* ===== 弹窗主体 ===== */
.gr-modal {
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    background: linear-gradient(180deg, #2a1058 0%, #1a0a2e 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gr-mask.show .gr-modal {
    transform: scale(1);
}

/* ===== 头部 ===== */
.gr-header {
    position: relative;
    padding: 20px 20px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}
.gr-title {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
    margin: 0;
}
.gr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 215, 0, 0.7);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.gr-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* ===== 主体内容(可滚动) ===== */
.gr-body {
    padding: 18px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* ===== 提现提醒: 奖金信息卡片 ===== */
.gr-bonus-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.gr-bonus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
.gr-bonus-row:last-child {
    margin-bottom: 0;
}
.gr-bonus-row .label {
    color: rgba(255, 215, 0, 0.7);
}
.gr-bonus-row .value {
    color: #FFD700;
    font-weight: 600;
}
.gr-bonus-amount {
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    text-align: center;
    margin: 8px 0 4px;
    line-height: 1.2;
}
.gr-bonus-amount .currency {
    font-size: 18px;
    margin-right: 2px;
}
.gr-bonus-threshold {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 215, 0, 0.6);
    margin-bottom: 10px;
}
.gr-bonus-diff {
    text-align: center;
    font-size: 14px;
    color: #FFA500;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== 进度条 ===== */
.gr-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}
.gr-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFA500, #FFD700);
    border-radius: 4px;
    transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.gr-progress-text {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 215, 0, 0.6);
    margin-top: 6px;
}

/* ===== 充值提示框 ===== */
.gr-recharge-tip {
    background: rgba(255, 165, 0, 0.1);
    border: 1px dashed rgba(255, 165, 0, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255, 215, 0, 0.9);
    line-height: 1.7;
}
.gr-recharge-tip .highlight {
    color: #FFA500;
    font-weight: 600;
}
.gr-recharge-tip .gift {
    color: #4CAF50;
    font-weight: 600;
}

/* ===== 福豆信息卡片 ===== */
.gr-fuyuan-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 16px;
    text-align: center;
}
.gr-fuyuan-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.gr-fuyuan-num {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    line-height: 1.2;
    margin: 4px 0;
}
.gr-fuyuan-num .unit {
    font-size: 16px;
    color: rgba(255, 215, 0, 0.7);
    margin-left: 4px;
}
.gr-fuyuan-desc {
    font-size: 13px;
    color: rgba(255, 215, 0, 0.7);
    margin-top: 6px;
}

/* ===== 福豆获取提醒: 可领取列表 ===== */
.gr-earn-list {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}
.gr-earn-list-title {
    font-size: 13px;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 10px;
    font-weight: 600;
}
.gr-earn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}
.gr-earn-item:last-child {
    border-bottom: none;
}
.gr-earn-item .name {
    color: rgba(255, 215, 0, 0.85);
}
.gr-earn-item .reward {
    color: #4CAF50;
    font-weight: 600;
}
.gr-days-tip {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 215, 0, 0.7);
    margin-bottom: 14px;
    padding: 8px;
    background: rgba(255, 165, 0, 0.08);
    border-radius: 8px;
}

/* ===== 按钮区 ===== */
.gr-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px;
}
.gr-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.gr-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}
/* 主按钮(金色渐变) */
.gr-btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a0a2e;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}
/* 次按钮(透明描边) */
.gr-btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 1.5px solid rgba(255, 215, 0, 0.5);
}
/* 单按钮占满 */
.gr-btn-single {
    width: 100%;
    flex: none;
}

/* ===== 底部小字提示 ===== */
.gr-footer-tip {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 215, 0, 0.5);
    padding: 0 20px 14px;
    line-height: 1.5;
}

/* ===== 加载中遮罩 ===== */
.gr-loading {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.gr-loading.show {
    display: flex;
}
.gr-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: gr-spin 0.8s linear infinite;
}
@keyframes gr-spin {
    to { transform: rotate(360deg); }
}

/* ===== 移动端适配 ===== */
@media (max-width: 428px) {
    .gr-modal {
        width: 92%;
        max-height: 88vh;
    }
    .gr-title {
        font-size: 17px;
    }
    .gr-bonus-amount {
        font-size: 28px;
    }
    .gr-fuyuan-num {
        font-size: 32px;
    }
    .gr-btn {
        height: 42px;
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .gr-modal {
        width: 94%;
        max-height: 90vh;
    }
    .gr-header {
        padding: 16px 16px 10px;
    }
    .gr-body {
        padding: 14px 16px;
    }
    .gr-actions {
        padding: 0 16px 14px;
        gap: 8px;
    }
    .gr-title {
        font-size: 16px;
    }
    .gr-bonus-amount {
        font-size: 24px;
    }
    .gr-fuyuan-num {
        font-size: 28px;
    }
    .gr-btn {
        height: 40px;
        font-size: 12px;
        letter-spacing: 0;
    }
    .gr-footer-tip {
        padding: 0 16px 12px;
        font-size: 10px;
    }
}
