:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #666666;
  --white: #000000;
  --container-desktop: 1550px;
  --container-tablet-max: 900px;
  --gap-min: 5px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --line-width: 1px;
  --font-family: "Noto Sans SC", "PingFang SC", "WenQuanYi Micro Hei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --lightbox-duration: 0.6s;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 移除移动端触屏点击时的蓝色高亮特效 */
* {-webkit-tap-highlight-color: transparent;-webkit-touch-callout: none;}
html, body { height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  letter-spacing: 2px; /* 中文字间距 */
}

/* 全局英文样式 - 独立字间距设置 */
html[lang="en"] body,
html.lang-en body,
html.lang-en *,
body[data-lang="en"],
:lang(en) {
  letter-spacing: 0.5px; /* 缩小英文字间距 */
}

/* 页面切换过渡 - 只应用于容器内容，不影响页眉 */
body.page-enter .container {
  opacity: 0;
}
body.page-enter-active .container {
  opacity: 1;
  transition: opacity 0.4s ease;
}
body.page-leave .container {
  opacity: 1;
}
body.page-leave-active .container {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 当页眉在 body 下时（页面切换期间），确保不受容器影响 */
body > .page-header {
  opacity: 1 !important;
  transform: translateZ(0) !important;
}

/* 首页特殊处理 */
body.page-enter .page.home {
  opacity: 0;
}
body.page-enter-active .page.home {
  opacity: 1;
  transition: opacity 0.4s ease;
}
body.page-leave .page.home {
  opacity: 1;
}
body.page-leave-active .page.home {
  opacity: 0;
  transition: opacity 0.3s ease;
}
a { color: inherit; text-decoration: none; }
img { 
  display: block; 
  width: 100%; 
  height: auto; 
  background-color: rgba(0, 0, 0, 0.03); /* 极淡的占位背景色 */
}
/* 针对 PNG 图片（通常带透明度）移除占位背景 */
img[src*=".png?v=17690757"] {
  background-color: transparent !important;
}
.page { width: 100%; }
.container {
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-desktop);
  padding: 0;
  padding-top: 185px; /* 页眉高度(约85px) + 间距100px */
}
@media (min-width: 1024px) and (max-width: 1549px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1023px) {
  .container { width: 75%; max-width: 75%; padding-top: 150px; }
}
@media (max-width: 767px) {
  .container { width: 75%; max-width: 75%; padding-top: 150px; }
}

/* Typography scaling */
html { font-size: 16px; }
@media (max-width: 1023px) { html { font-size: 15px; } }
@media (max-width: 767px) { html { font-size: 14px; } }
@media (max-width: 767px) { :root { --lightbox-duration: 0.2s; } }

/* 全局滚动条样式===================================================================================================================== */
html {
  overflow-y: scroll; /* 强制显示滚动条，防止内容高度变化时页面抖动 */
}

/* Webkit 浏览器 (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background-clip: padding-box;
  border: 3px solid transparent; /* 通过透明边框缩窄滑块视觉宽度，保持易用性 */
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

/* Firefox 浏览器 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* 首页隐藏滚动条 */
html.home-page {
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.home-page::-webkit-scrollbar {
  display: none !important;
}

/* Home调整背景图片以及黑色遮罩透明度==================================================================================================== */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  background-image: url('images/cover.jpg?v=17690757');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.home .logo {
  position: relative;
  z-index: 2;
}
.home .logo {
  width: 200px;
  height: 200px;
}
@media (max-width: 1023px) {
  .home .logo { width: 160px; height: 160px; }
}
@media (max-width: 767px) {
  .home .logo { width: 120px; height: 120px; }
}

/* Header页眉===================================================================================================================== */
.page-header {
  width: 100%;
  padding: 30px 0 30px 0;
  color: var(--text);
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg);
  z-index: 5;
  opacity: 1 !important; /* 确保页眉始终可见，不受页面过渡影响 */
  transition: none !important; /* 禁用页眉的过渡效果 */
  isolation: isolate; /* 创建新的层叠上下文，隔离过渡效果 */
  will-change: auto; /* 避免不必要的重绘优化 */
  transform: translateZ(0); /* 创建新的合成层，完全隔离父元素的 opacity */
  pointer-events: auto; /* 确保页眉可以交互 */
  contain: layout style paint; /* CSS containment，完全隔离渲染 */
}

/* 确保页眉不受容器 opacity 影响 - 无论页眉在哪里 */
.page-header,
body > .page-header,
.container > .page-header {
  opacity: 1 !important;
  transform: translateZ(0) !important;
  visibility: visible !important;
}

