/* ==========================================================
   style.css — 旧版样式（V2 及更早），整体放在 CSS 层 `legacy` 里。
   层内规则优先级永远低于不分层的 V3 样式（site-v3.css / fx-v3.css / 页面内联 \3c style>），
   所以 V3 覆盖旧样式不需要 !important，也不用拼选择器权重。
   新样式不要再往这里加，写到 site-v3.css。
   ========================================================== */
@layer reset, legacy, skin;   /* 与 site-v3.css 声明一致：谁先加载都是同一顺序 */
@layer legacy {

/* style.css - PART 1 */

:root {
    --bg-color: #0b0b0c;
    --text-main: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent: #ff5b2e; /* 科技蓝 */
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-width: 600px;
    --card-height: 380px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif; /* 确保字体生效 */
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* 强制防止干扰固定定位 */
main {
    transform: none !important; perspective: none !important; filter: none !important;
}

/* --- 1. 全局视频背景 --- */

/* --- 2. 导航栏 (磨砂玻璃效果) --- */
/* 滚动后导航栏稍微变实，增强可读性 */

/* =========================================
   3. 首页 Hero 区域 (原地淡出版)
   ========================================= */

/* 1. 容器：保持静止，不干扰定位 */

/* 2. 内容容器：始终居中 */

/* 3. 消失状态 (无论是时间到，还是滚动了) */

/* 4. 箭头消失 */

/* 状态触发时隐藏箭头 */

/* --- 关键：背景视频的两种状态 --- */

/* 默认遮罩：微暗 */

/* 状态 A: 倒计时结束 (.view-mode) -> 文字消失，视频变亮！(观赏模式) */

/* 状态 B: 滚动中 (.scrolled) -> 文字消失，视频变黑！(阅读模式) */

/* --- 内部元素样式 (保持不变) --- */
/* --- 在 style.css 中找到并替换以下片段 --- */

/* 第二行文字的延迟修正 */

/* Focus Mode Badge */

/* 动画帧 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 0.6; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fillColor { to { fill: #fff; stroke: transparent; text-shadow: 0 0 30px rgba(255,255,255,0.4); } }

/* --- 4. 首页轮播 --- */
.line { width: 100%; height: 1px; background: rgba(255,255,255,0.1); }
/* --- 优化后的轨道样式 (添加到 style.css) --- */

/* 隐藏 Chrome/Safari 的滚动条 */

/* 3. 让每一张卡片都能被吸附 */

/* --- 5. 内容分隔符与动画提示 --- */
/* --- 延迟出现的顶部标题 (5s后) --- */

/* --- 延迟出现的底部箭头 (5s后) --- */

/* 专用的淡入下沉动画 */

/* 呼吸跳动动画 */

/* 滚动后隐藏它们 (保持页面干净) */

/* --- 5. Works 页面 (3D 舞台) --- */

/* 3D 卡片样式 */

/* Featured badge on gallery cards */

/* 筛选器与导航 */

/* --- 6. 简历页面优化 (About) --- */
.about-container { max-width: 1000px; margin: 120px auto 80px; padding: 0 40px; color: #fff; }
.profile-section { display: flex; align-items: center; gap: 80px; margin-bottom: 80px; }
.profile-info h1 { font-family: 'Montserrat', sans-serif; font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.profile-info h1 span { display: block; font-size: 1.1rem; font-weight: 400; opacity: 0.5; margin-top: 10px; font-family: 'Inter', sans-serif; }
.bio { font-size: 1.05rem; line-height: 1.8; color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; max-width: 600px; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.skills-tags span { background: rgba(255, 91, 46, 0.1); padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; color: #ff7a52; border: 1px solid rgba(255, 91, 46, 0.2); letter-spacing: 0.5px; }
.resume-col h2 { font-size: 1.5rem; margin-bottom: 40px; border-bottom: 2px solid var(--accent); padding-bottom: 15px; display: inline-block; width: 100%; }
.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.exp-list { list-style: none; padding: 0; margin: 8px 0 0 0; }
.exp-list li { position: relative; padding-left: 16px; margin-bottom: 8px; font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.exp-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.exp-list li strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.timeline-item { margin-bottom: 50px; position: relative; padding-left: 25px; border-left: 2px solid rgba(255,255,255,0.1); }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: #000; border: 2px solid var(--accent); border-radius: 50%; }
.timeline-item .year { font-family: 'Montserrat', monospace; color: var(--accent); font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; display: block; opacity: 0.9; }
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 12px; color: #fff; font-weight: 600; }
.timeline-item p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.honors-section h2 { font-size: 1.5rem; margin-bottom: 30px; }
.text-awards-list { margin-bottom: 80px; }
.text-awards-list ul { list-style: none; padding: 0; }
.text-awards-list li { display: flex; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s; }
.text-awards-list li:hover { padding-left: 20px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.award-date { font-family: 'Montserrat', monospace; color: var(--accent); font-weight: 700; min-width: 80px; margin-right: 30px; padding-top: 2px; }
.award-desc { font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.highlight-text { color: #fff; font-weight: 600; background: rgba(255, 91, 46, 0.2); padding: 2px 8px; border-radius: 4px; margin-left: 8px; font-size: 0.9rem; }
.cert-grid { display: grid; gap: 30px; margin-bottom: 40px; }
.vertical-grid { grid-template-columns: repeat(3, 1fr); }
.horizontal-grid { grid-template-columns: repeat(3, 1fr); }
.cert-card { display: flex; flex-direction: column; gap: 15px; }
.cert-img { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.02); position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s; }
.cert-card:hover .cert-img { transform: translateY(-5px); border-color: var(--accent); }

/* --- 7. 子页面修复 --- */
body.sub-page .profile-section, body.sub-page .resume-col, body.sub-page .honors-section {
    background: rgba(20, 20, 20, 0.85); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); margin-bottom: 40px;
}

/* --- 8. 详情页 (Detail) --- */
.detail-container { max-width: 1000px; margin: 120px auto; padding: 0 40px; color: #fff; position: relative; z-index: 10; }

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 50px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.back-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    transform: translateX(-3px);
}
.detail-header { margin-bottom: 60px; text-align: center; }
.detail-title { font-size: 3rem; margin-bottom: 15px; font-family: 'Montserrat', sans-serif; }
.detail-meta { color: rgba(255,255,255,0.5); font-family: monospace; }
.detail-media { margin-bottom: 60px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.detail-media img { width: 100%; display: block; }
.detail-content { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.8); max-width: 800px; margin: 0 auto; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.award-banner { border: 1px solid var(--accent); background: rgba(255, 91, 46, 0.1); padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 40px; font-weight: 600; color: #fff; }
.process-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.process-img-box { width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1); background: #111; }
.process-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.process-card:hover .process-img-box img { transform: scale(1.05); }
.process-card h4 { font-size: 0.9rem; color: #ff5b2e; margin-bottom: 8px; }
.process-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* --- 9. 动画帧 --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 0.6; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fillColor { to { fill: #fff; stroke: transparent; text-shadow: 0 0 30px rgba(255,255,255,0.4); } }

/* =========================================
   📱 手机端专属修复 (Mobile Fixes)
   适用于: max-width: 768px
   ========================================= */
@media (max-width: 768px) {
    
    /* --- 1. 全局导航栏调整 --- */

    /* --- 2. 首页 (Index) --- */

    /* --- 3. 技能页 (Tech Universe) --- */
    .overlay-ui { top: 80px; left: 20px; right: 20px; width: auto; pointer-events: none; text-align: left; }
    .overlay-desc { font-size: 0.95rem; color: rgba(255,255,255,0.9); max-width: 100%; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
    .instruction { font-size: 0.75rem; padding: 6px 12px; background: rgba(0,0,0,0.6); }
    #3d-graph { top: 0 !important; height: 100% !important; z-index: 1; }

    /* --- 4. 简历页 (About) --- */
    .about-container { padding: 80px 20px 40px; }
    .profile-section { flex-direction: column; gap: 20px; text-align: center; }
    .profile-info h1 { font-size: 2rem; }
    .bio { max-width: 100%; font-size: 0.9rem; text-align: center; }
    .skills-tags { justify-content: center; }
    .edu-row { grid-template-columns: 1fr; gap: 20px; }
    .timeline-item { margin-bottom: 30px; }
    .vertical-grid, .horizontal-grid { grid-template-columns: 1fr; }
    
    /* --- 5. 作品页 (Works 3D) - 彻底重构布局 --- */

/* 3D 卡片：上移，居中显示 */
    
    /* 让文字面板稍微紧凑一点，腾出空间 */

    /* 筛选器与底部导航 */

    /* --- 6. 详情页 --- */
    .process-grid-container { grid-template-columns: 1fr; }
}

/* 手机端：视频横向滑动 */
@media (max-width: 768px) {
    .video-grid-container {
        display: flex !important;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        /* 隐藏滚动条 */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .video-grid-container::-webkit-scrollbar { display: none; }
    
    .video-box {
        min-width: 80%; /* 每个视频占屏幕 80% 宽 */
        aspect-ratio: 9/16;
    }
    
    .process-grid-container {
        grid-template-columns: repeat(2, 1fr) !important; /* NFT 变两列 */
    }
}

/* --- 左右切换按钮样式 --- */

/* 按钮禁用状态（可选，配合JS逻辑变灰） */

/* --- 手机端特别调整 --- */

/* =========================================
   新增：底部缩略图导航条 (最终修正版)
   ========================================= */

/* 鼠标悬停 (未选中时) */

/* === 激活状态 (当前选中的作品) === */
/* 这个状态会由 JS 在滚动或点击时自动添加 */

/* === 手机端隐藏逻辑 === */

/* === 电脑端视觉优化 === */

/* =========================================
   🚨 布局修正补丁 (请粘贴到 style.css 最末尾) 🚨
   ========================================= */

/* --- 1. 电脑端 (PC) 修正 --- */

/* --- 2. 手机端 (Mobile) 修正 --- */

/* =========================================
   🛠️ FINAL OPTIMIZATIONS (追加到文件末尾)
   ========================================= */

/* 1. 多图并列排版 (来自 Urban Pulse 项目) */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}
.image-full {
    margin: 40px 0;
    width: 100%;
}
.caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5); /* 统一颜色 */
    margin-top: 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* 2. 移动端适配修正 */
@media (max-width: 768px) {
    /* 图片网格变单列 */
    .image-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 修复亚森科技页面按钮在手机上太宽的问题 */
    .live-link-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box; 
    }
    
    /* 修复 Works 页面筛选器在手机上可能换行的问题 */
}

/* 3. 修复 Works 页面 3D 卡片层级 */
/* 确保当前激活的卡片永远在最上面，且鼠标可以点击 */

/* 非激活卡片在移动端防止误触 */
/* --- 两列并排卡片布局 (用于首页孤单卡片分区) --- */

/* --- 首页两列分区布局 --- */

/* 轮播 track 本身负责横向滚动，clip 范围只到 track 自身 */

/* 列内 section padding */

/* 卡片与全宽页面一致 */
/* -------------------------------------------------------------
   Scroll Reveal 滚动浮现动效 & Lightbox 全屏灯箱样式
   ------------------------------------------------------------- */

/* ================= 1. 滚动浮现动效 (Scroll Reveal) ================= */
/* 初始状态：透明且稍微偏下 */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* 激活状态：完全不透明且回到原位 */
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 为了防止子页面加载太慢，头部区域可以直接显示 */
.detail-header.reveal-up, 
.detail-media.reveal-up {
    transform: translateY(20px); /* 头部偏移量小一点 */
}

/* ================= 2. 全屏图片灯箱 (Lightbox) ================= */
/* 给所有内容区的图片加上鼠标手势，提示可以点击 */
.detail-content img {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* 灯箱遮罩层 */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow-y: auto; /* 允许超长图片滚动 */
    padding: 40px 0;
}

/* 激活遮罩层 */
#lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 灯箱内的高清图片 */
#lightbox-img {
    max-width: 90vw;
    max-height: none; /* 允许长图无限延伸，靠外层overflow-y滚动 */
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
    margin: auto; /* 居中长图 */
}

/* 如果图片不是超长图，则限制高度不超过屏幕 */
#lightbox-img:not(.is-long-img) {
    max-height: 90vh;
}

/* 激活图片 */
#lightbox-overlay.active #lightbox-img {
    transform: scale(1);
}

/* 关闭按钮 */
#lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

#lightbox-close:hover {
    opacity: 1;
}

/* 加载动画 (Loader) */
#lightbox-loader {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 9998;
}

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

/* =============================================================
   Real 3D Model Case Hero - model-viewer based
   ============================================================= */
.model-detail-page .detail-container {
    max-width: 1180px;
}

.model-detail-page .detail-header {
    max-width: 900px;
    margin: 0 auto 42px;
}

.detail-model-viewer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 430px;
    --poster-color: transparent;
    filter: drop-shadow(0 28px 50px rgba(0,0,0,0.48));
}

.model-detail-page .detail-content {
    max-width: 920px;
}

@media (max-width: 860px) {

    .detail-model-viewer {
        min-height: 320px;
        height: 320px;
    }
}

/* Fix model-viewer overflow and keep case layout clean */
.model-detail-page {
    overflow-x: hidden;
}

.model-detail-page .detail-container,
.model-detail-page .detail-content {
    min-width: 0;
}

.detail-model-viewer {
    display: block;
    max-width: 100%;
    contain: layout paint;
}

/* =============================================================
   Stones Case Poster Editorial Layout
   ============================================================= */

/* =============================================================
   Stones AI Support Visuals - restrained usage
   ============================================================= */

/* =============================================================
   Immersive Case Study Rewrite — Stones & Poems
   References: MLF editorial media rhythm + Active Theory project overlay
   ============================================================= */
.immersive-case-page {
    background: #0b0b0c;
}

.immersive-case-page nav {
    background: transparent !important;
    mix-blend-mode: difference;
    padding-top: 24px;
    opacity: 0.72;
}

.immersive-case-page nav:hover {
    opacity: 1;
}

.immersive-case-page .nav-links a,
.immersive-case-page .logo {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
}

.immersive-case-page .case-shell {
    width: 100%;
    max-width: none;
    padding: 0 clamp(18px, 3vw, 42px) 90px;
}

.case-close-link {
    position: fixed;
    left: clamp(18px, 3vw, 42px);
    bottom: 28px;
    z-index: 20;
    color: rgba(255,255,255,0.66);
    text-decoration: none;
    font: 700 0.74rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.case-hero-prometheus {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(290px, 0.72fr) minmax(420px, 1fr);
    gap: clamp(24px, 5vw, 78px);
    align-items: center;
    padding: clamp(110px, 13vh, 150px) 0 clamp(42px, 7vh, 86px);
    overflow: hidden;
}

.case-hero-atmosphere {
    position: absolute;
    inset: -8vh -4vw;
    z-index: 0;
    background:
        radial-gradient(circle at 67% 46%, rgba(68,130,255,0.2), transparent 26%),
        radial-gradient(circle at 35% 80%, rgba(217,166,88,0.12), transparent 22%),
        linear-gradient(90deg, rgba(0,0,0,0.84), rgba(0,0,0,0.28)),
        url('../../assets/images/stones-ai/cinematic_installation_poster.webp') center/cover;
    filter: saturate(0.52) contrast(1.03) brightness(0.54);
    transform: scale(1.04);
}

.case-hero-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 100% 4px;
    opacity: 0.42;
    mix-blend-mode: screen;
}

.case-hero-info,
.case-hero-media,
.case-hero-meta {
    position: relative;
    z-index: 1;
}

.case-kicker {
    margin-bottom: 24px;
    color: rgba(255,255,255,0.58);
    font: 800 0.72rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.case-hero-info h1 {
    margin: 0 0 24px;
    font: 900 clamp(3.2rem, 8.4vw, 8.6rem)/0.88 'Montserrat', sans-serif;
    letter-spacing: -0.085em;
    color: #fff;
    text-transform: none;
}

.case-hero-info h1 span {
    display: inline-block;
    color: rgba(255,255,255,0.48);
    font-size: 0.34em;
    letter-spacing: -0.045em;
}

.case-hero-info p {
    max-width: 520px;
    color: rgba(255,255,255,0.74);
    font-size: clamp(1rem, 1.42vw, 1.14rem);
    line-height: 1.86;
}

.case-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 30px;
}

.case-links-row span {
    color: rgba(255,255,255,0.62);
    font: 700 0.72rem/1.2 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-hero-media {
    aspect-ratio: 1.45 / 1;
    min-height: 390px;
    max-height: 66vh;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.34);
    box-shadow: 0 30px 120px rgba(0,0,0,0.62);
    overflow: hidden;
}

.case-hero-media::before,
.case-hero-media::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.case-hero-media::before {
    inset: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 3;
}

.case-hero-media::after {
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), transparent 18%, transparent 78%, rgba(0,0,0,0.22)),
        radial-gradient(circle at 50% 60%, transparent 38%, rgba(0,0,0,0.34));
}

.case-hero-media .detail-model-viewer {
    width: 100%;
    height: 100%;
    min-height: inherit;
    filter: drop-shadow(0 34px 48px rgba(0,0,0,0.72));
}

.case-hero-meta {
    position: absolute;
    right: 0;
    bottom: 26px;
    display: flex;
    gap: 22px;
    color: rgba(255,255,255,0.46);
    font: 700 0.68rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.case-narrative {
    max-width: 1440px;
    margin: 0 auto;
}

.case-intro-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.48fr) minmax(420px, 0.86fr);
    gap: clamp(34px, 8vw, 130px);
    padding: clamp(70px, 10vw, 130px) 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.case-specs dl {
    display: grid;
    gap: 18px;
    margin: 0;
}

.case-specs div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.11);
}

.case-specs dt {
    color: rgba(255,255,255,0.42);
    font: 800 0.68rem/1.3 'Montserrat', sans-serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.case-specs dd {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

.case-lead-copy p,
.case-copy-block p,
.case-section-copy p,
.case-closing p {
    color: rgba(255,255,255,0.72);
    font-size: clamp(1.02rem, 1.5vw, 1.24rem);
    line-height: 1.92;
}

.case-lead-copy p {
    max-width: 760px;
    margin: 0 0 28px;
}

.case-full-media,
.case-triptych figure,
.case-interface-section figure,
.case-archive-grid article {
    margin: 0;
}

.case-full-media {
    position: relative;
    overflow: hidden;
    background: #0b0b0c;
}

.case-full-media img {
    display: block;
    width: 100%;
    height: min(74vh, 760px);
    object-fit: cover;
}

.case-full-media figcaption,
.case-triptych figcaption,
.case-interface-section figcaption {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 12px;
    color: rgba(255,255,255,0.5);
    font: 700 0.7rem/1.35 'Montserrat', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-full-media figcaption span,
.case-triptych figcaption span,
.case-interface-section figcaption span {
    color: rgba(255,255,255,0.78);
}

.case-copy-block {
    max-width: 780px;
    margin: clamp(74px, 10vw, 130px) 0 clamp(58px, 8vw, 100px) auto;
}

.case-triptych {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 2.2vw, 30px);
    align-items: start;
}

.case-triptych figure:first-child {
    grid-row: span 2;
}

.case-triptych figure:first-child img {
    height: min(76vh, 780px);
}

.case-triptych img {
    display: block;
    width: 100%;
    height: min(36vh, 380px);
    object-fit: cover;
    background: #111;
}

.case-interface-section {
    display: grid;
    grid-template-columns: minmax(300px, 0.68fr) minmax(240px, 0.46fr) minmax(360px, 0.72fr);
    gap: clamp(22px, 3vw, 42px);
    align-items: end;
    padding: clamp(84px, 12vw, 160px) 0;
}

.case-small-label {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.52);
    font: 800 0.72rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.case-section-copy h2 {
    max-width: 620px;
    margin: 0 0 22px;
    color: #fff;
    font: 900 clamp(2.3rem, 5vw, 6rem)/0.95 'Montserrat', sans-serif;
    letter-spacing: -0.075em;
}

.case-phone-visual img,
.case-system-visual img {
    display: block;
    width: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(0.95) brightness(0.9);
}

.case-phone-visual img {
    aspect-ratio: 2 / 3;
}

.case-system-visual img {
    aspect-ratio: 4 / 3;
}

.case-archive-section {
    padding: clamp(60px, 8vw, 120px) 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.case-section-copy.compact {
    display: grid;
    grid-template-columns: 0.62fr 1fr;
    gap: clamp(28px, 6vw, 90px);
    align-items: end;
    margin-bottom: 36px;
}

.case-section-copy.compact h2 {
    margin: 0;
}

.case-section-copy.compact p {
    margin: 0;
    max-width: 560px;
}

.case-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.case-archive-grid article {
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
}

.case-archive-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.case-archive-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #111;
    filter: saturate(0.92) contrast(0.96);
}

.case-archive-grid h3 {
    margin: 0 0 8px;
    color: rgba(255,255,255,0.9);
    font: 800 0.92rem/1.3 'Montserrat', sans-serif;
}

.case-archive-grid p {
    margin: 0;
    color: rgba(255,255,255,0.55);
    font-size: 0.86rem;
    line-height: 1.68;
}

.case-closing {
    min-height: 70vh;
    display: grid;
    align-items: center;
    padding: clamp(60px, 9vw, 130px) 0;
    background:
        linear-gradient(90deg, rgba(11, 11, 12,0.86), rgba(11, 11, 12,0.34)),
        url('../../assets/images/stones-ai/poem_particles_closeup.webp') center/cover;
}

.case-closing p {
    max-width: 760px;
    margin-left: auto;
    padding-right: clamp(0px, 5vw, 80px);
    color: rgba(255,255,255,0.82);
    font-size: clamp(1.28rem, 2.4vw, 2.2rem);
    line-height: 1.64;
}

@media (max-width: 980px) {
    .case-hero-prometheus,
    .case-intro-grid,
    .case-interface-section,
    .case-section-copy.compact {
        grid-template-columns: 1fr;
    }

    .case-hero-media {
        min-height: 420px;
    }

    .case-triptych,
    .case-archive-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .immersive-case-page .case-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .case-hero-prometheus {
        min-height: auto;
        padding-top: 104px;
    }

    .case-hero-media {
        min-height: 320px;
    }

    .case-hero-meta {
        position: static;
        margin-top: 18px;
        flex-direction: column;
        gap: 8px;
    }

    .case-specs div,
    .case-triptych,
    .case-archive-grid {
        grid-template-columns: 1fr;
    }

    .case-full-media img,
    .case-triptych figure:first-child img,
    .case-triptych img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* =============================================================
   Floating poem reveal + Active-Theory-like particle finale
   ============================================================= */

.particle-finale {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 45%, rgba(80,140,255,0.18), transparent 32%),
        linear-gradient(90deg, rgba(11, 11, 12,0.92), rgba(11, 11, 12,0.42)),
        url('../../assets/images/stones-ai/poem_particles_closeup.webp') center/cover;
}

.particle-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle-field span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(158, 207, 255, 0.86);
    box-shadow: 0 0 18px rgba(107, 174, 255, 0.72), 0 0 46px rgba(107, 174, 255, 0.25);
    animation: particleDrift 9s linear infinite;
}

.particle-field span:nth-child(1) { left: 18%; top: 70%; animation-delay: -1s; animation-duration: 10s; }
.particle-field span:nth-child(2) { left: 28%; top: 64%; animation-delay: -4s; animation-duration: 12s; }
.particle-field span:nth-child(3) { left: 36%; top: 78%; animation-delay: -6s; animation-duration: 11s; }
.particle-field span:nth-child(4) { left: 48%; top: 66%; animation-delay: -2s; animation-duration: 13s; }
.particle-field span:nth-child(5) { left: 58%; top: 73%; animation-delay: -8s; animation-duration: 10s; }
.particle-field span:nth-child(6) { left: 70%; top: 60%; animation-delay: -3s; animation-duration: 12s; }
.particle-field span:nth-child(7) { left: 78%; top: 78%; animation-delay: -5s; animation-duration: 14s; }
.particle-field span:nth-child(8) { left: 22%; top: 48%; animation-delay: -7s; animation-duration: 13s; }
.particle-field span:nth-child(9) { left: 44%; top: 50%; animation-delay: -9s; animation-duration: 11s; }
.particle-field span:nth-child(10) { left: 62%; top: 46%; animation-delay: -2.5s; animation-duration: 15s; }
.particle-field span:nth-child(11) { left: 74%; top: 42%; animation-delay: -6.5s; animation-duration: 12s; }
.particle-field span:nth-child(12) { left: 84%; top: 68%; animation-delay: -4.5s; animation-duration: 14s; }

@keyframes particleDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(0.6);
        opacity: 0;
    }
    14% {
        opacity: 0.9;
    }
    68% {
        opacity: 0.55;
    }
    100% {
        transform: translate3d(calc(var(--x, 1) * 80px), -260px, 0) scale(0.05);
        opacity: 0;
    }
}

.finale-poem-ghost {
    position: absolute;
    right: clamp(-40px, 3vw, 42px);
    top: 50%;
    z-index: 1;
    width: min(48vw, 620px);
    opacity: 0.2;
    mix-blend-mode: screen;
    filter: blur(0.4px) drop-shadow(0 0 24px rgba(150,190,255,0.22));
    transform: translateY(-50%) rotate(-3deg);
    pointer-events: none;
}

.particle-finale p {
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {

    .finale-poem-ghost {
        width: 86vw;
        right: -26vw;
        opacity: 0.16;
    }
}

.particle-field span:nth-child(odd) { --x: -1; }
.particle-field span:nth-child(3n) { --x: 0.45; }
.particle-field span:nth-child(4n) { --x: -0.35; }

@media (min-width: 860px) {
    .case-hero-prometheus {
        grid-template-columns: minmax(290px, 0.72fr) minmax(420px, 1fr) !important;
    }

    .case-hero-media {
        min-height: 390px !important;
    }
}

/* Stronger AR poem reveal: make poem graphics emerge from the stone */

.particle-field span {
    width: 5px;
    height: 5px;
    background: rgba(178, 219, 255, 0.95);
}

.particle-finale::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 78% 62%, rgba(255, 122, 82,0.22) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 48%, rgba(255,210,130,0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 84% 38%, rgba(255, 122, 82,0.16) 0 1px, transparent 2px);
    background-size: 38px 38px, 54px 54px, 72px 72px;
    animation: starDust 18s linear infinite;
    mix-blend-mode: screen;
    opacity: 0.72;
}

@keyframes starDust {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-80px, -140px, 0); }
}

