/* ==========================================================================
   1. 核心全局样式与变量
   ========================================================================== */
:root {
    --primary-color: rgb(222, 57, 39); /* 你的专属深红色 */
    --bg-dark: #080808;               /* 极简纯黑背景 */
    --bg-card: #121212;               /* 卡片深灰背景 */
    --text-light: #ffffff;            /* 主文字颜色 */
    --text-muted: #888888;            /* 辅助文字颜色 */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* 【设计师重点！】这就是控制“弹下去”灵魂的贝塞尔曲线 */
    /* cubic-bezier(起点控制点X, 起点控制点Y, 终点控制点X, 终点控制点Y) */
    /* 最后的 1.25 代表它会超过目标位置 25% 再狠狠弹回来，形成极佳的弹簧物理质感 */
    --bounce-easing: cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* 锁定浏览器原生滚动条，交给我们的舞台控制 */
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-primary:hover {
    background-color: #f74531;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(222, 57, 39, 0.4);
}

/* ==========================================================================
   2. 顶层固定导航栏（脱离主舞台，永远置顶）
   ========================================================================== */
header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-area img { height: 100px; width: auto; object-fit: contain; }
nav { display: flex; align-items: center; gap: 35px; }
nav a { font-size: 15px; font-weight: 500; letter-spacing: 1px; transition: color 0.3s; }
nav a:hover { color: var(--primary-color); }
.lang-switch { border: 1px solid rgba(255, 255, 255, 0.3); padding: 5px 12px; font-size: 13px; cursor: pointer; transition: all 0.3s; }
.lang-switch:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* ==========================================================================
   3. 全局双舞台容器（核心：实现一键物理下弹）
   ========================================================================== */
.stage-container {
    width: 100%;
    height: 100vh;
    position: relative;
    transform: translateY(0);
    /* 绑定我们顶部的弹性曲线，时间设定为 0.85秒 干净利落 */
    transition: transform 0.85s var(--bounce-easing); 
    will-change: transform;
}

/* 当激活这个状态时，整个网页大舞台向上平移一整屏，触发弹性落地 */
.stage-container.content-active {
    transform: translateY(-100vh);
}

/* ==========================================================================
   4. 舞台一：大图版块 (Hero Slider)
   ========================================================================== */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.slider-container { display: flex; width: 300%; height: 100%; transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); }
.slide { width: 100vw; height: 100%; position: relative; background-size: cover; background-position: center; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(8,8,8,0.85) 100%); }
.slide-content { position: absolute; bottom: 15%; left: 5%; z-index: 10; max-width: 600px; }
.slide-title { font-size: 48px; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.1); color: white; font-size: 24px; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 20; transition: all 0.3s; }
.slider-arrow:hover { background: var(--primary-color); border-color: var(--primary-color); }
.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

/* 引导设计师往下滚动的动态箭头提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    animation: pulseBounce 2s infinite;
}
.scroll-hint span { display: block; font-size: 20px; margin-top: 5px; color: var(--primary-color); }

/* ==========================================================================
   5. 舞台二：常规内容滚动区 (Main Content)
   ========================================================================== */
.main-content-scrollable {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 100vh; /* 紧贴在首屏正下方 */
    left: 0;
    overflow-y: auto; /* 允许这个版块内部进行常规的长网页滚动 */
    background-color: var(--bg-dark);
    scroll-behavior: smooth;
    padding-top: 40px;
}

/* --- 以下为板块视觉样式 --- */
.section-title { padding: 60px 4% 20px 4%; font-size: 28px; letter-spacing: 2px; text-transform: uppercase; border-left: 4px solid var(--primary-color); margin-left: 4%; margin-top: 20px; }
.collage-container { width: 92%; margin: 0 auto; height: 350px; position: relative; overflow: hidden; cursor: pointer; }
.collage-img { width: 100%; height: 100%; background-image: url('background-image3.jpg'); background-size: cover; background-position: center; transition: transform 0.5s ease; }
.collage-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(222, 57, 39, 0.1); display: flex; justify-content: center; align-items: center; transition: background 0.3s; }
.collage-container:hover .collage-img { transform: scale(1.03); }
.collage-container:hover .collage-overlay { background: rgba(0, 0, 0, 0.4); }
.collage-text { font-size: 24px; font-weight: 700; letter-spacing: 3px; border: 2px solid white; padding: 15px 40px; background: rgba(0,0,0,0.6); }

.upcoming-grid { width: 92%; margin: 0 auto 80px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.game-card { background-color: var(--bg-card); border-bottom: 3px solid transparent; transition: all 0.3s ease; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-10px); border-bottom-color: var(--primary-color); }
.card-img-wrapper { width: 100%; padding-top: 130%; position: relative; overflow: hidden; }
.card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.card-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.game-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.release-date { color: var(--primary-color); font-size: 14px; font-weight: 600; margin-bottom: 15px; text-transform: uppercase; }
.game-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

footer { background-color: #030303; padding: 60px 4% 30px 4%; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 15px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; }
.social-links { display: flex; gap: 20px; }
.social-icon { width: 45px; height: 45px; background: #161616; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 14px; font-weight: 600; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.05); }
.social-icon:hover { background-color: var(--primary-color); transform: scale(1.1); }
.copyright { text-align: center; color: #444444; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; }

/* 呼吸加跳动的引导动画 */
@keyframes pulseBounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
    40% { transform: translate(-50%, -8px); opacity: 1; }
    60% { transform: translate(-50%, -4px); opacity: 0.8; }
}

@media (max-width: 768px) {
    nav { display: none; }
    .slide-title { font-size: 32px; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
}
/* 文字 LOGO 的基础样式 (桌面端显示) */
.desktop-text-logo {
    color: #ffffff;          /* 文字颜色为白色 */
    font-size: 20px;         /* 字体大小，您可以根据喜好调整 */
    font-weight: 700;        /* 字体加粗 */
    margin-left: 12px;       /* 距离左边图片 LOGO 的间距 */
    letter-spacing: 1px;     /* 字间距，增加一点显得更高级 */
    font-family: Arial, sans-serif; /* 确保字体整洁 */
}

/* 移动端媒体查询：当屏幕宽度小于或等于 768px 时，隐藏该文字 */
@media screen and (max-width: 768px) {
    .desktop-text-logo {
        display: none !important; /* 强制隐藏 */
    }
}