/* ==========================================================================
   GALLERY PAGE (纯白高质感商务排版 & 防撑破横向滑动 & 移动端自适应)
   ========================================================================== */

html,
body:has(.events-gallery-page),
body.page-id-30248 {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.gallery-white-layout {
    background-color: #ffffff;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: visible !important;
    width: 100%;
}

.gallery-white-layout * {
    box-sizing: border-box;
}

.gallery-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    overflow: visible !important;
}

/* 1. 标头区域 */
.gallery-hero-header {
    background: #f8fafc;
    padding: 60px 0 45px;
    border-bottom: 1px solid #e2e8f0;
}

.gallery-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.gallery-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.gallery-breadcrumbs a:hover {
    color: #ff5e14;
}

.gallery-breadcrumbs .bc-sep {
    margin: 0 8px;
    color: #94a3b8;
}

.gallery-breadcrumbs .bc-current {
    color: #0f172a;
    font-weight: 600;
}

.event-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 94, 20, 0.1);
    border: 1px solid rgba(255, 94, 20, 0.35);
    color: #ea580c;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.gallery-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 18px;
}

.event-quick-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 13.5px;
}

.info-tag {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.info-tag i {
    color: #ff5e14;
}

.info-tag.verified {
    border-color: rgba(14, 165, 233, 0.4);
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 600;
}

.info-tag.verified i {
    color: #0284c7;
}

/* 2. 照片矩阵展示区 */
.gallery-showcase-section {
    padding: 60px 0 45px;
    background-color: #ffffff;
}

.section-title-wrap {
    margin-bottom: 36px;
}

.section-title-wrap .sub-title {
    color: #ff5e14;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.section-title-wrap h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.section-title-wrap p {
    color: #64748b;
    font-size: 15.5px;
    margin: 0 auto;
    max-width: 780px;
}

.gallery-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-photo-card {
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-photo-card:hover {
    transform: translateY(-4px);
    border-color: #ff5e14;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.photo-img-holder {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.photo-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-photo-card:hover .photo-img-holder img {
    transform: scale(1.05);
}

.photo-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 24px 16px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

/* 3. 报告正文与侧边栏网格 (核心防撑破声明) */
.gallery-report-section {
    padding: 45px 0 85px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    overflow: visible !important;
}

.gallery-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: stretch;
    min-width: 0; /* 阻止整体网格被撑破 */
    overflow: visible !important;
}

.gallery-report-content {
    min-width: 0; /* 关键：释放网格单元格限制，允许子元素自适应 */
    width: 100%;
}

.report-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 44px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    min-width: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.report-block h2 {
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #ff5e14;
    line-height: 1.35;
}

.report-block h2:first-child {
    margin-top: 0;
}

.report-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 14px;
}

.report-block p {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 22px;
}

.report-block hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 36px 0;
}

/* 表格滑动容器 (彻底封锁横向滚动在框内，不溢出卡片) */
.table-scroll-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.report-data-table {
    width: 100%;
    min-width: 620px; /* 强制表格保留最低舒适宽度，不足时内部滑动 */
    border-collapse: collapse;
    font-size: 14.5px;
    text-align: left;
}

.report-data-table th,
.report-data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8f0;
    white-space: normal;
    word-wrap: break-word;
}

.report-data-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.report-data-table tr:nth-child(even) {
    background: #f8fafc;
}

.gallery-callout-box {
    margin-top: 36px;
    background: #fff7ed;
    border-left: 4px solid #ea580c;
    padding: 22px 24px;
    border-radius: 0 8px 8px 0;
}

.gallery-callout-box h4 {
    margin: 0 0 8px;
    color: #ea580c;
    font-size: 16.5px;
    font-weight: 700;
}

.gallery-callout-box p {
    margin: 0;
    color: #9a3412;
    font-size: 15px;
    line-height: 1.7;
}

/* 4. 吸顶侧栏 */
.gallery-sidebar-col {
    height: 100%;
    position: relative;
    overflow: visible !important;
    min-width: 0;
}

.gallery-sticky-card {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 86px;
    z-index: 20;
    will-change: transform;
}

.quote-card-inner {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.card-kicker {
    font-size: 11px;
    font-weight: 800;
    color: #ff5e14;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.quote-card-inner h3 {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.35;
}

.quote-card-inner p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 0 20px;
}

.card-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.card-perks li {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-perks li i {
    color: #ff5e14;
}

.btn-gallery-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff5e14 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gallery-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 94, 20, 0.35);
}

.card-contact-strip {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
}

.card-contact-strip a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-top: 4px;
}

.card-contact-strip a:hover {
    color: #ff5e14;
}

/* ==========================================================================
   5. 移动端专属适配断点 (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
    .gallery-container {
        padding: 0 16px;
    }

    .gallery-hero-header {
        padding: 40px 0 30px;
    }

    .gallery-title {
        font-size: 24px;
    }

    .gallery-showcase-section {
        padding: 40px 0 30px;
    }

    .section-title-wrap h2 {
        font-size: 22px;
    }

    .gallery-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-report-section {
        padding: 30px 0 60px;
    }

    /* 关键：切为单列垂直堆叠，解除并排占用 */
    .gallery-report-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gallery-report-content {
        min-width: 0;
        width: 100%;
    }

    .report-block {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .report-block h2 {
        font-size: 20px;
        margin: 24px 0 12px;
        padding-left: 10px;
        border-left-width: 3px;
    }

    .report-block h3 {
        font-size: 17px;
        margin: 20px 0 10px;
    }

    .report-block p {
        font-size: 15px;
        line-height: 1.75;
        margin-bottom: 16px;
    }

    /* 侧栏在移动端置底流式展示 */
    .gallery-sidebar-col,
    .gallery-sticky-card {
        position: static !important;
        width: 100%;
    }

    .quote-card-inner {
        padding: 24px 18px;
    }
}

@media (max-width: 560px) {
    .gallery-masonry-grid {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 21px;
    }

    .event-quick-info {
        gap: 8px;
    }

    .info-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
}