/*
Theme Name: Xinpeng Precision
Theme URI: https://csxpjy.com/xinpeng-precision/
Author: Xinpeng Precision
Description: A simplified Chinese corporate theme for metal forming machinery companies, with a full-width image homepage and responsive product showcase.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csxpjy
Tags: one-column, custom-logo, featured-images, translation-ready
*/
:root{--ink:#1d2b37;--red:#d94338;--muted:#8b959d;font-family:Arial,"Microsoft YaHei",sans-serif;color:var(--ink)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.screen-reader-text{position:absolute;left:-9999px}.screen-reader-text:focus{left:12px;top:12px;z-index:999;background:#fff;padding:12px}.wrap{width:min(1280px,calc(100% - 80px));margin:auto}.site-header{height:90px;background:#fff;position:relative;z-index:20}.header-inner{width:min(1390px,calc(100% - 80px));margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-mark{width:42px;height:42px;display:flex;align-items:center;justify-content:center;gap:3px;transform:skewX(-18deg)}.brand-mark i{display:block;width:8px;background:var(--red)}.brand-mark i:nth-child(1),.brand-mark i:nth-child(3){height:25px}.brand-mark i:nth-child(2){height:39px}.brand-words{display:flex;flex-direction:column;line-height:1}.brand-words strong{font-size:25px;letter-spacing:.12em;color:#142638}.brand-words small{font-size:8px;font-weight:bold;letter-spacing:.2em;color:#78838c;margin-top:8px}.custom-logo{max-height:55px;width:auto}.main-nav ul{display:flex;gap:clamp(18px,2.5vw,40px);list-style:none;padding:0;margin:0}.main-nav a{font-size:14px;font-weight:bold;color:#293844}.main-nav a:hover,.main-nav a:focus-visible{color:var(--red)}.nav-toggle{display:none;background:transparent;border:0;padding:8px;font-size:23px}.hero{height:calc(100vh - 90px);min-height:550px;max-height:920px;overflow:hidden;position:relative;background:#273037}.hero img{width:100%;height:100%;object-fit:cover;animation:hero-enter 1.4s ease both}.hero:after{content:"";position:absolute;bottom:0;left:0;width:19%;height:3px;background:var(--red)}@keyframes hero-enter{from{opacity:.5;transform:scale(1.04)}to{opacity:1;transform:scale(1)}}.section-pad{padding:105px 0 115px}.heading-row{display:flex;align-items:end;justify-content:space-between;gap:25px}.section-en{font-size:45px;line-height:1;font-weight:800;color:#e9edef;letter-spacing:.03em}.section-title{margin:14px 0 0;display:flex;align-items:center;gap:16px;font-size:31px;letter-spacing:.05em}.section-title:before{content:"";width:4px;height:24px;background:var(--red)}.heading-row>p{font-size:14px;color:var(--muted);margin:0 0 5px}.product-tabs{display:flex;border-bottom:1px solid #dce1e5;margin-top:55px;gap:27px}.product-tab{background:none;border:0;padding:0 52px 20px 0;color:#8d979e;font-weight:bold;font-size:15px;position:relative}.product-tab[aria-selected="true"]{color:var(--ink)}.product-tab[aria-selected="true"]:after{content:"";position:absolute;bottom:-1px;left:0;right:52px;height:2px;background:var(--red)}.product-tab small{font-size:10px;color:#b5bec4;margin-left:8px}.product-panel[hidden]{display:none}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:39px}.product-image{height:270px;overflow:hidden;background:#eef0f1}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.product-item:hover img{transform:scale(1.05)}.product-meta{display:flex;justify-content:space-between;color:#a1aab0;font-size:11px;letter-spacing:.1em;margin-top:22px}.product-item h3{font-size:20px;margin:13px 0 9px}.product-item p{font-size:13px;color:#88929a;margin:0}.text-link{display:inline-flex;gap:17px;align-items:center;font-weight:bold;font-size:13px;margin-top:45px}.text-link:hover{color:var(--red)}.applications{background:#1d2b35;color:#fff}.applications .section-en{color:#394753}.applications .heading-row>p{color:#8c9aa4}.application-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:49px}.application{height:430px;position:relative;overflow:hidden;display:block;background:#33414b}.application img{width:100%;height:100%;object-fit:cover;filter:saturate(.7);transition:transform .5s}.application:hover img{transform:scale(1.06)}.application:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0a1720df,#0a172020 70%)}.application-content{position:absolute;z-index:1;inset:0;padding:27px 30px 35px;display:flex;flex-direction:column;justify-content:space-between}.application-content>span{font-size:12px;color:#fffa}.application-content small{font-size:10px;letter-spacing:.15em;color:#e5e9ecae}.application-content h3{font-size:26px;margin:10px 0}.application-content p{font-size:12px;color:#e0e5e6bb;margin:0}.about{display:grid;grid-template-columns:1fr 1fr;background:#f5f6f6;min-height:590px}.about-copy{padding:85px 65px 75px max(45px,calc((100vw - 1280px)/2));align-self:center}.about-copy .section-en{color:#e2e7e9}.about-copy h3{font-size:31px;line-height:1.5;margin:38px 0 22px}.about-copy p{font-size:13px;line-height:2.15;color:#697780;max-width:520px}.about-image img{width:100%;height:100%;min-height:590px;object-fit:cover}.news-list{border-top:1px solid #e5e9ec;margin-top:43px}.news-item{min-height:155px;display:grid;grid-template-columns:125px 1fr 45px;gap:30px;align-items:center;border-bottom:1px solid #e5e9ec}.news-date{border-right:1px solid #e3e8ea}.news-date strong{font-size:43px;font-weight:400;display:block}.news-date small{font-size:12px;color:#9ca7ae}.news-item h3{font-size:19px;margin:9px 0}.news-item p{font-size:12px;color:#9aa4aa;margin:0}.news-category{font-size:11px;color:var(--red)}.news-arrow{font-size:25px}.site-footer{background:#192732;color:#fff;padding:65px 0 0}.footer-top{display:flex;justify-content:space-between;padding-bottom:60px;gap:40px}.site-footer .brand-words strong{color:#fff}.footer-top p{color:#84939e;font-size:12px;margin-top:23px}.footer-contact{display:flex;flex-direction:column;gap:12px}.footer-contact small{color:#8999a3;letter-spacing:.1em}.footer-contact a:nth-child(2){font-size:26px}.footer-contact a:nth-child(3){font-size:13px;color:#a6b2b9}.footer-bottom{border-top:1px solid #ffffff1a;min-height:65px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;color:#82919b}.entry-wrap{width:min(850px,calc(100% - 40px));margin:75px auto 110px;min-height:40vh}.entry-wrap h1{font-size:34px}.entry-wrap a{color:var(--red)}.entry-content{line-height:1.9}.entry-content img{height:auto}.post-list article{border-bottom:1px solid #ddd;padding:25px 0}.post-list h2{font-size:22px}.pagination{margin-top:35px}.comments-area{margin-top:55px}.comment-list{padding-left:20px}.comment-body{margin-bottom:22px}.comment-form input,.comment-form textarea,.search-form input{max-width:100%;padding:10px;border:1px solid #b8c1c6}.comment-form input[type=submit],.search-form input[type=submit]{background:var(--red);color:#fff;border:0;padding:11px 20px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #e16960;outline-offset:3px}.alignwide{max-width:1200px;margin-left:auto;margin-right:auto}.alignfull{width:100vw;max-width:none;position:relative;left:50%;margin-left:-50vw}.wp-caption,.gallery-caption{max-width:100%}.wp-caption-text{color:#71808a;font-size:12px}.sticky{border-left:3px solid var(--red);padding-left:15px}.bypostauthor{font-weight:inherit}
@media(max-width:850px){.site-header{height:72px}.header-inner{width:calc(100% - 35px)}.nav-toggle{display:block}.main-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:15px 25px;box-shadow:0 15px 25px #17212b18}.main-nav.is-open{display:block}.main-nav ul{display:block}.main-nav li{padding:12px;border-bottom:1px solid #eee}.hero{height:70vh;min-height:400px}.wrap{width:calc(100% - 40px)}.section-pad{padding:75px 0}.product-image{height:180px}.application{height:320px}.about-copy{padding:65px 35px}.about-image img{min-height:500px}}
@media(max-width:600px){.brand-words strong{font-size:20px}.brand-mark{width:32px}.hero{height:65vh}.heading-row{display:block}.heading-row>p{margin-top:15px}.section-en{font-size:35px}.section-title{font-size:26px}.product-tabs{white-space:nowrap;overflow-x:auto;margin-top:35px}.product-tab{padding-right:15px;font-size:13px;flex-shrink:0}.product-tab[aria-selected="true"]:after{right:15px}.product-grid,.application-grid{grid-template-columns:1fr;gap:30px}.product-image{height:230px}.application-grid{gap:12px}.application{height:250px}.about{display:flex;flex-direction:column}.about-copy{padding:65px 20px}.about-image img{height:320px;min-height:0}.news-item{grid-template-columns:55px 1fr 20px;gap:15px}.news-date strong{font-size:30px}.news-item h3{font-size:15px}.news-item p{display:none}.footer-top{flex-direction:column}.footer-bottom{padding:20px 0;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
