/* 项目详情页专用样式 */

.work-banner {
    position: relative;
    min-height: 100vh;
    width: 100%;
    color: #ffffff;
    overflow: hidden;
}

.work-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.work-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(48, 48, 48, 0.8) 100%);
    z-index: 2;
}

.work-banner-content {
    position: relative;
    z-index: 3;
    max-width: 60vw;
    margin: 10% auto;
    /* padding: 120px 40px; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.work-banner-left {
    padding-top: 30%;
    padding-left: 20%;
}

.work-category {
    font-size: 0.875rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    text-transform: uppercase;
    z-index: 10;
}

.work-banner-left h1 {
    font-size: 6rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: #ffffff;
}

.work-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.work-meta-description {
    /* margin: 40px; */
    padding-top: 5rem;
    line-height: 2.5; /* 增加行间距 */
}

.work-meta-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
   
}

.meta-label {
    padding-right: 20px;
    color: #afafaf;
}



.work-banner-right {
    display: flex;
    align-items: center;
    margin-top: 60%;


}

.description-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* 已有的样式 */
.scroll-down {
    margin-top: 8rem;
 }
 
 /* 添加以下样式 */
 .scroll-down {
     /* display: flex; */
     flex-direction: column;
     align-items: center;
     margin-top: 8rem;
     color: rgba(255, 255, 255, 0.7);
     font-size: 0.9rem;
     letter-spacing: 1px;
     animation: fadeIn 1.5s ease forwards;
 }
 
 .scroll-line {
     width: 30px;
     height: 60px;
     background-color: rgba(255, 255, 255, 0.068);
     margin-bottom: 10px;
     position: relative;
     overflow: hidden;
     /* 添加椭圆外框 */
     border-radius: 20px;
     box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.772);
 }
 
 .scroll-dot {
     width: 4px;
     height: 4px;
     background-color: #fff;
     border-radius: 50%;
     position: absolute;
     left: 50%;
     transform: translateX(-50%);
     animation: scrollDown 2s ease infinite;
     /* 添加椭圆光晕效果 */
     box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.968);
 }
 
 
 
 @keyframes scrollDown {
     0% {
         top: -4px;
         opacity: 0;
     }
     30% {
         opacity: 1;
     }
     100% {
         top: 60px;
         opacity: 0;
     }
 }
 
 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }




.work-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}



.tag {
    
    font-size: 1rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.tag:not(:last-child)::after {
    content: ' /';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}


/* 项目内容样式 */
.work-content {
    width: 100%;
    padding: 0;
    /* background: #000; */
}

.work-features {
    padding: 4vw;
    color: #fff;
    display: flex;
    gap: 4vw;
}

.features-section,
.services-section {
    flex: 1;
}

.features-section h2,
.services-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.features-section ul,
.services-section ul {
    list-style: none;
    padding: 0;
}

.features-section li,
.services-section li {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}

.work-images {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2vw;
    padding: 2vw;
}

.work-images-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.work-image {
    width: 100%;
    height: auto;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.work-images-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    padding-top: 4vw;
}

.work-images-grid img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.work-images-grid.single-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.work-images-grid::after {
    content: '';
    grid-column: auto / span 1;
}



.work-description {
    margin-bottom: 6rem;
}

.work-description h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.work-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
}

/* 导航样式 */
.work-navigation {
    height: 60vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5vw;
    padding: 2vw;
    background: #000000;
    position: relative;
    /* margin:20% 0 10%; */
}

.work-navigation.single-nav {
    grid-template-columns: 1fr;
    padding: 0 25vw;
}

.work-nav-item {
    top: 50%;
    transform: translateY(-50%);
    position: relative;
    height: 80%;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.work-nav-item.hidden {
    display: none;
}

.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background-color 0.5s ease;
}

.work-nav-item:hover .nav-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.nav-content {
    position: absolute;

    top: 55%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
  
}



.work-nav-item:hover .nav-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.nav-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    padding: 10px 0;
}

