/* 灵涵速推 · 深链进入「历史」统一全屏过渡（与各工具页共存） */
.lh-hist-splash {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lh-hist-splash.lh-hist-splash--in {
    opacity: 1;
}

.lh-hist-splash.lh-hist-splash--out {
    opacity: 0;
    transition: opacity 0.48s ease;
}

.lh-hist-splash__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #07111f 0%, #102b68 52%, #1d4fff 100%);
}

.lh-hist-splash__grid {
    position: absolute;
    inset: -20%;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.lh-hist-splash__card {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 32px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 24px 48px rgba(7, 17, 31, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(12px) scale(0.96);
    filter: blur(4px);
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        filter 0.45s ease;
    max-width: min(92vw, 340px);
}

.lh-hist-splash--in .lh-hist-splash__card {
    transform: translateY(0) scale(1);
    filter: none;
    opacity: 1;
}

.lh-hist-splash__logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(29, 79, 255, 0.28);
}

.lh-hist-splash__logo span {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.lh-hist-splash__brand {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
}

.lh-hist-splash__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.lh-hist-splash__sub {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
}

.lh-hist-splash__bar {
    margin-top: 18px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.lh-hist-splash__bar > i {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7dd3fc, #a78bfa, #38bdf8);
    background-size: 200% 100%;
    animation: lhHistSplashBar 1s ease-in-out infinite;
}

@keyframes lhHistSplashBar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(260%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lh-hist-splash,
    .lh-hist-splash__card,
    .lh-hist-splash__bar > i {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== 自有产品 MAX · 历史接入跃迁（仅 tool=product_max 深链） ========== */
.lh-hist-splash--pm .lh-hist-splash__shade--pm {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%, rgba(109, 40, 217, 0.45) 0%, transparent 55%),
        linear-gradient(165deg, #020617 0%, #1e1b4b 42%, #0f172a 100%);
}

.lh-hist-splash--pm .lh-hist-splash__warp {
    position: absolute;
    inset: -35%;
    background: repeating-linear-gradient(
        102deg,
        transparent 0,
        transparent 36px,
        rgba(167, 139, 250, 0.09) 36px,
        rgba(167, 139, 250, 0.09) 38px
    );
    animation: lhPmSplashWarp 0.48s linear infinite;
    mask-image: radial-gradient(ellipse 80% 68% at 50% 48%, #000 12%, transparent 74%);
}

.lh-hist-splash--pm .lh-hist-splash__burst {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(251, 191, 36, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 22% 72%, rgba(56, 189, 248, 0.08) 0%, transparent 32%);
    animation: lhPmSplashBurst 1.6s ease-in-out infinite alternate;
}

.lh-hist-splash--pm .lh-hist-splash__card--pm {
    padding: 32px 28px 28px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(196, 181, 253, 0.22);
    box-shadow:
        0 28px 64px rgba(2, 6, 23, 0.65),
        0 0 80px rgba(109, 40, 217, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: min(92vw, 360px);
    overflow: hidden;
}

.lh-hist-splash--pm .lh-hist-splash__halo {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.22) 0%, transparent 58%);
    animation: lhPmSplashHalo 2s ease-in-out infinite;
    pointer-events: none;
}

.lh-hist-splash--pm .lh-hist-splash__rings {
    position: absolute;
    left: 50%;
    top: 38px;
    width: 108px;
    height: 108px;
    transform: translateX(-50%);
    pointer-events: none;
}

.lh-hist-splash--pm .lh-hist-splash__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(196, 181, 253, 0.35);
}
.lh-hist-splash--pm .lh-hist-splash__ring--a {
    animation: lhPmSplashRing 2.2s ease-in-out infinite;
}
.lh-hist-splash--pm .lh-hist-splash__ring--b {
    inset: 12px;
    border-color: rgba(251, 191, 36, 0.28);
    animation: lhPmSplashRing 2.2s ease-in-out infinite reverse;
}
.lh-hist-splash--pm .lh-hist-splash__ring--c {
    inset: 24px;
    border-style: dashed;
    opacity: 0.7;
    animation: lhPmSplashSpin 3.2s linear infinite;
}

.lh-hist-splash--pm .lh-hist-splash__logo--pm {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.95), rgba(109, 40, 217, 0.92));
    box-shadow: 0 10px 32px rgba(109, 40, 217, 0.45);
    position: relative;
    z-index: 2;
}

.lh-hist-splash--pm .lh-hist-splash__logo--pm span {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #fff;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
}

.lh-hist-splash--pm .lh-hist-splash__brand--pm {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(196, 181, 253, 0.92);
    position: relative;
    z-index: 2;
}

.lh-hist-splash--pm .lh-hist-splash__title--pm {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 28px rgba(167, 139, 250, 0.55);
    position: relative;
    z-index: 2;
}

.lh-hist-splash--pm .lh-hist-splash__sub--pm {
    color: rgba(226, 232, 240, 0.72);
    position: relative;
    z-index: 2;
}

.lh-hist-splash--pm .lh-hist-splash__bar--pm {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.lh-hist-splash--pm .lh-hist-splash__bar--pm > i {
    width: 46%;
    background: linear-gradient(90deg, #a78bfa, #fbbf24, #38bdf8, #a78bfa);
    background-size: 220% 100%;
    animation: lhPmSplashBar 0.85s ease-in-out infinite;
}

.lh-hist-splash--pm.lh-hist-splash--in .lh-hist-splash__card--pm {
    animation: lhPmSplashCardIn 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lhPmSplashWarp {
    from { transform: translateX(-10%) skewX(-5deg); }
    to { transform: translateX(10%) skewX(-5deg); }
}
@keyframes lhPmSplashBurst {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}
@keyframes lhPmSplashHalo {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.08); opacity: 1; }
}
@keyframes lhPmSplashRing {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
}
@keyframes lhPmSplashSpin {
    to { transform: rotate(360deg); }
}
@keyframes lhPmSplashBar {
    0% { transform: translateX(-115%); }
    100% { transform: translateX(290%); }
}
@keyframes lhPmSplashCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lh-hist-splash--pm .lh-hist-splash__warp,
    .lh-hist-splash--pm .lh-hist-splash__burst,
    .lh-hist-splash--pm .lh-hist-splash__halo,
    .lh-hist-splash--pm .lh-hist-splash__ring,
    .lh-hist-splash--pm .lh-hist-splash__bar--pm > i,
    .lh-hist-splash--pm.lh-hist-splash--in .lh-hist-splash__card--pm {
        animation: none !important;
    }
}

/* ========== 灵涵AI换装 · 时装秀式「上身揭晓」 ========== */
.lh-hist-splash--aot .lh-hist-splash__shade--aot {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 28%, rgba(232, 195, 158, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(180, 120, 90, 0.18) 0%, transparent 50%),
        linear-gradient(168deg, #0a0908 0%, #1a1410 46%, #0c0a09 100%);
}

.lh-hist-splash--aot .lh-hist-splash__aot-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.lh-hist-splash--aot .lh-hist-splash__aot-beams span {
    position: absolute;
    top: -10%;
    width: 18%;
    height: 120%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 236, 210, 0.07) 35%,
        rgba(232, 195, 158, 0.14) 50%,
        rgba(255, 236, 210, 0.06) 65%,
        transparent 100%
    );
    transform: skewX(-18deg);
    filter: blur(1px);
    animation: lhAotBeam 2.4s ease-in-out infinite alternate;
}
.lh-hist-splash--aot .lh-hist-splash__aot-beams span:nth-child(1) { left: 22%; animation-delay: 0s; }
.lh-hist-splash--aot .lh-hist-splash__aot-beams span:nth-child(2) { left: 41%; width: 22%; opacity: 0.85; animation-delay: 0.35s; }
.lh-hist-splash--aot .lh-hist-splash__aot-beams span:nth-child(3) { left: 62%; animation-delay: 0.7s; }

.lh-hist-splash--aot .lh-hist-splash__aot-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.lh-hist-splash--aot .lh-hist-splash__aot-dust i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 236, 210, 0.75);
    box-shadow: 0 0 8px rgba(232, 195, 158, 0.55);
    animation: lhAotDust 2.8s ease-in-out infinite;
}
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(1) { left: 14%; top: 28%; animation-delay: 0s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(2) { left: 78%; top: 22%; width: 2px; height: 2px; animation-delay: 0.4s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(3) { left: 66%; top: 68%; animation-delay: 0.9s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(4) { left: 28%; top: 74%; width: 2px; height: 2px; animation-delay: 1.2s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(5) { left: 48%; top: 16%; animation-delay: 0.55s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(6) { left: 88%; top: 48%; animation-delay: 1.5s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(7) { left: 10%; top: 52%; width: 2px; height: 2px; animation-delay: 1.8s; }
.lh-hist-splash--aot .lh-hist-splash__aot-dust i:nth-child(8) { left: 54%; top: 82%; animation-delay: 0.2s; }

.lh-hist-splash--aot .lh-hist-splash__aot-stage {
    position: absolute;
    left: 50%;
    top: 18%;
    width: 160px;
    height: 200px;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}
.lh-hist-splash--aot .lh-hist-splash__aot-ring {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 88px;
    height: 18px;
    margin-left: -44px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(232, 195, 158, 0.35) 0%, transparent 70%);
    animation: lhAotRingPulse 1.6s ease-in-out infinite;
}
.lh-hist-splash--aot .lh-hist-splash__aot-figure {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 72px;
    height: 150px;
    margin-left: -36px;
    overflow: hidden;
}
.lh-hist-splash--aot .lh-hist-splash__aot-body {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 42% 18% at 50% 12%, rgba(255, 236, 210, 0.9) 0%, rgba(255, 236, 210, 0.9) 55%, transparent 58%),
        linear-gradient(180deg, transparent 18%, rgba(245, 230, 220, 0.55) 19%, rgba(245, 230, 220, 0.4) 52%, transparent 53%),
        linear-gradient(180deg, transparent 52%, rgba(245, 230, 220, 0.35) 53%, rgba(245, 230, 220, 0.28) 100%);
    clip-path: polygon(
        38% 0%, 62% 0%, 66% 14%, 72% 18%, 78% 42%, 70% 42%, 68% 58%,
        74% 100%, 58% 100%, 54% 62%, 46% 62%, 42% 100%, 26% 100%,
        32% 58%, 30% 42%, 22% 42%, 28% 18%, 34% 14%
    );
    opacity: 0.55;
    filter: drop-shadow(0 0 18px rgba(232, 195, 158, 0.25));
}
.lh-hist-splash--aot .lh-hist-splash__aot-cloth {
    position: absolute;
    left: 18%;
    right: 18%;
    top: 20%;
    bottom: 8%;
    background: linear-gradient(
        180deg,
        rgba(201, 162, 120, 0.15) 0%,
        rgba(232, 195, 158, 0.55) 28%,
        rgba(180, 120, 90, 0.7) 62%,
        rgba(120, 80, 55, 0.45) 100%
    );
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
    transform: translateY(-110%);
    animation: lhAotClothDrop 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
    mix-blend-mode: screen;
}
.lh-hist-splash--aot .lh-hist-splash__aot-scan {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 246, 230, 0.95), transparent);
    box-shadow: 0 0 16px rgba(232, 195, 158, 0.85), 0 0 32px rgba(255, 220, 180, 0.4);
    animation: lhAotScan 1.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.lh-hist-splash--aot .lh-hist-splash__card--aot {
    margin-top: 168px;
    padding: 26px 28px 24px;
    border-radius: 22px;
    background: rgba(20, 16, 14, 0.62);
    border: 1px solid rgba(232, 195, 158, 0.28);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(180, 120, 90, 0.12),
        inset 0 1px 0 rgba(255, 236, 210, 0.12);
    max-width: min(92vw, 340px);
    overflow: hidden;
}
.lh-hist-splash--aot.lh-hist-splash--in .lh-hist-splash__card--aot {
    animation: lhAotCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.lh-hist-splash--aot .lh-hist-splash__logo--aot {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f3e0c8 0%, #d4a574 55%, #b4784a 100%);
    color: #1a1410;
    box-shadow: 0 10px 28px rgba(180, 120, 90, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lh-hist-splash--aot .lh-hist-splash__brand--aot {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: rgba(232, 195, 158, 0.92);
}
.lh-hist-splash--aot .lh-hist-splash__title--aot {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #fff8f0;
    text-shadow: 0 0 24px rgba(232, 195, 158, 0.45);
}
.lh-hist-splash--aot .lh-hist-splash__sub--aot {
    color: rgba(245, 230, 220, 0.68);
}
.lh-hist-splash--aot .lh-hist-splash__bar--aot {
    margin-top: 18px;
}
.lh-hist-splash--aot .lh-hist-splash__bar--aot > i {
    width: 48%;
    background: linear-gradient(90deg, #c9a278, #f3e0c8, #d4a574, #c9a278);
    background-size: 220% 100%;
    animation: lhAotBar 0.9s ease-in-out infinite;
}

@keyframes lhAotBeam {
    from { opacity: 0.45; transform: skewX(-18deg) translateX(-4px); }
    to { opacity: 1; transform: skewX(-18deg) translateX(4px); }
}
@keyframes lhAotDust {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
    50% { transform: translateY(-14px) scale(1.25); opacity: 1; }
}
@keyframes lhAotRingPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.55; }
    50% { transform: scaleX(1.18); opacity: 1; }
}
@keyframes lhAotClothDrop {
    0% { transform: translateY(-110%); opacity: 0.2; }
    55% { opacity: 1; }
    100% { transform: translateY(0); opacity: 0.95; }
}
@keyframes lhAotScan {
    0% { top: 8%; opacity: 0; }
    12% { opacity: 1; }
    100% { top: 92%; opacity: 0.35; }
}
@keyframes lhAotCardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
    }
}
@keyframes lhAotBar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
    .lh-hist-splash--aot .lh-hist-splash__aot-beams span,
    .lh-hist-splash--aot .lh-hist-splash__aot-dust i,
    .lh-hist-splash--aot .lh-hist-splash__aot-ring,
    .lh-hist-splash--aot .lh-hist-splash__aot-cloth,
    .lh-hist-splash--aot .lh-hist-splash__aot-scan,
    .lh-hist-splash--aot .lh-hist-splash__bar--aot > i,
    .lh-hist-splash--aot.lh-hist-splash--in .lh-hist-splash__card--aot {
        animation: none !important;
    }
    .lh-hist-splash--aot .lh-hist-splash__aot-cloth {
        transform: none;
        opacity: 0.9;
    }
}
