/* 用户引导样式 - Shepherd.js 自定义 */

/* ==================== Shepherd主题定制 ==================== */

.shepherd-modal-overlay-container {
    z-index: 9998;
}

.shepherd-element {
    z-index: 9999;
    max-width: 420px;
}

.shepherd-theme-custom {
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    border: none;
}

.shepherd-header {
    padding: 16px 20px 0;
}

.shepherd-text {
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.shepherd-text h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.shepherd-text h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.shepherd-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.shepherd-text kbd {
    padding: 3px 8px;
    background: var(--bg-secondary, #f3f4f6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-primary);
}

/* ==================== 按钮样式 ==================== */

.shepherd-footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.shepherd-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shepherd-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shepherd-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.shepherd-button-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.shepherd-button-secondary:hover {
    background: var(--bg-secondary, #f3f4f6);
    border-color: var(--text-secondary);
}

/* ==================== 关闭按钮 ==================== */

.shepherd-cancel-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shepherd-cancel-icon:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary);
}

/* ==================== 箭头样式 ==================== */

.shepherd-arrow {
    border-width: 10px;
}

.shepherd-arrow::before {
    border-width: 10px;
}

.shepherd-element[data-popper-placement^='top'] .shepherd-arrow {
    bottom: -10px;
}

.shepherd-element[data-popper-placement^='bottom'] .shepherd-arrow {
    top: -10px;
}

.shepherd-element[data-popper-placement^='left'] .shepherd-arrow {
    right: -10px;
}

.shepherd-element[data-popper-placement^='right'] .shepherd-arrow {
    left: -10px;
}

/* ==================== 遮罩层动画 ==================== */

.shepherd-modal-overlay-container {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.shepherd-element {
    animation: slideIn 0.3s ease-out;
}

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

/* ==================== 高亮目标 ==================== */

.shepherd-target {
    position: relative;
    z-index: 9999;
}

.shepherd-enabled.shepherd-target {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.2);
    }
}

/* ==================== 进度指示器 ==================== */

.shepherd-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px 12px;
}

.shepherd-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.shepherd-progress-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 768px) {
    .shepherd-element {
        max-width: 90vw;
    }

    .shepherd-text {
        padding: 12px 16px;
        font-size: 14px;
    }

    .shepherd-text h3 {
        font-size: 18px;
    }

    .shepherd-text h4 {
        font-size: 16px;
    }

    .shepherd-footer {
        padding: 10px 16px 14px;
    }

    .shepherd-button {
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* ==================== 深色模式 ==================== */

@media (prefers-color-scheme: dark) {
    .shepherd-element {
        background: rgba(30, 30, 30, 0.98);
        color: white;
    }

    .shepherd-text {
        color: rgba(255, 255, 255, 0.9);
    }

    .shepherd-text h3,
    .shepherd-text h4 {
        color: white;
    }

    .shepherd-text p {
        color: rgba(255, 255, 255, 0.7);
    }

    .shepherd-footer {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .shepherd-button-secondary {
        color: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .shepherd-button-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .shepherd-cancel-icon {
        color: rgba(255, 255, 255, 0.5);
    }

    .shepherd-cancel-icon:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* ==================== 引导入口按钮 ==================== */

.guide-trigger-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.guide-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5);
}

.guide-trigger-btn i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .guide-trigger-btn {
        width: 48px;
        height: 48px;
        bottom: 70px;
        right: 16px;
    }

    .guide-trigger-btn i {
        font-size: 20px;
    }
}

/* ==================== 设置页面引导按钮 ==================== */

.guide-settings-section {
    padding: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.guide-settings-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.guide-settings-section p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.guide-settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.guide-settings-actions .btn {
    flex: 1;
    min-width: 150px;
}
