/* ==========================================
   Projects 单页专属样式与锚点平滑偏移
   ========================================== */

/* 1. 解决点击锚点跳转时，顶部 fixed 导航栏覆盖标题的问题 */
.project-block {
    scroll-margin-top: 100px;
    padding: 80px 0 0 0;
}

/* 2. 项目分类标签 (Tag) */
.project-tag {
    display: inline-block;
    background: black;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* 3. 项目标题与描述 */
.project-content h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-desc {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* 4. 核心亮点列表 */
.project-highlights {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.project-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #444;
}

.project-highlights li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #ef4836;
    font-size: 0.8em;
}

/* 5. 图片卡片圆角与阴影优化 */
.project-img-card img {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
    width: 100%;
    max-height: 380px;
}

.project-img-card img:hover {
    transform: translateY(-4px);
}

/* 6. 项目分隔线 */
.project-divider {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

/* ==========================================
   右侧大图及右下角悬浮体验按钮样式
   ========================================== */
.main-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background-color: #000;
}

.main-img-container img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-img-container img:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* 叠加在右下角体验按钮 */
.demo-btn-overlay {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.85em;
  padding: 0 18px;
  height: 38px;
  line-height: 38px;
  opacity: 0.92;
  background: #ef4836 ;
}

.demo-btn-overlay:hover {
  opacity: 1;
}

/* ==========================================
   下方 4 张小图网格与悬浮样式
   ========================================== */
.sub-gallery-row {
  margin-top: 25px !important;
}

.sub-img-card {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.sub-img-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sub-img-card img:hover {
  transform: scale(1.06);
}

/* ==========================================
   全屏查看大图 (Lightbox) Modal 弹窗
   ========================================== */
.img-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.25s ease-in-out;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* 视频容器与 iframe 16:9 比例自适应（彻底消除黑边） */
.video-box {
    width: 100%;
    aspect-ratio: 16 / 9; /* 强制容器严格保持 16:9 比例 */
    border-radius: 8px;   /* 匹配页面统一圆角风格 */
    background: transparent;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}