/* ===== 弹窗广告组件 - 避免冲突的CSS ===== */
/* 所有类名前添加pp-前缀避免冲突 */

/* 遮罩层 */
#pp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 弹窗主体 */
#pp-popup {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* 弹窗关闭状态 */
#pp-popup.pp-hidden {
    transform: scale(0);
}

/* 关闭按钮 */
#pp-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10;
}

#pp-close-btn:hover {
    color: #e74c3c;
}

/* 广告图片 */
.pp-image {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* QQ号区域 */
.pp-qq-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.pp-qq-label {
    display: block;
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 18px;
}

.pp-qq-number {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    letter-spacing: 1px;
}

/* 广告按钮 */
.pp-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.pp-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

/* 缩小后的广告 */
#pp-minimized {
    position: fixed;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    width: 120px;
    height: 40px;
    border-radius: 20px 0 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9998;
    transition: right 0.5s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: bold;
}

/* 显示缩小广告 */
#pp-minimized.pp-show {
    right: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #pp-popup {
        padding: 25px 15px;
    }
    
    .pp-qq-number {
        font-size: 24px;
    }
    
    .pp-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    #pp-minimized {
        width: 100px;
        height: 35px;
        font-size: 14px;
    }
}