/* Custom Fonts */
@font-face {
  font-family: 'HK Grotesk';
  src: url('assets/style_fonts/HK-Grotesk/HKGrotesk-Regular-9.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('assets/style_fonts/HK-Grotesk/HKGrotesk-Italic-4.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('assets/style_fonts/HK-Grotesk/HKGrotesk-Bold-2.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('assets/style_fonts/HK-Grotesk/HKGrotesk-Medium-7.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('assets/style_fonts/HK-Grotesk/HKGrotesk-SemiBold-10.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'HK Grotesk';
  src: url('assets/style_fonts/HK-Grotesk/HKGrotesk-SemiBoldItalic-11.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Noto Sans Numbers';
  src: url('assets/style_fonts/Noto-sans/NotoSans-Regular-2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  unicode-range: U+30-39;
}

@font-face {
  font-family: 'Noto Sans Numbers';
  src: url('assets/style_fonts/Noto-sans/NotoSans-Italic-3.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  unicode-range: U+30-39;
}

/* 全局重置：统一盒模型 */
* {
  box-sizing: border-box;
}

/* 统一盒模型，避免元素尺寸计算混乱 */

html,
body {
  margin: 0;
  padding: 0;
  /* 取消默认外边距和内边距，避免出现白边 */
}

body {
  font-family: "Noto Sans Numbers", "HK Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  /* 全站字体：数字优先Noto，英文HK Grotesk，中文及其他回退系统字体 */
}

body:not(.cn) .lang-cn,
body.cn .lang-en {
  display: none;
}

/* 主导航：纵向排列，固定在页面左侧 */
.main-nav {
  position: fixed;
  left: 30px;
  top: 30px;
  /* transform: translateY(-50%); */
  z-index: 10;
  /* 初始透明；启动导航淡入动画；延迟 1 秒后开始 */
  opacity: 0;
  animation: navFadeIn 2s ease-out forwards;
  animation-delay: 1s;
}

/* 导航固定、垂直居中 */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}

/* Increase space between ZOO logo and PROJECT link */
.main-nav li:first-child {
  margin-bottom: 10px;
}

.main-nav a {
  text-decoration: none;
  font-size: 100px;
  line-height: 1;
  font-family: "Noto Sans Numbers", "HK Grotesk", "SF Pro Display Thin", "PingFang SC Thin", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 200;
  color: #ffffff;
  transition: opacity 0.3s ease;
  /* 透明度变化添加过渡效果 */
}

/* 导航字体 100px，行高 1 保证垂直间距受控 */

.main-nav a:visited {
  color: #ffffff;
  /* 访问后的链接保持白色 */
}

body.nav-dim .main-nav li:nth-child(n+2) a {
  opacity: 0.2;
  /* 页面下滑时让导航后三项透明度降至 20% */
}

/* Hero 图集容器：无额外内边距，便于连续滚动 */
.hero-gallery {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-news,
.home-news-1,
.home-news-2,
.home-news-3,
.home-news-4 {
  height: 300px;
  width: 95%;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 120px 80px 0;
  background: #ffffff;
  box-sizing: border-box;
  transition: background-color 0.8s ease;
}

/* home-news-1: 居中对齐 */
.home-news-1 {
  margin: 0 auto;
}

/* home-news-2: 居中对齐，最上层 */
.home-news-2 {
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* home-news-3: 右对齐，初始为黑色背景，向上偏移与home-news-2交错，中间层 */
.home-news-3 {
  margin-left: auto;
  margin-right: 0;
  margin-top: -50px;
  background: #000000;
  position: relative;
  z-index: 2;
}

.home-news-3 .home-news-label,
.home-news-3 .home-news-content,
.home-news-3 .home-news-date {
  color: #ffffff;
}

/* home-news-4: 左对齐，向上偏移与home-news-3交错，最下层 */
.home-news-4 {
  margin-left: 0;
  margin-right: auto;
  margin-top: -50px;
  position: relative;
  z-index: 1;
}

.home-news.inverted,
.home-news-1.inverted,
.home-news-2.inverted,
.home-news-4.inverted {
  background: #BE0032;
}

/* home-news-3 反转时变为红色 */
.home-news-3.inverted {
  background: #BE0032;
}

.home-news-label {
  font-size: 60px;
  font-weight: 200;
  font-style: italic;
  letter-spacing: 4px;
  color: #000000;
  flex: 0 0 auto;
  position: relative;
  transition: color 0.8s ease;
}

.home-news.inverted .home-news-label,
.home-news-1.inverted .home-news-label,
.home-news-2.inverted .home-news-label,
.home-news-3.inverted .home-news-label,
.home-news-4.inverted .home-news-label {
  color: #ffffff;
}

.home-news-content {
  margin: 0;
  font-size: 25px;
  font-weight: 180;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 1);
  flex: 1 1 auto;
  position: relative;
  padding-top: 12px;
  transition: color 0.8s ease;
}

.home-news.inverted .home-news-content,
.home-news-1.inverted .home-news-content,
.home-news-2.inverted .home-news-content,
.home-news-3.inverted .home-news-content,
.home-news-4.inverted .home-news-content {
  color: #ffffff;
}

.home-news-date {
  font-size: 25px;
  font-weight: 180;
  font-style: italic;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 1);
  flex: 0 0 auto;
  position: relative;
  padding-top: 12px;
  transition: color 0.8s ease;
}

.home-news.inverted .home-news-date,
.home-news-1.inverted .home-news-date,
.home-news-2.inverted .home-news-date,
.home-news-3.inverted .home-news-date,
.home-news-4.inverted .home-news-date {
  color: #ffffff;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero 项目名固定在图片底部的位置 */
.hero-title {
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 45px;
  color: #ffffff;
  font-weight: 700;
  font-size: 60px;
  white-space: nowrap;
}

.hero-title-dark {
  color: #000000;
}

.hero-title-zhusong {
  color: #ffffff;
}

.desktop-title-text {
  display: inline;
}

.mobile-title-text {
  display: none;
}

.mobile-title-break {
  display: none;
}

body.page-home {
  cursor: none;
}

.page-home .custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: border-width 0.12s ease;
  z-index: 9999;
}

.page-home .custom-cursor.is-clicked {
  border-width: 10px;
}

.contact-page .custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 5px solid rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: border-width 0.12s ease;
  z-index: 9999;
}

.contact-page .custom-cursor.is-clicked {
  border-width: 10px;
}

body.overlay-open.project-page .main-nav a {
  color: #ffffff;
  opacity: 1;
  transition: opacity 0.8s ease;
}

body.overlay-open.project-page .main-nav a:visited {
  color: #ffffff;
}

body.overlay-open.project-page .nav-logo {
  opacity: 1;
}

body.overlay-scrolled.project-page .main-nav a {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Home intro block: full-viewport solid fluorescent green section */
.home-intro {
  width: 100%;
  height: 100vh;
  background: #00FCA5;
  position: relative;
  overflow: hidden;
}

.home-intro.home-intro-orange {
  background: #FF6445;
}

.home-intro .intro-number {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(72px, 11vw, 140px);
  font-weight: 900;
  font-stretch: ultra-expanded;
  color: #ffffff;
  letter-spacing: 3px;
}

.home-intro .intro-title-cn {
  position: absolute;
  left: 18%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  font-weight: 100;
  font-family: "PingFang SC Thin", "SF Pro Display Thin", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  letter-spacing: 2px;
}

.home-intro .intro-title-en {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(72px, 11vw, 140px);
  font-weight: 900;
  font-stretch: ultra-expanded;
  color: #ffffff;
  text-align: right;
  line-height: 1;
  max-width: 50%;
  word-break: break-word;
}

/* Mobile: vertically stack and reposition elements */
@media (max-width: 768px) {
  .home-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 40px 24px;
    height: 100svh;
  }

  .home-intro .intro-number {
    position: static;
    font-size: 28px;
    transform: none;
    color: #ffffff;
  }

  .home-intro .intro-title-cn {
    position: static;
    font-size: 28px;
    transform: none;
    color: #ffffff;
  }

  .home-intro .intro-title-en {
    position: static;
    font-size: clamp(32px, 10vw, 48px);
    text-align: left;
    max-width: 100%;
    transform: none;
    color: #ffffff;
  }
}

/* Make hero slide full viewport with bg image fill */
.hero-slide {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center center;
  margin: 0;
  overflow: hidden;
}

.hero-slide-solid {
  background: #01FDA5;
}

.scroll-indicator {
  position: absolute;
  bottom: 85px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateX(-50%) rotate(45deg);
  animation: scroll-indicator-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-indicator-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg);
  }

  50% {
    transform: translateX(-50%) translateY(10px) rotate(45deg);
  }
}

/* project.html 页面样式 */
.project-page {
  padding-top: 140px;
  padding-bottom: 120px;
  /* 顶部留白使内容位于导航下方 */
  cursor: none;
  /* 隐藏默认光标以使用自定义圆环 */
}

.news-page {
  --news-top-offset: 108px;
  padding-top: var(--news-top-offset);
  /* 顶部留白避免导航遮挡 */
  cursor: none;
  /* 保持与项目页一致的自定义光标体验 */

}

.contact-page {
  --contact-top-offset: 80px;
  padding-top: var(--contact-top-offset);
}

.contact-cover-section {
  width: 100%;
  margin: 0;
}

.contact-cover-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-page .projects-layout {
  display: flex;
  /* 纵向排列年份与项目画廊 */
  flex-direction: column;
  /* 列布局 */
  align-items: flex-end;
  /* 对齐到页面右侧 */
  /* gap: 20px; */
  /* 区块之间的垂直间距 */
}

.project-page .year-container {
  margin-right: 30px;
  /* 年份容器距离右边界 30px */
  width: 100%;
  /* 占满可用宽度 */
  display: flex;
  /* 使用 flex 便于右对齐 */
  justify-content: flex-end;
  /* 将内容推至最右侧 */
}

.project-page .year-container h1 {
  margin: 0;
  /* 去掉默认外边距 */
  font-size: 100px;
  font-weight: 60;
  /* letter-spacing: 4px; */
}


.project-page .project-gallery {
  display: flex;
  /* 纵向堆叠项目条目 */
  flex-direction: column;
  /* 列布局 */
  align-items: flex-end;
  /* 内容靠右 */
  gap: 5px;
  /* 条目间距 */
}

.project-page .year-container+.project-gallery+.year-container {
  margin-top: 120px;
  /* 第二段年份容器与上一段之间增加额外间距 */
}

.project-page .project-entry {
  width: 50vw;
  /* PC 端项目容器宽度占视口的 50% */
  max-width: 960px;
  /* 限制最大宽度避免过宽 */
  display: flex;
  /* 使用 flex 横向排列标题和图片 */
  flex-direction: row-reverse;
  /* 倒序排列以便标题位于图片左侧 */
  align-items: flex-end;
  /* 使标题下边缘与图片底部齐平 */
  gap: 20px;
  /* 标题与图片间距 20px */
  text-align: left;
  /* 标题文本靠左对齐 */
  min-height: 0;
  min-width: 0;
}

.project-page .project-image {
  flex: 1 1 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.project-page .project-image.project-video-container {
  flex: none;
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.project-page .project-media-stack {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-page .project-media-stack .project-image {
  flex: none;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.project-page .project-image.project-video-container .video-cover,
.project-page .project-media-stack .project-image .video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.project-page .project-image.project-video-container .video-cover img,
.project-page .project-media-stack .project-image .video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-page .project-image.project-video-container video,
.project-page .project-media-stack .project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.project-page .project-image.project-video-container .video-cover .overlay,
.project-page .project-media-stack .project-image .video-cover .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.project-page .project-image.project-video-container .video-cover .video-label,
.project-page .project-media-stack .project-image .video-cover .video-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.project-page .project-caption {
  margin: 10px 0 0;
  font-size: 45px;
  font-weight: 250;
  flex: 0 0 auto;
  position: relative;
  top: 10px;
  /* 标题宽度自适应内容 */
}

.project-page .main-nav a,
.news-page .main-nav a,
.contact-page .main-nav a {
  color: rgba(0, 0, 0, 0.2);
  /* 项目页导航默认使用 20% 黑色 */
  transition: none;
  /* 项目页导航颜色不做过渡 */
}

.project-page .main-nav .nav-logo img,
.news-page .main-nav .nav-logo img,
.contact-page .main-nav .nav-logo img {
  opacity: 0.2;
  /* 非当前页面的 Logo 图片透明度为 20% */
}

.project-page .main-nav a:visited,
.news-page .main-nav a:visited,
.contact-page .main-nav a:visited {
  color: rgba(0, 0, 0, 0.2);
  /* 访问后保持 20% 黑色 */
}

.project-page .main-nav li:nth-child(2) a {
  color: #000000;
  /* PROJECT 链接为纯黑 */
}

.project-page .main-nav li:nth-child(2) a:visited {
  color: #000000;
  /* PROJECT 链接访问后仍保持纯黑 */
}

.news-page .main-nav li:nth-child(3) a {
  color: #000000;
  /* NEWS 链接为纯黑 */
}

.news-page .main-nav li:nth-child(3) a:visited {
  color: #000000;
  /* NEWS 链接访问后仍保持纯黑 */
}

.contact-page .main-nav li:nth-child(4) a {
  color: #000000;
  /* CONTACT 链接为纯黑 */
}

.contact-page .main-nav li:nth-child(4) a:visited {
  color: #000000;
  /* CONTACT 链接访问后仍保持纯黑 */
}

.project-page .main-nav,
.news-page .main-nav,
.contact-page .main-nav {
  opacity: 1;
  /* 项目页导航直接显示 */
  animation: none;
  /* 取消淡入动画 */
  animation-delay: 0s;
  /* 取消动画延迟 */
}

.project-page .main-nav li:nth-child(n+1) a,
.news-page .main-nav li:nth-child(n+1) a,
.contact-page .main-nav li:nth-child(n+1) a {
  opacity: 1;
  /* 项目页滚动时保持初始化透明度 */
}

body.project-page.nav-dim .main-nav li:nth-child(n+2) a {
  opacity: 1;
  /* 当 body 同时具有 project-page 与 nav-dim 时，保持链接不变淡 */
}

body.news-page.nav-dim .main-nav li:nth-child(n+2) a {
  opacity: 1;
  /* NEWS 页面下滚时保持链接不变淡 */
}

body.contact-page.nav-dim .main-nav li:nth-child(n+2) a {
  opacity: 1;
  /* CONTACT 页面下滚时保持链接不变淡 */
}

contact-page main {
  display: flex;
  justify-content: center;
}

.contact-timeline {
  position: relative;
  width: min(1200px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 60px;
  /* item之间的gap */
  margin: 0 auto;
}

.contact-timeline::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--contact-top-offset));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: #000000;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.contact-item-title {
  width: calc(50% - 24px);
  margin: 0;
  text-align: right;
  padding-right: 24px;
  font-size: 18px;
  font-weight: 400;
  font-family: "HK Grotesk", sans-serif;
  transform: translateY(-35px);
}

.contact-icon {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-left: 10px;
  display: inline-block;
}

.contact-item-description {
  width: calc(50% - 24px);
  margin: 0;
  padding-left: 24px;
  font-size: 18px;
  font-weight: bold;
  font-family: "HK Grotesk", sans-serif;
  line-height: calc(1em + 5px);
  transform: translateY(-35px);
}

article[aria-labelledby="contact-item-5"] {
  margin-top: -40px;
}

/* news.html 页面样式 */
.news-page main {
  display: flex;
  justify-content: center;
}

.news-timeline {
  position: relative;
  width: min(1200px, 90vw);
  min-height: calc(100vh - var(--news-top-offset));
  min-height: calc(100dvh - var(--news-top-offset));
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 0 auto;
}

.news-timeline::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--news-top-offset));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: #000000;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.news-item-bottom-space {
  margin-bottom: 120px;
}

.news-item-bottom-space.expanded {
  margin-bottom: 0;
}

.news-item-bottom-space.expanded+.news-detail {
  margin-bottom: 120px;
}

.news-content-wrapper {
  width: calc(50% - 20px);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}

.news-time {
  width: calc(50% - 20px);
  text-align: right;
  padding-right: 20px;
  font-size: 28px;
  /* letter-spacing: 4px; */
  font-weight: 600;
  font-style: italic;
  font-family: "HK Grotesk", sans-serif;
  color: #000000;
}

.news-description {
  width: calc(50% - 20px);
  margin: 0;
  padding-left: 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  color: #000000;
  text-transform: uppercase;
  font-style: italic;
  font-family: "HK Grotesk", sans-serif;
  cursor: pointer;
  /* Add pointer cursor to indicate clickability */
}

.news-description.news-click-hint {
  animation: newsHeadlineHint 1.8s ease-in-out infinite;
}

.news-description.news-click-hint::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, #b8b8b8 0%, #4a4a4a 100%);
  animation: newsHintLine 1.8s ease-in-out infinite;
}

