/* Pinjin v4.0 — only the changes listed in 网站修改.docx */

/* 1) Homepage HD banner: keep the imported Gutenberg image crisp and full width. */
body.home .pj-home-hero,
body.home figure.pj-home-hero {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.home .pj-home-hero img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    image-rendering: auto !important;
}

/* 2) Homepage About: align the two sides and make the text side slightly more compact. */
body.home .pj-about-home .pj-about-cols {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
    gap: 42px !important;
    align-items: stretch !important;
}
body.home .pj-about-home .pj-about-cols > .wp-block-column {
    min-width: 0 !important;
}
body.home .pj-about-home .pj-about-cols > .wp-block-column:first-child,
body.home .pj-about-home .pj-about-cols > .wp-block-column:first-child figure,
body.home .pj-about-home .pj-about-cols > .wp-block-column:first-child img {
    height: 100% !important;
}
body.home .pj-about-home .pj-about-cols > .wp-block-column:first-child img {
    display: block !important;
    width: 100% !important;
    object-fit: cover !important;
}
body.home .pj-about-home .pj-about-cols > .wp-block-column:last-child {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
body.home .pj-about-home .pj-about-cols > .wp-block-column:last-child > p {
    font-size: 14px !important;
    line-height: 1.68 !important;
}
body.home .pj-about-home .pj-about-cols > .wp-block-column:last-child > h2 {
    font-size: clamp(30px, 2.4vw, 42px) !important;
    line-height: 1.12 !important;
}

/* 3) Replace the template-like six-card feeling with an open horizontal value strip.
      Existing Gutenberg text remains unchanged/editable; only presentation changes. */
body.home .pj-why {
    background: #fff !important;
}
body.home .pj-why .pj-feature-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #e5e9f2 !important;
}
body.home .pj-why .pj-feature-row:last-child {
    border-bottom: 1px solid #e5e9f2 !important;
}
body.home .pj-why .pj-feature-card {
    margin: 0 !important;
    padding: 28px 26px !important;
    border: 0 !important;
    border-right: 1px solid #e5e9f2 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.home .pj-why .pj-feature-row > .wp-block-column:last-child .pj-feature-card {
    border-right: 0 !important;
}
body.home .pj-why .pj-feature-icon {
    width: 28px !important;
    height: 28px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #edf4ff !important;
    color: #1464d2 !important;
    line-height: 28px !important;
    text-align: center !important;
}
body.home .pj-why .pj-feature-card h3 {
    margin: 0 0 8px !important;
}

/* 4) Homepage requested 8 products — preserve existing card visual language. */
body.home .pj-products-show .pj-show-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* 5) Product archive/category counters '(1)' are removed in the template data.
      This CSS keeps the labels visually clean in case cached markup remains. */
.pj396-category-label a {
    white-space: normal !important;
}

/* 6) Product page: hide ONLY any duplicate capability/spec table that remains
      inside the right-hand product-content area. Keep the lower shared table. */
.pj396-summary-column .pj-product-specifications,
.pj396-summary-column .pj-spec-table,
.pj396-reference-product-content .pj-product-specifications,
.pj396-reference-product-content .pj-spec-table,
.pj395-reference-product-content .pj-product-specifications,
.pj395-reference-product-content .pj-spec-table {
    display: none !important;
}

/* 7) Google Maps block. */
.pj400-google-map iframe {
    display: block !important;
    width: 100% !important;
    min-height: 480px !important;
    border: 0 !important;
    border-radius: 10px !important;
}

/* 8) Contact Why Choose Us icons — replace placeholder glyphs with clean SVG icons. */
.pj-find-point .pj-find-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background: #1464d2 !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
}
.pj-find-point .pj-find-icon::before {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}
.pj-find-point:nth-child(1) .pj-find-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E") !important;
}
.pj-find-point:nth-child(2) .pj-find-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 3l2.2 2.2 3.1-.3.8 3 2.8 1.5-1.2 2.9 1.2 2.9-2.8 1.5-.8 3-3.1-.3L12 21l-2.2-2.2-3.1.3-.8-3-2.8-1.5 1.2-2.9-1.2-2.9 2.8-1.5.8-3 3.1.3z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}
.pj-find-point:nth-child(3) .pj-find-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V9l7-4 7 4v12M8 13h2M14 13h2M8 17h2M14 17h2'/%3E%3C/svg%3E") !important;
}
.pj-find-point:nth-child(4) .pj-find-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 20h16M7 20V8h10v12M9 8V4h6v4M10 12h4M10 16h4'/%3E%3C/svg%3E") !important;
}
.pj-find-point:nth-child(5) .pj-find-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 010 18M12 3a15 15 0 000 18'/%3E%3C/svg%3E") !important;
}

/* Preserve earlier Equipment card image flush fixes. */
body.page .pj-equipment-gallery .pj-equipment-card {
    padding: 0 !important;
    gap: 0 !important;
}
body.page .pj-equipment-gallery .pj-equipment-card-media,
body.page .pj-equipment-gallery .pj-equipment-card-media > figure,
body.page .pj-equipment-gallery .pj-equipment-card-media > .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
}

/* Editor safety: page remains easy to select/edit. */
.editor-styles-wrapper .pj-home-hero img {
    max-width: 100% !important;
}

@media (min-width:701px) and (max-width:1000px) {
    body.home .pj-about-home .pj-about-cols {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }
    body.home .pj-products-show .pj-show-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width:700px) {
    body.home .pj-about-home .pj-about-cols {
        display: block !important;
    }
    body.home .pj-about-home .pj-about-cols > .wp-block-column:last-child {
        margin-top: 24px !important;
    }
    body.home .pj-why .pj-feature-row {
        grid-template-columns: 1fr !important;
    }
    body.home .pj-why .pj-feature-card {
        border-right: 0 !important;
        border-bottom: 1px solid #e5e9f2 !important;
    }
    body.home .pj-products-show .pj-show-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .pj400-google-map iframe {
        min-height: 360px !important;
    }
}
