body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    background-color: #1a1a1a; /* 添加一个深色背景，防止图片加载时闪烁 */
}

/* 页面淡出效果 */
body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.welcome-container {
    /* 这个类不再由 index.html 使用，移除背景图以避免混淆 */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* 垂直排列 */
    justify-content: center;
    align-items: center;
    position: relative;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1)); /* 底部更暗的渐变遮罩 */
}

.welcome-title {
    font-size: 3.5em;
    font-weight: 200; /* 更细的字体 */
    letter-spacing: 4px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 1;
    
    /* 文字渐变色 */
    background: linear-gradient(45deg, #f0f0f0, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;

    /* 标题动画 */
    animation: 
        text-glow 4s infinite alternate,
        slide-in-fwd-center 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* 加载指示器 */
.loader {
    width: 60px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    position: absolute;
    bottom: 15%;
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.loader::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: loading-scan 2s infinite linear;
}

.splash-screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* --- 核心确认点：确保这个路径和你的文件完全一致 --- */
    background-image: url('../img/welcome-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fade-in 0.5s ease-in;
}

.logo-container {
    text-align: center;
    animation: slide-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    position: absolute;
    bottom: 33.33%;
    left: 50%;
    transform: translateX(-50%);
    /* 移除固定宽度，让容器根据内容自适应宽度 */
    /* width: 90%; */ 
    padding: 0 20px; /* 添加一些左右内边距，防止文字贴边 */
}

.logo {
    /* logo 不再需要，可以隐藏或删除 */
    display: none;
}

.slogan {
    /* --- 核心改动 --- */
    color: #165DFF; /* 字体颜色变成蓝色 */
    font-size: 22px; /* 放大字体 */
    font-weight: 500; /* Medium，让字体更清晰 */
    letter-spacing: 1px;
    /* 添加一些文字阴影让其在复杂背景上更易读 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.skip-btn {
    position: absolute;
    top: 20px;
    right: 20px; /* 移回右上角 */
    color: rgba(255, 255, 255, 0.85); /* 字体更亮一些 */
    font-size: 13px; /* 稍微增大字体 */
    font-weight: 400; /* Regular */
    text-decoration: none;
    padding: 6px 14px; /* 调整内边距 */
    border-radius: 20px; /* 更大的圆角 */
    background-color: rgba(0, 0, 0, 0.2); /* 半透明黑色背景 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 添加一个非常细的亮边 */
    backdrop-filter: blur(8px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(8px); /* 兼容 Safari */
    transition: background-color 0.2s ease; /* 添加过渡效果 */
}

.skip-btn:hover {
    background-color: rgba(0, 0, 0, 0.3); /* 悬停时背景变深 */
}

/* --- Keyframes 动画定义 --- */

/* 背景缩放动画 */
@keyframes zoom-in-out {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* 文字渐变动画 */
@keyframes text-glow {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* 标题入场动画 */
@keyframes slide-in-fwd-center {
  0% {
    transform: translateZ(-1400px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0);
    opacity: 1;
  }
}

/* 加载器扫描动画 */
@keyframes loading-scan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- 核心改动：添加桌面端适配样式 --- */

/* 使用媒体查询，仅在屏幕宽度大于 600px 时应用以下样式 */
@media (min-width: 600px) {
    body {
        /* 将 body 背景设置为灰色，以突出显示应用容器 */
        background-color: #e9ecef;
    }

    .splash-screen {
        max-width: 450px; /* 设置应用的最大宽度，与 style.css 保持一致 */
        height: calc(100vh - 40px); /* 确保高度与 style.css 中的 min-height 匹配 */
        /*max-height: 800px;  可以设置一个最大高度，防止在超高屏幕上拉伸过度 */
        margin: 20px auto; /* 上下留白，左右自动居中 */
        border-radius: 20px; /* 为应用容器添加圆角 */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 添加阴影，使其有悬浮感 */
        position: relative; /* 确保内部的 .skip-btn 相对定位 */
    }

    .skip-btn {
        /* 桌面端样式保持一致，无需额外修改 */
    }
}
