/* ================================
   Project Page Global Setup
   ================================ */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: none;
    overflow-x: hidden;
}

/* 白底项目页 */
.project-page {
    background-color: #ffffff !important;
    color: #111111;
    line-height: 1.6;
    min-height: 100vh;
}

/* 如有其它页面全局噪点/暗角元素，project 页强制隐藏 */
.noise-overlay,
.vignette {
    display: none !important;
}


/* ================================
   Custom Cursor
   ================================ */

#cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 60px;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: difference;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

#cursor-wrapper .cursor-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.65376 12.3673H5.46026L5.31717 12.4976L0.500002 16.8829L0.500002 1.19823L11.4818 12.1799L5.65376 12.3673Z' fill='white' stroke='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
}

#cursor-wrapper .cursor-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.65376 12.3673H5.46026L5.31717 12.4976L0.500002 16.8829L0.500002 1.19823L11.4818 12.1799L5.65376 12.3673Z' fill='white' stroke='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    opacity: 0.15;
    transform-origin: 0 0;
    transform: scaleY(-1) skewX(-10deg) translateY(2px);
    filter: blur(1px);
}


/* ================================
   Header: Logo + Name + Nav
   （对齐 index 页 .ui-layer）
   ================================ */
/* .project-header  {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 40px 60px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(87, 87, 87, 0.8), transparent);
} */

/* .project-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  padding: 40px 60px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  pointer-events: none;

  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.02) 70%,
      rgba(255, 255, 255, 0) 100%
  );

  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
} */

.project-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 100;
    padding: 40px 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    overflow: hidden;
}

/* 玻璃条放在伪元素里，文字层在上面 */
.project-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.18) 30%,
            rgba(255, 255, 255, 0.08) 65%,
            rgba(255, 255, 255, 0.00) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    pointer-events: none;
    z-index: 0;
}

/* 文本层默认：在 hero 上，用浅色 */
.project-header h1,
.project-header .home-link,
.project-footer,
.project-header .nav a {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-decoration: none;
    mix-blend-mode: normal;
    /* 不再用 difference */
}

/* 布局保持你原来的样式 */
.project-header h1 {
    margin: -5px 0 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-header .header-logo {
    height: 1.2rem;
    width: auto;
    display: block;
    filter: invert(0);
}

.project-footer .footer-logo.dark-mode {
    filter: invert(0.35);
}

.project-header .header-logo.dark-mode {
    filter: invert(0.5);
}

.project-header .nav a {
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    cursor: none;
}

.project-header .nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s;
}

.project-header .nav a:hover::after {
    width: 100%;
}

.project-header * {
    pointer-events: auto;
}

/* ⭐ 当 header 进入白底区域时，加上 .on-light：文字全部变深色 */
.project-header.on-light h1,
.project-header.on-light .home-link,
.project-footer.on-light,
.project-header.on-light .nav a {
    color: #808080;
}


/* logo 保持正常 */
.project-header .header-logo {
    height: 1.2rem;
    width: auto;
    display: block;
    filter: invert(0);
    mix-blend-mode: difference !important;
}

】

/* 点击回首页的区域（包着 logo + 文本） */
.home-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.4rem;
    font-weight: bold;
}

/* 顶部导航 */
.nav a {
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    /* color: #fff; */
    text-decoration: none;
    cursor: none;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    /* background: #fff; */
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* 如果以后启用 “Back” 链接可以用到 */
.project-nav {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 100;
    mix-blend-mode: difference;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-link:hover {
    transform: translateX(-5px);
}

.slide-crop-frame {
    width: 100%;
    max-height: 480px;
    /* adjust for your layout */
    overflow: hidden;
    border-radius: 8px;
}

.slide-crop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, object-position 0.25s ease;
}

/* ================================
   Hero Section
   ================================ */

.project-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    margin-bottom: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: opacity 0.6s ease, transform 0.3s ease;
    opacity: 0;
}

.hero-bg img.loaded,
.hero-bg video.loaded {
    opacity: 1;
}