@keyframes newsHeadlineHint {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes newsHintLine {

  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.7);
    transform-origin: left;
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
}

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

  .news-description.news-click-hint,
  .news-description.news-click-hint::after {
    animation: none;
  }
}

.news-mobile-break {
  display: none;
}

.news-detail {
  width: calc(50% - 20px);
  margin-left: auto;
  padding-left: 20px;
}

.news-item.expanded+.news-detail {
  margin-top: -36px;
}

.news-detail-media,
.news-media-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.news-media-video-wrapper {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.news-media-video-wrapper.bg-white {
  background: #ffffff;
}

.news-detail-media>img,
.news-detail-media video,
.news-media-cover,
.news-media-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-media-video-wrapper>.news-media-video,
.news-media-video-wrapper>.news-media-cover,
.news-media-cover-overlay {
  position: absolute;
  inset: 0;
}

.news-media-cover,
.news-media-cover-overlay {
  z-index: 1;
}

.news-media-cover-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.16);
}

.news-media-play {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.news-media-play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 19px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
}

.news-media-video-wrapper.is-playing .news-media-cover,
.news-media-video-wrapper.is-playing .news-media-cover-overlay {
  display: none;
}

.news-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  opacity: 0;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.news-details.open {
  max-height: 2000px;
  /* Arbitrary large height for transition */
  opacity: 1;
  margin-top: 20px;
}

