/* 图册布局优化 */
        .gallery-section {
            padding: 80px 0;
            background: #f9f9f9;
            position: relative;
        }
        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .gallery-title {
            text-align: center;
            font-size: 36px;
            color: #333;
            margin-bottom: 60px;
            font-weight: 700;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }
        .gallery-title::after {
            content: "";
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #ff3d3d;
        }

        /* 瀑布流布局 - 关键修改 */
        .masonry-grid {
            column-count: 3; /* 默认3列 */
            column-gap: 30px;
            width: 100%;
        }

        /* 图片卡片样式 - 移除固定高度 */
        .gallery-item {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            cursor: pointer;
            margin-bottom: 30px;
            break-inside: avoid; /* 防止卡片被分割到两列 */
            page-break-inside: avoid;
        }
        
        /* 图片自适应高度 */
        .gallery-img {
            width: 100%;
            height: auto; /* 自适应高度 */
            display: block;
            transition: all 0.5s ease;
        }

        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .gallery-item:hover .gallery-img {
            transform: scale(1.05); /* hover放大效果 */
        }

        /* 图片叠加层 */
        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: flex-end;
            padding: 25px;
        }
        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        /* 图片描述 */
        .gallery-info {
            transform: translateY(20px);
            transition: all 0.3s ease;
        }
        .gallery-item:hover .gallery-info {
            transform: translateY(0);
        }
        .gallery-item-title {
            font-size: 18px;
            color: #fff;
            font-weight: 600;
            margin-bottom: 5px;
        }
        .gallery-item-desc {
            font-size: 14px;
            color: #f1f1f1;
            line-height: 1.5;
        }

        /* 放大图标 */
        .gallery-zoom-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1;
        }
        .gallery-item:hover .gallery-zoom-icon {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        .gallery-zoom-icon i {
            font-size: 24px;
            color: #ff3d3d;
        }

        /* 加载动画样式 */
        .loading-container {
            text-align: center;
            padding: 40px 0;
            display: none; /* 默认隐藏 */
        }
        .loader {
            border: 4px solid rgba(255, 61, 61, 0.2);
            border-radius: 50%;
            border-top: 4px solid #ff3d3d;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        .loading-text {
            color: #666;
            font-size: 16px;
        }
        .no-more-data {
            text-align: center;
            padding: 40px 0;
            color: #999;
            font-size: 16px;
            display: none;
        }

        /* 响应式调整 - 瀑布流列数 */
        @media (max-width: 992px) {
            .masonry-grid {
                column-count: 2; /* 中等屏幕2列 */
                column-gap: 25px;
            }
        }
        @media (max-width: 576px) {
            .masonry-grid {
                column-count: 1; /* 小屏幕1列 */
                column-gap: 0;
            }
            .gallery-section {
                padding: 60px 0;
            }
            .gallery-title {
                font-size: 24px;
                margin-bottom: 40px;
            }
            .gallery-item {
                margin-bottom: 20px;
            }
        }

        /* ------------ 大图预览缩略图导航样式 ------------ */
        .mfp-thumbnails {
            padding: 15px 0;
            text-align: center;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            margin-top: 10px;
        }
        .mfp-thumbnail {
            display: inline-block;
            width: 80px;
            height: 60px;
            margin: 0 5px;
            border: 3px solid transparent;
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s ease;
            opacity: 0.7;
        }
        .mfp-thumbnail.active {
            border-color: #ff3d3d;
            opacity: 1;
            transform: scale(1.05);
        }
        .mfp-thumbnail:hover {
            opacity: 1;
        }
        .mfp-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .mfp-container {
            padding-bottom: 100px !important;
        }
        @media (max-width: 768px) {
            .mfp-thumbnail {
                width: 60px;
                height: 45px;
                margin: 0 3px;
            }
            .mfp-container {
                padding-bottom: 80px !important;
            }
        }
        .mfp-bottom-bar .mfp-counter {
            display: none;
        }
        .mfp-title {
            text-align: center !important;
            padding: 10px 0 !important;
            font-size: 16px !important;
            color: #fff !important;
            background: rgba(0,0,0,0.5) !important;
            border-radius: 4px !important;
            margin-bottom: 10px !important;
        }

        /* 旋转动画 */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }