/* 悬浮球搜索助手样式 - 蓝白简约版 */
.search-assistant-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
    z-index: 10000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
}

.search-assistant-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(25, 118, 210, 0.4);
}

.search-assistant-bubble.expanded {
    width: 350px;
    height: auto;
    min-height: 250px;
    border-radius: 12px;
    padding: 0;
    align-items: flex-start;
    background: white;
    border: 1px solid #E3F2FD;
}

.search-assistant-panel {
    display: none;
    width: 100%;
}

.search-assistant-bubble.expanded .search-assistant-panel {
    display: block;
}

.bubble-icon {
    font-size: 20px;
}

.search-assistant-bubble.expanded .bubble-icon {
    display: none;
}

.assistant-header {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
}

.assistant-header h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.assistant-header .subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.progress-section {
    padding: 20px;
    border-bottom: 1px solid #F5F5F5;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #424242;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1976D2, #42A5F5);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-stats {
    font-size: 12px;
    color: #757575;
    text-align: center;
}

.found-pages {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.found-pages h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #424242;
    font-weight: 600;
}

.page-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-item {
    background: #F8F9FA;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #42A5F5;
    transition: all 0.2s ease;
}

.page-item:hover {
    background: #E3F2FD;
    transform: translateX(2px);
}

.page-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.keyword-tag {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #BBDEFB;
}

.page-url {
    color: #757575;
    font-size: 11px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.empty-pages {
    text-align: center;
    font-size: 13px;
    color: #9E9E9E;
    font-style: italic;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px dashed #E0E0E0;
}

/* 滚动条样式 */
.found-pages::-webkit-scrollbar {
    width: 4px;
}

.found-pages::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 2px;
}

.found-pages::-webkit-scrollbar-thumb {
    background: #BDBDBD;
    border-radius: 2px;
}

.found-pages::-webkit-scrollbar-thumb:hover {
    background: #9E9E9E;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-assistant-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .search-assistant-bubble.expanded {
        width: 320px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .search-assistant-bubble.expanded {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .assistant-header {
        padding: 12px 16px;
    }
    
    .progress-section,
    .found-pages {
        padding: 16px;
    }
}