.news-details-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-family: "HK Grotesk", sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns of images */
  gap: 10px;
}

.news-gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  /* 9:16 portrait ratio */
  object-fit: cover;
  display: block;
}

.project-page .custom-cursor,
.news-page .custom-cursor {
  position: fixed;
  /* 固定定位以跟随光标 */
  left: 0;
  /* 初始水平位置 */
  top: 0;
  /* 初始垂直位置 */
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  /* 边框计算在尺寸内 */
  border: 5px solid rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  /* 形成圆形 */
  pointer-events: none;
  /* 避免阻挡页面交互 */
  transform: translate(-50%, -50%);
  /* 将圆心对准鼠标位置 */
  transition: border-width 0.12s ease;
  /* 点击时的粗细过渡 */
  z-index: 9999;
  /* 确保位于最上层 */
}

.project-page .custom-cursor.is-clicked,
.news-page .custom-cursor.is-clicked {
  border-width: 10px;
  /* 鼠标按下时加粗至 15px */
}

/* Overlay open 时禁用自定义光标并恢复系统光标 */
.overlay-open {
  cursor: auto;
}

.overlay-open .custom-cursor {
  display: none;
}

/* Overlay open 时，确保导航显示在最上层并且文字为白色 */
.overlay-open .main-nav {
  opacity: 1;
  animation: none;
  z-index: 10001;
  /* 高于 overlay 的 10000 */
}

