/* =========================================================================
   宸贸官网 - 展会案例详情页(/portfolio/<国家>) 图片集美化样式
   作用域: .pf-detail (仅 item 视图覆盖模板输出)
   ========================================================================= */

.pf-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 60px;
}

/* ---- 封面横幅 ---- */
.pf-detail-hero {
    position: relative;
    min-height: 340px;
    margin-top: 24px;
    background-size: cover;
    background-position: center;
    background-color: #0a2542;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    box-shadow: 0 16px 40px rgba(2, 18, 40, 0.4);
}

.pf-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 66, 0.82) 0%, rgba(0, 91, 150, 0.62) 60%, rgba(0, 122, 204, 0.5) 100%);
    z-index: 1;
}

.pf-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
}

.pf-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s;
    backdrop-filter: blur(4px);
}

.pf-back:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-3px);
}

.pf-back-icon {
    font-size: 16px;
    line-height: 1;
}

.pf-detail-title {
    font-size: 40px;
    font-weight: bold;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.pf-detail-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- 正文区 ---- */
.pf-detail-body {
    margin-top: 34px;
}

.pf-detail-lead {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    text-align: center;
}

.pf-detail-lead strong {
    color: #007acc;
}

/* ---- 图片集网格美化(覆盖 SP Easy Image Gallery 默认样式) ---- */
/* 修正 rectangle 布局 8+4+4=16列溢出 + push/pull 错位: 统一为等宽 1/3 网格 */
.pf-detail-body [class*="speasyimagegallery-col-sm-"] {
    width: 33.3333% !important;
    left: auto !important;
    right: auto !important;
    float: left;
    box-sizing: border-box;
}
.pf-detail-body .speasyimagegallery-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.pf-detail-body .speasyimagegallery-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.pf-detail-body .speasyimagegallery-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.pf-detail-body .speasyimagegallery-gallery-item:hover img {
    transform: scale(1.08);
}

/* 隐藏英文图片标题(Australia 14 等), 保留灯箱标题 */
.pf-detail-body .speasyimagegallery-gallery-item-content {
    display: none;
}

/* ---- 响应式 ---- */
@media (max-width: 767px) {
    .pf-detail-hero { min-height: 240px; border-radius: 12px; }
    .pf-detail-title { font-size: 28px; }
    .pf-detail-badge { font-size: 12px; padding: 5px 14px; }
    .pf-back { font-size: 12px; padding: 6px 14px; margin-bottom: 18px; }
    .pf-detail-body .speasyimagegallery-gallery-item img { height: 150px; }
}

@media (max-width: 480px) {
    .pf-detail-title { font-size: 24px; }
    .pf-detail-body .speasyimagegallery-gallery-item img { height: 120px; }
}