.work-nav-item:hover .nav-label {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.nav-tags {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.work-nav-item:hover .nav-tags {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.nav-tags .work-meta-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.nav-tags .tag {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.nav-tags .tag:not(:last-child)::after {
    content: '/';
    margin-left: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.nav-tag {
    display: none;
}

.nav-title {
    padding: 20px 0;
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    margin: 0;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.work-nav-item:hover .nav-title {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .work-navigation {
        flex-direction: column;
    }
    .work-nav-item {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .work-banner-content {
        grid-template-columns: 1fr;
        max-width: 90vw;
        gap: 20px;
        margin: 0 auto;
        padding: 100px 20px;
    }

    .work-banner-left {
        padding: 20px 0;
    }

    .work-banner-left h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .work-banner-right {
        margin-top: 0;
    }

    .work-meta-description {
        padding-top: 2rem;
    }

    .work-features {
        padding: 40px 20px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .work-images-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .work-images-grid img {
        grid-column: auto / span 1;
    }

    .work-nav-item {
        height: 250px;
    }

    .nav-content {
        width: 90%;
        text-align: center;
    }

    .nav-title {
        font-size: 1.5rem;
    }

    .nav-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .work-banner-left h1 {
        font-size: 2.5rem;
    }

    .description-text {
        font-size: 1rem;
    }

    .work-meta-item {
        font-size: 0.9rem;
    }

    .work-nav-item {
        height: 200px;
    }
}

/* 错误提示样式 */
.work-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    text-align: center;
}

.work-error h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.work-error p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.work-back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.work-back-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

/* 项目特点和服务内容样式 */
.work-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 6rem auto;
    max-width: 1400px;
    padding: 0 40px;
}

.features-section h2,
.services-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #333;
}

.work-features ul {
    list-style: none;
    padding: 0;
}

.work-features li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.work-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #888;
}

/* 项目图片样式 */
.work-images {
    max-width: 100rem;
    margin: 4rem auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 4rem;
}


.work-image {
    
    /* 图片容器样式 */
    .image-container {
        position: relative;
        overflow: hidden;
        margin-bottom: 2rem;
        min-height: 300px; /* 设置最小高度避免布局跳动 */
        background-color: #f5f5f5;
        transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0;
        transform: translateY(30px);
        
    }
    
    /* 图片进入视口时的动画效果 */
    .image-container.in-view {
        opacity: 1;
        transform: translateY(20px);
    }
    
    /* 图片滚动时的动效 */
    .lazy-image {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
        will-change: transform;
    }
    
    /* 图片滚动视差效果 */
    .image-container.parallax .lazy-image {
        transform: translateY(20px);
        /* transition: transform 0.5s cubic-bezier(1, 1, 2, 2); */
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* 加载状态 */
    .image-container.loading {
        opacity: 0.8;
    }
    
    /* 加载完成状态 */
    .image-container.loaded {
        opacity: 1;
        background-color: transparent;
    }
    
    /* 懒加载相关样式 */
    .lazy-image {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .lazy-image.loaded {
        opacity: 1;
    }
    
    /* 加载动画 */
    @keyframes loadingPulse {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    .image-container.loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loadingPulse 1.5s infinite;
        z-index: 0;
    }
    
    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    .lazy-image.loaded {
        opacity: 1;
    }
    
    /* 加载动画 */
    @keyframes pulse {
        0% { opacity: 0.6; }
        50% { opacity: 0.3; }
        100% { opacity: 0.6; }
    }
    
    .image-container.loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
        background-size: 200% 100%;
        animation: pulse 2s infinite ease-in-out;
    }
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}



/* 响应式调整 */
@media (max-width: 1024px) {
    .work-image {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .work-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .work-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .work-images-grid {
        grid-template-columns: 1fr;
    }
}

/* 项目列表响应式 */
@media (max-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem;
    }

    .work-item {
        height: auto;
    }

    .work-item-content {
        position: relative;
        transform: none;
        opacity: 1;
        padding: 2rem 0;
        text-align: left;
        order: -1;
    }

    .work-item-image {
        position: relative;
        height: 300px;
    }

    .work-item-image img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .work-item-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        color: #ffffff;
    }

    .work-item-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .work-item-meta {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1.5rem;
    }

    .work-item-content {
        padding: 1.5rem 0;
    }

    .work-item-image {
        height: 250px;
    }

    .work-item-title {
        font-size: 2rem;
    }

    .work-item-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .work-grid {
        gap: 2rem;
        padding: 1rem;
    }

    .work-item-content {
        padding: 1.2rem 0;
    }

    .work-item-image {
        height: 200px;
    }

    .work-item-title {
        font-size: 1.8rem;
    }

    .work-item-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .work-item-meta {
        font-size: 0.85rem;
    }
}

/* 上下页切换响应式 */
@media (max-width: 768px) {
    .work-navigation {
        flex-direction: column;
    }

    .work-nav-item {
        width: 100%;
        height: 250px;
    }

    .nav-content {
        width: 90%;
        padding: 1.5rem;
    }

    .nav-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .nav-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .nav-tags {
        margin-top: 0.5rem;
    }

    .nav-tags .tag {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .work-nav-item {
        height: 200px;
    }

    .nav-content {
        padding: 1rem;
    }

    .nav-title {
        font-size: 1.5rem;
    }

    .nav-label {
        font-size: 0.85rem;
    }

    .nav-tags .tag {
        font-size: 0.8rem;
    }
}

/* 图片组样式 */
.image-group {
    display: grid;
    gap: 2vw;
    margin-bottom: 4vw;
    width: 100%;
}

/* 1栏布局 - 全宽 */
.layout-1 {
    grid-template-columns: 1fr;
}

/* 2栏布局 */
.layout-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3栏布局 */
.layout-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .layout-2, .layout-3 {
        grid-template-columns: 1fr;
    }
}

/* 图片样式 */
.work-image {
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* 添加延迟动画的CSS样式 */
.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 平滑滚动效果 */
html.project-detail-page {
    scroll-behavior: smooth;
}

body.project-detail-page {
    overflow-x: hidden;
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* 自定义滚动条样式 */
body.project-detail-page::-webkit-scrollbar {
    width: 8px;
}

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

body.project-detail-page::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* 图片容器样式 */
.work-image {
    position: relative;
    overflow: visible;
    margin-bottom: 40px;
}

/* 图片基础样式 */
.work-image img {
    width: 100%;
    height: auto;
    display: block;
}