/* 确保页眉在所有过渡状态下都可见 */
body.page-enter .page-header,
body.page-enter-active .page-header,
body.page-leave .page-header,
body.page-leave-active .page-header,
body.page-enter body > .page-header,
body.page-enter-active body > .page-header,
body.page-leave body > .page-header,
body.page-leave-active body > .page-header {
  opacity: 1 !important;
  transform: translateZ(0) !important;
  visibility: visible !important;
}
.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-desktop);
  padding: 0;
}
@media (min-width: 1024px) and (max-width: 1549px) {
  .header-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1023px) {
  .header-inner { width: 75%; max-width: 75%; }
}
@media (max-width: 767px) {
  .header-inner { width: 75%; max-width: 75%; }
}
.brand {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
  padding-top: 0;
}
.brand a {
  display: block;
  line-height: 0;
}
.brand img {
  height: auto;
  width: auto;
  max-height: 50px;
  display: block;
}
@media (max-width: 1023px) {
  .brand img {
    max-height: 40px;
  }
}
@media (max-width: 767px) {
  .brand img {
    max-height: 35px;
  }
}

/* Nav button导航按钮===================================================================================================================== */
.nav-toggle {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.nav-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: gap var(--transition-medium), transform var(--transition-medium);
}

.nav-line {
  width: var(--line-width);
  height: var(--nav-line-h, 25px);
  background: var(--text);
  transition: height var(--transition-medium), margin var(--transition-medium);
}

/* 导航线条高度逻辑优化 */
.nav-toggle.active .nav-line:nth-child(2) { height: calc(var(--nav-line-h, 25px) * 0.7); }
.nav-toggle.active .nav-line:nth-child(3) { height: calc(var(--nav-line-h, 25px) * 0.45); }
.nav-toggle.active .nav-line:nth-child(4) { height: calc(var(--nav-line-h, 25px) * 0.25); }

/* 桌面端 (>= 1024px) */
@media (min-width: 1024px) {
  .nav-toggle {
    cursor: default;
    gap: 0;
  }
  .nav-toggle .nav-lines { display: none; }
  
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    color: var(--muted);
  }
  
  .nav-menu::before { display: none; }
  .nav-menu :is(.pages, .lang) {
    position: static;
    display: flex;
    transform: none;
    margin: 0;
  }
  .nav-menu .pages { gap: 24px; }
  .nav-menu .lang { gap: 16px; }

  .nav-menu .lang button {
    font-size: 12px;
    font-weight: 200;
    letter-spacing: 0.5px;
    text-transform: uppercase; 
  }

  /* 当前激活语言的样式 */
  .nav-menu .lang button.active {
    font-weight: 400; 
    color: var(--white); 
  }
}

/* 移动/平板端基础样式 (< 1024px) */
@media (max-width: 1023px) {
  .nav-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    padding: 16px 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    color: var(--muted);
    font-weight: 400;
  }

  .nav-menu::before {
    content: "";
    position: absolute;
    inset: -24px -180px;
  }

  .nav-menu .pages {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 20px;
    gap: 24px;
  }

  .nav-menu .lang {
    position: fixed;
    top: 50%;
    right: var(--lang-right, calc(25% - 20px));
    height: var(--nav-line-h, 25px);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 16px;
    z-index: 6;
  }

  .nav-toggle:hover .nav-menu { opacity: 0; pointer-events: none; }
  .nav-toggle.active .nav-menu { opacity: 1; pointer-events: auto; }

  .nav-menu :is(button, a) { font-size: 16px; }
  .nav-menu .lang button { font-size: 10px; }

  /* 移动/平板端语言按钮激活态 */
  .nav-menu .lang button.active {
    display: block;
    font-size: 12px;
    padding: 0;
    line-height: 1;
    color: var(--text);
    opacity: 0.7;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast), color var(--transition-fast);
  }
  .nav-menu .lang button.active:is(:hover, :active) {
    opacity: 1;
    color: var(--white);
  }

  .nav-menu .lang button:not(.active) { display: none; }
}

/* 平板端 (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .nav-toggle { --nav-line-h: 20px; }
  .nav-lines { gap: 4px; }
  .nav-menu { padding: 14px 28px; --lang-right: calc(25% - 40px); }
  .nav-menu .pages { gap: 20px; }
}

/* 移动端 (< 767px) */
@media (max-width: 767px) {
  .page-header { padding-top: 24px; }
  .brand.hidden { opacity: 0; }
  
  .nav-toggle { --nav-line-h: 18px; }
  .nav-lines { gap: 3px; }
  
  .nav-menu { 
    padding: 12px 20px; 
    --lang-right: calc(25% - 30px);
  }
  .nav-menu :is(.pages a, .pages button) { font-size: 14px; }
}

/* 导航链接通用样式 */
.nav-menu :is(button, a) {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 18px;
  transition: color var(--transition-fast);
}

.nav-menu :is(button, a):hover { color: var(--white); }
.nav-menu :is(.lang button.active, .pages a.active) { color: var(--white); }

.nav-menu .pages a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  
  /* 解决英文字体变粗导致的占位变大：使用伪元素撑开宽度 */
  &::before {
    content: attr(data-content);
    display: block;
    height: 0;
    font-weight: 400; /* 与激活态一致 */
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
  }

  &.active { font-weight: 400; }
  
  &::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 45%;
    width: 80%;
    height: 1px;
    background-color: var(--white);
    transform: translateX(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-out;
  }
  &.active::after { transform: translateX(-50%) scaleX(1); }
}

/* Grid layout项目页和媒体页布局网格==================================================================================================== */
.grid {
  column-count: 3;
  column-gap: 100px;
  column-width: 450px;
}
.grid-item {
  color: var(--muted);
  transition: color var(--transition-fast);
  break-inside: avoid;
  margin-bottom: 100px;
  cursor: pointer;
}
.grid-item:hover { color: var(--white); }
.grid-item:hover .caption { font-weight: 450; }
.grid-item .caption { margin-top: 12px; font-size: 14px; }

@media (max-width: 1023px) and (min-width: 768px) {
  .grid { column-count: 2; column-gap: 10%; column-width: 200px; }
  .grid-item { margin-bottom: 80px; }
  .grid-item .caption { font-size: 14px; }
}
@media (max-width: 767px) {
  .grid { column-count: 1; column-gap: 0; column-width: 100%; }
  .grid-item { margin-bottom: 60px; }
  .grid-item .caption { font-size: 12px; }
}

.section-spacing { margin-top: 0; }
@media (max-width: 1023px) { .section-spacing { margin-top: 0; } }
@media (max-width: 767px) { .section-spacing { margin-top: 0; } }

/* Filters媒体页分类器===================================================================================================================== */
.filters {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  color: var(--muted);
  overflow-x: visible;
}
.filters button {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--transition-fast);
  letter-spacing: 2px;/* 中文字间距 */
}
.filters button:not(.active) {
  font-weight: 300;
}

html[lang="en"] .filters button,
html.lang-en .filters button,
body[data-lang="en"] .filters button { 
  letter-spacing: 0.5px; /* 英文字间距 */ 
}

.filters button.active, .filters button:hover { color: var(--white); }
@media (max-width: 1023px) {
  .filters { gap: 20px; }
  .filters button { font-size: 16px; }
}
@media (max-width: 767px) {
  .filters { gap: 15px; overflow-x: auto; padding-bottom: 6px; }
  .filters button { font-size: 14px; }
}

/* About关于页===================================================================================================================== */
.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}
.about-section { 
  display: flex; 
  flex-direction: column; 
  gap: 60px; 
  color: var(--text);
  max-width: 900px;
  flex: 0 0 900px;
}
@media (min-width: 1024px) and (max-width: 1549px) {
  .about-wrapper {
    gap: 60px;
  }
  .about-section {
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
  }
  .about-images {
    flex: 0 1 auto;
    min-width: 300px;
  }
}
.about-block { display: flex; flex-direction: column; gap: 30px; }
.about-title { font-size: 18px; color: var(--white); font-weight: 500; }
.about-text { font-size: 14px; color: var(--muted); font-weight: 400; white-space: pre-line; text-align: justify; }
.about-images {
  flex: 1;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  position: relative;
}
.about-image {
  width: 100%;
}
.about-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1023px) {
  .about-wrapper { flex-direction: column; gap: 40px; }
  .about-section { max-width: 100%; flex: 1 1 auto; }
  .about-images { width: 100%; gap: 30px; }
  .about-title { font-size: 16px; }
  .about-text { font-size: 12px; }
}
@media (max-width: 767px) {
  .about-wrapper { gap: 50px; }
  .about-section { gap: 50px; }
  .about-images { gap: 20px; }
  .about-title { font-size: 14px; }
  .about-text { font-size: 10px; }
}

