/* 照片网格模块 - 集成版（独立命名空间，零冲突）*/

/* Section容器 */
.pg-section {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 60px 10px !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #b0d1fa 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* 确保inner容器不影响布局 */
.pg-section .inner {
    overflow: visible !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.pg-container {
    width: 95%;
    max-width: 1900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 顶部标题 */
.pg-header {
    text-align: center;
    margin-bottom: 30px;
}

.pg-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.pg-title-highlight {
    color: #02669c;
    font-weight: 700;
}

/* 蓝色下划线 */
.pg-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #02669c, #3b82f6, #02669c, transparent);
    border-radius: 2px;
}

/* 标题下方补充说明 */
.pg-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    margin: 20px 0 0 0;
    line-height: 1.6;
}

/* 网格包装器 */
.pg-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

/* 列容器 */
.pg-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 照片盒子 */
.pg-box {
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    cursor: pointer !important;
    display: block !important;
}

/* 第一列和第四列（3张）*/
.pg-column-1 .pg-box,
.pg-column-4 .pg-box {
    width: 280px;
    height: 180px;
}

/* 第二列和第三列（2张）*/
.pg-column-2 .pg-box,
.pg-column-3 .pg-box {
    width: 280px;
    height: 272px;
}

/* 图片 */
.pg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

/* 悬浮时图片变暗 */
.pg-box:hover .pg-img {
    filter: brightness(0.5) !important;
}

/* 底部横幅 - 半透明浅蓝色，始终显示 */
.pg-banner {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(59, 130, 246, 0.75) !important;
    padding: 12px 15px !important;
    z-index: 2 !important;
    display: block !important;
}

.pg-banner span {
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* 遮罩层 - 悬浮时居中显示按钮 */
.pg-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

.pg-box:hover .pg-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 获取样品按钮 */
.pg-sample-btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: linear-gradient(135deg, #02669c, #3b82f6) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(2, 102, 156, 0.5) !important;
    pointer-events: auto !important;
}

.pg-sample-btn:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 10px 30px rgba(2, 102, 156, 0.7) !important;
    background: linear-gradient(135deg, #034d77, #2563eb) !important;
}

/* 箭头分隔器 */
.pg-arrow-sep {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-arrow-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #02669c, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 10px rgba(2, 102, 156, 0.3);
    animation: pgPulse 2s ease-in-out infinite;
}

.pg-arrow-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(2, 102, 156, 0.4);
}

/* 箭头脉冲动画 - 仅透明度 */
@keyframes pgPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ============================================
   响应式设计
============================================ */

@media (max-width: 1400px) {
    .pg-column-1 .pg-box,
    .pg-column-4 .pg-box {
        width: 250px;
        height: 160px;
    }
    
    .pg-column-2 .pg-box,
    .pg-column-3 .pg-box {
        width: 250px;
        height: 244px;
    }
}

@media (max-width: 1200px) {
    .pg-column-1 .pg-box,
    .pg-column-4 .pg-box {
        width: 220px;
        height: 140px;
    }
    
    .pg-column-2 .pg-box,
    .pg-column-3 .pg-box {
        width: 220px;
        height: 214px;
    }
    
    .pg-wrapper {
        gap: 10px;
    }
}

@media (max-width: 968px) {
    .pg-section {
        height: auto;
        min-height: 100vh;
        padding: 60px 20px;
        overflow: visible;
    }
    
    .pg-container {
        height: auto;
    }
    
    .pg-wrapper {
        flex-direction: column;
        gap: 20px;
        flex: none;
    }
    
    .pg-column {
        width: 100%;
        max-width: 500px;
    }
    
    .pg-column-1 .pg-box,
    .pg-column-4 .pg-box,
    .pg-column-2 .pg-box,
    .pg-column-3 .pg-box {
        width: 100%;
        height: 250px;
    }
    
    .pg-arrow-sep {
        width: 100%;
        height: 30px;
    }
    
    .pg-arrow-icon {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .pg-section {
        padding: 40px 15px;
    }
    
    .pg-title {
        font-size: 1.8rem;
    }
    
    .pg-title::after {
        width: 60px;
        height: 2px;
    }
    
    .pg-subtitle {
        font-size: 0.9rem;
    }
    
    .pg-column-1 .pg-box,
    .pg-column-4 .pg-box,
    .pg-column-2 .pg-box,
    .pg-column-3 .pg-box {
        height: 200px;
    }
    
    .pg-banner span {
        font-size: 0.85rem;
    }
    
    .pg-sample-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

