  body {
    font-family: 'MiSans', sans-serif;
    font-weight: 300;
  }
  .field-item {
    font-size: 12px;
    margin-bottom: 5px;
  }
  .image-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .image-item {
    overflow: visible;
    text-overflow: ellipsis;
    height: 240px;
    margin: 0px 40px;
    cursor: pointer;
  }

  .image-wrapper {
    position: relative;
    width: 100%;
    padding: 0 5px;
    padding-bottom: 100%;
    transition: transform 1s ease;
  }
  .image-wrapper:hover {
    transform: scale(1.1);
  }

  .lazy-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    object-fit: contain;
  }
  .lazy-thumbnail.loaded {
    opacity: 1;
  }

  .image-caption {
    width:150%;
    margin-left: -25%;
    margin-top:10px;
    font-size: 12px;
    color: #333;
    text-align: justify;
  }

  .img-fluid {
    margin-top: 40px;
    margin-bottom: 20px;
  }

  /* 弹出层核心样式修改 */
  .image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 97%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    align-items: center; /* 垂直居中大图 */
    justify-content: center;
    padding: 20px;
    padding-bottom: 150px; /* 预留底部横幅空间 */
    box-sizing: border-box;
    transition: padding-bottom 1s ease; /* 添加过渡效果 */
  }

  /* 当条幅隐藏时调整弹出层的内边距 */
  .image-popup:not(.showing-thumbnails) {
    padding-bottom: 50px; /* 条幅隐藏时减少底部内边距 */
  }

    /* 条幅显示时的图片样式 - 添加过渡动画 */
    .image-popup.showing-thumbnails .popup-image {
      padding:40px;
      max-height: calc(100vh - 180px);
      transition: max-height 1s ease, padding 1s ease; /* 与条幅动画保持一致的时长 */
    }
  .popup-content {
    position: relative;
    max-width: 95%;
    max-height: calc(100vh - 180px); /* 减去底部横幅高度 */
    width: 100%;
    transition: max-height 1s ease; /* 添加过渡效果 */
  }

  /* 当条幅隐藏时调整内容最大高度 */
  .image-popup:not(.showing-thumbnails) .popup-content {
    max-height: calc(100vh - 40px); /* 条幅隐藏时增加内容高度 */
    transition: max-height 1s ease; /* 添加缓慢动画效果 */
  }

  .popup-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1s;
  }
  
  /* 当条幅隐藏时调整图片最大高度 */
  .image-popup:not(.showing-thumbnails) .popup-image {
    padding:40px;
    padding-top:60px;
    max-height: calc(100vh - 50px);
    transition: max-height 1s ease, padding 1s ease, padding-top 1s ease; /* 添加缓慢动画效果 */
  }
  
  .popup-image.loaded {
    opacity: 1;
  }

  .loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }

  /* 关闭按钮修复 */
  .close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 1002; /* 确保在最上层 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  .close-btn:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
  }

  /* 底部横幅固定在屏幕下方 - 增加Dock栏效果 */
  .thumbnails-container {
    position: fixed; /* 固定在底部 */
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95); /* 背景色与弹出层一致 */
    z-index: 1001; /* 确保在大图下方，关闭按钮下方 */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* 顶部阴影区分层次 */
    box-sizing: border-box;
    /* Dock栏核心样式 */
    transform: translateY(calc(100% - 30px)); /* 默认收起，只露出触发区域 */
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑动画 */
  }
  
  /* 显示状态 */
  .thumbnails-container.visible {
    transform: translateY(0); /* 完全显示 */
  }
  
  /* 触发区域指示器 */
  .thumbnails-handle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(0,0,0,0.1);
    cursor: pointer;
  }

  .thumbnails-scroll {
    display: flex;
    gap: 10px;
    padding: 10px 40px; /* 预留左右按钮空间 */
    overflow-x: auto; /* 允许横向滚动 */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    white-space: nowrap; /* 确保内容不换行 */
    -ms-overflow-style: auto; /* IE支持 */
  }
  /** 禁用图片原生拖拽功能 */
  .thumbnail-item img {
    pointer-events: none; /* 图片不响应鼠标事件（避免误拖拽） */
  }

  /* 拖拽时容器样式强化 */
  .thumbnails-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto; /* 拖拽时禁用平滑滚动，避免冲突 */
  }
  /* 鼠标滚轮滚动支持 */
  .thumbnails-scroll::-webkit-scrollbar {
    height: 8px;
  }
  .thumbnails-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }
  .thumbnails-scroll::-webkit-scrollbar-track {
    background-color: #f5f5f5;
  }

  .thumbnail-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: all 1s;
    border: 2px solid transparent;
  }
  .thumbnail-item.active {
    opacity: 1;
  }
  .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 左右滚动按钮 - 适配Dock栏状态 */
  .thumbnail-nav {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    user-select: none; /* 禁止选中文字 */
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
  }
  
  /* 收起状态下的导航按钮位置 - 移至屏幕两侧 */
  .thumbnails-container:not(.visible) .thumbnail-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    opacity: 0.9;
  }
  
  .thumbnails-container:not(.visible) .thumbnail-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    opacity: 0.9;
  }
  
  /* 弹出状态下的导航按钮样式 */
  .thumbnails-container.visible .thumbnail-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
  }
  
  .thumbnails-container.visible .thumbnail-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
  }

  .thumbnail-nav:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
  }

  /* 拖拽时的光标样式（提升体验） */
  .thumbnails-scroll {
    /* ... 原有样式 ... */
    cursor: grab; /* 未拖拽时显示“可抓取”光标 */
    user-select: none; /* 防止拖拽时选中文本 */
  }
  .thumbnails-scroll.dragging {
    cursor: grabbing; /* 拖拽时显示“抓取中”光标 */
  }

  /* 响应式调整 */
  @media (max-width: 1000px) {
    .image-list {
      grid-template-columns: repeat(4, 1fr);
    }
    .thumbnail-item {
      width: 60px;
      height: 60px;
    }
    /* 移动端Dock栏调整 */
    .thumbnails-container {
      transform: translateY(calc(100% - 20px));
    }
    
    .thumbnails-container:not(.visible) .thumbnail-prev,
    .thumbnails-container:not(.visible) .thumbnail-next {
      width: 50px;
      height: 50px;
    }
  }

  @media (max-width: 600px) {
    .image-list {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
    .image-caption {
      font-size: 10px;
      padding: 6px 8px;
    }
    .thumbnail-item {
      width: 50px;
      height: 50px;
    }
    .popup-content {
      max-height: calc(70vh - 100px);
    }
    .thumbnails-container {
      padding: 10px;
    }
    .thumbnails-scroll {
      padding: 10px 30px;
    }
    
    /* 移动端箭头大小调整 */
    .thumbnails-container:not(.visible) .thumbnail-prev,
    .thumbnails-container:not(.visible) .thumbnail-next,
    .thumbnails-container.visible .thumbnail-prev,
    .thumbnails-container.visible .thumbnail-next {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }
  }

  .work-title {
    text-align: center;
    margin: 80px 0;
  }
  .work-all {
    margin: 0 -10vw;
  }

  /* 移动端兼容性优化补充样式 */
  html, body {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  * {
    box-sizing: inherit; /* 统一盒模型 */
  }

  /* 针对超小屏设备（如iPhone SE等320px宽度设备） */
  @media (max-width: 480px) {
    .image-list {
      grid-template-columns: repeat(2, 1fr); /* 超小屏用2列布局 */
      gap: 15px 8px; /* 增加上下间距，减小左右间距 */
      padding: 0 10px; /* 预留左右边距 */
    }

    .image-item {
      margin: 0 5px; /* 移除过大的左右margin */
      height: auto; /* 高度自适应 */
    }

    .image-wrapper {
      padding-bottom: 100%; /* 保持正方形比例 */
    }

    /* 标题描述适配 */
    .image-caption {
      width: 100%; /* 移动端取消150%宽度 */
      margin-left: 0; /* 取消负margin */
      font-size: 11px; /* 进一步缩小字体 */
      padding: 0 5px; /* 预留内边距 */
      text-align: center; /* 移动端居中对齐 */
      white-space: normal; /* 允许折行 */
    }

    /* 弹出层适配 */
    .image-popup {
      padding: 10px;
      padding-bottom: 140px; /* 减少底部预留空间 */
      transition: max-height 1s ease; /* 添加缓慢动画效果 */
    }

    .popup-content {
      max-height: calc(100vh - 180px);
    }

    /* 底部缩略图容器 */
    .thumbnails-container {
      padding: 10px 5px;
    }

    .thumbnails-scroll {
      padding: 5px 30px;
      gap: 8px;
    }

    .thumbnail-item {
      width: 60px;
      height: 60px;
    }

    /* 导航按钮 */
    .thumbnail-nav {
      width: 36px;
      height: 36px;
      font-size: 14px;
    }

    /* 关闭按钮 */
    .close-btn {
      width: 44px;
      height: 44px;
      font-size: 22px;
      top: 15px;
      right: 15px;
    }

    /* 工作列表标题 */
    .work-title {
      margin: 40px 0 20px;
    }
    .work-title h2 {
      font-size: 18px;
    }
  }

  /* 针对中等移动端（481px-600px）补充适配 */
  @media (min-width: 481px) and (max-width: 600px) {
    .image-item {
      margin: 0 15px;
    }

    .image-caption {
      font-size: 11px;
      width: 120%;
      margin-left: -10%;
    }
  }

  /* 触摸反馈优化 */
  @media (max-width: 1000px) {
    .image-item {
      touch-action: manipulation; /* 优化触摸操作 */
    }

    .thumbnail-item {
      touch-action: manipulation;
    }

    .close-btn, .thumbnail-nav {
      -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
  }
  
  
    .cv {
      padding-left: 280px;
      font-size: 14px;
      max-width: 1400px;
      margin: 0 auto;
    }
    .cv .cv {
      padding-left: 0;
      max-width: none;
      margin: 0;
    }
    .cv .section {
      margin-left: 0;
      padding: 0;
      flex: none;
    }
    .cv .section-title {
      text-transform: uppercase;
      font-size: 14px;
      font-weight: 400;
      margin: 20px 0 10px;
      letter-spacing: 1px;
    }
    .cv .item-list {
      list-style: none;
      padding-left: 0;
    }
    .cv .item {
      display: grid;
      grid-template-columns: 180px 1fr;
      column-gap: 12px;
      margin-bottom: 6px;
      align-items: start;
    }
    .cv .year {
      grid-column: 1;
      text-align: left;
    }
    .cv .content {
      grid-column: 2;
      text-align: left;
      line-height: 1.7;
    }
    .cv .content br {
      display: block;
      content: "";
      margin-bottom: 0;
    }
    .cv .item > .content:only-child {
      grid-column: 2;
    }
    
    /* 移动端顶部导航栏 - 默认只在小屏幕显示 */
.mobile-header {
  display: none; /* 桌面端隐藏 */
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed; /* 固定在顶部 */
  top: 0;
  left: 0;
  right: 0;
  z-index: 900; /* 确保在内容上方 */
}

.site-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* 汉堡按钮样式 */
.hamburger-btn {
  width: 36px;
  height: 30px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}

/* 三个横杠的位置 */
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }

/* 点击后汉堡按钮变成"X" */
.hamburger-btn.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) { opacity: 0; }
.hamburger-btn.active .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* 桌面端样式：左侧菜单正常显示 */
@media (min-width: 768px) {
  .container {
    padding-top: 20px; /* 避免内容顶到顶部 */
  }
  /* 确保原左侧菜单在桌面端可见 */
  .region-sidebar-first {
    display: block !important;
  }
}

/* 移动端样式：隐藏左侧菜单，显示顶部导航 */
@media (max-width: 767px) {
  .mobile-header {
    display: flex;
    z-index: 1200;
  }

  .hamburger-btn {
    z-index: 1201;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .container {
    padding-top: 60px;
  }

  /* 侧栏默认只作占位；打开时升为全屏遮罩，避免被 z-index:100 的叠层困住 */
  .region-sidebar-first {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    pointer-events: none; /* 不挡顶部汉堡按钮 */
  }

  .region-sidebar-first.is-open {
    height: 100%;
    z-index: 1100;
    background: #fff;
    pointer-events: auto;
  }

  .region-sidebar-first .block-title,
  .region-sidebar-first .site-slogan {
    display: none;
  }

  .chenxi-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 80px 24px 32px;
    background: #fff;
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }

  body.menu-open .chenxi-menu,
  .chenxi-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .cv {
    padding-left: 0;
  }
  .year {
    width: 120px;
  }
}
