.wmp-long-image-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.wmp-long-image-viewport {
    --wmp-scrollbar-color: #9aa6b2;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border-style: solid;
    border-color: #e4e8ed;
    background: #f4f6f8;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--wmp-scrollbar-color) rgba(15, 23, 42, 0.08);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    outline: none;
}

.wmp-long-image-viewport:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 116, 255, 0.24);
}

.wmp-long-image-viewport::-webkit-scrollbar {
    width: 11px;
}

.wmp-long-image-viewport::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
}

.wmp-long-image-viewport::-webkit-scrollbar-thumb {
    min-height: 46px;
    border: 3px solid transparent;
    border-radius: 999px;
    background: var(--wmp-scrollbar-color);
    background-clip: padding-box;
}

.wmp-long-image-hide-scrollbar {
    scrollbar-width: none;
}

.wmp-long-image-hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.wmp-long-image-drag-enabled {
    cursor: grab;
}

.wmp-long-image-drag-enabled.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.wmp-long-image-content {
    display: block;
    width: 100%;
    max-width: none !important;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.wmp-long-image-hint {
    position: absolute;
    top: 16px;
    right: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 48px);
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(11, 31, 58, 0.84);
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.16);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wmp-long-image-hint-icon {
    font-size: 17px;
    line-height: 1;
}

.wmp-long-image-shell.is-used .wmp-long-image-hint {
    opacity: 0;
    transform: translateY(-5px);
}

.wmp-long-image-frame-mobile .wmp-long-image-viewport {
    max-width: 100%;
}

@media (max-width: 767px) {
    .wmp-long-image-hint {
        top: 11px;
        right: 18px;
        max-width: calc(100% - 36px);
        padding: 8px 11px;
        font-size: 12px;
    }

    .wmp-long-image-viewport::-webkit-scrollbar {
        width: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wmp-long-image-hint {
        transition: none;
    }
}

/* 1.2.0：移动端长图位于固定 iPhone 外框的屏幕区域内。 */
.wmp-long-image-frame-mobile {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
}

.wmp-long-image-frame-mobile .wmp-long-image-phone-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 360 / 659;
}

.wmp-long-image-frame-mobile .wmp-long-image-viewport {
    position: absolute;
    top: 15.02%;
    left: 18.33%;
    z-index: 1;
    width: 75.56% !important;
    height: 72.38% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0 !important;
    border-radius: 2px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    scrollbar-gutter: auto;
}

.wmp-long-image-frame-mobile .wmp-long-image-viewport:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(22, 116, 255, 0.42) !important;
}

.wmp-long-image-frame-mobile .wmp-long-image-content {
    display: block;
    width: 100% !important;
    min-width: 100%;
    max-width: none !important;
    height: auto;
    margin: 0;
}

.wmp-long-image-frame-mobile .wmp-long-image-phone-frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.wmp-long-image-frame-mobile .wmp-long-image-hint {
    display: none !important;
}

.wmp-long-image-frame-mobile .wmp-long-image-viewport::-webkit-scrollbar {
    width: 6px;
}

.wmp-long-image-frame-mobile .wmp-long-image-viewport::-webkit-scrollbar-thumb {
    min-height: 34px;
    border-width: 1px;
}

@media (max-width: 767px) {
    .wmp-long-image-frame-mobile {
        max-width: 330px;
    }
}

