/*#region  全局基础设置 ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 点击导航实现平滑滚动 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #080808;
  color: #ffffff;
}


/* 单独建立一个固定背景层。 无论页面滑到视频还是剧照区，背景图都不会移动。*/
body::before {

    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

}
/* #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: 300;
    letter-spacing: 1px;
    margin-left: 30px;
    transition: color 0.3s ease;
}
    .nav-links a:hover, 
    .nav-links a.active {
    color: #ffffff;
}

/* #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;
}

.menu-toggle {
    display: none;
}
/* #endregion */

/* #endregion */




/* #region  顶部悬浮胶囊导航 ================= */
.navbar-wrapper {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.glass-nav {
  display: flex;
  gap: 24px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-nav a {
  color: rgba(255, 255, 255, 0.155);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.glass-nav a:hover {
  color: #ffffff;
}
/* #endregion */

/*#region  第一页   */
/*#region  第一页 HERO 全景大图 ================= */


.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  z-index: 2;
}

/* #endregion */

/* #region 核心：磨砂玻璃卡片 */
.glass-card {
  position: relative;
  z-index: 10;
  max-width: 460px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.00); /* 极低半透明背景 */
  backdrop-filter: blur(24px);            /* 模糊像素实现磨砂感 */
  -webkit-backdrop-filter: blur(24px);
  border: 0px solid rgba(255, 255, 255, 0.18); /* 微亮白边框 */
  border-radius: 28px;
  box-shadow: 110px 30px 60px rgba(0, 0, 0, 0.4);
}

/* 返回按钮固定到窗口后，保留它原来在卡片里占据的空间 */
.glass-card::after {
  content: "";
  display: block;
  height: 72px;
}

.card-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: #cbb842;
  margin-bottom: 12px;
  letter-spacing: .15em;
}

