/* #region 基础配置 */
/* ==========================================================================
   1. 全局电影感基础配置 & Cargo 核心适配
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0px;
    
}

html {
    /* 去掉 height: 100%，让 html 跟随内容自由延展 */
    min-height: 100%; 
}
body {
    background-color: #121214; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    
    /* ✨ 核心修改：利用 Flex 布局的自适应能力 */
    display: flex;
    flex-direction: column; 
    
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}



/* 背景 */
.project-backdrop {
    position: fixed;

    inset: 1;

    z-index: 0;

    background-image:
    url("https://cdn.liuxinzhu.info/images/Defocus-Aberration/Defocus-7.jpg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;
}

/* #endregion */



/* #region 电脑端-导航栏 */
/* 电脑端-导航栏 */
    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 80px;
        z-index: 100;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.205) 0%, rgba(0, 0, 0, 0.198) 100%);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    /* 电脑端-导航栏LOGO */
    .nav-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    }
    :lang(zh-CN).nav-logo a {
    letter-spacing: 1px;
    }
    :lang(en).nav-logo a {
    letter-spacing: 2px;
    }

    
   /* 电脑端-导航栏-文字&装饰 */
    .nav-links{
    margin-left: auto;
    }
    .nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-left: 30px;
    transition: color 0.3s ease;
}
    .nav-links a:hover, 
    .nav-links a.active {
    color: #ffffff;
}

/* #endregion */



/* #region 语言切换按钮 */
/* 语言切换按钮核心样式 */ 
.lang-toggle { 
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 4px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    /*按钮多圆*/
    border-radius:900px;
    transition: all 0.3s ease;
    margin-left: 15px;
    vertical-align: middle;
    }
    .lang-toggle:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
/* #endregion */



/* #region Reel 页面电影质感样式 */
/* ==========================================================================
   Reel 页面电影质感样式
   ========================================================================== */

.reel-main-content {
    min-height: calc(100vh - 160px); /* 减去 header 与 footer 高度防止空底 */
    background-color: #12121400; /* 延续暗黑电影感调性 */
    color: #ffffff;
    padding: 80px 20px 40px 20px;
    box-sizing: border-box;
}

.reel-container {
    max-width: 1000px; /* 限制视频最大显示宽度，视觉更聚焦 */
    margin: 0 auto;
}

/* 标题区 */
.reel-header {
    margin-bottom: 30px;
}

.reel-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.reel-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.5px;
}

/* 🎬 核心：16:9 黄金比例自适应视频容器 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 锁定 16:9 比例 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); /* 电影感四周柔和暗影 */
    border-radius: 2px;
    margin-bottom: 25px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.reel-video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.reel-lazy-player iframe {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.reel-lazy-player.is-loaded iframe {
    opacity: 1;
}

.reel-lazy-player.is-loaded .reel-video-cover {
    opacity: 0;
    pointer-events: none;
}

/* 底部文字信息说明 */
.reel-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.reel-credits p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.reel-credits strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}
/* #endregion */



/* #region 语言切换核心逻辑样式 */
/* ==========================================================================
   公共中英文控制
   ========================================================================== */
    .lang-zh { display: block; }
    .lang-en { display: none; }   
    body.en-mode .lang-zh { display: none !important; }   
    body.en-mode .lang-en { display: block; }   

    /* 行内元素控制 */
    span.lang-zh { display: inline; }
    span.lang-en { display: none; }
    body.en-mode span.lang-zh { display: none !important; }
    body.en-mode span.lang-en { display: inline; 
}
/* #endregion */



/* #region 手机端 */
/* ==========================================================================
   移动端响应式微调
   ========================================================================== */
@media (max-width: 768px) {

/*导航整体*/
    .global-nav {
        padding: 10px 10px 10px 6px; 
        flex-wrap: wrap; /* 空间不足时自动换行，防组件溢出屏幕 */
        justify-content: space-between;
        align-items: center; 
    } 

    /* 手机端导航 LOGO 微调 */
        .nav-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
        }   
        :lang(zh-CN) .nav-logo a,
        :lang(en) .nav-logo a { 
        font-size: 8px; 
        letter-spacing: 1px; 
        margin-left: 0px; 
    }

    /*导航文字*/
        .nav-links { 
        display: flex !important; /* 强制保持原导航显示状态 */
        flex-wrap: wrap; 
        align-items: center;
        text-align: justify;
        }
            :lang(zh-CN) .nav-links a {
        font-size: 13px; 
        margin-left: 16px;
        }
            :lang(en) .nav-links a {
        font-size: 12px; 
        margin-left: 8px;   
    }

      /* 语言按钮优化 */
        :lang(zh-CN) .lang-toggle {
        margin-left: 10px; 
        padding: 3px 10px; 
        font-size: 10px;
        }
        :lang(en) .lang-toggle {
        margin-left: 10px; 
        padding: 3px 8px; 
        font-size: 9px;
    }
/* 主页 */
    .reel-main-content {
        padding: 80px 15px 50px 15px;
    }
    .reel-header h1 {
        font-size: 15px;
    }
    .reel-subtitle {
        font-size: 11px;
    }
    

}
/* #endregion */
