/**
 * 首次访问引导系统样式
 */

#onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in;
}

#onboarding-guide-box {
    position: fixed;
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#onboarding-highlight {
    position: fixed;
    border: 3px solid #007bff;
    border-radius: 4px;
    /* 移除遮罩层效果，只保留边框高亮 */
    /* box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7); */
    z-index: 9999;
    pointer-events: none;
    background: rgba(0, 123, 255, 0.05);
    /* 移除闪烁动画，改为静态高亮 */
    /* animation: pulse 2s infinite; */
}

.onboarding-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.onboarding-step-indicator {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
}

.onboarding-content {
    padding: 20px;
    color: #495057;
    line-height: 1.6;
}

.onboarding-content p {
    margin: 0;
    font-size: 14px;
}

.onboarding-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-footer .btn {
    font-size: 14px;
}

/* 重新查看引导按钮 */
.onboarding-reset-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
    transition: all 0.3s;
}

.onboarding-reset-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

.onboarding-reset-btn i {
    margin-right: 5px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(0, 123, 255, 0.5);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    #onboarding-guide-box {
        max-width: 90%;
        left: 5% !important;
        right: 5% !important;
    }
    
    .onboarding-header h5 {
        font-size: 16px;
    }
    
    .onboarding-content {
        padding: 15px;
    }
    
    .onboarding-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .onboarding-footer .btn {
        width: 100%;
    }
}