.card-title {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.card-title-zh,
.card-year {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.card-title-zh { margin-top: -2px; color: rgba(255, 255, 255, 0.52); font-size: 12px; }
.card-year { margin-top: 6px; margin-bottom: 12px; color: rgba(255, 255, 255, 0.42); font-size: 11px; }

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 20px;
}

/* #region章节小导航 */
.pill-tag {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill-tag:hover {
  background: rgba(255, 255, 255, 0.25);
}


.project-index {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;


}

.project-index a {
  
    display: grid;
    grid-template-columns: 20px 1fr;
    color: rgba(255,255,255,.32);
    font-size: 10px;
    letter-spacing: .13em;
    text-decoration: none;
    transition: color .3s ease;
}

.project-index a:hover,
.project-index a.is-active {
    color: #fff;
      background: rgba(255, 255, 255, 0.25);
}
/* #endregion */


/*  #region滚动提示 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 10;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255,255,255,.56);
    font-size: 9px;
    letter-spacing: .17em;
    text-decoration: none;
    text-transform: uppercase;
}
.scroll-line {
    width: 52px;
    height: 1px;
    overflow: hidden;
    background: rgba(255,255,255,.25);
}

.scroll-line::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% {
        transform: translateX(-100%);
    }

    55%,
    100% {
        transform: translateX(100%);
    }
}
/* #endregion */


/* 返回按键*/

.back-button {
    position: fixed;
    left: 92px;
    bottom: 92px;
    z-index: 90;
    display: inline-flex;
    margin-top: 0;
    align-items: center;
    gap: 8px;
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,.75);

    font-size: 10px;
    font-weight: 300;
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    animation: back-button-pulse 2.8s ease-in-out infinite;
    transition:
        color 250ms ease,
        transform 250ms ease;
}

.back-button:hover {
    color: #ffffff;
    animation-play-state: paused;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    transform: translateX(-3px);
}

@keyframes back-button-pulse {
    0%,
    100% {
        opacity: 0.48;
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 9px rgba(255, 255, 255, 0.38);
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-button {
        animation: none;
        opacity: 1;
    }
}

/* #endregion */

/* #region  通用内容板块样式 ================= */
.content-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 24px;
}

.section-header {
  margin-bottom: 40px;
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.section-num {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 6px;
}
.section-header h2.lang-zh {
  font-size: 40px;
  font-weight: 300;
}
.section-header h2.lang-en {
  font-size: 32px;
  font-weight: 700;
}

/* 内容模块滚动进入动画 */
.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(3px);
  transition:
    opacity 850ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 850ms ease;
  will-change: opacity, transform, filter;
}

.reveal-item.reveal-video {
  transform: translateY(28px) scale(0.975);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* #endregion */

/* #region 01 故事简介网格 */
.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.project-facts > div { min-width: 0; padding: 22px 20px 22px 0; }
.project-facts dt { margin-bottom: 9px; color: rgba(255,255,255,.4); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.project-facts dd { color: rgba(255,255,255,.88); font-size: 13px; font-weight: 400; line-height: 1.45; letter-spacing: .04em; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.8;
  font-size: 16px;
}
/* #endregion */

/* #endregion */

/*#region  第二页 视频容器*/
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-container .video-language-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* #endregion */

/*#region  第三页 */
/* #region 03 剧照画廊网格 */
.gallery-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 2.39 / 1;
  border-radius: 5px;
  overflow: hidden;
  border: px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}
/* #endregion */

/* #region 剧照悬浮磨砂动画 */
.gallery-hover-glass {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-hover-glass {
  opacity: 1;
}
/* #endregion */




/* #region 画廊滚动进入动画 !!!!!!!!!!!!!!!!!!!!*/

/* 初始状态：还没有进入屏幕 */
.gallery-item {

    opacity: 0;

    transform: translateY(45px);

    transition:

        opacity 900ms ease,

        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);

}

/* 滚动进入屏幕后 */
.gallery-item.is-visible {

    opacity: 1;

    transform: translateY(0);

}

/* 每张图片本身增加轻微缩放 */
.gallery-item img {

    transform: scale(1.035);

    transition:

        transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),

        filter 400ms ease;

}

.gallery-item.is-visible img {

    transform: scale(1);

}

/* 轮播图片切换动画 */
.gallery-slider .gallery-slide {

    display: none;

    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: zoom-in;

}

.gallery-slider .gallery-slide.is-active {

    display: block;

    animation: gallerySlideEnter 700ms

        cubic-bezier(0.22, 1, 0.36, 1);

}

@keyframes gallerySlideEnter {

    from {

        opacity: 0;

        transform: scale(1.025);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}

/* 尊重系统“减少动态效果”设置 */

@media (prefers-reduced-motion: reduce) {

    .gallery-item,

    .gallery-item img,

    .gallery-slider .gallery-slide.is-active,

    .reveal-item {

        animation: none;

        transition: none;

        transform: none;

        opacity: 1;

        filter: none;

    }

}

/* #endregion */




/* #region 页面内独立图片进行轮播 */

.gallery-slider {
    position: relative;
}

.gallery-slider-images {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;

}

.gallery-slider .gallery-slide {
    display: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;

}

.gallery-slider .gallery-slide.is-active {
    display: block;
}

.gallery-slider .gallery-slide img {
    display: block;
    width: 100%;
    height: auto;
}


/*左右箭头*/ 
.gallery-slider-prev,
.gallery-slider-next {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 42px;
    height: 60px;

    padding: 0;
    border: 0;

    background: rgba(0, 0, 0, 0.15);
    color: #fff;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);
    opacity: 0;

    transition:
        opacity 250ms ease,
        background 250ms ease;
}

.gallery-slider-prev {
    left: 0;
}

.gallery-slider-next {
    right: 0;
}

.gallery-slider:hover .gallery-slider-prev,
.gallery-slider:hover .gallery-slider-next {
    opacity: 1;
}

.gallery-slider-prev:hover,
.gallery-slider-next:hover {
    background: rgba(0, 0, 0, 0.55);
}

.gallery-slider-count {
    position: absolute;
    right: 12px;
    bottom: 30px;
    z-index: 10;

    padding: 5px 8px;

    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.82);

    font-size: 9px;
    letter-spacing: 0.12em;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}





/* 手机端箭头常驻显示 */
@media (max-width: 850px) {

    .gallery-slider-prev,
    .gallery-slider-next {
        width: 36px;
        height: 52px;
        font-size: 28px;
        opacity: 1;
    }

}

/* #endregion */

/* #endregion */


/* #region 图片灯箱 */

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    background: rgba(0, 0, 0, 0.96);
    color: #fff;
    overflow: hidden;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.96);
}

