/* 城市更新详情页通用样式 */

/* Hero区域 */
.detail-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: transform 0.3s ease;
}


.detail-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    max-width: 1200px;
}

.detail-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.detail-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* 主要内容区域 */
.detail-section {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}


.detail-section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.detail-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}



.detail-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.8;
}

/* 卡片网格 */
.detail-card-grid {
    display: grid;
     grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* 移动端 */
    @media (max-width: 768px) {
      .detail-card-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
      }
    }

.detail-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.detail-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e5e7eb;
}


.detail-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}



.detail-card-content {
    padding: 1rem 0.8rem;
}

.detail-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}




/* 响应式设计 - 平板端 */
@media (max-width: 1200px) {
    .detail-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .detail-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .detail-hero h1 {
        font-size: 2.8rem;
    }

    .detail-hero-subtitle {
        font-size: 1.2rem;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .detail-hero {
        height: 45vh;
        min-height: 350px;
    }

    .detail-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .detail-hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .detail-section {
        padding: 2rem 0;
    }

    .detail-section-header {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .detail-section-header h2 {
        font-size: 1.4rem;
        margin-left: 0;
    }

    .detail-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .detail-card {
        border-radius: 6px;
    }

    .detail-card-image {
        height: 200px;
    }

    .detail-card-content {
        padding: 0.875rem;
    }

    .detail-card-title {
        font-size: 0.95rem;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .detail-hero {
        height: 40vh;
        min-height: 300px;
    }

    .detail-hero h1 {
        font-size: 1.6rem;
    }

    .detail-hero-subtitle {
        font-size: 0.9rem;
    }

    .detail-section {
        padding: 1.5rem 0;
    }

    .detail-section-header h2 {
        font-size: 1.2rem;
    }

    .detail-card-grid {
        gap: 0.875rem;
        padding: 0 0.875rem;
    }

    .detail-card-image {
        height: 180px;
    }

    .detail-card-content {
        padding: 0.75rem;
    }

    .detail-card-title {
        font-size: 0.875rem;
        line-height: 1.35;
    }

    /* 图片预览移动端优化 */
    .image-lightbox-img {
        max-width: 95vw;
        max-height: 70vh;
    }

    .image-lightbox-close {
        top: -40px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .image-lightbox-caption {
        font-size: 0.875rem;
        bottom: -50px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card {
    animation: fadeInUp 0.6s ease-out;
}

.detail-card:nth-child(1) {
    animation-delay: 0.1s;
}

.detail-card:nth-child(2) {
    animation-delay: 0.2s;
}

.detail-card:nth-child(3) {
    animation-delay: 0.3s;
}

.detail-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ==================== 图片放大预览样式 ==================== */

/* 遮罩层 */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

/* 预览图片容器 */
.image-lightbox-container {
    position: relative;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-lightbox-overlay.active .image-lightbox-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 预览图片 */
.image-lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 关闭按钮 */
.image-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.image-lightbox-overlay.active .image-lightbox-close {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 图片标题 */
.image-lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    color: #fff;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s ease 0.15s;
}

.image-lightbox-overlay.active .image-lightbox-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 卡片图片悬停效果 */
.detail-card-image {
    cursor: zoom-in;
}

.detail-card-image:hover img {
    transform: scale(1.05);
}

/* 点击时的涟漪效果 */
.detail-card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.detail-card-image:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}


.detail-card:nth-child(5) {
    animation-delay: 0.5s;
}

.detail-card:nth-child(6) {
    animation-delay: 0.6s;
}