/* 1. 全局系统底层与十字准星 */
html, body {
    margin: 0; padding: 0; height: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', 'PingFang SC', 'Microsoft YaHei', monospace;
    background-color: #eef2ff;
    color: #5136ff;
    overflow: hidden;
    cursor: crosshair; /* 全局十字准星光标 */
    -webkit-font-smoothing: antialiased;
}

.ppt-container {
    height: 100%;
    scroll-snap-type: y mandatory; 
    overflow-y: scroll;
}

.page {
    height: 100vh; width: 100%;
    scroll-snap-align: start; 
    position: relative;
    display: flex;
    padding: 8vw;
    box-sizing: border-box;
}

/* 2. 背景坐标网格 (视差优化版) */
.grid-overlay {
    position: fixed;
    top: -15%; left: -5%; /* 溢出边缘防止位移穿帮 */
    width: 110%; height: 130%;
    background-image: 
        linear-gradient(rgba(81, 54, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(81, 54, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    transition: transform 0.1s linear; /* 保持滚动时的即时响应 */
}

/* 3. 通用 UI 窗体组件 */
.fui-box {
    border: 1px solid #5136ff;
    background-color: rgba(255, 255, 255, 0.92);
    padding: 30px;
    position: relative;
    box-shadow: 15px 15px 0 rgba(81, 54, 255, 0.05);
    z-index: 10;
    cursor: default; /* 窗口区域恢复默认鼠标 */
}

.label {
    position: absolute;
    top: -12px; left: 15px;
    background: #eef2ff;
    padding: 0 10px;
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* --- 页面位置排布 --- */

/* 第一页：大标题 (左上) */
#page1 { justify-content: flex-start; align-items: flex-start; }
.hero-content { border-left: 4px solid #5136ff; padding-left: 30px; margin-top: 2vh; cursor: default; }
.logo { 
    font-size: clamp(3.5rem, 12vw, 9.5rem); 
    font-weight: 900; font-style: italic; 
    margin: 0; letter-spacing: -5px;
    text-shadow: 6px 6px 0 rgba(81, 54, 255, 0.15);
}
.tagline { letter-spacing: 5px; font-weight: bold; margin: 10px 0; font-size: 0.85rem; }
.sys-info { font-size: 0.65rem; opacity: 0.6; }

/* 第二页：宣言 (右中) */
#page2 { justify-content: flex-end; align-items: center; }
.window-manifesto { width: clamp(340px, 45vw, 600px); transform: rotate(1deg); }
.section-title { 
    font-size: clamp(2rem, 5vw, 4rem); 
    background: #5136ff; color: #fff; 
    display: inline-block; padding: 10px 25px; 
    margin: 0 0 25px 0;
}
.highlight { color: #5136ff; font-weight: 900; font-size: 1.1rem; margin-bottom: 15px; }
.text-block p { font-size: 0.95rem; line-height: 2; margin: 5px 0; }
.sys-divider { height: 1px; background: rgba(81, 54, 255, 0.2); margin: 25px 0; position: relative; }
.sys-divider::after { content: "[!]"; position: absolute; right: 0; top: -8px; background: #eef2ff; font-size: 0.6rem; padding: 0 5px; }
.sub-text { font-size: 0.7rem; letter-spacing: 3px; opacity: 0.5; }

/* 第三页：采样 (左下) */
#page3 { justify-content: flex-start; align-items: flex-end; }
.window-sampling { width: 380px; margin-bottom: 5vh; }
.sample-item { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(81, 54, 255, 0.1); font-size: 0.8rem; }
.sample-item.active { background: #5136ff; color: #fff; padding-left: 10px; margin-left: -10px; animation: flicker 0.4s infinite alternate; }
.sample-item .attr { font-weight: bold; }

/* 第四页：作品 (右下) */
#page4 { justify-content: flex-end; align-items: flex-end; }
.window-works { width: clamp(400px, 55vw, 650px); transform: rotate(-0.5deg); }
.render-placeholder {
    width: 100%; height: 200px; background: rgba(81, 54, 255, 0.03);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px dashed rgba(81, 54, 255, 0.2); margin-bottom: 25px; gap: 15px;
}
.loader { width: 40px; height: 2px; background: rgba(81, 54, 255, 0.1); position: relative; overflow: hidden; }
.loader::after { content: ""; position: absolute; left: -100%; width: 100%; height: 100%; background: #5136ff; animation: loading 2s infinite; }
.work-tags { display: flex; gap: 15px; margin: 20px 0; }
.work-tags span { border: 1px solid #5136ff; padding: 6px 15px; font-size: 0.7rem; font-weight: bold; }

/* 动画库 */
@keyframes flicker { 0% { opacity: 1; } 100% { opacity: 0.8; } }
@keyframes loading { 0% { left: -100%; } 100% { left: 100%; } }

/* 移动端适配：手机端关闭旋转与视差，确保流畅 */
@media (max-width: 768px) {
    .page { padding: 30px 15px; justify-content: center !important; align-items: center !important; }
    .fui-box { width: 95% !important; transform: none !important; }
    .logo { font-size: 4rem; }
    .grid-overlay { transition: none; }
}