/* Move poem reveal to the imagination database instead of hero */
.imagination-database-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(80px, 10vw, 150px);
    padding-bottom: clamp(80px, 10vw, 150px);
}

.imagination-database-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 18%, rgba(105,170,255,0.12), transparent 30%),
        linear-gradient(180deg, rgba(11, 11, 12,0), rgba(11, 11, 12,0.34));
}

.imagination-database-section > *:not(.database-poem-stage) {
    position: relative;
    z-index: 2;
}

.imagination-database-section .case-archive-grid article {
    position: relative;
    z-index: 3;
    background: rgba(11, 11, 12,0.28);
    backdrop-filter: blur(2px);
}

.imagination-database-section .case-archive-images {
    position: relative;
}

.imagination-database-section .case-archive-images::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(120,180,255,0.08), transparent 48%);
    mix-blend-mode: screen;
}

/* Archive cards: each record reveals its own inverted poem layer */
.imagination-database-section .case-archive-grid {
    gap: clamp(18px, 2.2vw, 28px);
}

.archive-orbit-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: 16px 16px 20px !important;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(circle at 72% 16%, rgba(90,160,255,0.13), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    backdrop-filter: blur(2px);
}

.archive-floating-poem {
    position: absolute;
    z-index: 1;
    width: 118%;
    max-width: none;
    right: -38%;
    top: -18%;
    opacity: 0.16;
    pointer-events: none;
    object-fit: contain;
    filter:
        invert(1)
        brightness(1.55)
        contrast(1.08)
        drop-shadow(0 0 16px rgba(125,185,255,0.3));
    mix-blend-mode: screen;
    transform: rotate(-6deg);
    animation: archivePoemFloat 9s ease-in-out infinite alternate;
}

