/* 新手引导（360 式分步高亮）：只在首页出现，不改变原有布局 */
.tour-root {
    position: fixed;
    inset: 0;
    z-index: 10020;
    pointer-events: none;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.tour-root * { box-sizing: border-box; }

.tour-hole {
    position: fixed;
    border-radius: 14px;
    border: 2px solid #45c8ff;
    box-shadow: 0 0 0 9999px rgba(8, 16, 30, .62), 0 0 0 5px rgba(69, 200, 255, .18);
    transition: all .28s cubic-bezier(.25, .8, .35, 1);
    pointer-events: none;
    z-index: 1;
}

.tour-card {
    position: fixed;
    width: 312px;
    max-width: calc(100vw - 28px);
    background: #fff;
    border-radius: 16px;
    padding: 15px 16px 13px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
    color: #1a2740;
    transition: left .28s cubic-bezier(.25, .8, .35, 1), top .28s cubic-bezier(.25, .8, .35, 1);
    z-index: 2;
    pointer-events: auto;
}
.tour-card::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.tour-card.below::before { top: -5px; left: var(--arrow, 50%); margin-left: -6px; }
.tour-card.above::before { bottom: -5px; left: var(--arrow, 50%); margin-left: -6px; }
.tour-card.center::before { display: none; }

.tour-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1976c9;
    letter-spacing: .3px;
}
.tour-kicker i {
    font-style: normal;
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #e8f5ff;
    color: #1976c9;
    font-size: 10.5px;
}
.tour-title { margin: 7px 0 5px; font-size: 16px; font-weight: 700; color: #10203b; }
.tour-desc { font-size: 12.5px; line-height: 1.75; color: #5a6883; }
.tour-desc b { color: #1e5fbf; font-weight: 600; }
.tour-desc em { font-style: normal; color: #0a8f66; font-weight: 600; }

.tour-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #eef1f7;
}
.tour-dots { display: flex; gap: 5px; flex: 1 1 auto; }
.tour-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dfe5f0;
    transition: width .18s, background .18s;
}
.tour-dots i.on { width: 16px; border-radius: 99px; background: #2f7bf6; }
.tour-btn {
    height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid #dfe6f5;
    background: #fff;
    color: #4c5c78;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}
.tour-btn:hover { background: #f5f8ff; }
.tour-btn.primary {
    border-color: #2f7bf6;
    background: #2f7bf6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 5px 12px rgba(47, 123, 246, .24);
}
.tour-btn.primary:hover { filter: brightness(1.04); }
.tour-skip {
    border: 0;
    background: none;
    color: #9aa4b8;
    font-family: inherit;
    font-size: 11.5px;
    cursor: pointer;
    padding: 0 3px;
}
.tour-skip:hover { color: #5a6883; }

.tour-x {
    position: absolute;
    right: 9px;
    top: 9px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #f2f5fa;
    color: #8e9ab0;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}
.tour-x:hover { background: #e8edf7; color: #4c5c78; }

/* 欢迎页 / 结束页：无目标，整屏轻遮罩 + 居中卡片 */
.tour-root.intro .tour-hole { display: none; }
.tour-root.intro { background: rgba(8, 16, 30, .58); pointer-events: auto; }
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: 360px; }

@media (max-width: 560px) {
    .tour-card { width: calc(100vw - 24px); }
    .tour-card.center { width: calc(100vw - 24px); }
    .tour-foot { flex-wrap: wrap; }
}