/* 项目页灯箱===================================================================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lightbox-duration) ease;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100vw;
  height: 100%;
  text-align: center;
}

.lightbox img {
  width: auto;
  height: calc(100vh - 200px);
  max-width: calc(100vw - 60px);
  max-height: calc(100vh - 200px);
  object-fit: contain;
  margin: 0 auto;
  cursor: default;
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

.lightbox .description {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text);
  z-index: 10;
  pointer-events: auto;
}

.lightbox :is(.lightbox-title, .lightbox-desc-text) {
  font-variant-numeric: normal;
  pointer-events: auto;
  position: relative;
  z-index: 11;
}

.lightbox .lightbox-title {
  color: var(--white);
  font-weight: 400;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.lightbox .lightbox-title:hover { opacity: 0.7; }

.lightbox .lightbox-desc-text {
  font-weight: 300;
  cursor: default;
}

/* 灯箱按钮通用样式 */
.lightbox :is(.back-btn, .nav-btn, .lightbox-up-arrow-btn) {
  position: fixed;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  z-index: 101;
  padding: 0;
}

.lightbox :is(.back-btn, .nav-btn, .lightbox-up-arrow-btn):hover {
  opacity: 1;
  color: var(--white);
}

.lightbox .back-btn {
  top: 30px;
  right: 50px;
  width: 40px;
  height: 40px;
  font-size: 32px;
  text-indent: -9999px;
  overflow: hidden;
}

.lightbox .back-btn::before,
.lightbox .back-btn::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 24px;
  background: currentColor;
  transition: background var(--transition-fast);
}

.lightbox .back-btn::before { transform: rotate(45deg); }
.lightbox .back-btn::after { transform: rotate(-45deg); }

.lightbox .lightbox-up-arrow-btn {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: none;
}

.lightbox.media-lightbox .lightbox-up-arrow-btn { display: none !important; }

.lightbox .zone {
  position: fixed;
  top: 80px;
  bottom: 0;
  width: 50%;
  z-index: 1;
  pointer-events: none;
}
.lightbox .prev { left: 0; }
.lightbox .next { right: 0; }

.lightbox .nav-btn {
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  font-size: 48px;
}
.lightbox .nav-btn.prev-btn { left: 40px; }
.lightbox .nav-btn.next-btn { right: 40px; }

/* 移动端滚动容器 */
.mobile-lightbox-images {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-lightbox-images::-webkit-scrollbar { display: none; }

.mobile-lightbox-image-item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.mobile-lightbox-image-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 200px);
  object-fit: contain;
}

/* 响应式适配 */
@media (max-width: 1023px) {
  .lightbox { padding: 80px 20px; }
  .lightbox .description { font-size: 12px; }
  .lightbox .lightbox-up-arrow-btn { bottom: 25px; }
  .lightbox :is(.nav-btn, .zone) { display: none; }
  
  .lightbox:not(.media-lightbox) #lightboxImg { display: none; }
  .lightbox:not(.media-lightbox) .mobile-lightbox-images { max-width: calc(100vw - 40px); }
  .lightbox:not(.media-lightbox) .mobile-lightbox-image-item img {
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 200px);
  }
}

@media (max-width: 767px) {
  .lightbox { padding: 40px 12px; }
  .lightbox .description {
    position: fixed;
    bottom: 50px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    font-size: 10px;
    z-index: 101;
  }
  .lightbox .lightbox-up-arrow-btn {
    bottom: 10px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    z-index: 102;
  }
  .lightbox .back-btn {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
  .lightbox .back-btn::before,
  .lightbox .back-btn::after { height: 18px; }
  
  .lightbox:not(.media-lightbox) .mobile-lightbox-images { max-width: calc(100vw - 24px); }
}

/* 媒体页灯箱===================================================================================================================== */
.lightbox.media-lightbox {
  padding: 40px;
}

.media-lightbox .lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 单张图片时，容器自适应宽度 */
.media-lightbox .lightbox-content.single-image {
  max-width: none;
  width: auto;
}

.media-lightbox .lightbox-content.single-image .media-lightbox-images {
  width: auto;
  overflow-x: visible;
}

.media-lightbox .lightbox-content.single-image .media-lightbox-info {
  width: 100%;
}

/* 隐藏项目页专用元素 */
.media-lightbox :is(#lightboxImg, .description, .zone) {
  display: none !important;
}

/* 隐藏非媒体页下的媒体元素 */
.lightbox:not(.media-lightbox) :is(.media-lightbox-images, .media-lightbox-info) {
  display: none;
}

/* 横向滚动图片容器 */
.media-lightbox-images {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background-color: transparent;
}

/* 滚动条样式 */
.media-lightbox-images::-webkit-scrollbar { height: 10px; }
.media-lightbox-images::-webkit-scrollbar-track { background: rgba(200, 200, 200, 0.3); }
.media-lightbox-images::-webkit-scrollbar-thumb { 
  background: rgba(200, 200, 200, 0.6); 
  border-radius: 3px; 
}
.media-lightbox-images::-webkit-scrollbar-thumb:hover { background: rgba(200, 200, 200, 0.9); }

.media-lightbox-image-item {
  flex-shrink: 0;
  width: auto;
  height: 60vh;
}

.media-lightbox-image-item img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

/* 媒体页文字信息区域 */
.media-lightbox-info {
  text-align: left;
  color: var(--text);
}

.media-lightbox-info .lightbox-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
}

