/**
 * 交互式指南系统样式
 */

/* ==================== 基础样式 ==================== */
.interactive-guide {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
}

/* ==================== 高亮效果 ==================== */
.guide-element-highlight {
    position: relative;
    z-index: 9999;
    outline: 2px solid #4CAF50;
    outline-offset: 4px;
    border-radius: 4px;
    animation: guideClicking 1.5s infinite;
}

/* 轻量级高亮（用于特殊元素） */
.guide-step-active {
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.3) !important;
    outline: 2px solid #4CAF50 !important;
}

/* 悬浮筛选按钮特殊样式 */
.floating-filter-btn.guide-step-active {
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.3) !important;
    outline: 2px solid #4CAF50 !important;
}

/* ==================== 指向动画 ==================== */
.guide-pointing-animation {
    position: relative;
    animation: guidePointing 2s infinite;
}

/* ==================== 点击动画 ==================== */
.guide-click-animation {
    position: relative;
    animation: guideClicking 1.5s infinite;
}

/* 通用指示符样式 */
.guide-element-highlight::after,
.guide-pointing-animation::after,
.guide-click-animation::after {
    content: '👆';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    z-index: 99;
}

/* 指向动画的指示符 */
.guide-pointing-animation::after {
    animation: guidePointingFinger 2s infinite;
}

/* 点击动画的指示符 */
.guide-element-highlight::after,
.guide-click-animation::after {
    animation: guideClickingFinger 1.5s infinite;
}

/* 指向动画关键帧 */
@keyframes guidePointing {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.3);
        outline: 2px solid #4CAF50;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.3);
        outline-color: #4CAF50;
    }
}

/* 点击动画关键帧 */
@keyframes guideClicking {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.3);
        outline-color: #4CAF50;
    }
    50% {
        box-shadow: 0 0 0 12px rgba(76, 175, 80, 0.5);
        outline-color: #4CAF50;
    }
}

/* 指向指示符动画 */
@keyframes guidePointingFinger {
    0% {
        opacity: 1;
        transform: translateX(100px) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-50%);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%);
    }
}

/* 点击指示符动画 */
@keyframes guideClickingFinger {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-50%) scale(1.5);
    }
}

/* ==================== Tooltip样式 ==================== */
.guide-tooltip {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border: 2px solid #4CAF50 !important;
    max-width: 400px !important;
    min-width: 320px !important;
    animation: guideTooltipFadeIn 0.3s ease !important;
    pointer-events: auto !important;
}

