/* project-detail.css */
/* 项目详情页特定样式 */
.project-detail {
    margin-top: 70px;
}

/* 面包屑导航样式 */
.breadcrumb-nav {
    background: #1a1a1a;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 0px;
    font-size: 0.95rem;
    line-height: 0.0001;
    margin-left: -90px;
}

.breadcrumb-link,
.breadcrumb-current {
    font-weight: bold;
}

.breadcrumb-item:first-child .breadcrumb-link {
    margin-left: -100px;
}

.breadcrumb-nav .container {
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #b0b0b0;
}

.breadcrumb-link {
    color: #c8a97e;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #b8945f;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #b0b0b0;
}

/* 项目实景 - 新布局 */
.project-gallery {
    padding: 0;
    background: #1a1a1a;
}

/* 全屏大图 - 铺满全屏 */
.featured-image-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
    cursor: pointer;
}

.featured-image {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.3s;
}

.featured-image:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.featured-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    padding: 0 20px;
}

/* 小图网格 - 添加折叠功能 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.5s ease;
    overflow: hidden;
    max-height: 750px; /* 默认显示3行的高度 */
}

.gallery-grid.expanded {
    max-height: none; /* 展开时取消高度限制 */
    padding-bottom: 80px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    border: 1px solid #2a2a2a;
    background: #1e1e1e;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.gallery-caption {
    padding: 15px;
    color: #b0b0b0;
    text-align: center;
    font-size: 0.9rem;
}

/* 更多图片按钮 */
.gallery-expand {
    text-align: center;
    margin: 20px 0 40px;
}

.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(200, 169, 126, 0.1);
    color: #c8a97e;
    border: 1px solid #c8a97e;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: rgba(200, 169, 126, 0.2);
    transform: translateY(-2px);
}

.expand-btn i {
    transition: transform 0.3s;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* 项目概述 */
.project-overview {
    padding: 80px 0;
    background: #121212;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.project-description h2,
.project-specs h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
}

.project-description h2::after,
.project-specs h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c8a97e;
    margin-top: 15px;
}

.project-description p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #b0b0b0;
}

.specs-list li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #e0e0e0;
}

.spec-value {
    color: #c8a97e;
}

/* 设计特点 */
.project-features {
    padding: 80px 0;
    background: #121212;
}

.features-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #ffffff;
    position: relative;
}

.features-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #c8a97e;
    margin: 15px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #1e1e1e;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c8a97e, #b8945f);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(200, 169, 126, 0.3));
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-item p {
    color: #b0b0b0;
    line-height: 1.6;
}

.back-to-cases {
    padding: 40px 0;
    background: #1a1a1a;
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #c8a97e, #b8945f);
    color: #121212;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 169, 126, 0.5);
    background: linear-gradient(135deg, #b8945f, #c8a97e);
}

/* 轮播弹窗样式 - 修改后 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.lightbox-slide {
    display: none;
    text-align: center;
}

.lightbox-slide.active {
    display: block;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* 修改后的导航按钮 - 固定在视口两侧 */
.lightbox-nav {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10000;
}

.lightbox-btn {
    background: rgba(200, 169, 126, 0.7);
    color: #121212;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
    pointer-events: auto;
}

.lightbox-btn:hover {
    background: rgba(200, 169, 126, 0.9);
    transform: scale(1.1);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(200, 169, 126, 0.7);
    color: #121212;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(200, 169, 126, 0.9);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 1200px; /* 移动端默认显示更多行 */
    }
    
    .gallery-grid.expanded {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .project-overview,
    .project-gallery,
    .project-features {
        padding: 60px 0;
    }
    
    .features-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .featured-image {
        height: 50vh;
    }
    
    .gallery-grid,
    .features-grid {
        grid-template-columns: 1fr;
        max-height: 1800px; /* 移动端默认显示更多行 */
        gap: 25px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 40vh;
    }
    
    .gallery-image {
        height: 150px;
    }
}