/* -------------- 全局 Splash 样式 -------------- */
#html-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    /* 纯净白底，配合粉色粒子画布 */
    background: #ffffff;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #0a0a0a;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}

#html-splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* 环境氛围光层，提供一点极淡的粉色基底 */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0;
    animation: glowFadeIn 2s ease forwards;
}

.glow-1 { top: -10%; left: -10%; width: 60vw; height: 60vw; background: rgba(255, 182, 193, 0.15); }

@keyframes glowFadeIn {
    to { opacity: 1; }
}

/* canvas 画布 - 粉白粒子渲染区 */
#splash-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* 防止拦截滑动件 */
    opacity: 0;
    animation: fadeInCanvas 2s ease forwards;
}

@keyframes fadeInCanvas {
    to { opacity: 0.8; }
}

/* 舞台容器 */
.splash-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    z-index: 5;
}

/* 居左对齐 */
.stage-left {
    align-items: flex-start;
    padding-left: 10vw; /* 距离左侧的安全留白，体现高级感排版 */
}

/* -------------- 优雅的文本排版 -------------- */
.elegant-greeting {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px; 
}

.greeting-line {
    font-size: 46px; /* 将文字大幅放大，增加视觉冲击力 */
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1; /* 缩小行高让排版更紧凑高级 */
    color: #111;
}

/* 单字打字的优雅浮出 */
.elegant-greeting span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    background: linear-gradient(135deg, #111 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textTypeReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    /* 核心：用变量配合计算延迟时间实现真实的单字崩出 */
    animation-delay: calc(var(--i) * 0.15s + 0.3s);
}

@keyframes textTypeReveal {
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 专门排除手势 Emoji 的渐变填充蒙版，保留它原始的色彩并且加入摇摆挥手动画 */
.elegant-greeting span.waving-hand {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    transform-origin: bottom right; /* 设定挥手的支点 */
    /* 入场动画与挥手动画叠加 */
    animation: textTypeReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, waveAction 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s + 0.3s), calc(var(--i) * 0.15s + 0.7s);
    margin-left: 5px;
}

@keyframes waveAction {
    0%, 100% { transform: scale(1) rotate(0deg); }
    15% { transform: scale(1) rotate(15deg); }
    30% { transform: scale(1) rotate(-10deg); }
    45% { transform: scale(1) rotate(10deg); }
    60% { transform: scale(1) rotate(-5deg); }
    75% { transform: scale(1) rotate(0deg); }
}

/* 闪烁光标 */
.type-cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em; /* 使用相对单位，完美适配无论多大的字体 */
    background-color: #ff8fb3; /* 粉色光标 */
    border-radius: 2px;
    transform: translateY(0.08em); /* 轻微下沉对齐重心 */
    margin-left: 6px;
    opacity: 0;
    animation: elegantBlink 1s infinite;
    /* 等到所有字都打完（目前是 11 个字符加上间隔） */
    animation-delay: calc(11 * 0.15s + 0.6s);
}

@keyframes elegantBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 向下滑动提示 */
.swipe-hint {
    position: absolute;
    bottom: 8vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    z-index: 10;
    animation: cinematicFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards;
}

.hint-left {
    left: 10vw; /* 跟随文字左边缘对其 */
    align-items: flex-start;
}

.swipe-hint span {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 5px;
}

.swipe-arrow {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, #aaa);
    position: relative;
    animation: drawDown 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 4px; /* 细微调节线条居中相对字母 */
}

@keyframes drawDown {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.1% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes cinematicFadeIn {
    to { opacity: 1; }
}

/* -------------- 第二阶段：完全极简黑白灰的高端反差感 -------------- */
#splash-stage-2 {
    transform: translateY(100vh);
    opacity: 0;
    align-items: center; /* 修复文字区域没有居中的问题 */
}

#splash-stage-2.active {
    transform: translateY(0);
    opacity: 1;
}

#splash-stage-1.leave {
    transform: translateY(-40vh);
    opacity: 0;
    filter: blur(10px);
}

.tags-container {
    position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none;
}

/* 恢复高颜值的玻璃标签式样 */
.float-tag {
    position: absolute;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    opacity: 0;
}

.tag-1 { top: 8%; left: -50%; animation: floatRight 15s infinite linear; color: #ff6b81; } /* 珊瑚粉 */
.tag-2 { top: 16%; right: -50%; animation: floatLeft 12s infinite linear; color: #5352ed; } /* 柔和钴蓝 */
.tag-5 { top: 25%; left: -60%; animation: floatRight 18s infinite linear 2s; color: #9c88ff; } /* 梦幻紫 */

/* 核心区域安全留白：大约在 30% 到 65% 之间 */

.tag-3 { top: 68%; right: -50%; animation: floatLeft 20s infinite linear 1s; color: #ff7f50; } /* 暖日橙 */
.tag-6 { top: 76%; left: -40%; animation: floatRight 16s infinite linear 3s; color: #2ed573; } /* 高级薄荷绿 */
.tag-4 { top: 84%; right: -60%; animation: floatLeft 22s infinite linear 0.5s; color: #ffa502; } /* 灿烂金 */
.tag-7 { top: 92%; left: -70%; animation: floatRight 25s infinite linear 1.5s; color: #57606f; } /* 优雅岩灰 */

@keyframes floatRight {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(150vw); opacity: 0; }
}
@keyframes floatLeft {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-150vw); opacity: 0; }
}

.core-msg {
    position: relative; z-index: 10; width: 85%; text-align: center;
    transform: translateY(30px); opacity: 0; transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center; /* 确保内部文本和元素也处于绝对居中 */
}

#splash-stage-2.active .core-msg { transform: translateY(0); opacity: 1; }

.core-msg h2 {
    font-size: 34px; /* 从 24px 大幅提升到 34px，带来更强烈的视觉冲击 */
    font-weight: 800; line-height: 1.4; /* 行高收紧更具高级感 */
    margin: 0 0 20px 0; color: #111;
    letter-spacing: -1px; /* 微调字间距应对大字体 */
}

.core-msg p {
    font-size: 20px; /* 从 16px 提升到 20px */
    font-weight: 700; color: #ff8fb3; margin: 0; letter-spacing: 3px;
}

.enter-btn-wrap {
    position: absolute; bottom: 8vh; width: 100%; display: flex; justify-content: center;
    z-index: 10; opacity: 0; transform: translateY(20px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

#splash-stage-2.active .enter-btn-wrap { opacity: 1; transform: translateY(0); }

.enter-btn {
    background: #111; color: #fff; border: none; padding: 18px 45px; border-radius: 40px;
    font-size: 16px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); transition: all 0.3s;
}

.enter-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); }
.enter-btn:active { transform: translateY(2px) scale(0.98); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
