/* 图片懒加载样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Hero区域带图片背景 */
.page-header-with-bg {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}

.page-header-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 74, 153, 0.9) 100%);
    z-index: 1;
}

.page-header-with-bg .container {
    position: relative;
    z-index: 2;
}

/* 图片卡片样式 */
.card-with-image {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-with-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-with-image:hover .card-image {
    transform: scale(1.05);
}

.card-image-wrapper {
    overflow: hidden;
    height: 200px;
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* 特色图片区域 */
.feature-image-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.feature-image-section .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.feature-image-section .container {
    position: relative;
    z-index: 1;
}

/* 响应式图片 */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 图片占位符 */
.image-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 48px;
}

/* 图片悬浮效果 */
.image-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* 图片标题覆盖层 */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-overlay:hover .overlay-content {
    transform: translateY(0);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 102, 204, 0.2);
    border-top-color: #0066CC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 图片骨架屏 */
.skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 200px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 国家战略图片响应式修复 */
.image-grid-item {
    overflow: hidden;
    border-radius: 12px;
}

.image-grid-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hover-zoom {
    width: 100%;
    overflow: hidden;
}

.hover-zoom img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-grid-item:hover .hover-zoom img {
    transform: scale(1.1);
}

.image-grid-caption {
    padding: 20px;
    background: white;
}

.image-grid-caption h3 {
    color: #0066CC;
    font-size: 20px;
    margin-bottom: 10px;
}

.image-grid-caption p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .image-grid-item img,
    .hover-zoom img {
        height: 180px !important;
    }
    
    .image-grid-caption {
        padding: 15px;
    }
    
    .image-grid-caption h3 {
        font-size: 18px;
    }
    
    .image-grid-caption p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .image-grid-item img,
    .hover-zoom img {
        height: 160px !important;
    }
    
    .image-grid-caption {
        padding: 12px;
    }
    
    .image-grid-caption h3 {
        font-size: 16px;
    }
}