.lightbox figure {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 0;
}

.lightbox img {
    display: block;
    max-width: 88vw;
    max-height: 84vh;
    object-fit: contain;
}

.lightbox figcaption {
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    z-index: 10;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 24px;
    font-size: 32px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* #endregion */


/* #region 语言切换  */
/* ==========================================================================
5. 中英文语言切换显隐控制逻辑
========================================================================== */
    /* 块级/段落元素控制 */
    .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) {
  .hero-section {
    padding: 24px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title {
    font-size: 32px;
  }

      /* #region 手机端导航 */
    .global-nav {
        min-height: 58px;
        padding: 10px 14px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        background: rgba(12, 12, 12, .38);
        border-bottom: 1px solid rgba(255,255,255,.08);
        backdrop-filter: blur(20px) saturate(125%);
        -webkit-backdrop-filter: blur(20px) saturate(125%);
    } 

    /* 手机端导航 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: 10px;
        letter-spacing: 1.2px;
        margin-left: 0;
    }
    
    /*导航文字*/
    .global-nav > .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 14px;
        display: flex;
        width: min(260px, calc(100vw - 28px));
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(12, 12, 12, .62);
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(0,0,0,.38);
        backdrop-filter: blur(22px) saturate(125%);
        -webkit-backdrop-filter: blur(22px) saturate(125%);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    }

    .global-nav > .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    :lang(zh-CN) .global-nav > .nav-links a,
    :lang(en) .global-nav > .nav-links a,
    .global-nav > .nav-links a {
        position: relative;
        display: block;
        margin: 0;
        padding: 13px 14px;
        font-size: 12px;
        font-weight: 300;
        border-radius: 9px;
        overflow: hidden;
        transition:
            color .3s ease,
            background-color .3s ease,
            padding-left .35s cubic-bezier(.2,.7,.2,1),
            letter-spacing .35s ease;
    }

    .global-nav > .nav-links a::after {
        content: '↗';
        position: absolute;
        top: 50%;
        right: 14px;
        color: rgba(255,255,255,.8);
        opacity: 0;
        transform: translate(-7px, -50%);
        transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1);
    }

    .global-nav > .nav-links a:hover,
    .global-nav > .nav-links a.active {
        padding-left: 20px;
        color: #fff;
        letter-spacing: 1.8px;
        background: rgba(255,255,255,.08);
        text-shadow: 0 0 14px rgba(255,255,255,.28);
    }

    .global-nav > .nav-links a:hover::after,
    .global-nav > .nav-links a.active::after {
        opacity: 1;
        transform: translate(0, -50%);
    }
   
      /* 语言按钮优化 */
        :lang(zh-CN) .lang-toggle,
        :lang(en) .lang-toggle {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 4px 10px;
        font-size: 10px;
    }

    .menu-toggle {
        position: relative;
        display: flex;
        width: 38px;
        height: 38px;
        margin-left: 8px;
        padding: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #fff;
        background: transparent;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 19px;
        height: 1px;
        background: currentColor;
        transform-origin: center;
        transition: transform .3s ease, opacity .25s ease;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    /* #endregion */

    
}/* #endregion */
