@font-face {
    font-family: 'HelveticaNow';
    src:
        url('../fonts/Helvetica.woff2') format('woff2'),
        url('../fonts/HELVETICA-BOLD.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 基础变量定义 */
:root {
  --px-to-vw: calc(100vw / 1920);
  --base-font-size: calc(1.5625rem);
  /* 字体变量 */
  --font-size-primary: clamp(16px, 1.3625rem, 2vw); /* 响应式字体 */
  --font-size-small: 1rem;
  /* 颜色 */
  --color-white: #fff;
  --color-gray: #7F7F7F;
  --color-black: #000;
  /* 字体家族 */
  --font-family-primary: 'HelveticaNow', Helvetica, Arial, sans-serif;
  --font-family-secondary: 'Helvetica', sans-serif;

}

/* 触摸设备检测 - 默认隐藏光标 */
@media (pointer: coarse) {
  html, * {
    cursor: auto !important;
    scroll-behavior: smooth;
  }
  .custom-cursor {
    display: none !important;
  }
}

html, * {
    cursor: none !important;
    scroll-behavior: smooth;
}

.custom-cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    background: white;
    animation: none;
    transform: translate(-50%, -50%);
    transition: 
        transform 0.15s ease-out,
        width 0.2s ease,
        height 0.2s ease;
}

@keyframes breath {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.custom-cursor.hover {
    animation: breath 1.5s infinite ease-in-out;
}

.custom-cursor.click {
    width: 35px;
    height: 35px;
}

body {
    background-color: var(--color-black);
    margin: 0;
    padding: 0 3%;
    color: var(--color-white);
    font-family: var(--font-family-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-size: var(--base-font-size);
}

.info-logo img{
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* ===== 导航 ===== */
.nav-container {
    width: 100%;
    height: clamp(60px, 5.2083vw, 100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 99999;
    cursor: default;
}

.nav-logo {
  flex: 0 0 auto;
  height: 2.5vw;
  min-height: 30px;
  width: 2.5vw;
  min-width: 30px;
  position: relative;
}

.logo-container {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-logo img {
  position: absolute;

  left: 0;
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.static-logo { opacity: 1; }
.animated-logo { opacity: 0; }

.nav-logo:hover .static-logo { opacity: 0; }
.nav-logo:hover .animated-logo { opacity: 1; }    

.nav-text {
    font-family: var(--font-family-primary);
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0;
    text-decoration: none;
}

.nav-works {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* 同时水平和垂直居中 */
}

.nav-info {
    position: absolute;
    right: 0; /* 与容器padding一致 */
    top: 50%;
    transform: translateY(-50%);
}

.nav-text:hover {
    opacity: 0.7;
    cursor: pointer;
}

/* 桌面Logo默认显示 */
.static-logo {
    display: block;
    height: 2.6vw;
    min-height: 24px;
}

/* 移动菜单按钮默认隐藏 */
.mobile-menu-btn {
    display: none; /* 默认隐藏 */
    height: 24px;
    width: auto;
    cursor: pointer;
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* 移动菜单容器 */
.mobile-works-nav::before {
    content: "";
    display: block;
    height: 0;
    opacity: 0;
    transition: 
        height 0.3s 0.1s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.1s ease;
}
.mobile-works-nav {
    position: relative; /* 改为 relative，让菜单挤开下方内容 */
    width: 100%;
    max-height: 0; /* 初始状态：完全收起 */
    overflow: hidden; /* 隐藏溢出内容 */
    background: var(--color-black);
    transition: 
        max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        padding-top 0.3s ease,
        padding-bottom 0.3s ease;
    z-index: 100;
}
.mobile-works-nav.active {
    max-height: 1000px; /* 足够大的值，确保所有内容可见 */
    padding-top: 20px; /* 可选：顶部内边距 */
    padding-bottom: 60px; /* 可选：底部内边距 */
}

.mobile-works-nav > ul {
    min-height: 0; 
    margin: 0;
    overflow: hidden;
}
.mobile-works-nav.active::before {
    height: 20px; /* 上padding */
    opacity: 1;
}
.mobile-nav-projects {
    list-style: none;
    margin: 0  ;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    transform: translateZ(0); /* GPU加速 */
    will-change: transform;
}
/* 点击菜单按钮时禁止页面滚动 */
body.menu-open {
    position: fixed;
    overflow: hidden;
    overflow-y: scroll !important;
}
.mobile-nav-projects li a {
     color: var(--color-gray);
    text-decoration: none;
    font-size: 1.4rem;
    transition: co3lor 0.3s ease;
    display: block;
}
.mobile-nav-projects li a:hover {
    color: var(--color-white);
}

/* ===== 作品区域 ===== */
.works-main {
  display: flex;
  width: 100%;
  padding-top: clamp(50px, 5.2083vw, 100px);
}

.works-nav {
  width: 21.6667vw;
  position: sticky;
  top: clamp(50px, 5.2083vw, 100px);
  height: calc(100vh - clamp(50px, 5.2083vw, 100px));
  display: flex;
  flex-direction: column;
}

.works-nav::-webkit-scrollbar {
    display: none;
}

.nav-preview {
    width: 100%;
}

.nav-thumbnail {
    width: 12.3958vw;
    height: 9.2708vw;
    border-radius: 0.2083vw;
    overflow: hidden;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease-in-out;
}

.nav-projects {
    list-style: none;
    padding: 0;
    margin-top: 5vw;
    display: flex;
    flex-direction: column;
    max-height: 20.3125vw;
    overflow-y: auto;
    position: sticky;

}

.nav-projects ul {
  height: 100%;          /* 必须有明确高度 */
  overflow-y: auto;      /* 启用垂直滚动 */
  overscroll-behavior: contain; /* 阻止滚动连锁 */
  scroll-behavior: smooth;
}

.nav-projects::-webkit-scrollbar {
    display: none;
}

.nav-projects::before,
.nav-projects::after {
    content: '';
    position: sticky;
    height: 2.6042vw;
    z-index: 2;
    pointer-events: none;
}

.nav-projects::before {
    top: 0;
    background: linear-gradient(to bottom, var(--color-black), transparent);
}

.nav-projects::after {
    bottom: 0;
    background: linear-gradient(to top, var(--color-black), transparent);
}

.nav-projects li {
    position: relative;
    padding-right: 2.0833vw;
    margin: 0 0;
    transform: translateZ(0);
    will-change: opacity;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-projects li a {
    transition: 
        color 0.3s ease,
        opacity 0.3s ease,
        text-shadow 0.3s ease;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-secondary);
    color: var(--color-gray);
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    margin: 0;

}

.nav-projects li.current a,
.nav-projects li:hover a {
    color: var(--color-white);
    text-shadow: 
        0.45px 0 0 currentColor,
        -0.45px 0 0 currentColor;
}

.nav-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5625vw;
    height: 0.5208vw;
    background-image: url('/assets/images/Triangle.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s;
}

.nav-projects li:hover .nav-arrow,
.nav-projects li.current .nav-arrow {
    opacity: 1;
}

/* ===== 项目描述 ===== */
.project-description {
    max-width: 70.31%;
    margin-left: auto;
    padding-top: 2.6042vw;
    display: flex;
    justify-content: space-between;
}

.project-description p {
    font-family: var(--font-family-secondary);
    color: var(--color-white);
    margin: 0;
    line-height: 1;
}

.project-description p.title {
    color: var(--color-gray);
}

.description-category {
    text-align: left;
    min-width: 20.1042vw;
}

.description-text {
    width: 50.625vw;
    margin-right: 1.8229vw;
}

.description-text p {
  margin-bottom: 24px; 
}

.gray-text {
    color: #7F7F7F !important;
}

.title{
    color: #fff;
}

.description-date {
    text-align: right;
    min-width: 7.8125vw;
}

.project-description p.title2{
    font-size: 3vw;
    padding-left: 26%;
    
}

/* ===== 作品画廊 ===== */
.work-gallery {
    max-width: 70.3125%;
    margin-left: auto;
}

[class^="gallery-"] {
    display: flex;
    gap: 0.5208%;
    margin-bottom: 0.5208%;
}

.gallery-one img {
    width: 100%;
}

.gallery-two img {
    width: calc(50% - 0.2604%);
}

.gallery-three img {
    width: calc(33.333% - 0.5208%);
}

.gallery-four img{
    width: calc(25% - 0.2604%);
}

.work-gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item {
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px) ;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 图片懒加载样式 */
.gallery-item img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item img.lazy-loaded {
    opacity: 1;
}

.gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 可选：添加加载中的模糊效果 */
.gallery-item img[data-src] {
    filter: blur(5px);
}

.gallery-item img.lazy-loaded {
    filter: blur(0);
    transition: filter 0.5s ease;
}


.gallery-text{
    background: #632121;
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    gap: 0;

}
.gallery-text p{
    color: #000;
    margin: 0;
    padding: 8%;

}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0; 
    padding: 0;
    border: none;
    outline: none;
}


/* ===== Information 区域 ===== */

.info-logo{
    display: block;
    position: absolute;
    left: 3%;
    margin-top: 5.9896vw;
    width: 8.4vw;
    height: 2.5vw;
    cursor: pointer;
    transition: opacity 0.3s ease;
    user-select: auto !important;
    -webkit-user-drag: auto !important;
    pointer-events: auto !important;
}

.info-logo img{
    width: 8.4vw;
    height: 2.5vw;
    user-select: auto !important;
    -webkit-user-drag: auto !important;
    pointer-events: auto !important;
}

.info-logo:hover {
    opacity: 0.5;
}

/* ===== Information 区域 ===== */
.info-section {
    display: block;
    clear: both;
    max-width: 70.3125%;
    padding-left: 29.6%;
    flex: 1;
}

.info-title {
    width: 100%;
    margin-top: 5.9896vw;
    margin-bottom: 5.7292vw;
}

.info-title img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.info-description {
    font-family: var(--font-family-secondary);
    font-size: var(--font-family-primary);
    color: var(--color-gray);
    width: 46.25vw;
    padding: 0;
    margin: 0;
    /* 自动换行关键属性 */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal; /* 更自然的换行方式 */
  
    /* 可选：增加可读性 */
    line-height: 0; /* 更好的行间距 */
    text-align: left; /* 明确左对齐 */
}

.info-description p {
    margin: 0;
    line-height: 1;
}

.info-grid {
    font-family: var(--font-family-secondary);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.0833vw;
    row-gap: 2.5vw;
    margin-top: 4.4271vw;
    width: 100%;
    font-size: 1.2rem;
}

.info-grid__title {
    line-height: 1;
    margin-top: 5.7292vw;
    color: var(--color-white);
    padding: 0;
    margin: 0;
}

.info-grid__col {
    margin: 0;
    margin-top: 3vw;
}

.info-grid__col p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    display: inline-block;
}

.info-grid__col p a:hover {
    color: var(--color-white);
}

.info-grid__col p:not(:has(a)) {
    cursor: default;
}

.info-description p,
.info-grid__col p {
    font-size: var(--font-size-primary);
    display: block;
    width: 100%;
    clear: both;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: var(--color-gray);
    transition: color 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    transform: translateZ(0);
    will-change: color;
    cursor: default;
    position: relative;
    display: inline-block;
}

.info-grid__col p:hover {
    color: var(--color-white);
}

/* 带图标的链接 */
.info-grid__col p.with-icon a,
.info-grid__col p.with-icon2 a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5208vw;
    color: inherit;
    text-decoration: none;
    padding-left: 30px;
    transition: all 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.info-grid__col p.with-icon {
    margin-top: 0.5208vw;
}

.with-icon img,
.with-icon2 img {
    width: auto;
    height: 1em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.25s ease;
}

.with-icon .static-icon,
.with-icon2 .static-icon { opacity: 1; }
.with-icon .hover-icon,
.with-icon2 .hover-icon { opacity: 0; }

.info-grid__col p.with-icon:hover a,
.info-grid__col p.with-icon2:hover a {
    color: var(--color-white);
    transform: translateX(4px);
}
.with-icon:hover .static-icon,
.with-icon2:hover .static-icon { opacity: 0; }
.with-icon:hover .hover-icon,
.with-icon2:hover .hover-icon { opacity: 1; }

/* ===== 版权信息 ===== */
.copyright-container {
    max-width: 70.3125vw;
    width: 100%;
    margin: 9.2708vw 0 7.4479vw;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.copyright-left,
.copyright-right {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-primary);
    color: var(--color-gray);
}
@media (pointer: coarse) {
  html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  ::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
}
@media (min-width: 768px) and (max-width: 1280px) {
    .nav-logo img{
        user-select: auto !important;
        -webkit-user-drag: auto !important;
        pointer-events: auto !important;
    }
    .works-nav{
        width: 31vw;
    }
    .nav-projects{
        max-height: 60vw;
        font-size: 1.1rem;
    }
   .nav-projects li{
        margin: 1px 0;
   }
   .nav-arrow{
        width: 6vw;
   }
   .project-description{
        font-size: 1.5rem;
   }
   .copyright-right{
        display: none;
   }
}

/* ================= 手机 （480px以下) ================= */
@media (max-width: 480px) {
  :root {
    --mobile-gap: 2vw;
  }
  .static-logo{
    display: none !important;
  }
  .animated-logo{
    display: none !important;
  }

  .nav-logo img {
        height: 4vw;
        width: 5vw;
    }
    .nav-works, 
    .nav-info{
        font-size: 1.2rem;
    }

  /* 进一步调整间距 */
  .project-description {
    padding-top: calc(var(--mobile-gap) * 1.5);
    font-size: 1.2rem;
  }


  /* 调整导航栏 */
  .nav-container {
    height: 12vw;
  }
  .info-grid__title{
    font-size: 1.1rem;
    margin-top: 3%;
  }
  .copyright-container{
    max-width: 100%;
  }

  /* 带图标链接调整 */
  .info-grid__col p.with-icon a,
  .info-grid__col p.with-icon2 a {
    padding-left: 7vw !important;
  }
  .with-icon a {
    margin-top: 2vw;
}
}

/* ================= 768 ================= */
@media (max-width: 768px) {
    .nav-logo img{
        user-select: auto !important;
        -webkit-user-drag: auto !important;
        pointer-events: auto !important;
    }
     .static-logo {
        display: none !important;
    }
    .animated-logo{
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute; /* 精确定位 */
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        z-index: 10;
    }
     /* 调整导航项位置 */
    .nav-works {
        left: 50%;
        top: 50%;
        transform: translateY(-50% -50%);
    }
    
    .nav-info {
        transform: translateY(-50%);
    }
    
    /* 确保导航容器高度 */
    .nav-container {
        position: relative;
        height: 60px;
    }
  /* 1. 侧边导航隐藏后的布局调整 */
    .works-nav {
        display: none;
    }

    .nav-projects {
        max-height: 60vw !important;
    }

  /* 项目描述 */
  .project-description {
    max-width: 100% !important;
    margin-left: 0 !important;
    flex-direction: column;
    align-items: flex-start;
    padding-top: var(--mobile-gap);
    gap: var(--mobile-gap);
  }

  .description-category,
  .description-text,
  .description-date {
    width: 100% !important;
    text-align: left !important;
    margin: 15px auto !important;
  }

  /* 2. 作品画廊调整 */
  .work-gallery {
    max-width: 100% !important;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  [class^="gallery-"] {
    width: 100%;
    flex-direction: column;
  }

  .work-gallery img {
    width: 100% !important;
    margin-bottom: 1vw;
  }

  /* 3. 信息区域调整 */

  .info-logo{
    display: none;
  }

  .info-section {
    max-width: 100% !important;
    padding-left: 0 !important;
    margin-top: calc(var(--mobile-gap) * 2);
  }

  .info-description {
    width: 100% !important;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  /* 版权信息调整 */
  .copyright-right {
    display: none;
  }
}

@media 
  (max-width: 1280px) and (max-height: 720px),
  (max-device-width: 1280px) and (max-device-height: 720px) {
  
  .nav-projects {
    max-height: 23vw; /* 改用视口高度单位 */
    font-size: 1.2rem;  /* 避免过小的0.2rem */
  }
  .info-grid__title{
    font-size: 1.2rem;
  }
  .copyright-right{
    display: none;
  }
}


/* ================= 大屏幕调整 ================= */
@media (min-width: 1920px) {
    body {
        margin: 0 auto;
    }
    .copyright-left,.copyright-right{
        font-size: 1.5625rem !important;
    }
    .info-description p, .info-grid__col p{
        font-size: 1.5625rem !important;
    }
    .nav-projects{
        max-height: 24vw;
    }
}
@media (max-width: 1920px) {
    body {
        margin: 0 auto;
    }
    .copyright-left,.copyright-right{
        font-size: 1.5625rem !important;
    }
    .info-description p, .info-grid__col p{
        font-size: 1.5625rem !important;
    }
    .nav-projects{
        max-height: 34.5vw;
    }
}