/* Loading spinner */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-bg.loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-bg iframe {
    border: none;
    pointer-events: none;
    /* 禁止交互，保持背景视频效果 */
    display: block;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* 終極版本：底部更強的漸變 */
  background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.01) 5%,
      rgba(255,255,255,0.02) 10%,
      rgba(255,255,255,0.03) 15%,
      rgba(255,255,255,0.04) 20%,
      rgba(255,255,255,0.05) 25%,
      rgba(255,255,255,0.06) 30%,
      rgba(255,255,255,0.08) 35%,
      rgba(255,255,255,0.10) 40%,
      rgba(255,255,255,0.12) 45%,
      rgba(255,255,255,0.15) 50%,
      rgba(255,255,255,0.18) 55%,
      rgba(255,255,255,0.22) 60%,
      rgba(255,255,255,0.27) 65%,
      rgba(255,255,255,0.33) 70%,
      rgba(255,255,255,0.40) 75%,
      rgba(255,255,255,0.48) 80%,
      rgba(255,255,255,0.57) 85%,
      rgba(255,255,255,0.67) 90%,
      rgba(255,255,255,0.78) 95%,
      rgba(255,255,255,0.90) 98%,
      rgba(255,255,255,1.00) 100%
  );
}

/* 極輕微的噪點抖動 - 作為最後的補強 */
.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,0.1) 1px, rgba(255,255,255,0.1) 2px),
    repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,0.1) 1px, rgba(255,255,255,0.1) 2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px;
    background-color: #ffffff;
    min-height: auto;
}

.title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.95;
    margin: 0 0 20px 0;
    color: #000;
    text-shadow: 0 20px 40px rgba(255, 255, 255, 0.9);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* ================================
   Professional Style (Tech/Product)
   ================================ */

/* Professional页面：导航栏保留玻璃效果，但用浅色背景，文字变黑 */
body:has(.hero-style-professional) .project-header::before {
    background: rgba(255, 255, 255, 0.85);
    /* backdrop-filter保持不变，继承原有的毛玻璃效果 */
}

body:has(.hero-style-professional) .project-header h1 span,
body:has(.hero-style-professional) .project-header .home-link,
body:has(.hero-style-professional) .project-header .nav a {
    color: #333;
}

body:has(.hero-style-professional) .project-header .header-logo {
    filter: brightness(0);
}

/* Professional hero: 与顶部导航栏有间距，居中 */
.hero-style-professional {
    margin-top: 120px;
    /* border: 1px solid #ccc; */
    overflow: visible;
}

.hero-style-professional .hero-bg {
    max-width: 60%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    /* border: 1px solid #ccc; */
}

/* Hide gradient for professional style */
.hero-style-professional .hero-gradient {
    display: none;
}

/* Professional content: more compact, cleaner */
.hero-content-professional {
    padding: 50px 60px;
    /* border: 1px solid #111; */
}

.hero-content-professional .title {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.02em;
    text-shadow: none;
    margin-bottom: 15px;
}

.hero-content-professional .subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 10px;
    /* height: 1.4rem; */
    text-shadow: none;
    /* border: 1px solid #111; */
}

.hero-content-professional .info-hud {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.hero-content-professional .hud-item label {
    font-size: 0.7rem;
    color: #999;
}

.hero-content-professional .hud-item span {
    font-size: 0.95rem;
    color: #333;
}

.subtitle {
    font-size: 1.3rem;
    color: #444;
    font-weight: 400;
    max-width: 80%;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 0 10px 20px rgba(255, 255, 255, 0.8);

}

.info-hud {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.hud-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 100px;
}

/* Year 列最小 */
.hud-item.year {
    flex: 0 0 80px;
    min-width: 80px;
}

/* Role 列中等宽度 */
.hud-item:nth-child(2):not(.link-col) {
    flex: 1 1 120px;
}

/* Tools 列更宽 */
.hud-item.tools {
    flex: 1.8 1 180px;
}

/* Context 列更宽 */
.hud-item.context {
    flex: 1.8 1 180px;
}

/* 其他动态字段 */
.hud-item:not(.year):not(.tools):not(.context):not(.link-col) {
    flex: 1 1 120px;
}

/* Links 列占据整行 */
.hud-item.link-col {
    flex: 1 0 100%;
}

.hud-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    font-family: monospace;
}

.hud-item span {
    font-size: 1rem;
    font-family: monospace, 'Courier New', Courier;
    font-weight: 500;
    color: #000;
}

/* Tools 标签样式 - 玻璃形态效果 */
.hud-item.tools span {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-tag {
    display: inline-block;
    padding: 6px 10px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: monospace, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: #111;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;

    /* 玻璃形态背景 - 和 header 一致 */
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);

    /* border: 1px solid rgba(9, 9, 9, 0.598); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

.tool-tag:hover {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.88) 100%);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* .hud-item.year {
    grid-column: span 0.5;
}

.hud-item.context {
    grid-column: span 2;
}

.hud-item.tools {
    grid-column: span 1;
} */


.link-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hud-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    width: fit-content;
    transition: border-color 0.3s;
    cursor: none;
}

