@import url('https://fonts.cdnfonts.com/css/general-sans');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'General Sans', 'Poppins', sans-serif;
    overflow: hidden;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

.video-fade-out {
    opacity: 0;
}

/* 打字机特效 - 右下角（时间） */
.typing-container {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 4;
}

/* 打字机特效 - 左上角 */
.typing-topleft-container {
    position: fixed;
    top: 50px;
    left: 50px;
    z-index: 4;
}

.typing,
.typing-topleft {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.15),
        0 0 4px rgba(0, 0, 0, 0.1),
        0 0 6px rgba(0, 0, 0, 0.08),
        0 0 8px rgba(0, 0, 0, 0.05),
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

/* 打字机光标 - 白色细线 */
.typed-cursor {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    animation: blink 0.7s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 雨滴效果 Canvas */
.raindrop-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.raindrop-canvas.active {
    opacity: 1;
}

/* 导航栏 - 左侧 Products 按钮 */
.navbar-left {
    position: fixed;
    top: 150px;
    left: 50px;
    z-index: 1000;
}

.nav-products-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(223, 223, 242, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'General Sans', 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    overflow: hidden;
    position: relative;
}

.nav-products-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(223, 223, 242, 0.5);
}

.disabled-btn {
    pointer-events: none !important;
    opacity: 0.5 !important;
    filter: grayscale(1) !important;
}

.nav-products-btn .btn-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1.2em;
}

.nav-products-btn .btn-text span {
    display: block;
    transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* 悬停效果 */
.nav-products-btn:hover .btn-text span:first-child {
    transform: translateY(-160%) skewY(12deg);
    opacity: 0;
}

.nav-products-btn:hover .btn-text span:last-child {
    transform: translateY(0) skewY(0);
    opacity: 1;
}

.nav-products-btn .btn-text span:last-child {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(160%) skewY(-12deg);
    opacity: 0;
}

/* 文字切换动画类 */
.nav-products-btn.switching .btn-text span:first-child {
    animation: textSwitchOut 0.4s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

.nav-products-btn.switching .btn-text span:last-child {
    animation: textSwitchIn 0.4s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

@keyframes textSwitchOut {
    0% {
        transform: translateY(0) skewY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%) skewY(-8deg);
        opacity: 0;
    }
}

@keyframes textSwitchIn {
    0% {
        transform: translateY(100%) skewY(8deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) skewY(0);
        opacity: 1;
    }
}

.nav-products-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-products-btn:hover svg {
    transform: rotate(-45deg);
}

/* 导航栏 - 右上角 */
.navbar-right {
    position: fixed;
    top: 20px;
    right: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-family: 'General Sans', 'Poppins', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.15),
        0 0 4px rgba(0, 0, 0, 0.1),
        0 0 6px rgba(0, 0, 0, 0.08);
}

/* 背景切换按钮 - 黑色版 */
.dark-theme .nav-switch-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}
.dark-theme .nav-switch-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 背景切换按钮 */
.nav-switch-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 10px;
    outline: none;
}

.nav-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.nav-switch-btn:active {
    transform: translateY(0) scale(0.95);
}

.nav-link:hover {
    color: #dfdff2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(223, 223, 242, 0.3);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 音频指示器按钮 */
.audio-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.audio-indicator:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.indicator-line {
    width: 3px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.15),
        0 0 4px rgba(0, 0, 0, 0.1);
    animation: none !important;
    transform-origin: bottom center;
}

/* 音频指示器和第一界面完全一样，因此不添加额外的 dark-theme 修改 */

/* 每个竖条不同的动画 */
.indicator-line:nth-child(1).active {
    animation: indicator-line-1 0.7s ease infinite !important;
}

.indicator-line:nth-child(2).active {
    animation: indicator-line-2 0.9s ease infinite !important;
}

.indicator-line:nth-child(3).active {
    animation: indicator-line-3 0.8s ease infinite !important;
}

.indicator-line:nth-child(4).active {
    animation: indicator-line-4 1.0s ease infinite !important;
}

/* 不同的动画周期和幅度 */
@keyframes indicator-line-1 {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(1.8);
        opacity: 0.7;
    }
}

@keyframes indicator-line-2 {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(1.5);
        opacity: 0.5;
    }
}

@keyframes indicator-line-3 {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(1.9);
        opacity: 0.6;
    }
}

