/* Local preview only: F7 12006, C3 12192, SAM300 4431, G5p 1611.
 * Desktop visible banner uses the exact existing Home rule, excluding the header.
 */
body.gato-four-banner-preview {
    --gato-four-banner-height: max(360px, 26.3889vw);
}

/* G5p retains the native WooCommerce gallery and original inquiry anchor. */
body.gato-four-banner-preview.postid-1611 .ast-woocommerce-container > #product-1611 {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 70px 0 0;
}
body.gato-four-banner-preview.postid-1611 #product-1611 > :is(.woocommerce-tabs, .related, .gato-pdr-inquiry, .gato-four-product-features) {
    width: min(1320px, calc(100% - 64px));
    max-width: 1320px;
    margin-inline: auto;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
    padding: 24px max(24px, calc((100% - 1200px) / 2));
    background: #f5f8fa;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero > .summary {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero > .woocommerce-product-gallery {
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .woocommerce-product-gallery__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .woocommerce-product-gallery__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .gato-pdr-kicker {
    margin: 0 0 12px;
    font-size: 14px;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .product_title {
    padding: 0;
    margin: 0 0 18px;
    border: 0;
    font-size: clamp(32px, 2.8vw, 42px);
    line-height: 1.2;
    font-weight: 600;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-brief {
    max-width: 580px;
    margin: 0;
    color: #56616b;
    font-size: 16px;
    line-height: 1.6;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .gato-pdr-inquiry-button {
    min-height: 48px;
    margin-top: 20px;
    padding: 14px 26px;
    font-size: 15px;
    line-height: 20px;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-features {
    box-sizing: border-box;
    padding: 48px 0 0;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-features h2 {
    margin: 0 0 24px;
    color: #17202b;
    font-size: 32px;
    line-height: 1.25;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 48px;
    padding-left: 20px;
    margin: 0;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-features li {
    padding: 0;
}
body.gato-four-banner-preview.postid-1611 .gato-four-product-features li::marker {
    color: #0094da;
    font-size: 16px;
}

@media (min-width: 1025px) {
    body.gato-four-banner-preview.page-id-12006 .elementor-12006 {
        padding-top: 70px;
    }
    body.gato-four-banner-preview .elementor-12006 .gato-f7-v2-hero,
    body.gato-four-banner-preview .elementor-12192 .gato-c3-v2-hero {
        height: var(--gato-four-banner-height) !important;
        min-height: 0 !important;
        padding: 24px !important;
        background-repeat: no-repeat;
    }
    body.gato-four-banner-preview .elementor-12006 .gato-f7-v2-hero {
        background-size: auto 150% !important;
        background-position: 65% 75% !important;
    }
    body.gato-four-banner-preview .elementor-12192 .gato-c3-v2-hero {
        margin-top: 70px;
        isolation: isolate;
        background-image: linear-gradient(120deg, #f0f7ff, #e0e6ef) !important;
    }
    body.gato-four-banner-preview .elementor-12192 .gato-c3-v2-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: url('/wp-content/uploads/2026/10/C3专题页banner修改版-2.png') no-repeat 65% 75% / auto 180%;
        mask-image: linear-gradient(90deg, transparent 12%, #000 25%, #000 82%, transparent 94%);
    }
    body.gato-four-banner-preview :is(.gato-f7-v2-hero, .gato-c3-v2-hero) > .e-con-inner {
        height: 100%;
        min-height: 0;
        max-width: 1200px;
        padding: 0 !important;
        justify-content: center;
        align-items: flex-start;
    }
    body.gato-four-banner-preview :is(.gato-f7-v2-hero-copy, .gato-c3-v2-hero-copy) {
        width: 52%;
        max-width: 650px;
        padding: 0;
        gap: 14px;
    }
    body.gato-four-banner-preview :is(.gato-f7-v2-hero, .gato-c3-v2-hero) h1 {
        margin: 0;
        font-size: clamp(32px, 2.8vw, 42px) !important;
        line-height: 1.2 !important;
        letter-spacing: -0.8px;
    }
    body.gato-four-banner-preview :is(.gato-f7-v2-hero-copy, .gato-c3-v2-hero-copy) p {
        margin: 0;
        font-size: 16px !important;
        line-height: 1.55 !important;
    }
    body.gato-four-banner-preview :is(.gato-f7-v2-hero-actions, .gato-c3-v2-actions) {
        gap: 12px;
        flex-wrap: nowrap;
    }
    body.gato-four-banner-preview :is(.gato-f7-v2-hero-actions, .gato-c3-v2-actions) .elementor-button {
        min-height: 48px;
        padding: 13px 22px;
        font-size: 15px !important;
    }

    /* The source SAM300 artwork contains white space and a laptop. Scale the
     * original scene inside the shorter frame without cropping the laptop. */
    body.gato-four-banner-preview .elementor-4431 [data-id="d800ae2"] {
        position: relative;
        height: var(--gato-four-banner-height);
        min-height: 0;
        margin-top: 70px;
        padding: 0;
        overflow: hidden;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="74db6a2"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none !important;
        margin: 0;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="74db6a2"] > .elementor-widget-container {
        height: 100%;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="74db6a2"] img {
        position: absolute;
        top: -25%;
        left: 0;
        width: 100%;
        height: 150%;
        max-width: none;
        object-fit: contain;
        object-position: 65% center;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="8f23766"] {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 24px;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="8f23766"] > .e-con-inner {
        max-width: 1200px;
        height: 100%;
        padding: 0;
        align-items: center;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="5994843"] {
        width: 52%;
        max-width: 650px;
        gap: 14px;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="05eedfa"] h1 {
        font-size: clamp(32px, 2.8vw, 42px) !important;
        line-height: 1.2 !important;
    }
    body.gato-four-banner-preview .elementor-4431 [data-id="4e31c22"] {
        font-size: 16px;
        line-height: 1.55;
    }

    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero {
        height: var(--gato-four-banner-height);
        min-height: 0;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .woocommerce-product-gallery__image img {
        max-height: calc(var(--gato-four-banner-height) - 48px);
    }
}

/* Keep existing F7/C3/SAM300 phone and tablet layouts content-driven. G5p's
 * new wrapper stacks natively and never inherits the desktop fixed height. */
@media (max-width: 1024px) {
    body.gato-four-banner-preview.postid-1611 .ast-woocommerce-container > #product-1611 {
        padding-top: 60px;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        min-height: 0;
        padding: 28px 24px 32px;
        gap: 24px;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero > .woocommerce-product-gallery {
        grid-column: 1;
        grid-row: 1;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero > .summary {
        grid-column: 1;
        grid-row: 2;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .woocommerce-product-gallery__image img {
        max-height: 280px;
    }
}
@media (max-width: 767px) {
    body.gato-four-banner-preview.postid-1611 #product-1611 > :is(.woocommerce-tabs, .related, .gato-pdr-inquiry, .gato-four-product-features) {
        width: calc(100% - 40px);
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero {
        padding-inline: 20px;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .woocommerce-product-gallery__image img {
        max-height: 220px;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-hero .product_title {
        font-size: 28px;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-features h2 {
        font-size: 26px;
    }
    body.gato-four-banner-preview.postid-1611 .gato-four-product-features ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}