.hud-link:hover {
    border-color: #000;
}


/* ================================
   Body & Content Layout
   ================================ */

.project-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    margin-top: 0;
    /* border: 1px solid #111; */
}

.content-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
    /* border: 1px solid #111; */

}

.row-label {
    font-family: monospace;
    font-size: 1rem;
    text-transform: uppercase;
    color: #999;
    position: sticky;
    top: 40px;
    height: fit-content;
    text-align: left;
    /* border: 1px solid #da6363; */
}

/* .row-sub {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    text-transform: none;
    line-height: 1.4;
    white-space: pre-wrap;
    border: 1px solid #63da89;
} */

.content-subtitle {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    margin-top: 0;
    text-transform: none;
    /* border: 1px solid #63da89; */
}

.row-content {
    min-width: 0;
    /* border: 1PX SOLID #ff2525; */
}

.row-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    font-weight: 400;
    color: #222;
    margin-top: 0;
    /* border: 1PX SOLID #ff2525; */
}

.lead-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    color: #111;
    letter-spacing: 0;
}

.row-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 25px;
    color: #bababa;
}

.row-content ol {
    list-style: circle;
    padding-left: 20px;
    margin-bottom: 25px;
    color: #bababa;
}

.row-content li {
    font-size: 1.10rem;
    color: #555555;
    font-family: 'Helvetica Neue', sans-serif;
    margin-bottom: 8px;
    display: list-item;
}

/* 居中模式（Gallery 用到） */
.content-row.mode-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-template-columns: none;
}

.content-row.mode-center .row-label {
    position: static;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.content-row.mode-center .row-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 图片 / 视频 Block */
.large-image,
.large-media {
    display: block;
}

.large-image img,
.large-media video {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    background: #f5f5f5;
}

/* YouTube视频容器 - 16:9响应式 */
.large-image .video-wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* border-radius由inline style控制 */
    overflow: hidden;
    background: #ffffff;
    /* border-radius: 20px; */
}

.large-image .video-wrapper iframe {
    border: none;
}

/* 本地视频样式 */
.large-image video {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* border-radius由inline style控制 */
    background: #ffffff;
}

figcaption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    font-family: monospace;
}

/* ================================
   Gallery Slider
   ================================ */

.gallery-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0 30px 0;
    margin-bottom: 0;
}

/* 新增：真正负责裁剪图片和圆角的容器 */
.gallery-viewport {
    width: 100%;
    overflow: visible;
    position: relative;
    padding: 30px 0;
}

/* track 只负责水平滑动 */
.slider-track {
    display: flex;
    transform: translateX(0);
    gap: 0;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    margin: 0 auto 20px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: none;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: block;
    transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.4s ease;
    opacity: 0;
}

.slide img.loaded {
    opacity: 1;
}

/* 当前激活的 slide 才显示阴影 */
.slide.active img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.slide-caption {
    margin-top: 15px;
    text-align: center;
    font-family: monospace;
    color: #888;
    font-size: 0.85rem;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 0 40px;
    font-family: 'Courier New', monospace;
    color: #333;
}

.prev-btn,
.next-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}


.prev-btn:hover,
.next-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.slide-counter {
    font-size: 0.9rem;
    letter-spacing: 2px;
}


/* ================================
   Footer
   ================================ */

.project-footer {
    margin-top: 150px;
    padding: 80px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #ccc;
    border-top: 1px solid #f0f0f0;
}


/* ================================
   Mobile Navigation (hidden on desktop)
   ================================ */