.archive-orbit-card:nth-child(2) .archive-floating-poem {
    width: 104%;
    right: -30%;
    top: -10%;
    transform: rotate(5deg);
    animation-delay: -2s;
}

.archive-orbit-card:nth-child(3) .archive-floating-poem {
    width: 92%;
    right: -18%;
    top: -8%;
    opacity: 0.2;
    transform: rotate(-2deg);
    animation-delay: -4s;
}

.archive-orbit-card:nth-child(4) .archive-floating-poem {
    width: 94%;
    right: -22%;
    top: -10%;
    transform: rotate(7deg);
    animation-delay: -6s;
}

.archive-orbit-card .case-archive-images,
.archive-orbit-card h3,
.archive-orbit-card p {
    position: relative;
    z-index: 2;
}

.archive-orbit-card .case-archive-images {
    margin-top: 54px;
    background: rgba(0,0,0,0.32);
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.archive-orbit-card .case-archive-images img {
    filter: saturate(0.94) contrast(0.98);
}

.archive-orbit-card h3 {
    color: rgba(255,255,255,0.94) !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

.archive-orbit-card p {
    color: rgba(255,255,255,0.68) !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.archive-orbit-card:hover .archive-floating-poem {
    opacity: 0.28;
    translate: -8px -8px;
}

@keyframes archivePoemFloat {
    from { translate: 0 0; }
    to { translate: -14px -18px; }
}

@media (max-width: 980px) {
    .archive-orbit-card {
        min-height: 360px;
    }

    .archive-floating-poem {
        width: 88%;
        right: -18%;
        top: -12%;
    }
}

/* =============================================================
   Stones page MLF-style simplification: remove noisy video backdrop
   ============================================================= */

.immersive-case-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.055), transparent 28%),
        linear-gradient(180deg, #0b0b0c 0%, #080808 42%, #0b0b0c 100%);
}

.case-hero-atmosphere {
    background:
        linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.18) 62%, rgba(0,0,0,0.58)),
        url('../../assets/images/stones-ai/cinematic_installation_poster.webp') center/cover;
    filter: saturate(0.42) contrast(1.02) brightness(0.36);
}

