/* 动态弹窗样式 */
.dynamic-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 10000;
    opacity: 0;
    overflow: hidden;
    animation: popupAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 5.1s;
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.dynamic-popup-header {
    background: linear-gradient(90deg, 
        rgba(100, 149, 237, 0.8) 0%,
        rgba(138, 43, 226, 0.8) 100%);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.dynamic-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dynamic-popup-header h2 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.close-popup-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.close-popup-btn:active {
    transform: rotate(90deg) scale(0.9);
}

.dynamic-popup-content {
    padding: 25px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.dynamic-popup-content::-webkit-scrollbar {
    width: 6px;
}

.dynamic-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.dynamic-popup-content::-webkit-scrollbar-thumb {
    background: rgba(100, 149, 237, 0.5);
    border-radius: 3px;
}

.popup-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 25px;
    text-align: justify;
}

.popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.popup-features li {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
}

.popup-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6495ed;
    font-weight: bold;
}

.popup-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.qq-join-btn {
    background: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
    background-size: 200% 200%;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientMove 3s ease infinite;
    box-shadow: 0 4px 15px rgba(18, 194, 233, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.qq-join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.qq-join-btn:hover::before {
    left: 100%;
}

.qq-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 194, 233, 0.4);
}

.qq-join-btn:active {
    transform: translateY(0) scale(0.95);
    animation: clickBounce 0.3s ease;
}

@keyframes clickBounce {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.qq-icon-btn {
    font-size: 18px;
}

.popup-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 5.1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}