.mobile-nav-toggle,
.mobile-nav-menu,
.mobile-nav-overlay {
    display: none;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .project-header {
        height: auto;
        min-height: 60px;
        padding: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .project-header h1 {
        font-size: 1.2rem;
        margin: 0;
    }

    .project-header .header-logo {
        height: 1rem;
    }

    /* Hide desktop navigation */
    .project-header .nav {
        display: none;
    }

    /* Mobile hamburger menu button - 只有三条横杠 */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        width: 46px;
        height: 46px;
        background: none;
        border: none;
        cursor: pointer;
        pointer-events: all;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        transition: all 0.3s ease;
        outline: none;
    }

    .mobile-nav-toggle:hover {
        transform: scale(1.1);
    }

    .mobile-nav-toggle span {
        width: 20px;
        height: 2.5px;
        background: #111;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile navigation menu */
    .mobile-nav-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        /* background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.9) 100%); */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 999;
        padding: 80px 30px 30px;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        pointer-events: all;
    }

    .mobile-nav-menu.active {
        right: 0;
    }

    .mobile-nav-menu a {
        display: block;
        padding: 18px 20px;
        margin-bottom: 10px;
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #000;
        text-decoration: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .mobile-nav-menu a:hover,
    .mobile-nav-menu a:active {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.12);
        transform: translateX(-5px);
    }

    /* Overlay */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: all;
    }

    .mobile-nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .project-hero {
        height: 100%;
        margin-bottom: 0;
    }

    .hero-bg {
        height: 100%;
        width: 100%;
    }

    .hero-bg img,
    .hero-bg video,
    .hero-bg iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .hero-content {
        padding: 15px 20px;
        margin-top: 0;
        min-height: 0;
        max-width: 100%;
    }

    .title {
        font-size: 1.8rem;
        margin: 0 0 6px 0;
        line-height: 1.05;
    }

    .subtitle {
        font-size: 0.88rem;
        max-width: 100%;
        margin-bottom: 6px;
        line-height: 1.25;
    }

    .info-hud {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 10px;
        margin-bottom: 0;
    }

    .hud-item {
        min-width: 0;
    }

    .hud-item label {
        font-size: 0.6rem;
        margin-bottom: 3px;
    }

    .hud-item span {
        font-size: 0.8rem;
    }

    .tool-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .content-row {
        display: block;
        margin-bottom: 50px;
    }

    .content-row:first-child {
        margin-top: 0;
    }

    .row-label {
        position: static;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        display: inline-block;
    }

    .project-body {
        padding: 0 20px;
        margin-top: 0;
        padding-top: 20px;
    }

    .project-nav {
        top: 20px;
        left: 20px;
    }

    /* Professional style adjustments for mobile */
    .hero-style-professional {
        margin-top: 80px;
    }

    .hero-style-professional .hero-bg {
        max-width: 100%;
        border-radius: 0;
    }

    .hero-content-professional {
        padding: 30px 20px;
    }

    .hero-content-professional .title {
        font-size: 2.5rem;
    }

    .hero-content-professional .subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* ================================
   Image Grid (拼图布局)
   ================================ */

.image-grid {
    display: grid;
    gap: 15px;
    width: 100%;
}

/* 预设布局 */
.image-grid.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
}

.image-grid.grid-3x1 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
}

.image-grid.grid-1x3 {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, auto);
}

.image-grid.grid-2x3 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
}

.image-grid.grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
}

/* 自由布局 - 4列网格系统 */
.image-grid.grid-custom {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    margin: 0;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    padding: 15px;
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
}

/* ================================
   Image Grid Table (New System)
   ================================ */

.image-grid-table {
    display: grid;
    gap: 15px;
    width: 100%;
    grid-auto-rows: minmax(200px, auto);
}

.grid-cell-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    margin: 0;
    min-height: 100%;
}

.grid-cell-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-cell-item:hover img {
    transform: scale(1.05);
}

.grid-cell-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    padding: 15px;
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
}

/* ================================
   Two Column Layout
   ================================ */

.two-column-row {
    margin-bottom: 80px;
}

.two-column-layout {
    width: 100%;
}

.two-column-layout .column-left,
.two-column-layout .column-right {
    min-width: 0;
    /* Prevents grid blowout */
}

.two-column-layout .column-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.two-column-layout .column-text p {
    margin: 0 0 1em 0;
}

.two-column-layout .column-text h1,
.two-column-layout .column-text h2,
.two-column-layout .column-text h3,
.two-column-layout .column-text h4 {
    margin: 1.5em 0 0.5em 0;
    line-height: 1.3;
}

.two-column-layout .column-text h1:first-child,
.two-column-layout .column-text h2:first-child,
.two-column-layout .column-text h3:first-child,
.two-column-layout .column-text h4:first-child {
    margin-top: 0;
}

.two-column-layout .column-text ul,
.two-column-layout .column-text ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.two-column-layout .column-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.two-column-layout .column-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr !important;
        /* Override inline style */
        gap: 30px !important;
    }

    .two-column-row {
        margin-bottom: 60px;
    }
}