/* ============ 加 QQ 群弹窗 ============ */
#qqGroupPopupMask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#qqGroupPopupMask.qgp-show {
    opacity: 1;
}

.qgp-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(160deg, #1a1a24 0%, #13131a 100%);
    border: 1px solid rgba(212, 163, 58, 0.35);
    border-radius: 18px;
    padding: 32px 26px 22px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 163, 58, 0.08) inset;
    transform: translateY(20px) scale(0.96);
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#qqGroupPopupMask.qgp-show .qgp-card {
    transform: translateY(0) scale(1);
}

/* 顶部金色光效 */
.qgp-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 163, 58, 0.8), transparent);
}

.qgp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all .2s;
    padding: 0;
}

.qgp-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.qgp-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 14px;
}

.qgp-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #e8c86a;
    letter-spacing: .3px;
}

.qgp-desc {
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1.75;
    color: #94a3b8;
}

.qgp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #d4a33a, #e8c86a);
    color: #1a1205;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(212, 163, 58, 0.3);
    box-sizing: border-box;
}

.qgp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(212, 163, 58, 0.45);
    filter: brightness(1.05);
}

.qgp-btn:active {
    transform: translateY(0);
}

.qgp-later {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: color .2s;
}

.qgp-later:hover {
    color: #94a3b8;
}

.qgp-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #475569;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .qgp-card {
        padding: 28px 20px 18px;
        border-radius: 16px;
    }
    .qgp-icon { font-size: 34px; margin-bottom: 12px; }
    .qgp-card h3 { font-size: 16px; }
    .qgp-desc { font-size: 12.5px; margin-bottom: 18px; }
    .qgp-btn { padding: 12px 16px; font-size: 14px; }
}

/* 尊重用户减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    #qqGroupPopupMask,
    .qgp-card {
        transition: none;
    }
}