.case-hero-atmosphere::after {
    opacity: 0.18;
}

.case-hero-prometheus {
    min-height: 92vh;
}

.case-hero-info h1 {
    font-size: clamp(3rem, 7.4vw, 7.6rem);
}

.case-hero-media {
    box-shadow: 0 28px 100px rgba(0,0,0,0.52);
    background: rgba(255,255,255,0.025);
}

.case-intro-grid,
.case-archive-section {
    border-top-color: rgba(255,255,255,0.08);
}

.case-full-media img,
.case-triptych img,
.case-phone-visual img,
.case-system-visual img,
.case-archive-images img {
    filter: saturate(0.88) contrast(0.98) brightness(0.94);
}

.case-full-media,
.case-triptych figure,
.case-interface-section figure {
    background: #080808;
}

.case-copy-block {
    margin-top: clamp(62px, 8vw, 110px);
}

.case-interface-section {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.imagination-database-section {
    background: #060606;
}

.imagination-database-section::before {
    background:
        radial-gradient(circle at 78% 8%, rgba(105,170,255,0.06), transparent 28%),
        linear-gradient(180deg, rgba(11, 11, 12,0), rgba(11, 11, 12,0.24));
}

.archive-orbit-card {
    background: rgba(255,255,255,0.025);
    border-color: rgba(255,255,255,0.08);
    backdrop-filter: none;
}

.archive-floating-poem {
    opacity: 0.11;
}

.archive-orbit-card:hover .archive-floating-poem {
    opacity: 0.2;
}

.particle-finale {
    background:
        linear-gradient(90deg, rgba(11, 11, 12,0.92), rgba(11, 11, 12,0.6)),
        url('../../assets/images/stones-ai/poem_particles_closeup.webp') center/cover;
}

.particle-finale::after,
.particle-field {
    opacity: 0.55;
}

/* Clean final statement and preserve main documentation image */
.case-full-media {
    background: #0b0b0c;
}

.case-full-media:not(.v3-media) img {   /* 取景框里的图由 site-v3.css B11 控制 */
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #0b0b0c;
}

.case-closing,
.particle-finale {
    background: #0b0b0c !important;
}

.particle-finale::after,
.particle-field,
.finale-poem-ghost {
    display: none !important;
}

.case-closing {
    min-height: 48vh;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.case-closing p {
    margin: 0 auto;
    padding: 0;
    max-width: 860px;
    text-align: left;
}

/* Compact aligned process image row */
.case-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
}

.case-triptych figure:first-child {
    grid-row: auto !important;
}

.case-triptych figure:first-child img,
.case-triptych img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    background: #0b0b0c;
}

