/* WordPress compatibility and small responsive improvements for the restored JuMing design. */
/* The archived fonts have query-string-safe filenames; use those packaged files. */
@font-face {
    font-family: 'FontAwesome';
    src: url('../legacy/Public/static/fonts/fontawesome-webfont__q_428421003b8e.woff2') format('woff2'),
         url('../legacy/Public/static/fonts/fontawesome-webfont__q_428421003b8e.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.fbox-wrap { flex-wrap: wrap; }
.jm-center { text-align: center; }
/* The archived 1300px wrapper must fit laptops and smaller desktop windows. */
.zt, .zt2 { max-width: calc(100% - 40px); }
.jm-original-header .shesou { width: 210px; margin-left: 12px; }
.jm-original-header .sousuo { margin-left: 12px; }
.jm-original-header nav { margin-top: 0; }

body.admin-bar .jm-original-header { top: 32px; }
body:not(.home) #main-content { padding-top: 112px; }
.jm-original-header .caidan { border: 0; background: transparent; font: inherit; cursor: pointer; }
.jm-original-header .tjbtn { flex: 0 0 20px; border: 0; cursor: pointer; }
.jm-original-header .searchbtn { min-width: 0; }
.jm-original-header nav ul li.active > a { color: #09357f; }
.jm-original-header .xla { max-height: 70vh; overflow-y: auto; }

.jm-legacy-slider #slider4 > li { display: none; }
.jm-legacy-slider #slider4 > li.is-active { display: block; }
.jm-legacy-slider #pagenavi button {
    display: inline-block;
    position: static;
    width: 10px;
    height: 10px;
    margin: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.jm-legacy-slider #pagenavi button.active { background: #e6023b; }

.jm-company-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 45px;
    padding-bottom: 70px;
}
.jm-company-gallery .item { min-width: 0; }
.jm-company-gallery .cptimg { height: 225px; overflow: hidden; }
.jm-company-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.jm-company-gallery .item:hover img { transform: scale(1.04); }

.jm-video-frame iframe { display: block; width: 100%; min-height: 340px; border: 0; }
.jm-testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.jm-testimonials .swiper-slide { width: auto; margin: 0; }

.jm-home-contact .jm-inquiry-form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.jm-home-contact .jm-inquiry-form .jm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}
.jm-home-contact .jm-inquiry-form label {
    display: block;
    margin: 0 0 12px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
}
.jm-home-contact .jm-inquiry-form input,
.jm-home-contact .jm-inquiry-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}
.jm-home-contact .jm-inquiry-form textarea { height: 95px; resize: vertical; }
.jm-home-contact .jm-inquiry-form .jm-button {
    display: block;
    width: 180px;
    height: 44px;
    margin: 18px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #09357f;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
}
.jm-form-success { margin-bottom: 15px; padding: 12px; color: #155724; background: #d4edda; }

.wuyou-waiter { position: fixed; right: 0; top: 40%; z-index: 9999; margin-top: -90px; }
.waiter-ul li { position: relative; height: 60px; margin-bottom: 1px; }
.waiter-ul li a.xiaobi { display: block; width: 60px; height: 60px; overflow: hidden; color: #fff; background: #09357f; font-size: 24px; line-height: 60px; text-align: center; transition: all .25s; }
.waiter-title { position: absolute; right: 65px; bottom: 1px; min-width: 165px; padding: 10px 0; color: #fff; background: #09357f; box-shadow: 0 0 10px rgba(0,0,0,.2); line-height: 24px; opacity: 0; visibility: hidden; transition: opacity .25s; }
.waiter-title a { display: block; padding: 0 15px; color: #fff; white-space: nowrap; }
.waiter-ul li:hover .waiter-title { opacity: 1; visibility: visible; }

.jm-original-footer .f-nav { display: none; }
.jm-original-footer .f-mess a { color: #b9bfd2; }
.backtop { border: 0; cursor: pointer; }

/* Keep the imported WordPress detail templates usable beneath the restored header. */
.jm-sidebar nav { float: none; margin: 0; line-height: 1.5; background: transparent; }
.jm-sidebar nav ul { display: block; position: static; width: auto; background: transparent; }
.jm-sidebar nav ul li { float: none; width: auto; }
.jm-sidebar nav ul li a { margin: 0; padding: 11px 2px; font-size: .92rem; line-height: 1.5; }
.jm-pagination { float: none; margin: 36px 0 0; line-height: 1.5; }
.jm-content { line-height: 1.8; }
.jm-content p { margin: 0 0 1.15em; }
.jm-content ul, .jm-content ol { margin: 1em 0 1.4em; padding-left: 1.4em; }
.jm-content ul > li { list-style: disc; margin: .5em 0; }
.jm-content ol > li { list-style: decimal; margin: .5em 0; }
.jm-content h2 { margin: 1.9em 0 .75em; font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.jm-content h3 { margin: 1.4em 0 .6em; font-size: 1.18rem; }
.jm-prose { max-width: 100%; }
.jm-content figure { margin: 24px 0; }
.jm-content figure img { width: 100%; height: auto; margin: 0; }
.jm-content figcaption { margin-top: 10px; color: #627080; font-size: .9rem; line-height: 1.5; }
.jm-content .jm-factory-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 32px 0; }
.jm-content .jm-factory-gallery img { width: 100%; height: 280px; object-fit: cover; }
.jm-content .jm-factory-gallery figure { margin: 0; min-width: 0; }
.jm-content details { margin: 16px 0; padding: 20px 24px; border: 1px solid #dce4eb; border-radius: 10px; background: #f5f8fa; }
.jm-content details summary { cursor: pointer; font-weight: 700; color: #082748; }
.jm-content details[open] summary { margin-bottom: 14px; }
.jm-catalog-intro { margin-bottom: 32px; padding: 26px; border-left: 4px solid #09357f; background: #f5f8fa; }
.jm-catalog-intro h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 12px; }
.jm-catalog-intro p { line-height: 1.7; }
.jm-resource-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.jm-resource-links a { display: inline-block; color: #09357f; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; line-height: 1.6; }
.jm-category-guide { margin-top: 48px; padding-top: 10px; border-top: 1px solid #dce4eb; scroll-margin-top: 150px; }
.jm-footer-resources { display: flex; flex-wrap: wrap; gap: 14px 30px; padding: 0 0 30px; border-bottom: 1px solid rgba(255,255,255,.16); margin-bottom: 24px; }
.jm-footer-resources a { color: #fff; font-size: 14px; line-height: 1.6; }
.jm-original-header nav ul li:focus-within .xla { display: block; }
@media only screen and (min-width: 769px) {
    .jm-original-header .logo { width: 145px; }
    .jm-original-header nav ul li a { margin-left: 4px; padding: 0 11px; font-size: 15px; }
    .jm-original-header .xla a { margin: 0; }
}
@media only screen and (max-width: 768px) {
    .jm-content .jm-factory-gallery { grid-template-columns: 1fr; }
    .jm-content .jm-factory-gallery img { height: auto; }
    .jm-catalog-intro { padding: 20px; }
    .jm-sidebar nav ul { display: block; }
    .jm-category-guide { scroll-margin-top: 24px; }
    .jm-footer-resources { padding: 0 18px 24px; }
}
.jm-section .jm-card-media { display: block; }
.jm-product-card .jm-card-media img { object-fit: contain; }
.jm-content { min-width: 0; overflow-wrap: anywhere; }
.jm-content table { display: block; max-width: 100%; overflow-x: auto; }
.jm-content iframe { max-width: 100%; }
.jm-sidebar a[aria-current="page"] { color: #09357f; font-weight: 800; }
.jm-page-hero,
.jm-section,
.jm-breadcrumbs,
.jm-sidebar,
.jm-card-body,
.jm-product-detail,
.jm-contact-panel,
.jm-inquiry-form { box-sizing: border-box; }
.jm-section .jm-container,
.jm-page-hero .jm-container { width: min(calc(100% - 40px), 1220px); }
.jm-product-card img,
.jm-news-card img,
.jm-gallery img { max-width: 100%; }

@media only screen and (max-width: 782px) {
    body.admin-bar .jm-original-header { top: 46px; }
}

@media only screen and (max-width: 768px) {
    body:not(.home) #main-content { padding-top: 0; }
    body.admin-bar .jm-original-header { top: 0; }
    .jm-original-header { position: relative; }
    .jm-original-header .head-fix { height: auto; min-height: 112px; }
    .jm-original-header .zt { max-width: 100%; }
    .jm-company-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 12px 0; padding-bottom: 25px; }
    .jm-company-gallery .cptimg { height: 160px; }
    .jm-video-frame iframe { min-height: 260px; }
    .jm-testimonials { grid-template-columns: 1fr; gap: 12px; padding: 0 15px 20px; }
    .jm-home-contact .jm-inquiry-form .jm-form-grid { grid-template-columns: 1fr; gap: 0; }
    .wuyou-waiter { display: none; }
}

@media only screen and (min-width: 769px) and (max-width: 1000px) {
    .jm-original-header .logo { width: 125px; }
    .jm-original-header .shesou { width: 60px; margin-left: 8px; }
    .jm-original-header .sousuo { display: none; }
    .jm-original-header nav { margin-right: 0; }
    .jm-original-header nav ul li a { padding: 0 6px; margin-left: 0; font-size: 13px; }
}

@media only screen and (max-width: 480px) {
    .jm-original-header .logo { width: 52%; }
    .jm-original-header .head-fix { height: auto; min-height: 76px; }
    .jm-original-header nav { margin-top: 0; background: #09357f; }
    .jm-original-header .caidan { width: 100%; padding: 10px 15px; text-align: right; }
    .jm-original-header nav ul.is-open { display: block; }
    .jm-original-header nav ul li.active > a { color: #333; background: #fff; }
    .jm-original-header .xla { max-height: none; }
    .jm-legacy-slider #slider4 { margin-top: 0; }
    .jm-company-gallery { grid-template-columns: 1fr 1fr; }
    .jm-company-gallery .cptimg { height: 130px; }
}