@keyframes indicator-line-4 {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(1.6);
        opacity: 0.4;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========================================
   预加载动画
   ======================================== */
/* ========================================
   睁眼开屏动效 (Eye Opening Loader)
   ======================================== */
.eye-opening-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none; /* 播放动画时允许背景内容可见但不可交互 */
}

/* 上眼睑 */
.eyelid-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: #010103;
    z-index: 10100;
    transition: transform 1300ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}
.eyelid-top.open-state {
    transform: translateY(-100%);
}

/* 下眼睑 */
.eyelid-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: #010103;
    z-index: 10100;
    transition: transform 1300ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}
.eyelid-bottom.open-state {
    transform: translateY(100%);
}

/* HUD 科技文字 */
.eye-hud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10200;
    text-align: center;
    transition: opacity 300ms ease;
    opacity: 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.eye-hud.visible-state {
    opacity: 0.7;
}

/* 视角亮度自适应 (初醒时中央过曝、两侧偏暗，逐渐恢复正常) */
.vignette-overlay {
    position: fixed;
    inset: 0;
    z-index: 3; /* 高于视频背景与雨滴层，低于眼睑与UI层 */
    pointer-events: none;
    /* 大幅提升中央过亮白色径向光 + 四周暗角 叠加对比度，模拟真实光线暴晒感 */
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 25%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
    /* 在眨眼彻底睁开期间 (2.6秒) 内渐进式恢复至正常亮度 */
    transition: opacity 2600ms cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.vignette-overlay.active-state {
    opacity: 1;
}

/* ========================================
   主内容包裹器 (Main Content Wrapper)
   ======================================== */
.main-content-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: filter 1000ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.main-content-wrapper.blur-state {
    filter: blur(24px);
}

/* ========================================
   Products 面板
   ======================================== */
.products-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.products-container {
    text-align: center;
    max-width: 900px;
    width: 90%;
}

.products-title {
    font-family: 'General Sans', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.products-panel.active .products-title {
    transform: translateY(0);
    opacity: 1;
}

.products-subtitle {
    font-family: 'General Sans', 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.products-panel.active .products-subtitle {
    transform: translateY(0);
    opacity: 1;
}

.products-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 卡片基础样式 */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 28px 28px;
    width: 260px;
    background: rgba(20, 20, 20, 0.4);
    /* 稍微加深背景，代替模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.6s ease;
    /* 初始透明度设为 0，由 GSAP 渐显。transform 保持 0，方便 CSS :hover 准确识别基准位 */
    transform: translateY(0);
    opacity: 0;
    will-change: transform;
}

/* 取消这里写死的 CSS 依次出场延迟，改为通过 GSAP stagger 更加优雅地控制。
   这也就解决了 transition-delay 导致的 hover 恢复延迟的 bug */
/* 状态标记由外层处理，这里不需要多余的空规则块 */

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(223, 223, 242, 0.1);
}

/* 卡片光晕背景 */
.product-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Grok2API - 蓝紫色调 */
#cardGrok .product-card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(120, 130, 255, 0.15), transparent 50%);
}

#cardGrok:hover {
    border-color: rgba(120, 130, 255, 0.3);
}

#cardGrok:hover .product-card-glow {
    opacity: 1;
}

#cardGrok .product-icon {
    color: #8b8eff;
}

/* GCLI2API - 青绿色调 */
#cardGcli .product-card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(80, 200, 200, 0.15), transparent 50%);
}

#cardGcli:hover {
    border-color: rgba(80, 200, 200, 0.3);
}

#cardGcli:hover .product-card-glow {
    opacity: 1;
}

#cardGcli .product-icon {
    color: #5ecfcf;
}

/* CLI Proxy API - 淡紫粉色调 */
#cardProxy .product-card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(200, 130, 255, 0.15), transparent 50%);
}

#cardProxy:hover {
    border-color: rgba(200, 130, 255, 0.3);
}

#cardProxy:hover .product-card-glow {
    opacity: 1;
}

#cardProxy .product-icon {
    color: #c88aff;
}

/* 图标区域 */
.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

/* 产品信息 */
.product-info {
    text-align: center;
    margin-bottom: 16px;
}

.product-name {
    font-family: 'General Sans', 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #ffffff;
}

