/* 广告弹屏样式 */
.thinkadmin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thinkadmin-popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: thinkadmin-popup-slide-in 0.3s ease-out;
}

@keyframes thinkadmin-popup-slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.thinkadmin-popup-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thinkadmin-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.thinkadmin-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.thinkadmin-popup-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.thinkadmin-popup-body {
    padding: 24px;
}

.thinkadmin-popup-body p {
    margin: 0 0 16px 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 16px;
}

.thinkadmin-popup-body p:last-of-type {
    margin-bottom: 24px;
}

.thinkadmin-vote-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.thinkadmin-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-height: 48px;
}

.thinkadmin-vote-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.thinkadmin-vote-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 推荐按钮特殊样式 */
.thinkadmin-vote-btn-primary {
    position: relative;
    font-weight: 600;
    border: 2px solid #667eea;
}

.thinkadmin-vote-btn-primary::after {
    content: '⭐';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffd700;
    color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: thinkadmin-star-pulse 2s infinite;
}

@keyframes thinkadmin-star-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.thinkadmin-vote-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f093fb;
}

.thinkadmin-vote-btn-secondary:hover {
    background: linear-gradient(135deg, #e879f9 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.thinkadmin-vote-btn-outline {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.thinkadmin-vote-btn-outline:hover {
    background-color: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.thinkadmin-popup-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .thinkadmin-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .thinkadmin-popup-header {
        padding: 16px 20px 12px;
    }
    
    .thinkadmin-popup-header h3 {
        font-size: 18px;
    }
    
    .thinkadmin-popup-body {
        padding: 20px;
    }
    
    .thinkadmin-vote-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .thinkadmin-popup-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .thinkadmin-popup-header {
        border-bottom-color: #374151;
    }
    
    .thinkadmin-popup-header h3 {
        color: #f9fafb;
    }
    
    .thinkadmin-popup-close {
        color: #9ca3af;
    }
    
    .thinkadmin-popup-close:hover {
        background-color: #374151;
        color: #f3f4f6;
    }
    
    .thinkadmin-popup-body p {
        color: #d1d5db;
    }
    
    .thinkadmin-popup-footer {
        border-top-color: #374151;
    }
}

/* 动画效果增强 */
.thinkadmin-vote-btn {
    position: relative;
    overflow: hidden;
}

.thinkadmin-vote-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;
}

.thinkadmin-vote-btn:hover::before {
    left: 100%;
}
