/* ==================== 新手引导样式 ==================== */

/* 引导遮罩层 */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.onboarding-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 高亮元素的样式 */
.onboarding-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.6) !important;
    border-radius: 8px;
    background: white !important;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.4);
    }
}

/* 引导提示框 */
.onboarding-tooltip {
    position: fixed;
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.onboarding-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 提示框箭头 */
.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
}

.onboarding-tooltip.arrow-left::before {
    left: -8px;
    top: 30px;
}

.onboarding-tooltip.arrow-right::before {
    right: -8px;
    top: 30px;
}

.onboarding-tooltip.arrow-top::before {
    top: -8px;
    left: 50%;
    margin-left: -8px;
}

.onboarding-tooltip.arrow-bottom::before {
    bottom: -8px;
    left: 50%;
    margin-left: -8px;
}

/* 提示框头部 */
.onboarding-header {
    margin-bottom: 16px;
}

.onboarding-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

/* 提示框内容 */
.onboarding-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.onboarding-content ul {
    padding-left: 20px;
    margin: 12px 0;
}

.onboarding-content li {
    margin: 8px 0;
}

/* 步骤指示器 */
.onboarding-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.onboarding-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.onboarding-step-dot.active {
    background: #1a1a2e;
    width: 24px;
    border-radius: 4px;
}

.onboarding-step-dot.completed {
    background: #c0c0c0;
}

/* 按钮区域 */
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.onboarding-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.onboarding-btn-skip {
    background: transparent;
    color: #999;
}

.onboarding-btn-skip:hover {
    color: #666;
    background: #f5f5f5;
}

.onboarding-btn-prev {
    background: #f5f5f5;
    color: #666;
}

.onboarding-btn-prev:hover {
    background: #e9ecef;
}

.onboarding-btn-next {
    background: #1a1a2e;
    color: white;
    min-width: 100px;
}

.onboarding-btn-next:hover {
    transform: translateY(-2px);
    background: #16162a;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.4);
}

.onboarding-btn-finish {
    background: #1a1a2e;
    color: white;
    min-width: 100px;
}

.onboarding-btn-finish:hover {
    transform: translateY(-2px);
    background: #16162a;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.4);
}

/* 关闭按钮 */
.onboarding-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
}

.onboarding-close:hover {
    background: #e9ecef;
    color: #666;
    transform: rotate(90deg);
}

/* ==================== 欢迎弹窗样式 ==================== */
.onboarding-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.onboarding-welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

.onboarding-welcome-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: welcomeSlideUp 0.4s ease;
}

@keyframes welcomeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 56px;
    animation: welcomeIconBounce 0.6s ease 0.3s;
}

@keyframes welcomeIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    text-align: left;
}

.welcome-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.welcome-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.welcome-feature-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.welcome-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.welcome-btn-tour {
    background: #1a1a2e;
    color: white;
    min-width: 160px;
}

.welcome-btn-tour:hover {
    transform: translateY(-2px);
    background: #16162a;
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
}

.welcome-btn-skip {
    background: #f5f5f5;
    color: #666;
}

.welcome-btn-skip:hover {
    background: #e9ecef;
}

/* ==================== 引导入口按钮（帮助按钮）==================== */
.onboarding-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    font-size: 22px;
    color: white;
    font-weight: bold;
}

.onboarding-trigger:hover {
    transform: scale(1.1);
    background: #16162a;
    box-shadow: 0 6px 30px rgba(26, 26, 46, 0.5);
}

.onboarding-trigger-tooltip {
    position: absolute;
    right: 60px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.onboarding-trigger:hover .onboarding-trigger-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.onboarding-trigger-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .onboarding-tooltip {
        max-width: calc(100vw - 40px);
        min-width: 280px;
    }
    
    .onboarding-welcome-content {
        padding: 30px 20px;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .onboarding-trigger {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