.product-desc {
    font-family: 'General Sans', 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* 箭头指示器 */
.product-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-arrow svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.product-card:hover .product-arrow {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card:hover .product-arrow svg {
    color: #ffffff;
    transform: translate(2px, -2px);
}

/* 响应式 */
@media (max-width: 860px) {
    .products-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .product-card {
        width: 280px;
    }
}

/* ========================================
   Miku 看板娘 (Mascot)
   ======================================== */
.miku-mascot-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 120px;
    height: 120px;
    z-index: 1000;
    pointer-events: auto;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100px);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.miku-mascot-container:active {
    cursor: grabbing;
}

.miku-img {
    width: 100%;
    height: auto;
    display: block;
    animation: miku-float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    /* 禁止浏览器默认的图片拖拽功能 */
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* 让点击事件穿透到父容器处理 */
}

/* 翻转（向右走时） */
.miku-flip {
    transform: transition scaleX(-1);
}

.miku-img.miku-flip {
    transform: scaleX(-1);
}

@keyframes miku-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Miku 物品 (Leek) */
.miku-item-container {
    position: fixed;
    left: 220px; /* 增加距离，防止太挤 */
    bottom: 30px;
    width: 60px;
    height: 60px;
    z-index: 1001;
    cursor: grab;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none; /* 防止蓝框选中 */
    -webkit-user-select: none;
}

.miku-item-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
    animation: leek-float 3s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes leek-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Saber 物品 (Excalibur) */
.saber-item-container {
    position: fixed;
    left: 220px; 
    bottom: 40px; 
    width: 75px;
    height: 75px;
    z-index: 1001;
    cursor: grab;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none; 
    -webkit-user-select: none;
}

.saber-item-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
    animation: leek-float 3s ease-in-out infinite; /* 复用浮动即可 */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Saber 看板娘 */
.saber-mascot-container {
    position: fixed;
    left: 10px; 
    bottom: 10px; 
    width: 140px;
    height: 140px;
    z-index: 1000;

    pointer-events: auto;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100px);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.saber-img {
    width: 100%;
    height: auto;
    display: block;
    animation: miku-float 4s ease-in-out infinite; 
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* ========================================
   初始资源加载动画 (Initial Loader)
   ======================================== */
.initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 20000; /* 高于 eyeLoader 的 10000 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.initial-loader.hidden-state {
    opacity: 0;
    pointer-events: none;
}

.loading-130 {
    width: 50px;
    aspect-ratio: 1;
    color: #ffffff; /* 白色图像 */
    background: currentColor;
    border-radius: 50%;
    position: relative;
}

.loading-130:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(farthest-side at bottom right, #0000 94%, currentColor 96%) 0 0, 
                radial-gradient(farthest-side at bottom left, #0000 94%, currentColor 96%) 100% 0, 
                radial-gradient(farthest-side at top left, #0000 94%, currentColor 96%) 100% 100%, 
                radial-gradient(farthest-side at top right, #0000 94%, currentColor 96%) 0 100%;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    will-change: transform; /* 强制提升至 GPU 硬件加速图层 */
    animation: loading-130-smooth 1s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes loading-130-smooth {
    0%, 10% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(1.4) rotate(0deg);
    }
    60% {
        transform: scale(1.4) rotate(90deg);
    }
    90%, 100% {
        transform: scale(1) rotate(90deg);
    }
}

/* ========================================
   看板娘延迟对话框 (Mascot Latency Dialog)
   ======================================== */
.mascot-dialog {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 6000;
    width: 280px;
    padding: 16px 18px 14px;
    background: rgba(15, 17, 26, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    cursor: default;
    opacity: 0;
    /* 与看板娘图片同步浮动，保持距离固定 */
    animation: miku-float 4s ease-in-out infinite;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
}
.mascot-dialog.show {
    opacity: 1;
}
.mascot-dialog.fading {
    opacity: 0;
    transition: opacity 1s ease;
}
.mascot-dialog:not(.show) {
    pointer-events: none;
}
.mascot-dialog .ms {
    font-size: 30px;
    font-weight: 700;
    color: #9be1ff;
    font-variant-numeric: tabular-nums;
}
.mascot-dialog .pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9be1ff;
    margin-right: 8px;
    vertical-align: middle;
    animation: latency-pulse 1s infinite;
}
.mascot-dialog .sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}
@keyframes latency-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
