/*
Theme Name: 固力同创 · 工程科技
Description: 建筑减隔震产品与工程资料官网
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
*/
:root{color-scheme:light;--navy:#102842;--ink:#142a40;--blue:#104d85;--red:#bc4137;--muted:#526576;--line:#d9e1e6;--pale:#f0f4f6;--gutter:clamp(1.3rem,5.2vw,5.5rem)}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:#fff;font:1rem/1.65 Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;-webkit-font-smoothing:antialiased}
main{display:block;min-height:48vh}
img,picture{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
p,h1,h2,h3{margin:0}
button{font:inherit;color:inherit;cursor:pointer}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid #f07927;outline-offset:4px}
.wrap{width:min(100%,calc(1280px + var(--gutter)*2));margin-inline:auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:1rem;top:-5rem;background:white;padding:.6rem;z-index:100}
.skip:focus{top:.5rem}
.mast{background:white;position:relative;z-index:10;border-bottom:1px solid var(--line)}
.mast-inner{display:flex;align-items:center;justify-content:space-between;gap:1.4rem;min-height:78px}
.brand{display:inline-flex;align-items:center;gap:.8rem;flex-shrink:0;line-height:1.12}
.brand img{width:43px;height:auto;object-fit:contain}
.brand span{display:grid;gap:.35rem}
.brand b{font-size:1.31rem;letter-spacing:.05em;font-weight:800}
.brand small{font-size:.78rem;letter-spacing:.29em;font-weight:550}
.main-nav,.footer-main nav{display:flex;align-items:center;gap:clamp(1rem,2.5vw,2.6rem);flex-wrap:wrap}
.main-nav a{position:relative;display:grid;align-items:center;min-height:77px;font-size:.97rem;font-weight:600}
.main-nav [aria-current]{color:var(--blue)}
.main-nav [aria-current]:after{content:"";position:absolute;bottom:12px;left:0;right:0;height:2px;background:var(--red)}
.main-nav a:hover,.text-link:hover,.crumb a:hover,.article-item:hover h2{color:var(--blue)}
.menu-toggle{display:none;background:transparent;border:1px solid var(--line);border-radius:3px;min-height:44px;padding:.4rem 1rem}
.hero{position:relative;isolation:isolate;background:#112944;color:white;overflow:hidden}
.hero-photo,.hero-photo:after{position:absolute;inset:0;z-index:-1}
.hero-photo picture,.hero-photo img{width:100%;height:100%}
.hero-photo img{object-fit:cover;object-position:60% 52%}
.hero-photo:after{content:"";z-index:0;background:linear-gradient(90deg,rgba(9,29,50,.97) 1%,rgba(11,31,51,.90) 24%,rgba(11,31,51,.68) 45%,rgba(11,31,51,.16) 77%,rgba(11,31,51,.14))}
.hero-inner{display:flex;align-items:center;min-height:clamp(440px,38vw,575px)}
.hero-copy{padding-block:clamp(3rem,5vw,5.3rem);max-width:39rem}
.hero-rule{width:2.9rem;height:4px;background:#e96752;margin-bottom:1.6rem}
h1,h2,h3{line-height:1.29;text-wrap:pretty}
.hero h1{font-size:clamp(2.65rem,4.25vw,4.35rem);font-weight:750;letter-spacing:.035em}
.hero-copy>p{color:#e3edf3;max-width:31rem;margin-top:1.15rem;font-size:1.05rem;line-height:1.85}
.actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.8rem}
.button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:.65rem 1.4rem;font-weight:650;border:1px solid transparent;border-radius:3px}
.primary{color:white;background:var(--red)}
.primary:hover{background:#9d312b}
.glass{border-color:#a3b3c1;background:rgba(14,33,52,.35);color:white}
.glass:hover{background:rgba(14,33,52,.75)}
.section{padding-block:clamp(3.1rem,5vw,5rem)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.65rem}
h2{font-size:clamp(1.7rem,2.6vw,2.5rem);letter-spacing:.01em;font-weight:750}
.section-head p,.page-heading p,.company-copy p{color:var(--muted);margin-top:.65rem}
.text-link{display:inline-block;flex-shrink:0;color:var(--blue);font-weight:650;border-bottom:1px solid #879dae;padding-block:.25rem}
.family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.12rem}
.family-card,.record-card{border:1px solid var(--line);background:white;display:block;min-width:0;border-radius:3px;overflow:hidden;transition:border-color .18s}
.family-card:hover,.record-card:hover{border-color:#64829e}
.family-img,.card-photo{overflow:hidden;background:#f3f5f6}
.family-img{aspect-ratio:1.83}
.family-img picture,.family-img img,.card-photo picture,.card-photo img,.company-photo picture,.company-photo img,.detail-photo picture,.detail-photo img{width:100%;height:100%}
.family-img img{object-fit:contain}
.family-text,.card-info{padding:1rem 1.15rem 1.15rem}
h3{font-size:1.2rem}
.family-text p,.card-info small{font-size:.9rem;color:var(--muted)}
.family-text p{margin-top:.25rem}
.project-band{background:var(--pale)}
.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}
.card-photo{aspect-ratio:1.65}
.card-photo img,.company-photo img{object-fit:cover}
.product-card .card-photo img{object-fit:contain}
.card-info small{display:block;margin-bottom:.4rem}
.company-row,.about-layout{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(2rem,5vw,5.5rem)}
.company-photo{overflow:hidden;aspect-ratio:1.87;border-radius:3px}
.company-copy p{max-width:35rem;line-height:1.95}
.company-copy .text-link{margin-top:1rem}
.footer{background:var(--navy);color:#fff}
.footer-main,.footer-bottom{display:flex;gap:1rem;align-items:center;justify-content:space-between}
.footer-main{padding-block:2.3rem}
.footer-main .brand img{background:white;padding:3px;border-radius:2px}
.footer-main p,.footer-bottom{color:#c4d2de;font-size:.9rem}
.footer-main p{margin-top:.9rem}
.footer-main nav{font-size:.96rem}
.footer-bottom{border-top:1px solid #405569;padding-block:1rem}
.crumb{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;color:var(--muted);font-size:.88rem;padding-top:1.65rem}
.page-heading,.detail-intro{padding-block:clamp(2.1rem,4vw,3.8rem)}
.page-heading h1,.detail h1{font-size:clamp(2rem,3.5vw,3.3rem)}
.page-heading p,.summary{font-size:1.08rem}
.filters,.pagination{display:flex;flex-wrap:wrap;gap:.48rem}
.filters{margin:0 0 1.8rem}
.filters a,.pagination a{border:1px solid var(--line);padding:.46rem .95rem;min-height:42px;border-radius:3px;font-size:.96rem}
.filters [aria-current=true],.pagination [aria-current=page]{color:#fff;background:var(--navy);border-color:var(--navy)}
.archive-list{margin-bottom:3rem}
.pagination{justify-content:center;margin-block:1rem 3.5rem}
.article-list{border-top:1px solid var(--line)}
.article-item{display:block;border-bottom:1px solid var(--line);padding:1.4rem 0}
.article-item h2{font-size:1.3rem;margin:.2rem 0}
.article-item time,.detail time,.article-item p{color:var(--muted)}
.article-item time,.detail time{font-size:.9rem}
.detail{padding-bottom:3.5rem}
.detail-intro{display:grid;grid-template-columns:1fr;gap:2rem;align-items:center}
.detail-intro:has(.detail-photo){grid-template-columns:minmax(0,1fr) minmax(0,.86fr)}
.overline{display:inline-block;color:var(--blue);font-weight:600;margin-bottom:.65rem}
.summary{margin-top:1rem;color:var(--muted);max-width:47rem}
.detail-photo{display:block;aspect-ratio:1.75;background:var(--pale);overflow:hidden}
.detail-photo img{object-fit:contain}
.photo-link{cursor:zoom-in}
.prose{max-width:58rem;color:#30465b;line-height:1.9;overflow-wrap:anywhere}
.prose p,.prose ul,.prose ol{margin:0 0 1em}
.prose h2,.gallery-block h2{font-size:1.45rem;margin:1.65rem 0 .7rem}
.prose h3{margin:1.3rem 0 .6rem}
.prose img{height:auto;max-width:100%;margin:1rem auto}
.table-scroll,.prose{overflow-x:auto}
.prose table{border-collapse:collapse;margin-block:1rem;width:100%;font-size:.95rem}
.prose td,.prose th{border:1px solid #cbd5df;padding:.45rem .7rem;line-height:1.55;min-width:4.5rem}
.prose th{background:var(--pale);color:var(--navy)}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem}
.gallery img{width:100%;height:170px;object-fit:contain;background:var(--pale)}
.detail-foot{display:flex;align-items:center;gap:1rem;margin-top:2rem;border-top:1px solid var(--line);padding-top:1.4rem}
.standard-page{padding-bottom:4rem;min-height:55vh}
.about-layout{align-items:start}
.contact-list{display:grid;grid-template-columns:max-content 1fr;gap:1rem 2rem}
.contact-list dd{margin:0}
.contact-list a{color:var(--blue);text-decoration:underline}
.lightbox{width:min(94vw,1000px);background:#101e2c;border:0;padding:.75rem;color:#fff}
.lightbox::backdrop{background:rgba(10,20,32,.85)}
.lightbox button{display:block;margin:0 0 .65rem auto;border:1px solid #8192a3;background:transparent;color:white;padding:.35rem .9rem}
.lightbox img{max-width:100%;max-height:78vh;margin:auto;object-fit:contain}
@media(max-width:980px){
 .family-grid,.record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mast-inner{flex-wrap:wrap}
 .hero-photo img{object-position:68% center}
}
@media(max-width:750px){
 .mast-inner{min-height:67px;padding-block:.55rem;gap:.25rem 1rem}
 .brand img{width:37px;height:auto}
 .brand b{font-size:1.15rem}
 .brand small{font-size:.74rem}
 .main-nav{width:100%;gap:0 1.1rem;padding-bottom:.5rem}
 .main-nav a{min-height:44px}
 .main-nav [aria-current]:after{bottom:2px}
 .menu-ready .menu-toggle{display:block}
 .menu-ready .main-nav{display:none}
 .menu-ready .main-nav.open{display:flex}
 .hero-inner{min-height:410px}
 .hero-photo:after{background:linear-gradient(90deg,rgba(11,30,50,.91),rgba(11,30,50,.70) 60%,rgba(11,30,50,.48))}
 .hero-copy{padding-block:3.1rem}
 .hero-copy>p{max-width:27rem}
 .company-row,.about-layout,.detail-intro:has(.detail-photo){grid-template-columns:1fr}
 .detail-intro{gap:1.3rem}
 .section-head{align-items:start}
 .footer-main,.footer-bottom{align-items:start;flex-direction:column}
 .footer-main nav{gap:.45rem 1.3rem}
}
@media(max-width:520px){
 .family-grid,.record-grid{gap:.72rem}
 .family-text,.card-info{padding:.8rem}
 .family-text p{font-size:.88rem}
 .family-img{aspect-ratio:1.52}
 .section-head{gap:.7rem}
 .section-head p{font-size:.96rem}
 .section-head .text-link{font-size:.9rem}
 .record-grid{grid-template-columns:1fr}
 .archive-list:has(.product-card){grid-template-columns:repeat(2,minmax(0,1fr))}
 .product-card h3{font-size:1.05rem}
 .hero h1{font-size:clamp(2.18rem,8.5vw,2.8rem)}
 .hero-copy>p{font-size:1rem}
 .detail-foot,.footer-bottom{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
