/**
 * 引导系统样式
 * 用于首次登录用户的交互式引导
 */

/* =================================================================================
   遮罩层基础样式
   ================================================================================= */

.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 99998;
    opacity: ;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guide-overlay.active {
    opacity: 0.6 !important;
    visibility: visible !important;
}

/* 高亮区域 - 使用box-shadow模拟镂空效果 */
.guide-highlight {
    position: absolute;
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.guide-highlight::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #22C55E;
    border-radius: 8px;
    animation: guide-pulse 2s ease-in-out infinite;
}

.guide-highlight::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px dashed rgba(34, 197, 94, 0.5);
    border-radius: 10px;
    animation: guide-pulse-delayed 2s ease-in-out infinite;
}

@keyframes guide-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4),
                    0 0 20px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0),
                    0 0 30px rgba(34, 197, 94, 0.3);
    }
}

@keyframes guide-pulse-delayed {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* =================================================================================
   引导弹窗样式
   ================================================================================= */

.guide-tooltip {
    position: fixed;
    z-index: 100000;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(34, 197, 94, 0.2);
    max-width: 420px;
    min-width: 320px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.guide-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guide-tooltip-header {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    padding: 16px 20px;
    color: white;
    position: relative;
}

.guide-tooltip-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-tooltip-header h3 svg {
    width: 20px;
    height: 20px;
}

.guide-step-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.guide-tooltip-body {
    padding: 20px;
}

.guide-tooltip-content {
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.guide-tooltip-content p {
    margin: 0 0 12px;
}

.guide-tooltip-content p:last-child {
    margin-bottom: 0;
}

.guide-tooltip-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.guide-tooltip-content li {
    margin-bottom: 6px;
}

.guide-tooltip-content strong {
    color: #166534;
}

.guide-tooltip-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #059669;
}

/* =================================================================================
   引导按钮样式 - 精致紧凑版
   ================================================================================= */

.guide-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border-top: none;
}

.guide-nav-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.guide-btn {
    padding: 5px 12px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    letter-spacing: 0.2px !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.guide-btn-primary {
    background: #22C55E !important;
    color: white !important;
    box-shadow: 0 1px 2px rgba(34, 197, 94, 0.3) !important;
}

.guide-btn-primary:hover {
    background: #16A34A !important;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.4) !important;
}

.guide-btn-secondary {
    background: #22C55E !important;
    color: white !important;
    border: none !important;
}

.guide-btn-secondary:hover {
    background: #16A34A !important;
    color: white !important;
}

.guide-btn-skip {
    background: #22C55E !important;
    color: white !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
}

.guide-btn-skip:hover {
    background: #16A34A !important;
    color: white !important;
}

.guide-btn svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
}

/* 进度指示器 - 精致版 */
.guide-progress {
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.guide-progress-dot.active {
    background: #22C55E;
    transform: scale(1.3);
}

.guide-progress-dot.completed {
    background: #86efac;
}

/* =================================================================================
   API配置引导特殊样式
   ================================================================================= */

.guide-api-config {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.guide-api-config h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-api-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-api-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.guide-api-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.guide-api-step-content {
    flex: 1;
}

.guide-api-step-content strong {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-size: 13px;
}

.guide-api-step-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.guide-api-step-content a {
    color: #059669;
    text-decoration: none;
}

.guide-api-step-content a:hover {
    text-decoration: underline;
}

/* =================================================================================
   功能介绍卡片
   ================================================================================= */

.guide-feature-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.guide-feature-card:hover {
    border-color: #22C55E;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.guide-feature-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.guide-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22C55E;
}

.guide-feature-icon svg {
    width: 22px;
    height: 22px;
}

.guide-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #166534;
    margin: 0;
}

.guide-feature-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.guide-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.guide-feature-tag {
    padding: 3px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 11px;
    color: #6b7280;
}

/* =================================================================================
   欢迎弹窗
   ================================================================================= */

.guide-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guide-welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

.guide-welcome-modal .guide-overlay {
    z-index: 1;
}

.guide-welcome-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.guide-welcome-modal.active .guide-welcome-content {
    transform: scale(1);
}

.guide-welcome-header {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    padding: 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.guide-welcome-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: guide-welcome-shine 3s ease-in-out infinite;
}

@keyframes guide-welcome-shine {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 10%);
    }
}

.guide-welcome-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.guide-welcome-subtitle {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.guide-welcome-body {
    padding: 30px;
    text-align: center;
}

.guide-welcome-body h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #166534;
}

