/* 首页新用户引导 — 页面保持 100% 清晰，仅压暗非选中项、加亮当前项 */

.guide-mask {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.guide-mask.show { opacity: 1; }

body.guide-running header,
body.guide-running .container,
body.guide-running footer {
    position: relative;
    z-index: 310;
}

body.guide-running .container {
    overflow: visible !important;
}
body.guide-running .nav-card.guide-active {
    overflow: visible !important;
    transform: none !important;
}
body.guide-running.guide-step-first .container {
    padding-top: 10px;
}
body.guide-running.guide-step-first #birthCard.guide-active {
    margin-top: 2px;
}

.nav-card.guide-dim,
.fortune-teller-card-entry.guide-dim,
.name-rating-card-entry.guide-dim,
.footer-brand-trigger.guide-dim,
footer a.guide-dim {
    opacity: 0.7 !important;
    filter: none !important;
    pointer-events: none;
}

.nav-card.guide-active,
.fortune-teller-card-entry.guide-active,
.footer-brand-trigger.guide-active {
    position: relative;
    z-index: 320;
    opacity: 1 !important;
    filter: brightness(1.1) saturate(1.06) !important;
    pointer-events: auto;
    transform: translateY(-2px);
    transition: filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.nav-card.guide-active {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.nav-card.guide-active h2,
.nav-card.guide-active > span {
    opacity: 1 !important;
    color: #1d1d1f !important;
}
body.dark-theme .nav-card.guide-active {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}
body.dark-theme .nav-card.guide-active h2,
body.dark-theme .nav-card.guide-active > span {
    color: #1d1d1f !important;
}

.nav-card.guide-active[data-guide-step="1"] {
    box-shadow: 0 0 0 3px #ffb65a, 0 0 40px rgba(255, 151, 0, 0.45), 0 20px 48px rgba(255, 151, 0, 0.18);
}
.nav-card.guide-active[data-guide-step="2"] {
    box-shadow: 0 0 0 3px #75baff, 0 0 40px rgba(61, 155, 255, 0.45), 0 20px 48px rgba(61, 155, 255, 0.18);
}
.nav-card.guide-active[data-guide-step="3"] {
    box-shadow: 0 0 0 3px #b89aff, 0 0 40px rgba(155, 108, 255, 0.45), 0 20px 48px rgba(155, 108, 255, 0.18);
}
.nav-card.guide-active[data-guide-step="4"] {
    box-shadow: 0 0 0 3px #84d9aa, 0 0 40px rgba(85, 197, 138, 0.45), 0 20px 48px rgba(85, 197, 138, 0.18);
}

.fortune-teller-card-entry.guide-active .fortune-teller-card-entry__clip {
    background: #fff;
    box-shadow:
        0 0 0 3px #ffb65a,
        0 0 36px rgba(255, 151, 0, 0.5),
        0 10px 28px rgba(0, 0, 0, 0.14);
}
.fortune-teller-card-entry.guide-active .fortune-teller-card-entry__badge {
    opacity: 1 !important;
    filter: brightness(1.1) !important;
}

.footer-brand-trigger.guide-active {
    transform: none;
    border-radius: 8px;
    padding: 2px 8px;
    margin: -2px -8px;
    box-shadow:
        0 0 0 3px #ffb65a,
        0 0 28px rgba(255, 151, 0, 0.45);
    background: rgba(255, 255, 255, 0.92);
    color: #1d1d1f !important;
    text-decoration: underline;
}
body.dark-theme .footer-brand-trigger.guide-active {
    background: rgba(34, 42, 58, 0.96);
    color: #eef3ff !important;
    box-shadow:
        0 0 0 3px #ffb65a,
        0 0 28px rgba(255, 151, 0, 0.38);
}

body.guide-running.guide-step-cta footer {
    z-index: 320;
}

.guide-tip {
    position: fixed;
    z-index: 420;
    width: min(300px, calc(100vw - 32px));
    text-align: left;
    background: #fff;
    border-radius: 22px;
    padding: 22px 22px 18px;
    box-shadow: 0 24px 70px rgba(11, 18, 32, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
}
body.dark-theme .guide-tip {
    background: linear-gradient(160deg, #1e2636, #171d2a);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.guide-tip.show {
    opacity: 1;
    transform: translateY(0);
}
.guide-tip--secondary {
    padding: 18px 20px 16px;
    pointer-events: none;
}
.guide-tip--secondary.guide-tip--interactive {
    pointer-events: auto;
    padding-bottom: 18px;
}
.guide-tip--secondary.show {
    opacity: 1;
    transform: translateY(0);
}
.guide-tip--compact {
    padding-bottom: 18px;
}
.guide-tip--compact .guide-tip-actions {
    display: none;
}
.guide-badge {
    display: inline-block;
    color: #fff;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}
.guide-tip h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ios-text-main, #1d1d1f);
}
body.dark-theme .guide-tip h3 { color: #eef3ff; }
.guide-tip p {
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
    color: #444;
}
body.dark-theme .guide-tip p { color: rgba(223, 231, 255, 0.82); }
.guide-tip-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.guide-next-btn {
    flex: 1;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--guide-accent, #ff9700);
    cursor: pointer;
}
.guide-next-btn:active { transform: scale(0.98); }
.guide-skip {
    border: 0;
    background: transparent;
    color: #999;
    cursor: pointer;
    padding: 8px 4px;
    font-size: 13px;
    white-space: nowrap;
}
body.dark-theme .guide-skip { color: rgba(194, 209, 245, 0.55); }

.guide-arrow {
    position: fixed;
    z-index: 410;
    width: 72px;
    height: 72px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.guide-arrow.show { opacity: 1; }
.guide-arrow svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.guide-arrow-link {
    position: fixed;
    z-index: 415;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.guide-arrow-link.show { opacity: 1; }
.guide-arrow-link svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.guide-arrow-link path {
    filter: drop-shadow(0 1px 0 rgba(255, 151, 0, 0.15));
}

.guide-progress {
    position: fixed;
    left: 50%;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 420;
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 9px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transition: opacity 0.35s ease;
    font-size: 13px;
    color: #8f9399;
}
body.dark-theme .guide-progress {
    background: rgba(22, 28, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(194, 209, 245, 0.7);
}
.guide-progress.show { opacity: 1; }
.guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6d6d6;
    transition: width 0.3s ease, background 0.3s ease;
}
.guide-dot.on {
    width: 22px;
    border-radius: 999px;
}
.guide-count {
    margin-left: 4px;
    font-size: 13px;
}

.guide-replay {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #555;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.dark-theme .guide-replay {
    background: rgba(30, 38, 54, 0.92);
    color: rgba(223, 231, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
}
.guide-replay.show {
    opacity: 1;
    pointer-events: auto;
}
.guide-replay.guide-replay--fading {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
}
.guide-replay:active { transform: translateX(-50%) scale(0.98); }

@media (max-width: 760px) {
    .guide-tip { padding: 18px 18px 16px; }
    .guide-tip h3 { font-size: 18px; }
    .guide-tip p { font-size: 14px; }
    .guide-progress {
        bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        font-size: 12px;
        padding: 8px 12px;
    }
    .guide-replay {
        font-size: 11px;
        font-weight: 400;
        padding: 6px 10px;
        color: #9aa0a8;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 0;
    }
    .guide-replay.show { opacity: 0.72; }
    body.dark-theme .guide-replay {
        background: transparent;
        color: rgba(194, 209, 245, 0.45);
    }
    .guide-replay.guide-replay--fading { opacity: 0; }
}

@media (min-width: 761px) {
    .guide-replay {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* 副标题位临时显示「查看使用引导」（全端统一） */
.site-tagline-wrap {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
    box-sizing: border-box;
    max-width: min(19.5em, 100%);
    min-height: 1.55em;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.guide-mobile-entry {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.94);
    color: #86868b;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.4;
    padding: 7px 16px;
    min-height: 32px;
    margin: 0;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}
body.dark-theme .guide-mobile-entry {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(223, 231, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}
.guide-mobile-entry:active {
    opacity: 0.82;
    transform: scale(0.98);
}

body.guide-entry-ui .site-tagline-wrap.guide-entry-active .site-tagline {
    display: none;
}
body.guide-entry-ui .site-tagline-wrap.guide-entry-active .guide-mobile-entry {
    display: inline-flex !important;
}
body.guide-running .site-tagline-wrap.guide-entry-active {
    z-index: 425;
}

/* 电脑端：副标题一行显示，避免「务」字折行 */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .site-tagline-wrap {
        max-width: 100%;
    }
    header p.site-tagline {
        max-width: none;
        white-space: nowrap;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 360px) {
    .site-tagline-wrap {
        max-width: 100%;
        padding: 0 8px;
    }
    .guide-mobile-entry {
        font-size: 9px;
        padding: 6px 12px;
        white-space: nowrap;
    }
}

.guide-replay {
    display: none !important;
}