.overlay-open .main-nav a,
.overlay-open .main-nav a:visited {
  color: #ffffff !important;
}

.overlay-open .main-nav li:nth-child(n+1) a {
  opacity: 1 !important;
  /* 覆盖任何淡化规则 */
}

/* Overlay 发生滚动时：只保留“ZOO”的第二个“O”为白色，其余导航文本全透明 */
.overlay-open.overlay-scrolled .main-nav a,
.overlay-open.overlay-scrolled .main-nav a:visited {
  color: rgba(255, 255, 255, 0) !important;
  /* 文本设置为透明 */
}

.overlay-open.overlay-scrolled .main-nav li:nth-child(n+1) a {
  opacity: 1 !important;
  /* 保持不变淡（仅颜色透明） */
}

/* Old char splitting logic removed */


/* Project Detail Overlay */
.project-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: none;
  /* 默认隐藏 */
  overflow: auto;
  /* 内容可滚动 */
}

.project-overlay.is-open {
  display: block;
}

.project-overlay .overlay-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.project-overlay .overlay-content {
  width: 100%;
}

.project-overlay .overlay-hero-image {
  display: block;
  width: 100%;
  height: 100vh;
  /* 按照屏幕高度截取图片 */
  object-fit: cover;
}

.project-overlay .overlay-info-panel {
  /* 信息面板：红色背景，左右两栏 */
  background: #C4162E;
  /* 红色容器 */
  color: #ffffff;
  height: 1000px;
  /* 固定面板高度 */
  padding: 30px 30px;
}

/* 项目图片展示网格：与两侧留白等于网格间距，行距与列距一致；与信息面板之间留出 30px 间隔 */
.project-overlay .overlay-image-grid {
  --overlay-grid-gap: 24px;
  /* 控制左右留白、列间距、行间距的一致值 */
  margin-top: 30px;
  /* 与上方 .overlay-info-panel 底部相隔 30px 空白 */
  margin-bottom: 30px;
  /* 最后一行图片之后增加 30px 空白 */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--overlay-grid-gap);
  padding-left: var(--overlay-grid-gap);
  padding-right: var(--overlay-grid-gap);
}

.project-overlay .overlay-image-item {
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  /* 保持 4:3 比例 */
  overflow: hidden;
  /* background: rgba(255, 255, 255, 0.06); */
  /* 占位底色，实际由图片填充 */
}

.project-overlay .overlay-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image Lightbox (enlarged view for overlay grid images) */
.project-overlay .image-lightbox {
  position: fixed;
  /* 固定定位，覆盖全屏 */
  inset: 0;
  /* 四边贴合视口，充满屏幕 */
  background: rgba(255, 255, 255, 0.9);
  /* 半透明浅色背景，突出大图 */
  display: none;
  /* 默认隐藏，需打开时再显示 */
  align-items: center;
  /* Flex 纵向居中图片 */
  justify-content: center;
  /* Flex 横向居中图片 */
  z-index: 11000;
  /* 层级高于 .project-overlay（10000） */
}

.project-overlay .image-lightbox.is-open {
  display: flex;
  /* 开启遮罩层与 Flex 居中布局 */
}

.project-overlay .image-lightbox .lightbox-image {
  max-width: 92vw;
  /* 限制图片最大宽度不超过视口宽度 */
  max-height: 92vh;
  /* 限制图片最大高度不超过视口高度 */
  object-fit: contain;
  /* 等比缩放完整显示图片 */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);  可选：为大图增加阴影层次 */
}

.project-overlay .image-lightbox .lightbox-close,
.project-overlay .image-lightbox .lightbox-prev,
.project-overlay .image-lightbox .lightbox-next {
  position: absolute;
  /* 绝对定位，分别放在四周 */
  background: transparent;
  /* 透明背景按钮 */
  border: none;
  /* 去掉默认边框 */
  color: #ffffff;
  /* 使用白色图标/文字 */
  font-size: 48px;
  /* 大图标尺寸，便于点击 */
  line-height: 1;
  /* 紧凑的行高 */
  cursor: pointer;
  /* 鼠标变为可点击手势 */
}

.project-overlay .image-lightbox .lightbox-close {
  top: 16px;
  /* 贴近右上角 */
  right: 24px;
  /* 右侧内边距 */
}

.project-overlay .image-lightbox .lightbox-prev {
  left: 24px;
  /* 放在左侧 */
}

.project-overlay .image-lightbox .lightbox-next {
  right: 24px;
  /* 放在右侧 */
}

@media (max-width: 768px) {

  .project-overlay .image-lightbox .lightbox-prev,
  .project-overlay .image-lightbox .lightbox-next {
    font-size: 36px;
    /* 移动端调小按钮尺寸 */
    left: 12px;
    /* 左侧按钮更靠边 */
    right: 12px;
    /* 右侧按钮更靠边 */
  }

  .project-overlay .image-lightbox .lightbox-close {
    font-size: 36px;
    /* 关闭按钮在移动端尺寸 */
    top: 12px;
    right: 16px;
  }
}

.project-overlay .overlay-info-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  height: 100%;
}

.project-overlay .overlay-info-left {
  width: 52%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-overlay .overlay-left-title {
  margin: 0 0 350px 0;
  /* 与下方 16:9 图片的垂直间距：350px */
  font-weight: bold;
  line-height: 1.25;
  font-size: clamp(54px, 12vw, 95px);
}

.project-overlay .overlay-left-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* background: rgba(255, 255, 255, 0.06); */
  overflow: hidden;
  margin-top: auto;
  /* 将 16:9 图片推到底部，使其底边与容器底边的内边距 30px 对齐 */
}

.project-overlay .overlay-left-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay .overlay-info-right {
  width: 48%;
  display: grid;
  /* 使用网格以便左侧标签、竖线、右侧两块垂直分布 */
  grid-template-columns: 25% 2px 1fr;
  /* 左25%标签 | 2px竖线 | 右侧内容 */
  column-gap: 22px;
  align-items: start;
  /* 统一每行高度与间距，确保左右两列的每一行中心线对齐 */
  --info-row-height: 35px;
  --info-row-gap: 12px;
}

.project-overlay .info-heading {
  grid-column: 1;
  /* 左列 */
  grid-row: 1 / span 2;
  /* 占据右侧两行的高度区域 */
  display: grid;
  grid-auto-rows: var(--info-row-height);
  row-gap: var(--info-row-gap);
  font-size: 18px;
  /*项目介绍小标题的字体大小*/
  /* 与右侧字号接近 */
  font-weight: 200;
}

.project-overlay .info-heading .info-line {
  text-transform: uppercase;
  /* letter-spacing: 1px; */
  display: flex;
  align-items: center;
  /* 行内垂直居中 */
  justify-content: flex-end;
  /* 文字右对齐（推到该列靠右侧） */
  text-align: right;
  /* 双保险：保证多行/换行时仍保持右对齐 */
  height: 100%;
  line-height: 1;
}

.project-overlay .info-divider {
  grid-column: 2;
  /* 中列 */
  grid-row: 1 / 3;
  /* 跨越上、下两块，使底部与 .info-description 底部齐平 */
  background: #ffffff;
  /* 白色竖线 */
  opacity: 0.8;
  width: 2px;
  /* 竖线宽度（与中列网格宽度一致） */
  height: auto;
  /* 让高度随网格行自动拉伸 */
  align-self: stretch;
  /* 顶到底拉伸，底部与右侧描述内容底对齐 */
}

/* 右侧上方：与 info-heading 行高对应的详细信息 */
.project-overlay .info-heading-info {
  grid-column: 3;
  /* 右列 */
  grid-row: 1;
  /* 上方 */
  display: grid;
  grid-auto-rows: var(--info-row-height);
  row-gap: var(--info-row-gap);
}

.project-overlay .info-heading-info .info-line {
  font-size: clamp(15px, 2.5vw, 35px);
  /*第一个数字是项目介绍信息的字体大小*/
  font-weight: 300;
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
  display: flex;
  align-items: center;
  /* 行内垂直居中 */
  height: 100%;
  line-height: 1;
  /* 行间距 */
}

.project-overlay .info-description {
  grid-column: 3;
  /* 右列 */
  grid-row: 2;
  /* 下方 */
  font-size: 15px;
  /*项目介绍段落description的字体大小*/
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  margin-top: 80px;
  /* 与上方 .info-heading-info 保持 80px 的间距 */
}

.project-overlay .info-description p {
  margin: 0 0 14px 0;
}

/* 让描述区域最后一行文字的下沿作为实际底线，便于竖线底部精确齐平 */
.project-overlay .info-description p:last-child {
  margin-bottom: 0;
}


/* 语言切换按钮：固定在左下角*/
.lang-toggle {
  position: fixed;
  left: 30px;
  bottom: 30px;
  font-size: 25px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #ffffff;
}

/* Project, News, Contact 页面语言切换按钮为黑色 */
.project-page .lang-toggle,
.news-page .lang-toggle,
.contact-page .lang-toggle {
  color: #000000;
}

.contact-page.contact-cover-active .lang-toggle,
.contact-page.contact-cover-active footer {
  color: #ffffff;
}

/* 默认隐藏移动端菜单和切换按钮，仅在移动端显示 */
.mobile-menu,
.mobile-menu-toggle {
  display: none;
}

/* 移动端隐藏原语言切换按钮，使用新的折叠菜单 */
@media (max-width: 768px) {
  .lang-toggle {
    display: none;
  }

  .mobile-menu-toggle {
    /* 汉堡按钮 */
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 46px;
    /* 点击区域保持足够大 */
    height: 46px;
    background: transparent;
    /* 去掉圆形底色 */
    border: none;
    /* 去掉边框 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12000;
  }

  .mobile-menu-toggle span {
    /* 三条线 */
    position: relative;
    width: 22px;
    height: 2px;
    background: #ffffff;
    display: block;
    transition: background 0.25s ease;
  }

  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #ffffff;
  }

  .mobile-menu-toggle span::before {
    top: -6px;
  }

  .mobile-menu-toggle span::after {
    top: 6px;
  }

  .mobile-menu-toggle:active span,
  .mobile-menu-toggle:focus span {
    outline: none;
    background: #ffffff;
  }

  body.project-page .mobile-menu-toggle span,
  body.project-page .mobile-menu-toggle span::before,
  body.project-page .mobile-menu-toggle span::after,
  body.news-page .mobile-menu-toggle span,
  body.news-page .mobile-menu-toggle span::before,
  body.news-page .mobile-menu-toggle span::after,
  body.contact-page .mobile-menu-toggle span,
  body.contact-page .mobile-menu-toggle span::before,
  body.contact-page .mobile-menu-toggle span::after {
    background: #000000;
  }

  .mobile-menu {
    /* 折叠菜单容器 */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: translateY(100%);
    background: rgba(0, 0, 0, 0.92);
    color: #ffffff;
    padding: 28px 28px 42px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: transform 0.35s ease;
    z-index: 11999;
  }

  .mobile-menu.is-open {
    transform: translateY(0);
  }

  .mobile-menu .menu-section-title {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: .7;
    margin: 0;
  }

  .mobile-menu .mobile-lang-switch {
    display: flex;
    gap: 14px;
  }

  .mobile-menu .mobile-lang-switch button {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
  }

  .mobile-menu .mobile-lang-switch button.active {
    background: #ffffff;
    color: #000000;
  }

  .mobile-menu .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    /* 导航区域下方额外留白 */
  }

  .mobile-menu .mobile-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 200;
  }

  .mobile-menu .mobile-links a:hover {
    opacity: .7;
  }

  .mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }
}

footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  padding: 16px;
  text-align: center;
  pointer-events: none;
}

.page-home footer {
  color: #ffffff;
}

@media (min-width: 769px) {
  footer {
    bottom: 30px;
    padding: 0;
  }

  footer p {
    margin: 0;
  }
}

@keyframes navFadeIn {

  /* 导航淡入动画定义 */
  from {
    opacity: 0;
    /* 从完全透明开始 */
  }

  to {
    opacity: 1;
    /* 逐渐显示为白色文字 */
  }
}

@media (max-width: 768px) {
  .hero-slide {
    width: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    background-size: cover;
    /* 满宽显示：若原图较窄也强制放大到屏幕宽度，使用 cover 避免出现左右留白 */
    background-position: center center;
    background-repeat: no-repeat;
  }

  .hero-slide-solid {
    aspect-ratio: 4 / 3;
  }

  .hero-slide-solid .scroll-indicator {
    bottom: 24px;
  }

  /* 移动端 Hero 标题缩小：根据宽度/高度自适应 */
  .hero-title {
    font-size: clamp(10px, 4vw, 22px);
    bottom: 32px;
    color: #ffffff;
  }

  .hero-title-dark {
    color: #000000;
  }

  .hero-title-zhusong {
    color: #ffffff;
  }

  .desktop-title-text {
    display: none;
  }

  .mobile-title-text {
    display: inline;
  }

  .mobile-title-break {
    display: block;
  }

  /* ===================== Home News 移动端自适应换行 ===================== */
  .home-news,
  .home-news-1,
  .home-news-2,
  .home-news-3,
  .home-news-4 {
    height: auto;
    /* 取消固定高度，内容高度自适应 */
    width: 100%;
    /* 占满屏幕宽度 */
    padding: 48px 24px 40px;
    flex-direction: column;
    /* 垂直堆叠文字块，避免横向挤压 */
    align-items: flex-start;
    /* 左对齐 */
    gap: 18px;
    /* 新闻标题和内容之间间距 */
    box-sizing: border-box;
    /* 防止内边距撑破 */
  }

  /* Remove gap between last project image and first news block */
  .home-news-1 {
    margin-top: 0;
    padding-top: 15;
    /* 第一个news标题上方的高度 */
  }

  /* 仍保留反转配色逻辑，不覆盖原有 .inverted 规则 */

  .home-news-label {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 2px;
    /* 减少字距防止过宽 */
    flex: 0 0 auto;
    /* 不强制拉伸 */
    width: 100%;
    /* 单独一行 */
    word-break: break-word;
    /* 超长单词换行 */
  }

  .home-news-content,
  .home-news-date {
    font-size: 16px;
    /* 缩小正文字体 */
    line-height: 1.25;
    /* 增加可读性 */
    padding-top: 0;
    /* 去掉多余上间距 */
    width: 100%;
    /* 宽度占满自动换行 */
    word-break: break-word;
    /* 长单词换行 */
    overflow-wrap: anywhere;
    /* 强制在任意点换行，避免溢出 */
  }

  /* 微调特例：home-news-3 原本是黑底（PC端），在移动端仍保持，但不需要固定高度 */
  .home-news-3 {
    margin-top: 0;
    /* 去掉交错的负外边距 */
  }

  .home-news-4 {
    margin-top: 0;
    /* 移动端不再交错 */
  }

  /* ================================================================ */

  /* 移动端 Hero 高度 50vh，图片以顶部为对齐点裁剪 */
  .main-nav a {
    font-size: 40px;
  }

  /* 可选：为避免超出可视区域，略微降低导航字体（仍保留纵向风格） */
  .project-page {
    padding-left: 80px;
    /* 移动端缩小左侧留白 */
    padding-top: 120px;
    /* 调整顶部留白 */
  }

  .project-page .projects-layout {
    align-items: center;
    /* 小屏幕时内容居中 */
    gap: 40px;
    /* 缩小区块间距 */
  }

  .project-page .year-container,
  .project-page .project-gallery {
    margin-right: 0;
    /* 小屏取消右侧 30px 间距 */
    width: 100%;
    /* 让区块充满宽度 */
    align-items: center;
    /* 内容居中 */
  }

  .project-page .year-container {
    justify-content: center;
    /* 年份居中显示 */
  }

  /* Mobile: reduce vertical gap between year sections */
  .project-page .year-container+.project-gallery+.year-container {
    margin-top: 60px;
    /* 不同年份之间的gap */
  }

  .project-page .year-container h1 {
    font-size: 56px;
    /* 缩小年份字号 */
    letter-spacing: 2px;
    /* 调整字距 */
  }

  .project-page .project-entry {
    width: 100%;
    /* 移动端项目容器宽度占满屏幕宽度 */
    flex-direction: column;
    /* 小屏改为垂直排列 */
    align-items: center;
    /* 垂直布局时居中 */
    text-align: center;
    /* 小屏项目说明居中 */
  }

  .project-page .project-caption {
    text-align: center;
    /* 移动端标题居中显示 */
  }

  .news-page {
    --news-top-offset: 120px;
    padding-top: var(--news-top-offset);
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
  }

  .news-page main {
    justify-content: flex-start;
  }

  .news-timeline {
    width: 100%;
    gap: 60px;
  }

  .news-timeline .news-item:first-child {
    margin-top: 120px;
  }

  .news-timeline::before {
    bottom: 80px;
    left: 24px;
    transform: none;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .news-item-bottom-space {
    margin-bottom: 80px;
  }

  .news-item-bottom-space.expanded+.news-detail {
    margin-bottom: 80px;
  }

  .news-time {
    width: auto;
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
    font-style: italic;
    font-size: 18px;
    line-height: 1.1;
  }

  .news-description {
    width: 100%;
    padding-left: 56px;
    font-size: 18px;
    line-height: 1.15;
    font-style: italic;
  }

  .news-mobile-break {
    display: block;
  }

  .news-detail {
    width: calc(100% - 56px);
    margin-left: 56px;
    padding-left: 0;
  }

  .news-item.expanded+.news-detail {
    margin-top: -28px;
  }

  .news-content-wrapper {
    width: 100%;
    padding-left: 0;
    padding-right: 20px;
  }

  .news-details {
    padding-left: 72px;
  }

  .news-details-text {
    font-size: 18px;
  }

  .news-gallery {
    grid-template-columns: 1fr;
  }

  .contact-page {
    /* --contact-top-offset: 10px; */
    padding-top: var(--contact-top-offset);
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
  }

  .contact-page main {
    justify-content: flex-start;
  }

  .contact-timeline {
    /* gap: 20px; */
    width: 100%;
  }

  .contact-timeline::before {
    left: 60px;
    transform: none;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .contact-item-title {
    width: 60px;
    text-align: right;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 2px;
    transform: none;
    white-space: nowrap;
  }

  .contact-item-description {
    flex: 1;
    padding-left: 20px;
    text-align: left;
    transform: none;
  }

  .contact-icon {
    margin-left: 0;
  }

  .contact-icon-social {
    height: 17px;
  }

  article[aria-labelledby="contact-item-5"] .contact-item-title {
    flex-direction: row;
    justify-content: flex-end;
    gap: 4px;
  }

  /* Mobile adjustments requested:
     1) Add top spacing before the first contact item
     2) Keep h2 (.contact-item-title) position unchanged
     3) Move contact descriptions right by 55.55px (adds left space)
  */
  .contact-timeline .contact-item:first-child {
    margin-top: 150px;
  }

  .contact-item-description {
    /* padding handled in main block */
  }

  /* Overlay 信息面板在小屏改为纵向堆叠 */
  .project-overlay .overlay-info-inner {
    flex-direction: column;
    gap: 24px;
    height: auto;
    /* 小屏不做等高拉伸 */
  }

  .project-overlay .overlay-info-left,
  .project-overlay .overlay-info-right {
    width: 100%;
  }

  .project-overlay .overlay-left-title {
    font-size: clamp(36px, 12vw, 72px);
    margin: 0 0 55px 0;
    /* 缩小标题与下方图片之间的垂直间距（原桌面350px，移动端减至85px） */
  }

  /* 小屏恢复默认文档流，不强制底对齐图片 */
  .project-overlay .overlay-info-left {
    display: block;
    height: auto;
  }

  .project-overlay .overlay-left-media {
    margin-top: 0;
  }

  .project-overlay .overlay-info-right {
    display: block;
    /* 小屏右侧纵向堆叠 */
  }

  .project-overlay .info-divider {
    display: none;
  }

  .project-overlay .info-heading {
    font-size: 22px;
  }

  .project-overlay .info-heading-info {
    margin-top: 12px;
  }

  .project-overlay .info-description {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 16px;
  }

  /* ========== 移动端项目详情信息版块采用三列网格布局 ========== */
  .project-overlay .overlay-info-right {
    display: grid !important;
    /* 覆盖之前的 block */
    grid-template-columns: 32% 2px 1fr;
    /* 左列标签 / 中央竖线 / 右侧内容 */
    column-gap: 12px;
    /* 缩小左右列间距适配小屏 */
    align-items: start;
    margin-top: 20px;
    /* 与上方图片之间垂直间距20px（移动端） */
  }

  .project-overlay .info-divider {
    /* 重新显示竖线 */
    display: block !important;
    grid-column: 2;
    grid-row: 1 / 3;
    /* 跨越 heading 与 description */
    background: #ffffff;
    width: 1px;
    opacity: 0.9;
  }

  .project-overlay .info-heading {
    /* 左列标签区域 */
    grid-column: 1;
    grid-row: 1 / 3;
    /* 占据右侧两块的总高度便于竖线对齐 */
    font-size: 14px;
    /* 保持适度字号 */
    display: grid;
    grid-auto-rows: 30px;
    /* 行高略缩小 */
    row-gap: 10px;
    transform: translateY(-8px);
    justify-items: end;
    /* 右对齐文字 */
    padding-right: 4px;
    /* 与竖线保持微距 */
  }

  .project-overlay .info-heading-info {
    /* 右上方内容 */
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-auto-rows: 30.5px;
    row-gap: 9px;
    transform: translateY(-19px);
    /* 向上移动 16px（移动端专用） */
  }

  .project-overlay .info-heading-info .info-line {
    font-size: clamp(18px, 4.5vw, 34px);
    line-height: 1.05;
  }

  .project-overlay .info-description {
    /* 右下方描述 */
    grid-column: 3;
    grid-row: 2;
    margin-top: 40px;
    /* 与 info-heading-info 间距重新设定 */
    font-size: 12px;
    line-height: 1.35;
    overflow: visible;
    /* 保证内容全部展示 */
  }

  /* ===================== project.html 移动端覆盖 ===================== */
  body.project-page {
    padding-left: 24px;
  }

  /* Mobile: increase gap between first year container and top of screen */
  .project-page .year-container:first-of-type {
    margin-top: 140px;
  }

  /* 缩小整体左侧留白 */
  body.project-page .year-container {
    justify-content: flex-start;
    padding-left: 8px;
  }

  /* 年份左对齐并贴近左侧 */
  body.project-page .year-container h1 {
    font-size: 30px;
    /* 年份字号 */
  }


  body.project-page .project-caption {
    margin-top: 2px;
    font-size: 24px;
    text-align: right;
    padding-right: 12px;
    top: 0;
  }

  /* 项目标题更小并靠右 */
  body.project-page .project-entry {
    align-items: flex-end;
  }

  /* 使标题在垂直方向靠右侧对齐 */
  body.project-page .mobile-menu-toggle span,
  body.project-page .mobile-menu-toggle span::before,
  body.project-page .mobile-menu-toggle span::after {
    background: #000000;
    /* 白底页面三条线改为黑色 */
  }

  /* 进入项目详情 Overlay 时：顶部首图保持原始比例（不强制裁剪），宽度占满屏幕 */
  .project-overlay .overlay-hero-image {
    height: auto;
    /* 不固定高度，随原始比例自适应 */
    max-height: none;
    /* 取消任何潜在的高度限制 */
    object-fit: contain;
    /* 保留完整图片（若父容器仍有高度限制则避免裁剪） */
    width: 100%;
    /* 宽度占满屏幕 */
  }

  /* 移动端：信息面板高度自适应内容，避免描述溢出 */
  .project-overlay .overlay-info-panel {
    height: auto;
    /* 取消桌面端固定 1000px 高度 */
    min-height: 0;
    /* 防止浏览器保留旧最小高度 */
  }

  /* 描述文本在移动端根据长度自动换行并自适应高度 */
  .project-overlay .info-description p {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* =============================================================== */
}

/* Mobile-only: fully transparent scrollbars */
@media (max-width: 768px) {

  /* WebKit browsers (Chrome, Safari, iOS) */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: transparent;
  }

  ::-webkit-scrollbar-corner {
    background: transparent;
  }

  /* Firefox */
  html,
  body,
  .project-overlay,
  .mobile-menu,
  .news-timeline,
  .contact-timeline {
    scrollbar-width: thin;
    /* keep it thin but invisible */
    scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  }
}

.home-brand-section {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.brand-left-strip {
  width: 120px;
  background: #00FCA5;
  position: relative;
}

.brand-left-strip .strip-icon {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-left-strip .strip-icon span {
  font-size: 21px;
  font-weight: bold;
  color: #00FCA5;
}

.brand-left-strip .strip-years {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 20px;
  font-weight: 300;
  color: #000000;
  letter-spacing: 2px;
}

.brand-left-strip .strip-cities {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3px;
}

.brand-left-strip .strip-cities span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 20px;
  font-weight: 300;
  color: #000000;
  letter-spacing: 1px;
}

.brand-left-strip .strip-area {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 20px;
  font-weight: 300;
  color: #000000;
  letter-spacing: 2px;
}

.brand-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px 60px 60px;
  background: #ffffff;
  position: relative;
}

.brand-center .brand-footer {
  margin-top: auto;
}

.brand-center .brand-philosophy {
  position: absolute;
  top: 70%;
  left: 60px;
  right: 60px;
  transform: translateY(-50%);
}

.brand-logo-area {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.brand-logo-circle {
  width: 120px;
  height: 120px;
  position: relative;
}

.brand-logo-ring {
  width: 100%;
  height: 100%;
  border: 8px solid #00FCA5;
  border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.brand-logo-text span {
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  color: #000000;
  line-height: 1;
}

.brand-projects {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-projects .project-item {
  font-size: 22px;
  font-weight: 200;
  font-family: "PingFang SC", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000000;
  letter-spacing: 1px;
}

.brand-philosophy {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-philosophy .philosophy-cn {
  font-size: 35px;
  font-weight: 100;
  font-family: "PingFang SC Thin", "SF Pro Display Thin", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000000;
  line-height: 1.4;
  margin: 0 0 20px 0;
}

.brand-philosophy .philosophy-en {
  font-size: 18px;
  font-weight: 100;
  font-family: "SF Pro Display Thin", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000000;
  line-height: 1.5;
  margin: 0;
}

.brand-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  margin-left: auto;
}

.brand-footer-icon {
  height: 16px;
  width: auto;
  display: block;
}

.brand-footer-text {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 1px;
}

.brand-right {
  width: 50%;
  min-height: 100vh;
}

.brand-right .brand-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .home-brand-section {
    flex-direction: column;
    min-height: auto;
  }

  .brand-left-strip {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 30px;
    gap: 20px;
  }

  .brand-left-strip .strip-icon {
    width: 24px;
    height: 24px;
  }

  .brand-left-strip .strip-icon span {
    font-size: 12px;
  }

  .brand-left-strip .strip-years,
  .brand-left-strip .strip-cities span,
  .brand-left-strip .strip-area {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .brand-left-strip .strip-cities {
    flex-direction: row;
    gap: 12px;
  }

  .brand-left-strip .strip-area {
    margin-top: 0;
  }

  .brand-center {
    padding: 40px 24px;
  }

  .brand-logo-circle {
    width: 80px;
    height: 80px;
  }

  .brand-logo-ring {
    border-width: 6px;
  }

  .brand-logo-text span {
    font-size: 40px;
  }

  .brand-philosophy .philosophy-cn {
    font-size: 16px;
  }

  .brand-philosophy .philosophy-en {
    font-size: 12px;
  }

  .brand-right {
    width: 100%;
    min-height: 400px;
  }
}

/* Mobile header mask: green rectangle to cover top divider lines */
@media (max-width: 768px) {

  .news-page::before,
  .contact-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    z-index: 9;
    /* Below nav (10) but above content */
  }

  .news-page::before {
    height: 230px;
  }

  .contact-page::before {
    height: 230px;
  }
}

/* Navigation Logo Images */
.nav-logo {
  display: inline-block;
  height: 72px;
  padding-left: 10px;
  vertical-align: middle;
  gap: 100px;
}

.nav-logo img {
  height: 100%;
  width: auto;
  display: none;
}

/* Default (Index): Show White Logo */
.nav-logo .logo-white {
  display: block;
}

/* Pages (Project, News, Contact): Show Black Logo */
body.project-page .nav-logo .logo-white,
body.news-page .nav-logo .logo-white,
body.contact-page .nav-logo .logo-white {
  display: none;
}

body.project-page .nav-logo .logo-black,
body.news-page .nav-logo .logo-black,
body.contact-page .nav-logo .logo-black {
  display: block;
}

/* Overlay Open: Initial State (White Logo + White Links) */
body.overlay-open .nav-logo .logo-black {
  display: none !important;
}

body.overlay-open .nav-logo {
  position: relative;
}

/* White Logo: Visible initially, fades out on scroll */
body.overlay-open .nav-logo .logo-white {
  display: block !important;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* Scrolled Logo: Hidden initially, fades in on scroll */
body.overlay-open .nav-logo .logo-scrolled {
  display: block !important;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 10px;
  /* Match padding-left of .nav-logo */
  transition: opacity 0.8s ease;
}

/* Navigation Links: White initially, fades out on scroll */
body.overlay-open .main-nav li:nth-child(n+2) a {
  color: #ffffff !important;
  opacity: 1 !important;
  pointer-events: auto;
  transition: opacity 0.8s ease;
}

/* Overlay Scrolled State */
body.overlay-open.overlay-scrolled .nav-logo .logo-white {
  opacity: 0;
}

body.overlay-open.overlay-scrolled .nav-logo .logo-scrolled {
  opacity: 1;
}

body.overlay-open.overlay-scrolled .main-nav li:nth-child(n+2) a {
  opacity: 0 !important;
  pointer-events: none;
}

@media (max-width: 768px) {
  .nav-logo {
    height: 28px;
    /* Half of PC size (72px) */
    padding-left: 0;
    /* Remove padding to match other nav items */
  }
}

/* Team Section Styles */
.team-section {
  width: 100%;
  padding: 60px 36.5px;
  /* Top/bottom spacing + requested side padding */
  box-sizing: border-box;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* PC: 5 items per row */
  gap: 30px;
  /* Padding between items */
  max-width: 100%;
}

.team-member {
  display: flex;
  flex-direction: column;
}

.member-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #e0e0e0;
  /* Placeholder background */
  margin-bottom: 5px;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-name {
  font-family: 'HK Grotesk', sans-serif;
  font-weight: 600;
  /* Bold */
  font-size: 16px;
  margin: 5px 0 2px 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.member-position {
  font-family: 'HK Grotesk', sans-serif;
  font-weight: 400;
  /* Regular */
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* Mobile: 3 items per row */
  }

  .team-section {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    padding: 60px 30px;
  }

  .contact-item-title {
    font-size: 16px;
  }
}