.guide-tooltip .tooltip-header {
    background: linear-gradient(135deg, #4CAF50, #4CAF50) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 10px 10px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

.guide-tooltip .tooltip-title-section {
    flex: 1 !important;
}

.guide-tooltip .tooltip-header h4 {
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.guide-tooltip .tooltip-progress {
    margin: 0 !important;
    padding: 15px 30px 0 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.guide-tooltip .tooltip-navigation .tooltip-step-info {
    color: #6c757d !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
}

.guide-tooltip .tooltip-progress-bar {
    width: 100% !important;
    height: 4px !important;
    background: #e0e0e0 !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

.guide-tooltip .tooltip-progress-fill {
    height: 100% !important;
    background: #4CAF50 !important;
    border-radius: 2px !important;
    transition: width 0.3s ease !important;
}

.guide-tooltip .tooltip-header button {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
    flex-shrink: 0 !important;
}

.guide-tooltip .tooltip-header button:hover {
    background: rgba(255,255,255,0.2) !important;
}

.guide-tooltip .tooltip-content {
    padding: 20px 30px !important;
}

.guide-tooltip .tooltip-content p {
    margin: 0 0 15px 0 !important;
    color: #333 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.guide-tooltip .tooltip-description {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 16px !important;
    margin-bottom: 20px !important;
}

.guide-tooltip .tooltip-tasks {
    margin-bottom: 20px !important;
}

.guide-tooltip .task-item {
    padding: 4px 0 !important;
    margin-bottom: 4px !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-left: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.guide-tooltip .task-item::before {
    content: '☐' !important;
    color: #6c757d !important;
    font-size: 16px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

.guide-tooltip .task-item.completed::before {
    content: '☑' !important;
    color: #28a745 !important;
}

/* 步骤3的任务项（纯陈述性，不需要复选框） */
.guide-tooltip .task-item.task-info-only::before {
    content: '' !important;
    margin-right: 0 !important;
}

.guide-tooltip .task-text {
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

/* Tooltip导航按钮 */
.guide-tooltip .tooltip-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    padding-top: 15px !important;
}

.guide-tooltip .tooltip-nav-btn {
    padding: 10px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

.guide-tooltip .tooltip-nav-btn.prev {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.guide-tooltip .tooltip-nav-btn.prev:hover:not(:disabled) {
    background: #e8e8e8 !important;
    transform: translateY(-1px) !important;
}

.guide-tooltip .tooltip-nav-btn.prev:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.guide-tooltip .tooltip-nav-btn.next {
    background: #4CAF50 !important;
    color: white !important;
}

.guide-tooltip .tooltip-nav-btn.next:hover:not(:disabled) {
    background: #4CAF50 !important;
    transform: translateY(-1px) !important;
}

.guide-tooltip .tooltip-nav-btn.next:disabled {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.guide-tooltip .tooltip-step-info {
    font-size: 12px !important;
    color: #555 !important;
    font-weight: 500 !important;
}

@keyframes guideTooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 完成提示tooltip专用样式 */
.guide-completion-tooltip {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    margin: 0 !important;
}

/* 总结tooltip专用样式 */
.guide-summary-tooltip {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    margin: 0 !important;
    max-width: 500px !important;
    min-width: 420px !important;
}


.guide-summary-tooltip .module-layout {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.guide-summary-tooltip .module-title-vertical {

    text-orientation: mixed !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 16px !important;
    margin: 0 0 0 20px !important;
    padding: 4px 8px !important;
    text-align: center !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: 110px !important;
}

.guide-summary-tooltip .module-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.guide-summary-tooltip .summary-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 3px !important;
    padding: 6px 0 !important;
}

.guide-summary-tooltip .module-divider {
    height: 2px !important;
    background: #e0e0e0 !important;
    margin: 12px 0 !important;
    border-radius: 1px !important;
}

.guide-summary-tooltip .step-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: #4CAF50 !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.guide-summary-tooltip .step-content {
    flex: 1 !important;
}

.guide-summary-tooltip .step-title {
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

.guide-summary-tooltip .tooltip-navigation {
    margin-top: 16px !important;
    text-align: center !important;
}

.guide-summary-tooltip .tooltip-nav-btn {
    width: 100% !important;
    justify-content: center !important;
}

/* ==================== 指南消息 ==================== */
.guide-message {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    z-index: 10002 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    animation: messageSlideIn 0.3s ease !important;
    max-width: 400px !important;
    pointer-events: auto !important;
}

.guide-message-success {
    border-left: 4px solid #4CAF50 !important;
    color: #2e7d32 !important;
}

.guide-message-info {
    border-left: 4px solid #2196F3 !important;
    color: #1565c0 !important;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 功能指南按钮 ==================== */
.guide-toggle {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    color: #45a049 !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.guide-toggle:hover {
    transform: translateY(-2px) !important;
}

.guide-toggle:active {
    transform: translateY(0) !important;
}

.guide-toggle i {
    transition: transform 0.3s ease !important;
}

.guide-toggle:hover i {
    transform: scale(2) !important;
}

.guide-toggle[data-tooltip]:hover::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: 60px !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    z-index: 10001 !important;
    opacity: 1 !important;
}

.guide-toggle[data-tooltip]:hover::before {
    content: '' !important;
    position: absolute !important;
    bottom: 52px !important;
    right: 20px !important;
    border: 6px solid transparent !important;
    border-top-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 10001 !important;
    opacity: 1 !important;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .guide-tooltip {
        max-width: 300px !important;
        margin: 0 10px !important;
    }
    
    .guide-message {
        max-width: 300px !important;
        right: 10px !important;
    }
}

