/* style.css (完整版) */
:root {
    --bg-color: #f5f5f7;
    --text-main: #1d1d1f;
    --text-sub: #86868b;
    --accent-blue: #06c;
    --card-width: 760px;
    --card-height: 430px;
    --font-std: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: "Songti SC", "SimSun", serif;
    --ease-editorial: cubic-bezier(0.35, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: var(--font-std);
    overflow: hidden; 
    height: 100vh; width: 100vw;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 20px 48px; display: flex; justify-content: space-between; align-items: center;
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; color: #000; }
nav a {
    text-decoration: none; color: var(--text-sub); margin-left: 30px; 
    font-size: 0.9rem; transition: 0.3s; cursor: pointer;
}
nav a.active { color: #000; font-weight: 600; }

/* Page Layout */
.page {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    padding-top: 80px;
}
.page.active { opacity: 1; pointer-events: auto; }
#page-works { overflow: hidden; touch-action: pan-y; }

/* ================== Team Page ================== */
.team-container { max-width: 1400px; margin: 0 auto; padding: 20px 48px 100px; position: relative; }
.vision-section { display: flex; align-items: center; gap: 60px; min-height: 70vh; margin-bottom: 80px; margin-top: 40px; }
.vision-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.vision-text h1 { font-family: var(--font-serif); font-size: 4.5rem; line-height: 1.2; margin-bottom: 24px; color: #111; letter-spacing: -1px; }
.vision-text h3 { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: #999; margin-bottom: 40px; font-weight: 500; }
.vision-text p { font-size: 1.1rem; color: #444; line-height: 1.8; max-width: 480px; border-left: 3px solid #111; padding-left: 24px; }
.vision-visual { flex: 1.5; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1); }
.vision-visual img { width: 100%; height: 100%; object-fit: cover; }
.scroll-hint-wrapper { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 50; transition: opacity 0.4s ease, transform 0.4s ease; }
.scroll-hint { padding: 8px 16px; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,0.05); border-radius: 30px; font-size: 0.8rem; color: #333; animation: float 2s infinite ease-in-out; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.scroll-hint-wrapper.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.members-header { margin-bottom: 40px; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.06); }
.section-tag { font-size: 1.0rem; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: 1px; }
.members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }

/* 隐藏愿景导航按钮 */
#nav-vision { display: none; } 

.member-item { text-align: left; transition: opacity 0.3s; }
.member-meta { font-size: 0.85rem; color: var(--accent-blue); font-weight: 600; margin-bottom: 8px; display: block; }
.member-item h2 { font-size: 1.5rem; margin-bottom: 12px; color: #111; font-weight: 700; }
.member-desc { font-size: 1rem; color: #555; line-height: 1.7; text-align: justify; }

/* ================== Works Page (轮播) ================== */
.filter-container { position: absolute; top: 100px; left: 0; width: 100%; z-index: 20; text-align: center; pointer-events: auto; }
.filter-btn { background: none; border: none; color: #aaa; margin: 0 16px; font-size: 1rem; cursor: pointer; transition: 0.3s; }
.filter-btn.active { color: #111; font-weight: 600; transform: scale(1.05); }

.stage { position: absolute; top: 0; left: 0; width: 100%; height: 100%; perspective: 1500px; display: flex; align-items: center; justify-content: center; }
.card-wrapper { position: absolute; width: var(--card-width); height: var(--card-height); transform-style: preserve-3d; will-change: transform; margin-top: 80px; }
.work-card { width: 100%; height: 100%; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); overflow: hidden; display: flex; backface-visibility: hidden; cursor: pointer; transition: background 0.3s; }
.card-left { width: 55%; height: 100%; position: relative; overflow: hidden; background: #eee; transition: opacity 0.3s; }
.card-left img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-right { width: 45%; height: 100%; padding: 48px; display: flex; flex-direction: column; justify-content: center; opacity: 1; transition: opacity 0.1s; }
.card-wrapper.clicked .card-left, .card-wrapper.clicked .card-right { opacity: 0; }
.card-cat { font-size: 0.75rem; font-weight: 700; color: #999; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.card-title { font-family: var(--font-serif); font-size: 2.2rem; color: #111; margin-bottom: 24px; line-height: 1.2; }
.card-intro { font-size: 0.95rem; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card-wrapper:not(.active) .work-card { 
    opacity: 0.6;                 /* 稍微亮一点，不仅是0.4 */
    pointer-events: none; 
    filter: blur(4px) brightness(0.9); /* 关键：用模糊代替去色，亮度微调 */
    transition: opacity 0.5s, filter 0.5s; /* 增加滤镜过渡，切换更自然 */
}

/* ================== Vision Page (愿景列表 - Apple风格) ================== */
.vision-container {
    max-width: 100%; margin: 0 auto; padding: 0;
    display: flex; flex-direction: column; gap: 0px; /* 卡片间隙 */
}
.vision-card {
    position: relative; width: 100%; height: 80vh; min-height: 600px;
    border-radius: 0px; overflow: hidden; background: #000;
    box-shadow: none; cursor: default;
}
.vision-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vision-card:hover .vision-bg { transform: scale(1.03); }
.vision-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    padding: 80px 40px; /* 增加内边距 */
    display: flex; 
    flex-direction: column; 
    /* 默认居中，模仿 iPhone 广告页 */
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    z-index: 2;
}
.vision-card[data-align="left"] .vision-overlay { 
    align-items: flex-start; 
    text-align: left; 
    padding-left: 10%; /* 靠左时留出呼吸感 */
}
/* 文字排版优化：更像广告大片 */
.vision-sub { 
    font-size: 1.1rem; 
    font-weight: 700; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    margin-bottom: 16px; 
    opacity: 0.9; 
}
.vision-title { 
    font-family: var(--font-serif); 
    font-size: 3.8rem;       /* 标题加大，撑起气场 */
    line-height: 1.05; 
    margin-bottom: 30px; 
    max-width: 900px;      /* 限制标题最大宽度，防止一行太长 */
}
.vision-intro { 
    font-size: 1.3rem;     /* 正文加大 */
    max-width: 600px; 
    line-height: 1.6; 
    margin-bottom: 40px; 
    opacity: 0.95; 
    font-weight: 400;
}

/* 按钮样式微调 */
.vision-btn {
    display: inline-block; 
    padding: 14px 36px; 
    border-radius: 999px;
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    /*隐藏按钮
    display: none !important; */
    /*防止链接出现下划线 */
    text-decoration: none;
}

/* Vision List Theme Colors */
.vision-card.theme-light .vision-sub,
.vision-card.theme-light .vision-title,
.vision-card.theme-light .vision-intro { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.vision-card.theme-light .vision-btn { background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.vision-card.theme-light .vision-btn:hover { background: #fff; color: #000; }

.vision-card.theme-dark .vision-sub,
.vision-card.theme-dark .vision-title,
.vision-card.theme-dark .vision-intro { color: #1d1d1f; }
.vision-card.theme-dark .vision-btn { background: #0071e3; color: #fff; }
.vision-card.theme-dark .vision-btn:hover { background: #0077ed; transform: scale(1.05); }

/* 特殊处理：愿景页不需要顶部留白，因为是全屏大图 */
#page-vision {
    padding-top: 50px; /* 只留出 Header 的高度即可，或者留少一点 */
}

/* ================== Detail Overlay (通用) ================== */
.detail-overlay {
    position: fixed; inset: 0; background: #fff; z-index: 500;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
body.detail-open .detail-overlay { opacity: 1; pointer-events: auto; }
.close-btn {
    position: fixed; top: 24px; right: 24px; width: 44px; height: 44px;
    background: rgba(0,0,0,0.05); border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 501; transition: 0.3s;
}
.close-btn:hover { background: rgba(0,0,0,0.1); transform: rotate(90deg); }

/* ================== Scene A: Works Detail (原有样式) ================== */
.detail-scene { width: 100%; }
.detail-content { max-width: 1000px; margin: 0 auto; padding: 100px 0 100px; }
.detail-header-info { text-align: left; padding: 0 30px; margin-bottom: 30px; }
.detail-cat-tag { color: #999; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 15px; opacity: 0; }
.detail-main-title { font-family: var(--font-serif); font-size: 3rem; margin: 0 0 25px; color: #111; line-height: 1.1; opacity: 0; }
.detail-main-intro { font-size: 1.2rem; color: #666; max-width: 100%; line-height: 1.6; opacity: 0; }
.detail-body-container { opacity: 0; transform: translateY(100px); transition: all 0.8s var(--ease-editorial); }
.detail-body-container.visible { opacity: 1; transform: translateY(0); }

/* Block Styles */
.detail-block { margin-bottom: 30px; width: 100%; padding: 0 30px; }
.block-hero { width: 100%; min-height: 200px; border-radius: 12px; overflow: hidden; }
.block-hero img, .block-hero video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.block-text { line-height: 1.9; font-size: 1.1rem; color: #333; }
.block-text h3 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 20px; color: #000; }
.block-image-full img { width: 100%; height: auto; display: block; border-radius: 12px; }
.block-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.block-image-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* Flying Text */
.flying-el { position: fixed; z-index: 1000; pointer-events: none; transform-origin: top left; will-change: transform, width, height, font-size; }
.flying-title { font-family: var(--font-serif); color: #111; line-height: 1.2; white-space: normal; }
.flying-intro { font-family: var(--font-std); color: #666; line-height: 1.7; white-space: normal; overflow: hidden; }

/* Video Player */
.video-wrapper { position: relative; width: 100%; height: 100%; cursor: pointer; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-btn-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px;
    background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 10; transition: transform 0.2s, background 0.2s, opacity 0.3s; pointer-events: auto; cursor: pointer;
}
.play-btn-overlay svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.video-wrapper.playing .play-btn-overlay { opacity: 0; transform: translate(-50%, -50%) scale(0.8); pointer-events: none; }

/* ================== Scene B: Vision Detail (独立沉浸样式) ================== */
.vision-hero-wrapper {
    position: relative; width: 100%; height: 90vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: #000;
}
.vision-hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.vision-hero-media video, .vision-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.vision-hero-text {
    position: relative; z-index: 10; text-align: center; max-width: 800px; padding: 0 40px;
    opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease;
}
.vision-hero-text.visible { opacity: 1; transform: translateY(0); }
.vision-hero-sub { font-size: 1rem; letter-spacing: 3px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.vision-hero-title { font-family: var(--font-serif); font-size: 4rem; margin-bottom: 24px; line-height: 1.1; }
.vision-hero-intro { font-size: 1.2rem; line-height: 1.6; }
.vision-hero-wrapper.theme-light .vision-hero-text { color: #fff; text-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.vision-hero-wrapper.theme-dark .vision-hero-text { color: #000; }
.scroll-down-arrow {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    opacity: 0.6; animation: float 2s infinite; z-index: 10; color: #fff;
}
.vision-hero-wrapper.theme-dark .scroll-down-arrow { color: #000; }
.vision-body-content {
    background: #fff; padding-top: 80px; min-height: 50vh;
    opacity: 0; transform: translateY(50px); transition: all 0.8s ease 0.3s;
}
.vision-body-content.visible { opacity: 1; transform: translateY(0); }

/* Hide stage when detail is open */
body.detail-open .stage, body.detail-open .filter-container { opacity: 0; pointer-events: none; transition: opacity 0.2s; }

/* Mobile */
@media (max-width: 900px) {
    :root { --card-width: 88vw; --card-height: 110vw; }
    header { padding: 15px 24px; }
    nav a { margin-left: 20px; font-size: 0.85rem; }
    
    .team-container { padding: 20px 24px 80px; }
    .vision-section { flex-direction: column; gap: 30px; margin: 20px 0 60px; }
    .vision-text h1 { font-size: 2.8rem; }
    .vision-visual { width: 100%; aspect-ratio: 16/10; margin: 0; }
    .members-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .filter-container { top: 60px; overflow-x: auto; padding: 10px 24px; text-align: left; white-space: nowrap; scrollbar-width: none; }
    .card-wrapper { margin-top: 50px; }
    .work-card { flex-direction: column; }
    .card-left { width: 100%; height: 55%; }
    .card-right { width: 100%; height: 45%; padding: 24px 24px 0; justify-content: flex-start; padding-top: 30px; }
    .card-title { font-size: 1.6rem; }
    
    .vision-card { height: 60vh; border-radius: 16px; }
    .vision-title { font-size: 2.2rem; }
    
    .detail-content { padding-top: 80px; }
    .detail-main-title { font-size: 2.2rem; }
    .detail-block { padding: 0 24px; margin-bottom: 40px; }
    .block-image-full, .video-wrapper { border-radius: 8px; }
    .block-image-grid { grid-template-columns: 1fr; }
    
    .vision-hero-wrapper { height: 75vh; }
    .vision-hero-title { font-size: 2.5rem; }
}
/* 1. 左右分栏 (Split Media) */
.block-split {
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 60px;          /* 中间间距 */
    width: 100%;
}
/* 反向排列 (图在右，文在左) */
.block-split.align-right {
    flex-direction: row-reverse;
}
.split-media-col {
    flex: 1;             /* 占 50% 宽度 */
    width: 50%;
    height:auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 0;
    overflow: visible;
    background: transparent; 
    box-shadow: none;
}
.split-text-col {
    flex: 1;             /* 占 50% 宽度 */
    width: 50%;
    padding: 0 10px;
}
/* 让内部的媒体填满容器 */
.split-media-col img, .split-media-col video, .split-media-col .video-wrapper {
    width: 100%;
    height: auto; /* 关键：高度自适应，不要强行拉伸 */
    display: block;
    object-fit: cover;
    /* 每一张图都有独立的圆角和阴影 */
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden; /* 确保视频内容不溢出圆角 */
}
.block-split.is-stack {
    align-items: flex-start; 
}
/* 2. 竖屏阵列 (Mobile Grid) */
.block-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 电脑端一行3个 */
    gap: 24px;
    width: 100%;
}
.mobile-grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19; /* 模拟全面屏手机比例 */
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.mobile-grid-item img, .mobile-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 填满容器 */
    display: block;
}

/* 移动端适配 */
@media (max-width: 900px) {
    /* 分栏变堆叠 */
    .block-split, .block-split.align-right {
        flex-direction: column;
        gap: 30px;
    }
    .split-media-col, .split-text-col {
        width: 100%;
        flex: none;
    }
    
    /* 竖屏阵列变横向滑动 (类似 App Store) */
    .block-mobile-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; /* 留出滚动条空间或防止阴影被切 */
        gap: 16px;
        /* 隐藏滚动条 */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .block-mobile-grid::-webkit-scrollbar { display: none; }
    
    .mobile-grid-item {
        flex: 0 0 70%; /* 手机上一屏显示 70% 宽度的卡片 */
        scroll-snap-align: center;
        aspect-ratio: 9/16;
    }
}
.block-text-columns {
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    gap: 40px;               /* 列之间的间距 */
    width: 100%;
    padding: 20px 30px;         /* 上下稍微留点白 */
    border-top: 1px solid rgba(0,0,0,0.05); /* 可选：加个顶部分割线，显得像信息栏 */
    margin-top: 20px;
}

.text-col-item {
    flex: 1;                 /* 自动平分宽度 */
    min-width: 0;            /* 防止长文本撑爆容器 */
}

/* 小标题样式 (比如: ROLE, YEAR) */
.text-col-item h4 {
    font-size: 1rem;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
}

/* 正文样式 */
.text-col-item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* 移动端适配：变回单列堆叠 */
@media (max-width: 900px) {
    .block-text-columns {
        flex-direction: column;
        gap: 30px;
        border-top: none; /* 手机上可能不需要分割线 */
    }
}
/* 1. 只有配置了按钮功能的卡片，鼠标放上去才变小手 */
.vision-card.is-clickable {
    cursor: pointer;
}

/* 2. 增强悬浮反馈：不仅仅背景放大，整体可以有微小的亮度变化 */
.vision-card.is-clickable:hover .vision-bg {
    transform: scale(1.03); /* 保持之前的放大 */
    filter: brightness(1.05); /* 稍微亮一点点，作为交互反馈 */
}

/* 3. 点击瞬间的反馈 (按压感) */
.vision-card.is-clickable:active .vision-bg {
    transform: scale(1.03) translateY(2px); /* 细微的下沉感 */
    transition: transform 0.1s;
}