        * {
            margin: 0; /*将外边距设置为0，为使目标元素更贴合主页*/
            padding: 0; /*将内边距设置为0*/
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
            overflow-x: hidden; /*防止水平方向溢出*/
            color: white;
            line-height: 1.5;
            background-color: #0a1a1f;
        }

        /* 视频背景容器 */
        .video-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            overflow: hidden;
        } /*创建一个固定定位的容器，覆盖整个浏览器窗口（视口），作为视频的包裹层*/

        .video-container video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            object-fit: cover;
        } /*实现自动裁剪，使其填满整个窗口*/

        /* 半透明遮罩 模糊背景内容，增强文字可读性*/
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
            z-index: -1;
        }

        /* 高清粒子画布层 */
        #particle-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            pointer-events: none; /*画布不响应任何鼠标/触摸事件 否则会影响交互*/
            z-index: 0; /*设置层级 使其位于遮罩层上，其他层下，不影响交互*/
        }

        /* 主内容区域（标题、副标题、描述、按钮组......）*/
        .content {
            position: relative;
            z-index: 2;
            min-height: 100vh;
            display: flex; /*启用 Flexbox 布局，便于内部元素灵活排列*/
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 2rem;
        }

        /*主标题“元素幻语”*/
        .title {
            font-size: clamp(2.5rem, 8vw, 5rem);
            font-weight: 800;
            letter-spacing: 0.08em;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #fff, #ffd89b, #c7e9fb);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            animation: fadeInUp 0.8s ease-out;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        /*副标题“✨ 无人之地 · 灵音启程 ✨”*/
        .subtitle {
            font-size: clamp(1rem, 4vw, 1.4rem);
            font-weight: 400;
            margin-bottom: 1.5rem;
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(8px);
            padding: 0.5rem 1.8rem;
            border-radius: 40px;
            display: inline-block;
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }

        /*描述文本*/
        .description {
            max-width: 700px;
            font-size: 1rem;
            margin-bottom: 2.5rem;
            background: rgba(0,0,0,0.45);
            backdrop-filter: blur(4px);
            padding: 1rem 2rem;
            border-radius: 24px;
            animation: fadeInUp 0.8s ease-out 0.4s both;
        }

        /* 按钮容器布局 */
        .btn-group {
            display: flex;
            justify-content: center;
            align-items: flex-start;  /* 改为顶部对齐，实现左右对齐 */
            gap: 5rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease-out 0.6s both;
        }

        .btn-group-left {
            display: flex;
            flex-direction: column;
            gap: 3rem;
        }

        .btn-group-right {
            display: flex;
            flex-direction: column;   /* 垂直排列，与左侧一致 */
            gap: 3rem;               /* 与左侧按钮间距相同 */
            align-items: stretch;    /* 确保按钮宽度一致 */
        }

        .btn {
            padding: 1rem 2.8rem;
            font-size: 1.4rem;
            font-weight: 700;
            border-radius: 60px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: none;
            color: white;
            text-align: center;
            line-height: 1.4;
            box-shadow: 0 8px 20px rgba(0,0,0,0.35);
            backdrop-filter: blur(3px);
            letter-spacing: 1px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #0f4c5f, #1b6b85, #2c8cb0);
            background-size: 200% auto;
            border: 1px solid rgba(255,255,240,0.25);
        }

        .btn-primary:hover {
            background-position: right center;
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 18px 32px rgba(0,0,0,0.5);
        }

        .btn-outline {
            background: linear-gradient(135deg, #1b5e7a, #2c7da0, #3c9bc2);
            background-size: 200% auto;
            border: 1px solid rgba(100, 200, 255, 0.6);
        }

        .btn-outline:hover {
            background-position: right center;
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 18px 32px rgba(0,0,0,0.5);
        }

        /* 右侧所有按钮统一使用与左侧相同的按钮样式，移除原竖排样式干扰 */
        .btn-group-right .btn {
            min-width: 180px;          /* 与左侧按钮视觉宽度一致 */
            white-space: nowrap;       /* 文字不换行 */
        }

        /* 确保右侧按钮在移动端自适应良好 */
        @media (max-width: 680px) {
            .btn-group-right .btn {
                min-width: 160px;
                white-space: normal;
                padding: 0.85rem 1.5rem;
                font-size: 1.1rem;
            }
        }

        /* 原竖向按钮样式已不再使用，保留旧定义但不影响新样式，避免干扰 */
        .btn-vertical {
            /* 保留原有定义但不影响新布局，新按钮不再使用此类 便于代码维护 防止意外报错*/
            flex-direction: column;
            padding: 1.6rem 1.2rem;
            min-width: 120px;
            background: linear-gradient(145deg, #0e4b6b, #1a6e8f, #0f5a78);
            border-radius: 60px;
            font-weight: 800;
            letter-spacing: 2px;
            box-shadow: 0 12px 24px rgba(0,0,0,0.4);
            transition: all 0.3s ease;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(180, 230, 255, 0.4);
        }
        .btn-vertical .vertical-text {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 1.2rem;
            line-height: 1.4;
            font-weight: 700;
        }

        /*主页面正下方的提示文字 提示用户向下滑动*/
        .scroll-hint {
            position: absolute;
            bottom: 25px;
            left: 0;
            right: 0;
            font-size: 0.85rem;
            opacity: 0.8;
            animation: bounce 2s infinite; /*上下跳动的动画效果*/
            letter-spacing: 2px;
        }

        /* ========= 半透明简约风格唱片控件  ========= */

        /*唱片容器*/
        .vinyl-player {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 150;
            cursor: pointer;
            background: rgba(20, 30, 35, 0.55);
            backdrop-filter: blur(12px); /*高斯模糊12像素 实现磨砂质感*/
            border-radius: 60px;
            padding: 10px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        .vinyl-player:hover {
            background: rgba(30, 45, 52, 0.7);
            border-color: rgba(255, 220, 150, 0.4);
            transform: scale(1.02);
        }

        /*唱片盘面效果*/
        .vinyl-disc {
            width: 64px;
            height: 64px;
            background: radial-gradient(circle at 30% 30%, rgba(30,30,35,0.85), rgba(10,10,15,0.9));
            border-radius: 50%;
            position: relative;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.15);
            transition: box-shadow 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
        }

        /*唱片盘面纹路*/
        .vinyl-disc::before {
            content: "";
            position: absolute;
            width: 86%;
            height: 86%;
            border-radius: 50%;
            background: repeating-radial-gradient(circle at 30% 30%, rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 3px, rgba(100,100,110,0.2) 3px, rgba(100,100,110,0.2) 6px);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        /*唱片盘面高光 增加质感*/
        .vinyl-disc::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
            top: 0;
            left: 0;
            pointer-events: none;
        }

        /*盘面中心标签*/
        .vinyl-label {
            width: 30px;
            height: 30px;
            background: radial-gradient(circle, rgba(248, 217, 137, 0.94), rgba(160, 110, 40, 0.85));
            border-radius: 50%;
            z-index: 3;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 2px rgba(255,245,180,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            color: #2e241a;
            text-shadow: 0 1px 0 rgba(255,215,100,0.6);
            backdrop-filter: blur(2px);
        }

        /*旋转动画*/
        @keyframes vinylSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .vinyl-disc.spinning {
            animation: vinylSpin 8s linear infinite;
        }
        
        /*音符装饰（容器伪元素）*/
        .vinyl-player::before {
            content: "♪";
            position: absolute;
            top: -8px;
            right: -6px;
            font-size: 20px;
            opacity: 0.65;
            color: rgba(255,245,210,0.9);
            text-shadow: 0 0 2px rgba(0,0,0,0.3);
            pointer-events: none;
            transition: opacity 0.2s;
        }
        /*切换效果*/
        .vinyl-player.playing-mode::before {
            content: "♫";
            opacity: 1;
            color: #ffecb3;
        }

        /* 左下角 小幻语网页助手状态条 */
        .ai-agent-status {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 160;
            background: rgba(10, 25, 30, 0.65);
            backdrop-filter: blur(10px);
            border-radius: 48px;
            padding: 6px 16px 6px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.75rem;
            border: 1px solid rgba(255,215,150,0.35);
            box-shadow: 0 2px 12px rgba(0,0,0,0.2);
            pointer-events: auto;
            transition: all 0.2s;
        }
        .ai-agent-status:hover {
            background: rgba(20, 45, 52, 0.85);
            border-color: rgba(255,200,100,0.7);
        }

        /*状态指示点 */
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #7f8c8d;
            box-shadow: 0 0 4px currentColor;
            transition: background-color 0.2s;
        }
        .status-dot.active {
            background-color: #2ecc71;
            box-shadow: 0 0 8px #2ecc71;
        }
        .status-dot.attempt {
            background-color: #f39c12;
            box-shadow: 0 0 6px #f39c12;
        }
        .status-dot.failed {
            background-color: #e74c3c;
        }
        .ai-status-text {
            color: #f0f3f5;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        /*手动启动按钮*/
        .manual-launch-btn {
            background: rgba(255,215,140,0.2);
            border: 1px solid rgba(255,210,110,0.6);
            border-radius: 40px;
            padding: 4px 12px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #ffecb3;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: 6px;
            backdrop-filter: blur(4px);
        }
        .manual-launch-btn:hover {
            background: rgba(255,200,100,0.45);
            color: white;
            transform: scale(1.02);
        }

        /*聊天面板*/
        .assistant-panel {
            position: fixed;
            left: 20px;
            bottom: 78px;
            width: min(360px, calc(100vw - 32px));
            height: 460px;
            display: flex;
            flex-direction: column;
            background: rgba(8, 18, 25, 0.9);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 215, 150, 0.28);
            border-radius: 28px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
            overflow: hidden;
            opacity: 0;
            transform: translateY(16px) scale(0.98);
            pointer-events: none;
            transition: opacity 0.22s ease, transform 0.22s ease;
            z-index: 165;
        }
        .assistant-panel.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        /*面板头部及相关元素*/
        .assistant-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            background: rgba(18, 36, 48, 0.78);
        }
        .assistant-header-main {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }
        .assistant-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid rgba(255,215,150,0.35);
            background: rgba(255,255,255,0.06);
        }
        .assistant-title {
            font-size: 1rem;
            font-weight: 700;
            color: #f6f3eb;
        }
        .assistant-subtitle {
            font-size: 0.75rem;
            color: rgba(235, 241, 245, 0.72);
            margin-top: 2px;
        }
        .assistant-close {
            border: none;
            background: rgba(255,255,255,0.08);
            color: #f8e7be;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1rem;
        }

        /*消息区域*/
        .assistant-messages {
            flex: 1;
            overflow-y: auto;
            padding: 14px 14px 6px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /*聊天气泡*/
        .assistant-message {
            max-width: 88%;
            padding: 10px 12px;
            border-radius: 16px;
            font-size: 0.88rem;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
            box-shadow: 0 4px 12px rgba(0,0,0,0.16);
        }
        .assistant-message.assistant {
            align-self: flex-start;
            background: rgba(44, 89, 112, 0.82);
            color: #eef6fb;
            border-bottom-left-radius: 6px;
        }
        .assistant-message.user {
            align-self: flex-end;
            background: rgba(255, 214, 140, 0.2);
            color: #fff2ca;
            border: 1px solid rgba(255, 214, 140, 0.22);
            border-bottom-right-radius: 6px;
        }
        .assistant-message.system {
            align-self: center;
            max-width: 100%;
            background: rgba(255,255,255,0.05);
            color: rgba(236, 240, 242, 0.76);
            text-align: center;
        }

        /*输入表单及相关元素*/
        .assistant-form {
            display: flex;
            gap: 10px;
            padding: 12px 14px 14px;
            border-top: 1px solid rgba(255,255,255,0.08);
            background: rgba(10, 18, 24, 0.82);
        }
        .assistant-input {
            flex: 1;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.06);
            color: #f4f5f6;
            border-radius: 16px;
            padding: 10px 12px;
            font-size: 0.86rem;
            outline: none;
        }
        .assistant-input::placeholder {
            color: rgba(230,236,240,0.45);
        }
        .assistant-send {
            border: none;
            border-radius: 16px;
            background: linear-gradient(135deg, #c98d2f, #f2bb58);
            color: #1e1a12;
            font-weight: 700;
            padding: 0 16px;
            cursor: pointer;
            min-width: 74px;
        }

        /*响应式适配,全局移动端样式覆盖（最后一段媒体查询）*/
        /*移动端*/
        @media (max-width: 680px) {
            .ai-agent-status { bottom: 12px; left: 12px; padding: 4px 12px; gap: 6px; font-size: 0.65rem; }
            .manual-launch-btn { padding: 2px 10px; font-size: 0.6rem; }
            .assistant-panel { left: 12px; bottom: 66px; width: calc(100vw - 24px); height: 56vh; }
            .vinyl-player { top: 16px; right: 16px; padding: 6px; }
            .vinyl-disc { width: 52px; height: 52px; }
            .vinyl-label { width: 24px; height: 24px; font-size: 12px; }
        }

        /*大屏*/
        @media (min-width: 1400px) {
            .ai-agent-status { bottom: 28px; left: 28px; padding: 8px 20px; gap: 12px; font-size: 0.85rem; }
            .manual-launch-btn { padding: 5px 16px; font-size: 0.8rem; }
            .assistant-panel { left: 28px; bottom: 92px; }
        }

        /*临时提示 .music-toast 与动画状态提示*/
        .music-toast {
            position: fixed;
            top: 100px;
            right: 30px;
            background: rgba(0,0,0,0.65);
            backdrop-filter: blur(12px);
            padding: 8px 18px;
            border-radius: 40px;
            font-size: 0.8rem;
            color: #ffecb3;
            z-index: 160;
            pointer-events: none; /*使提示不干扰点击*/
            animation: fadeOutUp 2.8s forwards;
            border-left: 3px solid #ffd966;
            font-weight: 500;
            box-shadow: 0 4px 14px rgba(0,0,0,0.4);
            white-space: nowrap; /*确保单行显示*/
        }

       /*fadeOUtUp动画*/
        @keyframes fadeOutUp {
            0% { opacity: 1; transform: translateY(0); }
            70% { opacity: 1; transform: translateY(-4px); }
            100% { opacity: 0; transform: translateY(-18px); visibility: hidden; }
        }

        /*其他全局动画与焦点样式*/
        /*fadeInUp动画*/
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /*bounce动画*/
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(8px); }
        }

        /*移动端自适应 按钮由双列变为单列*/
        @media (max-width: 680px) {
            .content { padding: 1.5rem; }
            .description { font-size: 0.9rem; padding: 0.8rem 1rem; }
            .btn-group { gap: 2rem; flex-direction: column; align-items: center; }
            .btn-group-left { gap: 1.5rem; align-items: center; }
            .btn-group-right { gap: 1.5rem; align-items: center; width: 100%; }
            .btn-group-right .btn { min-width: 200px; }
            .btn { padding: 0.85rem 2rem; font-size: 1.2rem; min-width: 180px; }
            .music-toast { top: 90px; right: 20px; white-space: nowrap; font-size: 0.7rem; padding: 5px 12px; }
        }
        .btn:focus-visible { outline: 3px solid #ffd966; outline-offset: 4px; }

        /* ====== 移动端增强适配 ====== */
        /* 小手机优化 (≤480px) */
        @media (max-width: 480px) {
            /* 主内容区域 */
            .content { padding: 1rem; }
            .subtitle { font-size: 0.85rem; padding: 0.4rem 1.2rem; }
            .description { 
                font-size: 0.8rem; 
                padding: 0.6rem 0.8rem; 
                line-height: 1.5;
            }
            
            /* 按钮优化 - 确保触控区域最小44px */
            .btn { 
                padding: 0.9rem 1.8rem; 
                font-size: 1.1rem; 
                min-width: 160px;
                min-height: 44px;
            }
            .btn-group { gap: 1.2rem; }
            .btn-group-left, .btn-group-right { gap: 1rem; }
            
            /* 唱片控件 */
            .vinyl-player { top: 12px; right: 12px; padding: 4px; }
            .vinyl-disc { width: 44px; height: 44px; }
            .vinyl-label { width: 20px; height: 20px; font-size: 10px; }
            
            /* AI助手状态条 */
            .ai-agent-status { 
                bottom: 8px; 
                left: 8px; 
                padding: 3px 8px; 
                gap: 4px; 
                font-size: 0.6rem; 
            }
            .status-dot { width: 8px; height: 8px; }
            .manual-launch-btn { padding: 2px 8px; font-size: 0.55rem; }
            
            /* 聊天面板 */
            .assistant-panel { 
                left: 8px; 
                bottom: 58px; 
                width: calc(100vw - 16px); 
                height: 50vh; 
            }
            .assistant-avatar { width: 40px; height: 40px; }
            .assistant-title { font-size: 0.9rem; }
            .assistant-subtitle { font-size: 0.65rem; }
            .assistant-close { width: 28px; height: 28px; font-size: 0.85rem; }
            .assistant-message { padding: 8px 10px; font-size: 0.8rem; }
            .assistant-input { padding: 8px 10px; font-size: 0.8rem; }
            .assistant-send { padding: 0 12px; min-width: 64px; }
            
            /* 音乐提示 */
            .music-toast { top: 75px; right: 12px; font-size: 0.6rem; padding: 4px 10px; }
            
            /* 画廊区域 */
            .gallery-section { padding: 3rem 1rem 3rem; }
            .gallery-subtle { font-size: 0.95rem; padding: 0.3rem 1rem; }
            .cards-wrapper { gap: 0.8rem; }
            .spirit-card { width: 80px; }
            .circle-frame { width: 70px; height: 70px; }
            .character-info { font-size: 0.65rem; }
            .text-box { font-size: 0.55rem; min-height: 2.5rem; padding: 0.4rem 0.3rem; }
            .nav-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
            .arrow-left { left: -2px; }
            .arrow-right { right: -2px; }
            
            /* 胶片区域 */
            .film-gallery-section { padding: 2rem 1rem 4rem; }
            .film-header { font-size: 1.1rem; margin-bottom: 1rem; }
            .film-item { width: 120px; padding: 0.8rem 0.5rem; }
            .film-item img { max-height: 100px; }
            .film-caption { font-size: 0.8rem; padding: 3px 8px; }
            .track { margin-bottom: 1.5rem; }
            .film-rail { gap: 0.8rem; padding: 0.8rem 1rem; }
            
            /* 滚动提示 */
            .scroll-hint { font-size: 0.7rem; bottom: 80px; }
        }

        /* 超小屏幕 (≤360px) */
        @media (max-width: 360px) {
            .btn { 
                min-width: 140px; 
                font-size: 1rem; 
                padding: 0.8rem 1.4rem;
            }
            .subtitle { font-size: 0.75rem; }
            .description { font-size: 0.75rem; }
            .spirit-card { width: 70px; }
            .circle-frame { width: 60px; height: 60px; }
            .character-info { font-size: 0.55rem; }
            .text-box { font-size: 0.5rem; }
            .film-item { width: 100px; }
        }

        /* 横屏模式优化 */
        @media (max-height: 500px) and (orientation: landscape) {
            .content { padding: 0.8rem; }
            .title { font-size: 2rem; }
            .subtitle { font-size: 0.8rem; }
            .description { display: none; }
            .btn-group { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
            .btn-group-left, .btn-group-right { flex-direction: row; gap: 0.8rem; }
            .btn { min-width: 100px; padding: 0.6rem 1.2rem; font-size: 0.9rem; }
            .vinyl-player { top: 8px; right: 8px; }
            .vinyl-disc { width: 40px; height: 40px; }
            .ai-agent-status { bottom: 60px; font-size: 0.55rem; }
            .scroll-hint { display: none; }
        }

        /* 安全区域适配（iPhone刘海屏等） */
        @supports (padding: env(safe-area-inset-bottom)) {
            .ai-agent-status {
                bottom: calc(12px + env(safe-area-inset-bottom));
            }
            .vinyl-player {
                top: calc(16px + env(safe-area-inset-top));
                right: calc(16px + env(safe-area-inset-right));
            }
            .assistant-panel {
                bottom: calc(66px + env(safe-area-inset-bottom));
            }
        }
        


        /* ======================================= 灵语画廊样式（第一页内容） ========================================== */
        /*容器样式*/
        .gallery-section {
            position: relative;
            min-height: 100vh;
            width: 100%;
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 5rem 2rem 5rem;
            z-index: 5;
            overflow-x: hidden;
        }
        .gallery-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(3px);
            z-index: -1;
            pointer-events: none;
        }
        
        /*轮播容器*/
        .carousel-container {
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        /*卡片包装*/
        .cards-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 2.5rem;
            flex-wrap: nowrap;
            transition: all 0.3s ease;
            margin: 1.5rem 0 2rem;
            padding: 1rem 0.5rem;
        }
        
        /*单张卡片*/
        .spirit-card {
            flex: 0 0 auto;
            width: 160px;
            transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            will-change: transform, opacity;
        }
        
        /*圆形头像框与图片*/
        .circle-frame {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            border: 3px solid #f5b042;
            box-shadow: 0 0 8px rgba(245, 176, 66, 0.5);
            background: rgba(0,0,0,0.4);
            overflow: hidden;
            transition: all 0.3s ease;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #0f2128;
        }
        
        .circle-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s;
        }
        
        /*文字信息*/
        .character-info {
            background: transparent;
            text-align: center;
            font-size: 1rem;
            font-weight: 500;
            color: #fff0cc;
            letter-spacing: 0.5px;
            backdrop-filter: blur(2px);
            width: 100%;
            padding: 0.3rem 0.2rem 0.2rem;
            line-height: 1.3;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            margin-bottom: 0.3rem;
        }
        
        .text-box {
            background: transparent;
            border-radius: 20px;
            padding: 0.6rem 0.6rem;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 500;
            color: #fffbe6;
            backdrop-filter: blur(2px);
            width: 100%;
            line-height: 1.4;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            min-height: 4rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /*卡片状态修饰符*/
        .spirit-card.center-card {
            transform: scale(1.1);
            margin: 0 0.5rem;
        }
        
        .center-card .circle-frame {
            border-width: 4px;
            border-color: #ffd966;
            box-shadow: 0 0 25px 5px rgba(255, 200, 80, 0.85), 0 0 12px #ffbc3c;
        }
        
        .spirit-card.edge-card {
            opacity: 0.55;
        }
        
        /*导航箭头*/
        .nav-arrow {
            position: absolute;
            top: 45%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(8px);
            border: 1px solid #f5b042;
            color: #ffdd99;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 2rem;
            font-weight: bold;
            transition: all 0.2s ease;
            z-index: 20;
            user-select: none;
        }
        
        .nav-arrow:hover {
            background: rgba(245, 176, 66, 0.7);
            color: #1a1a1a;
            transform: translateY(-50%) scale(1.05);
        }
        
        .arrow-left { left: -20px; }
        .arrow-right { right: -20px; }
        
        /*画廊响应式适配*/
        @media (max-width: 880px) {
            .cards-wrapper { gap: 1.2rem; }
            .spirit-card { width: 120px; }
            .circle-frame { width: 110px; height: 110px; }
            .character-info { font-size: 0.9rem; }
            .text-box { font-size: 0.7rem; padding: 0.5rem 0.3rem; min-height: 3.5rem; }
            .nav-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
            .arrow-left { left: -5px; }
            .arrow-right { right: -5px; }
        }
        @media (max-width: 680px) {
            .spirit-card { width: 95px; }
            .circle-frame { width: 85px; height: 85px; }
            .character-info { font-size: 0.75rem; }
            .text-box { font-size: 0.6rem; min-height: 3rem; }
        }

        /*画廊副标题*/
        .gallery-subtle {
            font-size: 1.2rem;
            letter-spacing: 3px;
            margin-bottom: 1.2rem;
            color: #ffecb3;
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(6px);
            padding: 0.4rem 1.5rem;
            border-radius: 60px;
            display: inline-block;
        }
        
        /* ====== 容器允许溢出显示视频 ====== */
       /*视频默认状态*/
        .carousel-container {
    position: relative;
        }
        /*当视频被打开时*/
        .carousel-container.video-open {
            overflow: visible !important;
        }

        /* ====== 视频弹窗 ====== */
        /*视频弹窗容器*/
        .video-popup {
            position: absolute;
            width: min(82vw, 920px);
            z-index: 200;
            padding: 22px 22px 18px;
            background: rgba(12, 16, 28, 0.96);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            box-shadow:
                0 20px 70px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(100, 160, 255, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            transform-origin: var(--origin-x, 50%) top;
            opacity: 0;
            clip-path: inset(0 35% 100% 35% round 18px);
            filter: blur(6px);
            transition:
                opacity   0.45s cubic-bezier(0.22, 1, 0.36, 1),
                clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                filter    0.4s  ease;
        }

        /* 三角箭头指向头像 */
        .video-popup::before {
            content: '';
            position: absolute;
            left: var(--arrow-left, 50%);
            top: -13px;
            transform: translateX(-50%);
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-bottom: 14px solid rgba(12, 16, 28, 0.96);
            filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.15));
            opacity: 0;
            transition: opacity 0.3s ease 0.2s;
            z-index: 1;
        }

        /*展开状态*/
        .video-popup.popup-active {
            opacity: 1;
            clip-path: inset(0 0 0 0 round 18px);
            filter: blur(0);
        }
        .video-popup.popup-active::before { opacity: 1; }

        /*关闭状态*/
        .video-popup.popup-closing {
            opacity: 0;
            clip-path: inset(0 40% 100% 40% round 18px);
            filter: blur(8px);
            transition:
                opacity   0.3s cubic-bezier(0.55, 0, 1, 0.45),
                clip-path 0.35s cubic-bezier(0.55, 0, 1, 0.45),
                filter    0.25s ease;
        }
        .video-popup.popup-closing::before {
            opacity: 0;
            transition: opacity 0.15s ease;
        }

        /* 视频标题 */
        .video-popup .video-title {
            text-align: center;
            color: rgba(255, 255, 255, 0.85);
            font-size: 15px;
            font-weight: 500;
            letter-spacing: 2px;
            margin-bottom: 14px;
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.35s ease 0.25s, transform 0.35s ease 0.25s;
        }
        .video-popup.popup-active .video-title {
            opacity: 1;
            transform: translateY(0);
        }

        /* 视频元素 */
        .video-popup video {
            display: block;
            width: 100%;
            max-height: 55vh;
            border-radius: 12px;
            background: #000;
            object-fit: contain;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
            opacity: 0;
            transform: scale(0.92) translateY(10px);
            transition:
                opacity   0.4s ease 0.18s,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
        }
        .video-popup.popup-active video {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
        .video-popup.popup-closing video {
            opacity: 0;
            transform: scale(0.9) translateY(8px);
            transition: all 0.2s ease;
        }

        /* 关闭按钮 */
        .video-popup .close-video {
            position: absolute;
            top: 10px; right: 12px;
            width: 36px; height: 36px;
            font-size: 18px;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            z-index: 210;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            user-select: none;
            opacity: 0;
            transform: rotate(-120deg) scale(0);
            transition:
                opacity   0.3s ease 0.3s,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
                background 0.2s ease,
                color 0.2s ease;
        }
        .video-popup.popup-active .close-video {
            opacity: 1;
            transform: rotate(0deg) scale(1);
        }
        .video-popup.popup-closing .close-video {
            opacity: 0;
            transform: rotate(60deg) scale(0);
            transition: all 0.15s ease;
        }
        .video-popup .close-video:hover {
            background: rgba(255, 60, 60, 0.7);
            color: #fff;
            transform: rotate(90deg) scale(1.1);
            transition: all 0.25s ease;
        }

        /* 错误提示 */
        .video-popup .video-error-tip {
            color: #ffcc00;
            margin-top: 12px;
            font-size: 13px;
            text-align: center;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.35s ease 0.35s, transform 0.35s ease 0.35s;
        }
        .video-popup.popup-active .video-error-tip[style*="block"] {
            opacity: 1;
            transform: translateY(0);
        }




        /* ================================== 双轨胶片区域 (第三页)=============================== */
        /*容器与遮罩*/
        .film-gallery-section {
            position: relative;
            min-height: 100vh;
            width: 100%;
            background: transparent;
            padding: 4rem 2rem 6rem;
            z-index: 5;
            overflow: hidden;
        }
        .film-gallery-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(2px);
            z-index: -1;
            pointer-events: none;
        }

        /*胶片头部(主标题+分割线)*/
        .film-header {
            text-align: center;
            margin-bottom: 3rem;
            color: #fff3e0;
            font-size: 1.8rem;
            font-weight: 500;
            letter-spacing: 4px;
            text-shadow: 0 2px 12px rgba(0,0,0,0.5);
        }
        .film-header p {
            font-size: 0.9rem;
            opacity: 0.85;
        }
        
        /*轨道与滚动容器*/
        .track {
            position: relative;
            width: 100%;
            overflow-x: hidden;
            margin-bottom: 4rem;
        }
        .track:last-child {
            margin-bottom: 0;
        }
        .track-title {
            text-align: center;
            font-size: 0.9rem;
            color: #ffecb3;
            letter-spacing: 2px;
            margin-bottom: 0.8rem;
            opacity: 0.7;
        }
        .film-scroll {
            position: relative;
            width: 100%;
            overflow-x: hidden;
        }
        .film-rail {
            display: flex;
            gap: 2rem;
            padding: 1.2rem 3rem;
            will-change: transform;
            width: max-content;
        }

        /*上下倾斜的效果样式*/
        .track-up .film-rail {
            transform: rotate(5deg);
        }
        .track-down .film-rail {
            transform: rotate(-5deg);
        }

        /*胶片样式*/
        .film-item {
            flex: 0 0 auto;
            width: 240px;
            background: rgba(30, 30, 45, 0.55);
            backdrop-filter: blur(12px);
            border-radius: 28px;
            padding: 1rem 0.8rem;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 245, 200, 0.5), 0 0 0 4px rgba(200, 200, 220, 0.25);
            transition: all 0.25s ease;
            text-align: center;
            border: 1px solid rgba(255, 250, 210, 0.6);
        }
        .film-item:hover {
            transform: scale(1.02);
            background: rgba(50, 50, 70, 0.7);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 235, 150, 0.9);
        }
        .track-up .film-item {
            transform: rotate(-5deg);
        }
        .track-down .film-item {
            transform: rotate(5deg);
        }
        .film-item img {
            width: 100%;
            height: auto;
            max-height: 220px;
            object-fit: contain;
            border-radius: 20px;
            display: block;
            margin-bottom: 12px;
            background: rgba(0,0,0,0.25);
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .film-caption {
            font-size: 1rem;
            font-weight: 600;
            color: #fef5e0;
            background: rgba(0,0,0,0.45);
            display: inline-block;
            padding: 5px 12px;
            border-radius: 60px;
            backdrop-filter: blur(4px);
        }

        /*胶片响应式*/
        @media (max-width: 780px) {
            .film-item { width: 180px; }
            .film-item img { max-height: 160px; }
            .film-rail { gap: 1rem; }
            .film-header { font-size: 1.3rem; margin-bottom: 1.5rem; }
            .track { margin-bottom: 2.5rem; }
        }
        @media (max-width: 560px) {
            .film-item { width: 150px; }
            .film-item img { max-height: 130px; }
        }

        /*画廊覆盖规则（针对画廊内卡片的特殊尺寸）*/
        .gallery-section .circle-frame {
            width: 160px;
            height: 160px;
        }
        .gallery-section .character-info {
            font-size: 1.2rem;
        }
        .gallery-section .text-box {
            font-size: 1rem;
        }
        .gallery-section .spirit-card {
            width: 180px;
        }
        .gallery-section .spirit-card.center-card {
            transform: scale(1.05);
        }

        /*卡片动画类（用于视频弹出时的效果）*/
        .spirit-card.active-up {
            transform: translateY(-10px);
        }
        .spirit-card.active-up.center-card {
            transform: translateY(-10px) scale(1.05);
        }
        .spirit-card.move-left {
            transform: translateX(-50px);
        }
        .spirit-card.move-left.center-card {
            transform: translateX(-50px) scale(1.05);
        }
        .spirit-card.move-right {
            transform: translateX(50px);
        }
        .spirit-card.move-right.center-card {
            transform: translateX(50px) scale(1.05);
        }
        .hidden-text {
            display: none;
        }
       

        /* ====== 卡片动画状态 ====== */
        .spirit-card {
            transition:
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease,
                filter 0.4s ease;
        }
        .spirit-card.active-up {
            transform: translateY(-6px) scale(1.03);
            opacity: 1;
            filter: brightness(1.1) drop-shadow(0 4px 18px rgba(100, 180, 255, 0.15));
            z-index: 50;
        }
        .spirit-card.move-left {
            transform: translateX(-40px) scale(0.88);
            opacity: 0.2;
            filter: blur(3px) brightness(0.6);
        }
        .spirit-card.move-right {
            transform: translateX(40px) scale(0.88);
            opacity: 0.2;
            filter: blur(3px) brightness(0.6);
        }
        .character-info,
        .text-box {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .character-info.hidden-text,
        .text-box.hidden-text {
            opacity: 0;
            transform: translateY(6px);
        }