.container {
  height: 100%;
  max-width: none;
  margin:0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
}

.wrapper{
  width: 50%;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
    margin-right: 5%;
}

.scroll-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fixed-wrapper {
    position: fixed;
    left: 0;
    right: 50%;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 16px;
}

.carousel-inner .item {
    max-height: 500px;
    max-width: 500px;
}

.title {
  font-size: 60px;
  margin-top:20px;
  font-family: 'Roboto', sans-serif;
}

.links{
  margin:20px 0px 10px 0px;
}

span {
  display:inline-block;
  margin: 10px 0 10px 0px;
}

.lb {
  display:inline-block;
  margin-top:20px 0 20px 0px;
}

.date {
  margin:0px 100px 20px 0px;
  color: #555;
}

@media only screen and (max-width: 1094px) {
  .fixed-wrapper {
    position: static;
  }
  .container {
    flex-direction: column;
  }
  .wrapper {
    width: 100%;
  }
  .mobile-view {
    display: block;
  }
  .desktop-view {
    display: none;
  }
  .wrapper.fixed-wrapper {
    min-height: calc(100vh - 190px);
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media only screen and (max-width: 1094px) {
.item iframe {
    width: auto !important;
  }
}

.project-links {
  margin: 20px 0 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-links .github {
  margin: 0;
}

/* 下载按钮 */
.download-btn {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 20px;
  text-decoration: none;
  margin: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.download-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-1px);
}

.download-password {
  display: inline-block;
  font-family: 'Source Code Pro', 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  color: #444;
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 10px;
  margin: 0;
  user-select: all;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.download-password:hover {
  background: #e8e8e8;
  border-color: #c8c8c8;
}

.project-version {
  display: inline-block;
  font-family: 'Source Code Pro', 'Consolas', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 400;
  color: #888;
  margin: 0 0 0 14px;
  vertical-align: 14px;
}

/* ---------- 运行截图：网格平铺布局 ---------- */
.project-media {
  max-width: 660px;
  margin: 0 auto;
}

.project-fan {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  justify-content: center;
  width: 100%;
  padding: 10px;
}

.project-fan-card {
  box-sizing: border-box;
  padding: 5px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

/* 悬停：轻微上浮放大 */
.project-fan-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.project-fan-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  background: #fff;
  pointer-events: none;
}

/* 单张截图：显示为最大，但不超过显示区域（不出现滚动条） */
.project-fan-single {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px;
}

.project-fan-single .project-fan-card {
  width: auto;
  max-width: 100%;
  margin: 0;
}

.project-fan-single .project-fan-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px); /* 预留导航与边距，避免垂直滚动条 */
  object-fit: contain;
}

.project-videos {
  margin-top: 16px;
}

.project-video-item {
  margin-bottom: 16px;
}

/* 移动端：网格平铺（2 列为主） */
@media (max-width: 768px) {
  .project-fan {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 8px;
  }
}

/* ---------- 截图全屏查看（lightbox，100% 原始尺寸） ---------- */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0, 0, 0, 0.94);
  overflow: auto;
}

.photo-lightbox.open {
  display: block;
}

.photo-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: none; /* 100% 原始尺寸 */
  margin: 48px auto 72px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 8px 44px rgba(0, 0, 0, 0.65);
}

/* 适应窗口模式：缩放至可视区域 */
.photo-lightbox.fit img {
  max-width: 94vw;
  max-height: 90vh;
  margin: 5vh auto;
}

.photo-lightbox-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.photo-lightbox-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.photo-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.photo-lightbox-close {
  color: #ffd0c8;
}

/* 放大视图：上一张/下一张切换按钮与计数器 */
.photo-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.photo-lightbox-prev {
  left: 16px;
}

.photo-lightbox-next {
  right: 16px;
}

.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.photo-lightbox-count {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .photo-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .photo-lightbox-prev {
    left: 8px;
  }
  .photo-lightbox-next {
    right: 8px;
  }
  .photo-lightbox-count {
    bottom: 12px;
  }
}