/* 教学导航样式 */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    text-align: center;
    color: white;
}

.tutorial-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tutorial-step.active {
    display: block;
}

.tutorial-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.tutorial-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tutorial-arrow {
    position: fixed;
    border: 3px solid white;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: breathe 2s infinite;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.tutorial-step.active .tutorial-arrow {
    opacity: 1;
    visibility: visible;
}

/* tutorial-arrow 将通过 JavaScript 动态设置位置和大小 */
/* 默认隐藏状态，位置和大小将由 JS 控制 */

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), inset 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), inset 0 0 0 8px rgba(255, 255, 255, 0.3);
    }
}

.tutorial-skip {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tutorial-skip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.05);
}

.tutorial-progress {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: white;
    transform: scale(1.2);
}

.tutorial-next-hint {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tutorial-title {
        font-size: 24px;
    }
    
    .tutorial-description {
        font-size: 16px;
    }
    
    /* 移动端下的箭头位置和大小将由 JavaScript 动态控制 */
    
    .tutorial-skip {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* 1024px屏幕适配 (平板设备) */
@media (max-width: 1024px) and (min-width: 769px) {
    .tutorial-title {
        font-size: 26px;
    }
    
    .tutorial-description {
        font-size: 17px;
    }
    
    .tutorial-content {
        max-width: 650px;
    }
    
    /* 平板端下的箭头位置和大小将由 JavaScript 动态控制 */
    
    .tutorial-skip {
        padding: 9px 18px;
        font-size: 13px;
    }
    
    .tutorial-next-hint {
        font-size: 15px;
    }
}