/*
Theme Name: Piston Rod Original
Description: Faithful local WordPress migration of pistonrod.com.cn.
Version: 1.0.0
*/
:root{--blue:#258ccc;--ink:#333}*{box-sizing:border-box}body{margin:0}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #fe8101;outline-offset:3px}button{cursor:pointer}img{max-width:100%;height:auto}a:hover{text-decoration:none}button,input,textarea{font:inherit}[hidden]{display:none!important}.skip-link{position:absolute;left:10px;top:-60px;z-index:100000;background:white;padding:12px}.skip-link:focus{top:10px}.rod-brand{display:flex;align-items:center;gap:30px;min-height:130px}.rod-brand .logo{width:255px;max-height:105px;object-fit:contain;margin:0}.rod-top-contact{display:flex;gap:28px;font-size:18px;margin-left:auto}.rod-top-contact a{color:#565656}.rod-top-contact i{color:var(--blue)}.rod-search{display:flex;max-width:230px}.rod-search input{width:100%;min-width:0;border:0;background:#f2f2f2;padding:12px}.rod-search button{background:var(--blue);border:0;color:white;padding:12px}.top_lang{display:flex;align-items:center;padding-top:0}.top_lang .nav_icons{display:flex}.rod-nav{position:sticky;top:0;z-index:1000;background:var(--blue);box-shadow:0 2px 8px #0002}.admin-bar .rod-nav{top:32px}.rod-menu{display:flex;margin:0;padding:0;list-style:none}.rod-menu>li{flex:1;text-align:center}.rod-menu li{position:relative}.rod-menu a{display:flex;align-items:center;justify-content:center;gap:10px;color:white;padding:20px 13px;font-size:15px;line-height:1.2}.rod-menu li:hover>a,.rod-menu li:focus-within>a,.rod-menu .current-menu-item>a{background:#1472ae}.rod-menu .menu-item-has-children>a:after{content:'';width:6px;height:6px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}.rod-menu .sub-menu{display:none;position:absolute;top:100%;left:0;width:240px;box-shadow:0 8px 20px #0002;background:white;padding:7px 0;z-index:5}.rod-menu .sub-menu a{color:#333;justify-content:space-between;text-align:left;padding:13px 18px;font-size:13px}.rod-menu .sub-menu li:hover>a,.rod-menu .sub-menu li:focus-within>a{background:#edf7fd;color:#1472ae}.rod-menu li:hover>.sub-menu,.rod-menu li:focus-within>.sub-menu{display:block}.rod-menu .sub-menu .sub-menu{left:100%;top:0}.rod-menu .sub-menu .menu-item-has-children>a:after{transform:rotate(-45deg)}.rod-menu-toggle{display:none}.rod-hero{position:relative;background:#eee}.rod-slide img{display:block;width:100%;height:auto}.rod-hero button{position:absolute;z-index:2;border:0;color:white;background:#0005}.slide-prev,.slide-next{top:46%;font-size:36px;line-height:1;padding:8px 14px}.slide-prev{left:18px}.slide-next{right:18px}.slide-dots{position:absolute;bottom:18px;display:flex;gap:9px;left:50%;transform:translateX(-50%)}.slide-dots button{position:static;border-radius:50%;width:11px;height:11px;padding:0;background:white;opacity:.6}.slide-dots button[aria-pressed=true]{background:var(--blue);opacity:1;outline:2px solid white}.rod-hero .slide-pause{right:20px;bottom:14px;padding:6px 10px}.index_adv{position:relative;margin:0;padding:30px 0 0}.rod-advantages{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:1440px;padding:0 30px}.adv_desc{margin:0;padding:0 20px 20px}.adv_desc h2{font-size:20px;font-weight:bold;min-height:45px}.adv_desc img{width:95px;height:95px;object-fit:contain}.adv_desc p{margin-top:14px}.about_bg{padding:50px 0}.aboutbg{min-height:0}.aboutbg .about_img{display:block;margin:0 auto}.rod-section{padding-top:10px;padding-bottom:40px}.product_head h2{font-size:25px}.product_head{margin-bottom:30px}.rod-grid{display:grid;gap:30px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rod-grid .product_img,.rod-grid .news_box{width:auto;padding:0;margin:0;float:none}.rod-grid img{width:100%;aspect-ratio:1/1;object-fit:contain;border:1px solid #eee;padding:4px;border-radius:0}.news-grid img{aspect-ratio:1.45;object-fit:cover}.news-grid .news_title{padding:15px 0 5px}.rod-grid .product_title{min-height:45px}.view-more{text-align:center;margin-top:25px}.service_btn{display:inline-block;border:0;background:var(--blue);color:white;padding:12px 26px}.service_btn:hover{background:#1472ae;color:white}.service_bg{padding:70px 15px;margin-bottom:40px;background-size:cover;background-position:center}.service_head p{color:white;text-shadow:0 1px 3px #000}.rod-inquiry h2{font-size:23px;margin:0 0 24px}.rod-inquiry form{display:grid;gap:15px}.rod-inquiry label{display:grid;gap:7px;font-weight:normal}.rod-inquiry input,.rod-inquiry textarea{width:100%;border:1px solid #ddd;padding:12px;background:#fff}.rod-inquiry button{justify-self:start}.rod-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.form-status{padding:15px;background:#e5f5ea;color:#20633a}.form-status.error{background:#fff2df;color:#79531e}.rod-inner{display:grid;grid-template-columns:270px minmax(0,1fr);gap:30px;padding-top:32px;padding-bottom:60px}.rod-main{grid-column:2;grid-row:1;min-width:0}.rod-sidebar{grid-column:1;grid-row:1}.rod-sidebar .left_contact p{overflow-wrap:anywhere;line-height:1.8}.rod-sidebar .left_news{padding:5px 0 20px}.rod-sidebar .left_news li{padding:9px 0;border-bottom:1px solid #eee}.left_h3{margin-top:0}.left_nav_ul{margin-bottom:30px}.right_head h1{font-size:24px;color:#333;margin:0;border-bottom:2px solid var(--blue);padding-bottom:15px}.right_contents{padding:20px 0}.editorial{line-height:1.9;overflow-wrap:anywhere;overflow-x:auto}.editorial img{height:auto!important;max-width:100%!important}.editorial p{margin-bottom:15px}.editorial table{width:100%!important;max-width:100%;table-layout:fixed}.editorial td{padding:8px;overflow-wrap:anywhere;word-break:normal!important}.editorial td p{margin:0}.rod-main .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rod-main .rod-grid{gap:22px;margin:25px 0}.rod-product-top{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:35px}.rod-product-top .proinfo_box{padding:0}.product_h1{font-size:25px}.gallery-main img{width:100%;height:350px;object-fit:contain;border:1px solid #eee}.gallery-thumbs{display:flex;gap:10px;margin-top:12px}.gallery-thumbs button{padding:3px;border:1px solid #ddd;background:white;width:70px}.gallery-thumbs button[aria-pressed=true]{border:2px solid var(--blue)}.page-btn{background:var(--blue);color:white;border-radius:0;margin:5px 5px 5px 0}.basket-add{border:1px solid var(--blue);padding:10px;background:white;color:var(--blue);margin-top:12px}.product_con{clear:both;padding:0;margin:0 0 30px}.rod-specs{width:100%;margin:25px 0}.rod-specs th,.rod-specs td{padding:12px;border:1px solid #ddd}.rod-specs caption{font-size:21px}.rod-main .rod-inquiry{padding:25px;background:#f6f8fa;margin:30px 0}.right_new{padding:20px 0}.right_new li{padding:16px 0;border-bottom:1px solid #eee}.rod-pagination{display:flex;gap:10px;margin:20px 0}.rod-pagination a,.rod-pagination span{padding:8px 14px;background:#f0f3f6}.point{display:flex;justify-content:space-between;gap:15px;margin:25px 0}.rod-sitemap{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:25px 0}.rod-footer-links{display:grid;grid-template-columns:repeat(3,1fr)}footer{padding-top:45px}footer a{color:white}footer a:hover{color:#ddd}.footer-bar{margin-top:30px;padding:12px 15px}.footer-bar a{color:#333}.tags_rows{display:inline-flex;gap:10px;flex-wrap:wrap;padding:15px 0}.tags_rows a{margin:0}.rod-contact{position:fixed;right:0;top:36%;z-index:1100;display:flex;align-items:flex-start;filter:drop-shadow(0 4px 12px #0002)}.contact-toggle{border:0;background:var(--blue);color:white;padding:14px 10px;display:grid;gap:8px;justify-items:center;border-radius:5px 0 0 5px}.contact-toggle i{font-size:25px}.contact-toggle span{writing-mode:vertical-rl;letter-spacing:.5px}.rod-contact #contact-panel{width:290px;max-height:65vh;overflow:auto;background:white;padding:20px;line-height:1.7}.rod-contact h3{font-size:20px;margin:0 0 15px}.rod-contact a{display:block;margin-bottom:10px;overflow-wrap:anywhere}.rod-contact .wechat-qr{width:150px;height:150px;object-fit:contain}.contact-address{font-size:11px;margin-top:15px}.rod-mobile-actions{display:none}.image-empty{min-height:180px;background:#f5f5f5;display:grid;place-items:center;padding:20px}.article-gallery{display:block;margin:20px 0}.rod-basket-row{padding:15px;border:1px solid #ddd;display:flex;justify-content:space-between;gap:20px;margin:10px 0}.rod-basket-row button{border:0;background:#eee;padding:5px 12px}.page_bg{background-size:cover;background-position:center;min-height:150px}
@media(max-width:1199px){.rod-top-contact{font-size:15px;flex-direction:column;gap:10px}.rod-brand{gap:20px}.rod-inner{grid-template-columns:230px minmax(0,1fr)}.rod-advantages{gap:15px;padding:0 15px}.adv_desc{padding:0 12px 15px}.adv_desc h2{font-size:17px}}
@media(max-width:767px){body{padding-bottom:48px}.rod-brand{flex-wrap:wrap;padding-top:15px;padding-bottom:15px;gap:12px;min-height:0}.rod-brand .logo{width:180px;max-height:70px}.rod-top-contact{margin-left:auto;font-size:12px;gap:6px}.rod-search{width:100%;max-width:none}.rod-nav{top:0}.admin-bar .rod-nav{top:46px}.rod-menu-toggle{display:block;background:none;border:0;color:white;padding:15px 0}.rod-menu{display:none;max-height:70vh;overflow:auto;padding-bottom:10px}.rod-menu.is-open{display:block}.rod-menu>li{text-align:left}.rod-menu a{justify-content:space-between;padding:13px 15px}.rod-menu .sub-menu,.rod-menu .sub-menu .sub-menu{display:block;position:static;width:100%;box-shadow:none;background:#f2f8fc;padding:0 0 0 15px}.rod-menu .sub-menu a{padding:10px 15px}.rod-menu .sub-menu .menu-item-has-children>a:after{transform:rotate(45deg)}.rod-hero .slide-prev,.rod-hero .slide-next{font-size:23px;padding:5px 9px;top:35%}.slide-prev{left:5px}.slide-next{right:5px}.slide-dots{bottom:8px}.rod-hero .slide-pause{bottom:5px;right:5px;padding:3px 8px}.rod-advantages{grid-template-columns:1fr 1fr;gap:12px}.adv_desc h2{font-size:16px;min-height:38px}.adv_desc p{font-size:12px;line-height:1.7}.adv_desc img{width:75px;height:75px}.about_bg{padding:30px 0}.aboutbg{padding-top:20px}.about_content{font-size:14px;line-height:1.9}.product_head h2{font-size:23px}.product-grid,.news-grid,.rod-main .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rod-section{padding-bottom:25px}.rod-inner{display:flex;flex-direction:column;padding-top:20px}.rod-sidebar{order:2}.rod-product-top{grid-template-columns:1fr}.gallery-main img{height:320px}.rod-sitemap{grid-template-columns:1fr}.rod-footer-links{padding-top:20px;gap:15px}.footer_menu_first a{font-size:15px}.rod-contact{top:40%;max-width:calc(100vw - 12px)}.contact-toggle{padding:12px 6px}.rod-contact #contact-panel{width:270px;max-height:65vh}.rod-contact .contact-address{font-size:10px}.rod-inquiry{margin-top:25px}.rod-main .rod-inquiry{padding:18px}.rod-mobile-actions{display:flex;position:fixed;bottom:0;left:0;right:0;background:#258ccc;z-index:1050;justify-content:space-around}.rod-mobile-actions a{padding:15px 10px;color:white}.page_bg{min-height:100px;height:130px}.service_bg{padding:40px 15px}.service_head p{font-size:20px}.news-grid .new_but{padding:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Keep the original wide layout without overflow on smaller screens. */
.container{max-width:100%}.rod-advantages:before,.rod-advantages:after,.rod-inner:before,.rod-inner:after,.rod-brand:before,.rod-brand:after{content:none}.footer-bar a{color:white}.rod-grid .product_img{min-height:0}.product_head h2{font-size:32px}@media(max-width:767px){.product_head h2{font-size:24px}}

/* Inner page refinements */
.rod-brand .logo{width:200px;max-height:80px}
.rod-sidebar .left_news li,.rod-main .right_new li{background-image:none;padding-left:0}
.rod-sidebar .left_news li>a,.rod-main .right_new li>a{position:relative;display:inline-block;padding-left:17px}
.rod-sidebar .left_news li>a:before,.rod-main .right_new li>a:before{content:"";position:absolute;left:2px;top:.55em;width:6px;height:6px;border-right:1.5px solid var(--blue);border-top:1.5px solid var(--blue);transform:rotate(45deg)}
.rod-main .right_new li{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.right_new_time{flex-shrink:0;color:#88949e;font-size:13px}
.rod-breadcrumb{padding-top:20px}
.rod-breadcrumb ol{display:flex;flex-wrap:wrap;gap:8px 0;margin:0;padding:13px 18px;background:#f4f7f9;font-size:13px;line-height:1.7;list-style:none;color:#71808d}
.rod-breadcrumb li+li:before{content:"›";padding:0 12px;color:#8b9aa6}
.rod-breadcrumb a{color:#3d5263}.rod-breadcrumb a:hover{color:var(--blue)}
.product_con table,.rod-specs{border-collapse:collapse!important;border:1px solid #dce5ec!important;table-layout:fixed;width:100%;margin:8px 0 28px;background:white;font-size:14px;line-height:1.7}
.product_con table td,.product_con table th,.rod-specs td,.rod-specs th{border:1px solid #dce5ec!important;padding:13px 18px!important;vertical-align:middle;text-align:left;color:#405366;overflow-wrap:anywhere}
.product_con table td:first-child:not([colspan]),.product_con table th:first-child,.rod-specs th{width:30%;font-weight:600;background:#f3f7fa;color:#284961}
.product_con table tr:nth-child(odd) td:not(:first-child){background:#fafcfd}
.product_con table tr:first-child td[colspan],.product_con table thead th{background:#258ccc!important;color:white;font-size:16px;font-weight:600;padding:15px 18px!important;text-align:center;letter-spacing:.5px}
.product_con table p,.product_con table span,.product_con table strong{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}
.product_con table p{margin:0;text-indent:0}
.product_con table{table-layout:auto}

/* Original-style language picker, backed by Google's page translator. */
.rod-language{position:relative;z-index:2000;margin-right:12px;line-height:1.4}
#rod-language-toggle{display:flex;align-items:center;gap:9px;height:34px;padding:0 9px;border:0;background:transparent;color:white;font-size:12px}
.rod-language-arrow{width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-top:-3px}
#rod-language-panel{position:absolute;top:34px;right:0;width:300px;padding:12px;background:white;color:#344b5c;border:1px solid #e1e8ee;box-shadow:0 8px 24px #15314b24;border-radius:0 0 4px 4px}
.rod-language-options{display:grid;grid-template-columns:1fr 1fr;gap:3px}
.rod-language-options button{display:flex;align-items:center;gap:10px;min-height:36px;text-align:left;border:0;background:white;padding:8px 10px;color:#344b5c;font-size:13px;border-radius:3px}
.rod-language-options button:hover,.rod-language-options button[aria-pressed=true]{background:#edf6fc;color:#1472ae}
.rod-language-options img{width:20px;height:14px;object-fit:cover}.rod-language-globe{width:20px;text-align:center;font-size:17px;line-height:14px}
.rod-google-widget{padding:10px 8px 0;border-top:1px solid #e9eef2;margin-top:10px;min-height:24px}
.rod-google-widget .goog-te-combo{display:none}
#rod-translate-status{font-size:12px;line-height:1.6;margin:6px 8px 0;color:#637482}
#rod-translate-status:empty{display:none}
#rod-translate-retry{margin:10px 8px 4px;border:1px solid #258ccc;padding:7px 10px;background:#edf6fc;color:#1472ae;font-size:12px}
.rod-nav{top:var(--rod-translation-offset,0px)}
.admin-bar .rod-nav{top:calc(32px + var(--rod-translation-offset,0px))}
@media(max-width:767px){.rod-language{margin-right:4px}#rod-language-toggle{padding:0 5px}.top_lang{padding-right:0}#rod-language-panel{right:-90px;width:min(300px,calc(100vw - 30px))}.admin-bar .rod-nav{top:calc(46px + var(--rod-translation-offset,0px))}}
@media(max-width:767px){.rod-brand .logo{width:145px;max-height:60px}.rod-breadcrumb ol{padding:12px;font-size:12px}.rod-breadcrumb li+li:before{padding:0 8px}.product_con table td,.product_con table th,.rod-specs td,.rod-specs th{padding:10px!important;font-size:12px}.product_con table td:first-child:not([colspan]),.rod-specs th{width:34%}.rod-main .right_new li{gap:10px}.right_new_time{font-size:11px}}