.guide-welcome-body p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.guide-welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.guide-welcome-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.guide-welcome-feature:hover {
    background: #f0fdf4;
    transform: translateX(4px);
}

.guide-welcome-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.guide-welcome-feature-icon svg {
    width: 16px;
    height: 16px;
}

.guide-welcome-feature-text {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.guide-welcome-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
}

.guide-welcome-footer .guide-btn {
    width: auto !important;
    min-width: 180px !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    padding: 12px 36px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 44px !important;
    border-radius: 8px !important;
}

/* =================================================================================
   完成弹窗
   ================================================================================= */

.guide-complete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guide-complete-modal.active {
    opacity: 1;
    visibility: visible;
}

.guide-complete-modal .guide-overlay {
    z-index: 1;
}

.guide-complete-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 90%;
    padding: 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.guide-complete-modal.active .guide-complete-content {
    transform: scale(1);
}

.guide-complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: guide-complete-bounce 0.6s ease;
}

@keyframes guide-complete-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.guide-complete-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.guide-complete-content h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #166534;
}

.guide-complete-content p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* =================================================================================
   箭头指示器
   ================================================================================= */

.guide-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

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

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

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

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

/* =================================================================================
   响应式适配
   ================================================================================= */

@media (max-width: 768px) {
    .guide-tooltip {
        max-width: calc(100% - 32px);
        min-width: 280px;
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        top: auto !important;
        transform: translateY(20px);
    }
    
    .guide-tooltip.active {
        transform: translateY(0);
    }
    
    .guide-tooltip-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .guide-nav-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .guide-btn {
        flex: 1;
        justify-content: center;
    }
    
    .guide-progress {
        width: 100%;
        justify-content: center;
    }
    
    .guide-welcome-features {
        grid-template-columns: 1fr;
    }
    
    .guide-welcome-content {
        margin: 16px;
    }
    
    .guide-api-config {
        padding: 12px;
    }
    
    .guide-api-step {
        padding: 8px;
    }
}

/* =================================================================================
   暗色主题适配
   ================================================================================= */

[data-theme="dark"] .guide-overlay {
    background-color: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .guide-tooltip {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .guide-tooltip-body {
    background: transparent;
}

[data-theme="dark"] .guide-tooltip-content {
    color: #e5e7eb;
}

[data-theme="dark"] .guide-tooltip-content strong {
    color: #4ade80;
}

[data-theme="dark"] .guide-tooltip-content code {
    background: #374151;
    color: #4ade80;
}

[data-theme="dark"] .guide-tooltip-footer {
    background: #111827;
    border-top-color: #374151;
}

[data-theme="dark"] .guide-btn-secondary {
    background: #374151 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .guide-btn-secondary:hover {
    background: #4b5563 !important;
}

[data-theme="dark"] .guide-btn-skip {
    color: #9ca3af !important;
}

[data-theme="dark"] .guide-btn-skip:hover {
    color: #d1d5db !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .guide-progress-dot {
    background: #4b5563;
}

[data-theme="dark"] .guide-progress-dot.active {
    background: #22C55E;
}

[data-theme="dark"] .guide-api-config {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .guide-api-config h4 {
    color: #4ade80;
}

[data-theme="dark"] .guide-api-step {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .guide-api-step-content strong {
    color: #e5e7eb;
}

[data-theme="dark"] .guide-api-step-content p {
    color: #9ca3af;
}

[data-theme="dark"] .guide-feature-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .guide-feature-card:hover {
    border-color: #22C55E;
}

[data-theme="dark"] .guide-feature-icon {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
}

[data-theme="dark"] .guide-feature-title {
    color: #4ade80;
}

[data-theme="dark"] .guide-feature-desc {
    color: #9ca3af;
}

[data-theme="dark"] .guide-feature-tag {
    background: #374151;
    color: #9ca3af;
}

[data-theme="dark"] .guide-welcome-content,
[data-theme="dark"] .guide-complete-content {
    background: #1f2937;
}

[data-theme="dark"] .guide-welcome-body h2,
[data-theme="dark"] .guide-complete-content h2 {
    color: #4ade80;
}

[data-theme="dark"] .guide-welcome-body p,
[data-theme="dark"] .guide-complete-content p {
    color: #9ca3af;
}

[data-theme="dark"] .guide-welcome-feature {
    background: #374151;
}

[data-theme="dark"] .guide-welcome-feature:hover {
    background: #4b5563;
}

[data-theme="dark"] .guide-welcome-feature-text {
    color: #e5e7eb;
}

[data-theme="dark"] .guide-arrow.top {
    border-top-color: #1f2937;
}

[data-theme="dark"] .guide-arrow.bottom {
    border-bottom-color: #1f2937;
}

[data-theme="dark"] .guide-arrow.left {
    border-left-color: #1f2937;
}

[data-theme="dark"] .guide-arrow.right {
    border-right-color: #1f2937;
}

/* =================================================================================
   动画效果
   ================================================================================= */

@keyframes guide-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes guide-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes guide-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.guide-animate-fade-in {
    animation: guide-fade-in 0.4s ease forwards;
}

.guide-animate-slide-left {
    animation: guide-slide-in-left 0.4s ease forwards;
}

.guide-animate-slide-right {
    animation: guide-slide-in-right 0.4s ease forwards;
}

/* 跳过引导的确认弹窗 */
.guide-skip-confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 100002;
    max-width: 360px;
    text-align: center;
}

[data-theme="dark"] .guide-skip-confirm {
    background: #1f2937;
}

.guide-skip-confirm h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #166534;
}

[data-theme="dark"] .guide-skip-confirm h3 {
    color: #4ade80;
}

.guide-skip-confirm p {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

[data-theme="dark"] .guide-skip-confirm p {
    color: #9ca3af;
}

.guide-skip-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.guide-skip-confirm-buttons .guide-btn {
    min-width: 100px;
}

/* =================================================================================
   悬浮引导球（与公众号二维码并排）
   ================================================================================= */

.guide-float-ball {
    position: fixed;
    right: 80px;
    bottom: 20px;
    z-index: 99998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.guide-float-ball.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.guide-float-ball:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.guide-float-ball svg {
    color: white;
    width: 22px;
    height: 22px;
}

.guide-float-ball .guide-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.guide-float-panel {
    position: absolute;
    right: 60px;
    bottom: 60px;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.guide-float-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guide-float-panel-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-float-panel-header h4 {
    margin: 0;
    font-size: 14px;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-float-panel-header h4 svg {
    width: 16px;
    height: 16px;
}

.guide-float-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
}

.guide-float-panel-close:hover {
    color: #374151;
}

.guide-float-panel-body {
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.guide-float-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.guide-float-step:hover {
    background: #f3f4f6;
}

.guide-float-step.active {
    background: #f0fdf4;
}

.guide-float-step.completed {
    opacity: 0.7;
}

.guide-float-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.guide-float-step.active .guide-float-step-dot {
    background: #22C55E;
}

.guide-float-step.completed .guide-float-step-dot {
    background: #86efac;
}

.guide-float-step-text {
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-float-step.active .guide-float-step-text {
    color: #166534;
    font-weight: 500;
}

[data-theme="dark"] .guide-float-ball {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
}

[data-theme="dark"] .guide-float-panel {
    background: #1f2937;
}

[data-theme="dark"] .guide-float-panel-header {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    border-bottom-color: #374151;
}

[data-theme="dark"] .guide-float-panel-header h4 {
    color: #4ade80;
}

[data-theme="dark"] .guide-float-panel-close {
    color: #9ca3af;
}

[data-theme="dark"] .guide-float-panel-close:hover {
    color: #e5e7eb;
}

[data-theme="dark"] .guide-float-step:hover {
    background: #374151;
}

[data-theme="dark"] .guide-float-step.active {
    background: #1f2937;
}

[data-theme="dark"] .guide-float-step-dot {
    background: #4b5563;
}

[data-theme="dark"] .guide-float-step.active .guide-float-step-dot {
    background: #22C55E;
}

[data-theme="dark"] .guide-float-step.completed .guide-float-step-dot {
    background: #4ade80;
}

[data-theme="dark"] .guide-float-step-text {
    color: #e5e7eb;
}

[data-theme="dark"] .guide-float-step.active .guide-float-step-text {
    color: #4ade80;
}

/* =================================================================================
   引导步骤指示器（底部居中显示）
   ================================================================================= */

.guide-step-indicator {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(16px);
    transition: all 0.25s ease;
}

.guide-step-indicator.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.guide-step-indicator-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.guide-step-indicator-dots {
    display: flex;
    gap: 4px;
}

.guide-step-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.2s ease;
}

.guide-step-indicator-dot.active {
    background: #22C55E;
    transform: scale(1.2);
}

.guide-step-indicator-dot.completed {
    background: #86efac;
}

[data-theme="dark"] .guide-step-indicator {
    background: rgba(31, 41, 55, 0.92);
}

[data-theme="dark"] .guide-step-indicator-text {
    color: #9ca3af;
}

[data-theme="dark"] .guide-step-indicator-dot {
    background: #4b5563;
}

[data-theme="dark"] .guide-step-indicator-dot.active {
    background: #22C55E;
}

[data-theme="dark"] .guide-step-indicator-dot.completed {
    background: #4ade80;
}

/* =================================================================================
   首次登录提示弹窗样式
   ================================================================================= */

.first-login-tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.first-login-tip-modal.show {
    opacity: 1;
    visibility: visible;
}

.first-login-tip-modal.hiding {
    opacity: 0;
    visibility: hidden;
}

.first-login-tip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.first-login-tip-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(34, 197, 94, 0.2),
                0 0 60px rgba(34, 197, 94, 0.15);
    max-width: 520px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.first-login-tip-modal.show .first-login-tip-content {
    transform: scale(1) translateY(0);
}

.first-login-tip-header {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    padding: 24px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.first-login-tip-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: first-login-tip-shine 4s ease-in-out infinite;
}

@keyframes first-login-tip-shine {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 10%);
    }
}

.first-login-tip-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
    animation: first-login-tip-pulse 2s ease-in-out infinite;
}

@keyframes first-login-tip-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
}

.first-login-tip-icon svg {
    color: white;
    width: 32px;
    height: 32px;
}

.first-login-tip-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.first-login-tip-body {
    padding: 24px 30px;
}

.first-login-tip-message {
    margin-bottom: 20px;
}

.first-login-tip-main-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.first-login-tip-main-text strong {
    color: #166534;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.first-login-tip-guide {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.first-login-tip-guide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 12px;
}

.first-login-tip-guide-title svg {
    width: 16px;
    height: 16px;
}

.first-login-tip-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.first-login-tip-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.first-login-tip-shortcut:hover {
    border-color: #22C55E;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shortcut-keys kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 2px 0 #d1d5db;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.shortcut-plus,
.shortcut-slash {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.shortcut-desc {
    font-size: 13px;
    color: #6b7280;
}

.first-login-tip-browser-tip {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding-top: 8px;
    border-top: 1px dashed rgba(34, 197, 94, 0.3);
}

.first-login-tip-browser-tip strong {
    color: #374151;
}

.first-login-tip-footer {
    padding: 16px 30px 24px;
    display: flex;
    justify-content: center;
}

.first-login-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.first-login-tip-btn-primary {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.first-login-tip-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.first-login-tip-btn-primary:active {
    transform: translateY(0);
}

.first-login-tip-btn svg {
    width: 16px;
    height: 16px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .first-login-tip-content {
        width: 95%;
        max-width: none;
        margin: 16px;
    }
    
    .first-login-tip-header {
        padding: 20px 20px;
    }
    
    .first-login-tip-body {
        padding: 20px;
    }
    
    .first-login-tip-footer {
        padding: 12px 20px 20px;
    }
    
    .first-login-tip-main-text {
        font-size: 14px;
    }
    
    .first-login-tip-shortcut {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .shortcut-desc {
        font-size: 12px;
    }
    
    .first-login-tip-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .first-login-tip-overlay {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .first-login-tip-content {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(34, 197, 94, 0.3),
                0 0 60px rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .first-login-tip-main-text {
    color: #e5e7eb;
}

[data-theme="dark"] .first-login-tip-main-text strong {
    color: #4ade80;
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
}

[data-theme="dark"] .first-login-tip-guide {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .first-login-tip-guide-title {
    color: #4ade80;
}

[data-theme="dark"] .first-login-tip-shortcut {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .first-login-tip-shortcut:hover {
    border-color: #22C55E;
}

[data-theme="dark"] .shortcut-keys kbd {
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    border-color: #6b7280;
    box-shadow: 0 2px 0 #6b7280;
    color: #e5e7eb;
}

[data-theme="dark"] .shortcut-plus,
[data-theme="dark"] .shortcut-slash {
    color: #9ca3af;
}

[data-theme="dark"] .shortcut-desc {
    color: #9ca3af;
}

[data-theme="dark"] .first-login-tip-browser-tip {
    color: #9ca3af;
    border-top-color: rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .first-login-tip-browser-tip strong {
    color: #e5e7eb;
}