.case-triptych figcaption {
    min-height: 34px;
    align-items: flex-start;
    padding-top: 10px;
    font-size: 0.64rem;
}

@media (max-width: 760px) {
    .case-triptych {
        grid-template-columns: 1fr !important;
    }
}

/* Process images: equal-size cropped thumbnails */
.case-triptych figure:first-child img,
.case-triptych img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center center;
    background: #0b0b0c;
}

/* =============================================================
   Pipa Case Study — oriental instrument × future acoustics
   ============================================================= */
.pipa-case-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 122, 82,0.06), transparent 28%),
        linear-gradient(180deg, #0b0b0c 0%, #080808 48%, #0b0b0c 100%);
}

.pipa-case-page nav {
    background: transparent !important;
    mix-blend-mode: difference;
    opacity: 0.76;
}

.pipa-case-shell {
    width: 100%;
    max-width: none;
    padding: 0 clamp(18px, 3vw, 42px) 90px;
}

.pipa-hero {
    position: relative;
    min-height: 96vh;
    display: grid;
    grid-template-columns: minmax(300px, 0.62fr) minmax(480px, 1fr);
    gap: clamp(28px, 5vw, 82px);
    align-items: center;
    padding: clamp(112px, 14vh, 160px) 0 clamp(52px, 8vh, 92px);
    overflow: hidden;
}

