/* 向导遮罩样式 */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.guide-step {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-hole {
    position: absolute;
    background-color: transparent;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    z-index: 10000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.guide-tip {
    position: absolute;
    background-color: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    width: 280px;
    min-height: 60px;
    z-index: 10001;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.guide-tip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.guide-tip.top::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.guide-tip.bottom::before {
    top: -20px;
    left: var(--arrow-position, 50%);
    transform: translateX(-50%);
    border-bottom-color: white;
}

.guide-tip.left::before {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.guide-tip.right::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

.guide-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.guide-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.guide-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.guide-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.guide-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guide-progress {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.guide-progress-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    transition: all 0.3s ease;
}

.guide-progress-item.active {
    background-color: #4CAF50;
    width: 30px;
    border-radius: 6px;
}

/* 响应式设计 - 统一移动端和电脑端样式 */
@media (max-width: 768px) {
    .guide-tip {
        max-width: 280px;
        width: 280px;
        min-width: 280px;
        min-height: 60px;
        padding: 12px 15px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
    }
    
    .guide-hole {
        border-width: 2px;
    }
    
    .guide-navigation {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10001;
        width: auto;
        justify-content: center;
    }
    
    .guide-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: none;
        max-width: none;
        text-align: center;
    }
    
    /* 移动端操作说明按钮样式 */
    #guideButton {
        padding: 4px 10px !important;
        font-size: 12px !important;
        height: auto !important;
        line-height: 1.4 !important;
        background-color: #4CAF50 !important;
        border: 2px solid #4CAF50 !important;
        animation: guideButtonBlink 1.5s ease-in-out infinite;
    }
    
    @keyframes guideButtonBlink {
        0%, 100% {
            border-color: #4CAF50;
            box-shadow: 0 0 5px #4CAF50;
        }
        50% {
            border-color: #81C784;
            box-shadow: 0 0 15px #81C784;
        }
    }
}