.haplogroup-stats {
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.haplogroup-stats > span {
    margin-right: 15px;
}
.haplogroup-stats i {
    margin-right: 3px;
}
.haplogroup-stats a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
#ai-consult-haplogroup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#ai-consult-haplogroup-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#ai-consult-haplogroup-btn:active {
    transform: translateY(0);
}
#ai-consult-haplogroup-btn i {
    margin-right: 5px;
}
.haplogroup-stats .btn {
    white-space: nowrap;
}
@media (max-width: 768px) {
    .haplogroup-stats {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .haplogroup-stats .btn {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
    }
}

/* 全屏地图页浮动 AI 咨询 */
.tree-ai-consult-float {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
}
.tree-ai-consult-float .haplogroup-stats {
    margin-bottom: 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