.pipa-hero-bg {
    position: absolute;
    inset: -8vh -4vw;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.92), rgba(0,0,0,0.2) 64%, rgba(0,0,0,0.72)),
        url('../../assets/images/p1_pipa_scifi.webp') center/cover;
    filter: saturate(0.54) contrast(1.05) brightness(0.38);
    transform: scale(1.03);
}

.pipa-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 50%, rgba(104,190,255,0.18), transparent 28%),
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: auto, 100% 4px;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.42;
}

.pipa-hero-copy,
.pipa-hero-frame {
    position: relative;
    z-index: 1;
}

.pipa-hero-copy h1 {
    margin: 0 0 24px;
    color: #fff;
    font: 900 clamp(3.1rem, 8vw, 8.8rem)/0.88 'Montserrat', sans-serif;
    letter-spacing: -0.085em;
}

.pipa-hero-copy h1 span {
    display: inline-block;
    color: rgba(255,255,255,0.62);
}

.pipa-hero-copy p {
    max-width: 560px;
    color: rgba(255,255,255,0.76);
    font-size: clamp(1rem, 1.45vw, 1.16rem);
    line-height: 1.9;
}

.pipa-hero-frame {
    margin: 0;
    border: 1px solid rgba(255,255,255,0.13);
    background: #0b0b0c;
    box-shadow: 0 30px 120px rgba(0,0,0,0.6);
    overflow: hidden;
}

