/* ============================================
   项目详情页面样式（参考图片布局）
   ============================================ */

/* 项目详情页面容器 */
.project-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000 !important;
    z-index: 10004;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 80px;
}

/* 归档项目（ARCHIVES）- 白色背景 */
.project-detail-page.archives-project {
    background: #fff !important;
}

/* 确保body在项目详情页时也是黑色（精选项目）或白色（归档项目） */
body:has(#project-page:not([style*="display: none"])) {
    background: #000 !important;
}

body:has(#project-page.archives-project:not([style*="display: none"])) {
    background: #fff !important;
}

/* 项目详情页导航栏 */
.project-detail-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: #000;
    z-index: 10005;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* 归档项目的导航栏 - 白色背景，保持原有布局 */
.project-detail-page.archives-project .project-detail-nav {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 60px; /* 保持原有padding，不因侧边栏改变 */
    padding-right: 60px;
}

.project-nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.project-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.project-nav-link {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
}

.project-nav-link:hover {
    color: #fff;
}

/* 归档项目的导航链接 */
.project-detail-page.archives-project .project-nav-link {
    color: #666;
}

.project-detail-page.archives-project .project-nav-link:hover {
    color: #000;
}

.project-nav-name {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* 归档项目的导航名字 */
.project-detail-page.archives-project .project-nav-name {
    color: #000;
}

.project-nav-name:hover {
    opacity: 0.7;
}

/* 左侧导航栏（仅ARCHIVES项目） */
.project-detail-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    background: #fff;
    padding: 40px 30px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10003;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.project-detail-sidebar::-webkit-scrollbar {
    width: 6px;
}

.project-detail-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.project-detail-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.project-detail-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.category-group {
    margin-bottom: 40px;
}

.category-title {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.category-project-item {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.category-project-item:hover {
    color: #000;
}

.category-project-item.active {
    color: #000;
    font-weight: 500;
}

.category-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* 项目详情内容区域 */
.project-detail-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: #000 !important;
    overflow-x: hidden;
}

/* 归档项目的内容区域 - 白色背景，左侧留出空间给侧边栏 */
.project-detail-page.archives-project .project-detail-content {
    background: #fff !important;
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 250px;
    padding: 0 60px;
}

/* You may also like 部分使用全屏宽度 */
.you-may-also-like-section {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 60px;
    padding-right: 60px;
    box-sizing: border-box;
}

/* 项目标题区域 */
.project-detail-title-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-detail-title {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* 归档项目的标题 - 黑色文字 */
.project-detail-page.archives-project .project-detail-title {
    color: #000;
}

/* 项目描述区域 */
.project-detail-description-section {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 归档项目的描述区域 */
.project-detail-page.archives-project .project-detail-description-section {
    max-width: 1200px;
    padding: 0;
}

.project-detail-description {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* 归档项目的描述 - 深灰色文字 */
.project-detail-page.archives-project .project-detail-description {
    color: #333;
}

.project-detail-description p {
    margin: 0 0 20px 0;
}

.project-detail-description p:last-child {
    margin-bottom: 0;
}

/* 项目详情信息区域 */
.project-detail-meta-section {
    text-align: center;
    margin-bottom: 100px;
    padding: 0 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 归档项目的详情信息区域 */
.project-detail-page.archives-project .project-detail-meta-section {
    max-width: 1200px;
    padding: 0;
}

.project-meta-grid {
    display: inline-flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.project-detail-meta-section .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
}

/* 项目详情列表（包含Team等信息） */
.project-details-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    width: 100%;
}

.project-details-list .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
    width: 100%;
    text-align: center;
}

.project-detail-meta-section .meta-label {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 归档项目的meta标签 */
.project-detail-page.archives-project .project-detail-meta-section .meta-label {
    color: #666;
}

.project-detail-meta-section .meta-value {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    font-weight: 400;
}

/* 归档项目的meta值 */
.project-detail-page.archives-project .project-detail-meta-section .meta-value {
    color: #000;
}

/* 视频区域 */
.project-detail-video {
    width: 100vw;
    max-width: 100vw;
    margin: 80px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    text-align: center;
    padding: 0;
}

/* 归档项目的视频区域 - 限制宽度 */
.project-detail-page.archives-project .project-detail-video {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.project-detail-page.archives-project .project-detail-video iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
}

.project-detail-video iframe {
    width: 100vw;
    max-width: 100vw;
    height: 80vh;
    max-height: 80vh;
    border: none;
    display: block;
    margin: 0;
}

/* 图片画廊 */
.project-detail-gallery {
    width: 100vw;
    max-width: 100vw;
    margin-bottom: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
}

.project-detail-gallery img {
    width: 70vw !important;
    max-width: 70vw !important;
    min-width: 70vw !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 80px auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    cursor: pointer;
    background: #000 !important;
    transition: opacity 0.3s ease;
    box-sizing: border-box !important;
    padding: 0 !important;
    position: relative;
}

/* 归档项目的图片背景 - 白色 */
.project-detail-page.archives-project .project-detail-gallery img {
    background: #fff !important;
}

/* 归档项目的画廊 - 网格布局 */
.project-detail-page.archives-project .project-detail-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    box-sizing: border-box;
}

.project-detail-page.archives-project .project-detail-gallery img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    cursor: pointer;
    background: #f5f5f5 !important;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-detail-page.archives-project .project-detail-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-detail-gallery img:hover {
    opacity: 0.9;
}

.project-detail-gallery img:last-child {
    margin-bottom: 0;
}

/* You may also like 部分 */
.you-may-also-like-section {
    margin-top: 120px;
    margin-bottom: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 60px;
    padding-right: 60px;
    box-sizing: border-box;
    background: #000;
}

/* 归档项目的 You may also like 部分 */
.project-detail-page.archives-project .you-may-also-like-section {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.you-may-also-like-title {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: -0.01em;
}

/* 归档项目的标题 */
.project-detail-page.archives-project .you-may-also-like-title {
    color: #000;
}

.you-may-also-like-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    width: 100%;
}

.you-may-also-like-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
    padding: 10px 0;
    width: calc(100% - 152px); /* 减去两个箭头按钮的宽度和gap */
    max-width: 100%;
}

.you-may-also-like-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.you-may-also-like-item {
    position: relative;
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.you-may-also-like-item:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

.you-may-also-like-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.you-may-also-like-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.you-may-also-like-item:hover .you-may-also-like-overlay {
    opacity: 1;
}

.you-may-also-like-item-title {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.you-may-also-like-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #000;
}

/* 归档项目的导航按钮 */
.project-detail-page.archives-project .you-may-also-like-nav-btn {
    border: 2px solid #333;
    background: #fff;
}

.project-detail-page.archives-project .you-may-also-like-nav-btn svg {
    stroke: #000;
}
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.you-may-also-like-nav-btn:hover {
    background: #333;
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.you-may-also-like-nav-btn:active {
    transform: scale(0.95);
}

.you-may-also-like-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.you-may-also-like-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #ccc;
    border-color: #ccc;
}

.you-may-also-like-nav-btn.disabled:hover {
    transform: none;
    background: #ccc;
    border-color: #ccc;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .project-detail-sidebar {
        display: none !important; /* 移动端隐藏侧边栏 */
    }
    
    .project-detail-page.archives-project .project-detail-nav {
        padding-left: 20px; /* 移动端恢复正常padding */
    }
    
    .project-detail-page.archives-project .project-detail-content {
        margin-left: 0; /* 移动端恢复全宽 */
        padding: 0 20px;
    }
    
    .project-detail-nav {
        padding: 0 20px;
        height: 60px;
    }
    
    .project-nav-left {
        gap: 20px;
    }
    
    .project-nav-link {
        font-size: 11px;
    }
    
    .project-nav-name {
        font-size: 18px;
    }
    
    .project-detail-content {
        padding: 60px 20px 80px;
    }
    
    .project-detail-title {
        font-size: 28px;
    }
    
    .project-detail-description {
        font-size: 16px;
    }
    
    .project-detail-video iframe {
        height: 400px;
    }
    
    .project-detail-gallery img {
        max-height: 600px;
        margin-bottom: 30px;
    }
    
    .you-may-also-like-section {
        margin-top: 80px;
        margin-bottom: 60px;
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .you-may-also-like-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .you-may-also-like-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: 350px;
    }
    
    .you-may-also-like-carousel {
        width: calc(100% - 120px);
    }
    
    .you-may-also-like-nav-btn {
        width: 48px;
        height: 48px;
    }
    
    .you-may-also-like-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* 归档项目在移动端的画廊布局 */
    .project-detail-page.archives-project .project-detail-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
}