.media-lightbox-info :is(.lightbox-location, .lightbox-time, .lightbox-desc-text) {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 5px;
}

.media-lightbox-info .lightbox-time { margin-bottom: 20px; }
.media-lightbox-info .lightbox-desc-text { line-height: 1.8; }

/* 响应式适配 */
@media (max-width: 1023px) {
  .lightbox.media-lightbox { padding: 50px 50px; }
  .media-lightbox-images { margin-bottom: 30px; }
  .media-lightbox-info .lightbox-title { font-size: 16px; }
  .media-lightbox-info :is(.lightbox-location, .lightbox-time, .lightbox-desc-text) { font-size: 13px; }
}

@media (max-width: 767px) {
  .lightbox.media-lightbox { padding: 30px 30px; }
  .media-lightbox-images { gap: 15px; margin-bottom: 20px; }
  .media-lightbox-image-item,
  .media-lightbox-image-item img { height: 50vh; }
  .media-lightbox-info .lightbox-title { font-size: 12px; margin-bottom: 10px; }
  .media-lightbox-info :is(.lightbox-location, .lightbox-time, .lightbox-desc-text) { 
    font-size: 10px; 
    margin-bottom: 6px; 
  }
}

/* 项目页灯箱描述卡片（从下方滑出）==================================================================================================== */
.lightbox-detail-card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  max-height: 80vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 102;
  overflow-y: auto;
  padding: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
/* 为不支持 backdrop-filter 的浏览器使用完全不透明背景色 */
@supports not (backdrop-filter: blur(10px)) {
  .lightbox-detail-card {
    background: rgba(255, 255, 255, 0.9);
  }
}

.lightbox-detail-card.visible {
  transform: translateY(0);
}

.detail-card-close {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  z-index: 103;
  padding: 0;
}

.detail-card-close:hover {
  opacity: 1;
  color: var(--white);
}

.detail-card-content {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 20px;
}

.detail-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 300;
  line-height: 1.8;
  white-space: pre-line;
  text-align: justify; 
}

/* 其他信息文字样式 */
.other-info-text {
  text-align: left;
  margin-bottom: 30px;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .lightbox-detail-card {
    padding: 30px 20px;
    max-height: 70vh;
  }
  
  .detail-text {
    font-size: 10px;
    text-align: justify;
  }
  
  .detail-card-close {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .detail-card-content { width: 75%; max-width: 75%; }
  
}

/* 圆点页码指示器（仅移动端和平板端显示）==================================================================================================== */
.lightbox-page-indicator {
  display: none; /* 默认隐藏，仅在移动端和平板端显示 */
  text-align: center;
  margin: 30px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.lightbox-page-indicator .page-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--muted);
  opacity: 0.3;
  transition: opacity var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.lightbox-page-indicator .page-dot.active {
  opacity: 1;
  background-color: #333333;
  transform: scale(1.2);
}

/* 移动端和平板端显示圆点指示器 */
@media (max-width: 1023px) {
  .lightbox-page-indicator {
    display: flex;
  }
  
  .lightbox:not(.media-lightbox) .lightbox-page-indicator {
    margin: 30px 0 10px 0;
  }
}

@media (max-width: 767px) {
  .lightbox-page-indicator {
    margin: 25px 0 8px 0;
    gap: 3px;
  }
  
  .lightbox-page-indicator .page-dot {
    width: 3px;
    height: 3px;
  }
  
  .lightbox-page-indicator .page-dot.active {
    transform: scale(1.2);
  }
  
  .lightbox:not(.media-lightbox) .lightbox-page-indicator {
    margin: 5px 0 60px 0;
  }
}

/* 桌面端隐藏圆点指示器 */
@media (min-width: 1024px) {
  .lightbox-page-indicator {
    display: none !important;
  }
}

/* Footer页脚===================================================================================================================== */
footer {
  text-align: center;
  padding: 100px 0 20px 0;
  font-size: 8px;
  color: #aaaaaa;
  letter-spacing: 0.5px;
}
body > footer { margin-top: auto; }
@media (max-width: 1023px) {
  footer { font-size: 4px; }
}

@media (max-width: 767px) {
  .footer-divider {
    display: block;
    height: 0;
    margin: 0.1px 0;
    visibility: hidden;
  }
}