.pipa-hero-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.02) brightness(0.92);
}

.pipa-hero-frame figcaption,
.pipa-map-media figcaption,
.pipa-timeline-grid figcaption,
.pipa-scene-detail figcaption {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 0;
    color: rgba(255,255,255,0.5);
    font: 700 0.68rem/1.35 'Montserrat', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pipa-hero-frame figcaption span,
.pipa-map-media figcaption span,
.pipa-timeline-grid figcaption span,
.pipa-scene-detail figcaption span {
    color: rgba(255,255,255,0.78);
}

.pipa-intro {
    max-width: 1440px;
    margin: 0 auto;
}

.pipa-video-section {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.54fr) minmax(520px, 1fr);
    gap: clamp(28px, 5vw, 86px);
    align-items: end;
    padding: clamp(70px, 10vw, 140px) 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pipa-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080808;
    border: 1px solid rgba(255,255,255,0.1);
}

.pipa-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pipa-map-media {
    max-width: 1440px;
    margin: 0 auto;
    background: #0b0b0c;
}

.pipa-map-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #0b0b0c;
}

.pipa-timeline-section,
.pipa-scene-detail,
.pipa-technical-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(72px, 10vw, 140px) 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pipa-timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-top: 38px;
}

.pipa-timeline-grid figure:first-child {
    grid-row: auto !important;
}

.pipa-timeline-grid figure:first-child img,
.pipa-timeline-grid img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    object-fit: cover !important;
    background: #0b0b0c;
    filter: saturate(0.9) contrast(0.98) brightness(0.94);
}

.pipa-scene-detail {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(300px, 0.48fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.pipa-scene-detail figure {
    margin: 0;
}

.pipa-scene-detail img {
    display: block;
    width: 100%;
    height: auto;
    background: #0b0b0c;
    filter: saturate(0.86) contrast(0.98) brightness(0.94);
}

.pipa-technical-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.62fr) minmax(420px, 1fr);
    gap: clamp(32px, 6vw, 100px);
    align-items: start;
}