/* 1.2.1：移动端手机框直接显示在板块背景上，不使用白色圆角卡片。 */
.wmp-case-mobile-widget-flat,
.wmp-case-mobile-widget-flat > .elementor-widget-container,
.wmp-case-mobile-column-flat,
.elementor-widget-wmp-long-image-scroll:has(.wmp-long-image-frame-mobile),
.elementor-widget-wmp-long-image-scroll:has(.wmp-long-image-frame-mobile) > .elementor-widget-container,
.e-con:has(> .elementor-widget-wmp-long-image-scroll .wmp-long-image-frame-mobile) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.wmp-case-mobile-widget-flat::before,
.wmp-case-mobile-widget-flat > .elementor-widget-container::before,
.wmp-case-mobile-column-flat::before,
.elementor-widget-wmp-long-image-scroll:has(.wmp-long-image-frame-mobile)::before,
.elementor-widget-wmp-long-image-scroll:has(.wmp-long-image-frame-mobile) > .elementor-widget-container::before,
.e-con:has(> .elementor-widget-wmp-long-image-scroll .wmp-long-image-frame-mobile)::before {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

/* 1.2.2：仅优化案例页手机端，电脑端样式保持不变。 */
@media (max-width: 767px) {
    /* 移动端展示模块：手机框和说明文字上下排列，彻底避免重叠。 */
    body.wmp-case-article .wmp-case-mobile-layout {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 30px !important;
        padding: 52px 20px 64px !important;
        overflow: visible !important;
    }

    body.wmp-case-article .wmp-case-mobile-media-column,
    body.wmp-case-article .wmp-case-mobile-copy-column {
        position: relative !important;
        display: flex !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        align-self: stretch !important;
        transform: none !important;
    }

    body.wmp-case-article .wmp-case-mobile-media-column {
        z-index: 1 !important;
        order: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.wmp-case-article .wmp-case-mobile-media-column::before,
    body.wmp-case-article .wmp-case-mobile-media-column::after,
    body.wmp-case-article .wmp-case-mobile-media-column > .e-con-inner::before,
    body.wmp-case-article .wmp-case-mobile-media-column > .e-con-inner::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.wmp-case-article .wmp-case-mobile-media-column > .e-con-inner,
    body.wmp-case-article .wmp-case-mobile-media-column .elementor-widget-wmp-long-image-scroll,
    body.wmp-case-article .wmp-case-mobile-media-column .elementor-widget-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column {
        z-index: 2 !important;
        order: 2 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column > .e-con-inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-widget {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        transform: none !important;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-heading-title {
        font-size: clamp(28px, 8.2vw, 34px) !important;
        line-height: 1.28 !important;
        overflow-wrap: anywhere;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-widget-text-editor,
    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-widget-text-editor p,
    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-widget-text-editor li {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-widget-text-editor ul {
        margin: 12px 0 0 !important;
        padding-left: 1.3em !important;
    }

    body.wmp-case-article .wmp-case-mobile-copy-column .elementor-widget-text-editor li + li {
        margin-top: 7px !important;
    }

    body.wmp-case-article .wmp-long-image-frame-mobile {
        width: min(82vw, 288px) !important;
        max-width: 288px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    /* 项目配置与功能：手机端由横向大表格改为逐项信息卡片。 */
    body.wmp-case-article .wmp-case-project-spec-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table thead {
        display: none !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table tbody,
    body.wmp-case-article .wmp-case-project-spec-table tr {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table tr {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table td {
        display: grid !important;
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr) !important;
        align-items: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid #dfe6ee !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #334155 !important;
        box-shadow: 0 8px 22px rgba(11, 31, 58, 0.055) !important;
        vertical-align: stretch !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table td::before {
        content: attr(data-label);
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        padding: 15px 13px !important;
        background: #0b1f3a !important;
        color: #ffffff !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
        font-weight: 800 !important;
        overflow-wrap: anywhere;
    }

    body.wmp-case-article .wmp-case-project-spec-value {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        padding: 15px 14px !important;
        color: #334155 !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 380px) {
    body.wmp-case-article .wmp-case-mobile-layout {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    body.wmp-case-article .wmp-long-image-frame-mobile {
        width: min(84vw, 274px) !important;
        max-width: 274px !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table td {
        grid-template-columns: minmax(96px, 37%) minmax(0, 1fr) !important;
    }

    body.wmp-case-article .wmp-case-project-spec-table td::before,
    body.wmp-case-article .wmp-case-project-spec-value {
        padding-right: 11px !important;
        padding-left: 11px !important;
    }
}
