/* ============================================================
   _onboarding.css  —  新手引导样式
   ============================================================ */

/* 全屏遮罩 */
.ob-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: all;
}

/* SVG 聚光灯层（满屏） */
.ob-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ── 气泡卡片 ── */
.ob-bubble {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.07),
        0 12px 28px rgba(0,0,0,0.18),
        0 0 0 1px rgba(0,0,0,0.05);
    padding: 0;
    min-width: 280px;
    max-width: 340px;
    overflow: hidden;
    /* 默认隐藏，靠 .ob-bubble-in 触发 */
    opacity: 0;
    transform: translateY(8px) scale(0.97);
}

.ob-bubble.ob-bubble-in {
    animation: ob-bubble-appear 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ob-bubble-appear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 气泡顶部标题栏 */
.ob-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #ff8a5b 100%);
    border-radius: 16px 16px 0 0;
}

.ob-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}

.ob-close-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    margin-left: 8px;
}
.ob-close-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* 气泡正文 */
.ob-body {
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #3f2f21;
}

.ob-body kbd {
    display: inline-block;
    padding: 1px 6px;
    background: #f3f0ec;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    color: #555;
}

/* 底部：步骤点 + 导航按钮 */
.ob-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 14px;
    gap: 8px;
}

/* 步骤指示点 */
.ob-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ob-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ddd0c4;
    transition: background 0.2s, transform 0.2s;
}

.ob-dot.ob-dot-active {
    background: #f59e0b;
    transform: scale(1.25);
}

/* 导航按钮组 */
.ob-nav {
    display: flex;
    gap: 6px;
}

.ob-btn {
    border: none;
    border-radius: 40px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.ob-btn-prev {
    background: #f5f0ea;
    color: #7a5c42;
}
.ob-btn-prev:hover {
    background: #ede5da;
}

.ob-btn-next {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 0 #d97706;
}
.ob-btn-next:hover {
    background: #e08d00;
    transform: translateY(-1px);
}

.ob-btn-finish {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 2px 0 #15803d;
}
.ob-btn-finish:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* 步骤计数（可选） */
.ob-step-count {
    font-size: 12px;
    color: #b5a090;
    text-align: center;
    padding-bottom: 2px;
}