.pipa-technical-grid h2 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font: 900 clamp(2.1rem, 4.7vw, 5.4rem)/0.96 'Montserrat', sans-serif;
    letter-spacing: -0.075em;
}

.pipa-technical-grid ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pipa-technical-grid li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.pipa-technical-grid strong {
    color: rgba(255,255,255,0.92);
    font: 800 0.8rem/1.5 'Montserrat', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .pipa-hero,
    .pipa-video-section,
    .pipa-scene-detail,
    .pipa-technical-grid {
        grid-template-columns: 1fr;
    }

    .pipa-timeline-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .pipa-case-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pipa-hero {
        min-height: auto;
        padding-top: 104px;
    }

    .pipa-technical-grid li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Pipa hero refinement: reduce presentation-cover feeling */
.pipa-hero .case-links-row {
    display: grid;
    gap: 8px;
    margin-top: 34px;
    padding-left: 0;
}

.pipa-hero .case-links-row span {
    color: rgba(255,255,255,0.48);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
}

.pipa-hero .case-links-row span::before {
    content: '— ';
    color: rgba(255,255,255,0.28);
}

.pipa-hero-copy p {
    max-width: 500px;
    color: rgba(255,255,255,0.68);
}

.pipa-hero-copy h1 {
    max-width: 760px;
}

/* Pipa Hunyuan 3D model hero */
.pipa-model-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 50% 55%, rgba(255,255,255,0.1), transparent 42%),
        #0b0b0c;
}

.pipa-model-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.08);
}

.pipa-model-viewer {
    display: block;
    width: 100%;
    height: calc(100% - 30px);
    min-height: 440px;
    --poster-color: transparent;
    filter: drop-shadow(0 28px 56px rgba(0,0,0,0.72));
}

.pipa-model-frame figcaption {
    position: relative;
    z-index: 3;
    padding: 10px 0 0;
}

@media (max-width: 980px) {
    .pipa-model-viewer {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .pipa-model-frame {
        aspect-ratio: auto;
    }
    .pipa-model-viewer {
        min-height: 320px;
    }
}

/* Pipa model floats directly on the hero background */
.pipa-model-frame {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.pipa-model-frame::before {
    display: none !important;
}

.pipa-model-viewer {
    height: min(72vh, 680px) !important;
    min-height: 540px;
    background: transparent !important;
    filter:
        drop-shadow(0 36px 70px rgba(0,0,0,0.72))
        drop-shadow(0 0 40px rgba(255,255,255,0.18));
}

.pipa-model-frame figcaption {
    display: none;
}

.pipa-hero-bg {
    filter: saturate(0.62) contrast(1.05) brightness(0.48);
}

.pipa-hero::after {
    content: '';
    position: absolute;
    right: 6%;
    top: 20%;
    width: 46%;
    height: 52%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.12), transparent 60%);
    mix-blend-mode: screen;
}

@media (max-width: 980px) {
    .pipa-model-viewer {
        min-height: 420px;
        height: 52vh !important;
    }
}

@media (max-width: 640px) {
    .pipa-model-viewer {
        min-height: 340px;
        height: 44vh !important;
    }
}

/* Stones page: make 3D model frame-less like the pipa hero */
.immersive-case-page .case-hero-media {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.immersive-case-page .case-hero-media::before,
.immersive-case-page .case-hero-media::after {
    display: none !important;
}

.immersive-case-page .case-hero-media .detail-model-viewer {
    background: transparent !important;
    filter:
        drop-shadow(0 36px 70px rgba(0,0,0,0.72))
        drop-shadow(0 0 28px rgba(120,170,255,0.18));
}

.immersive-case-page .case-hero-prometheus::after {
    content: '';
    position: absolute;
    right: 7%;
    top: 28%;
    width: 38%;
    height: 44%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(120,170,255,0.14), transparent 62%);
    mix-blend-mode: screen;
}

/* --- 首页作品卡片：左右无限滚动升级 --- */

@keyframes homeMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--marquee-distance, 990px))); }
}

/* --- About profile refinement --- */
.profile-eyebrow{margin:0 0 10px;color:var(--accent);font-family:'Montserrat',sans-serif;font-size:.68rem;font-weight:700;letter-spacing:2px}.profile-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:18px 0;color:rgba(255,255,255,.56);font-size:.85rem}.profile-meta span{display:inline-flex;align-items:center;gap:6px}.profile-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px}.profile-email,.about-resume-download{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:4px;text-decoration:none;font-family:'Montserrat',sans-serif;font-size:.75rem;font-weight:700;letter-spacing:.4px;transition:.25s}.profile-email{border:1px solid rgba(255,255,255,.17);color:rgba(255,255,255,.78)}.profile-email:hover{color:#fff;border-color:rgba(255,255,255,.55)}.about-resume-download{border:1px solid rgba(255, 91, 46,.7);background:rgba(255, 91, 46,.14);color:#ffd9cc}.about-resume-download:hover{background:var(--accent);border-color:var(--accent);color:#fff;transform:translateY(-2px)}
@media(max-width:600px){.profile-meta,.profile-actions{justify-content:center}.profile-eyebrow{font-size:.62rem;letter-spacing:1.3px}.profile-email,.about-resume-download{justify-content:center;width:100%}}

/* --- Resume page --- */

} /* @layer legacy */
