/*
Theme Name: B2B 企业网站
Description: 用简体中文编辑英文 B2B 企业网站的页面、导航与全站样式。
Version: 1.3.4
Requires at least: 7.1
Requires PHP: 8.0
Text Domain: b2b-starter-theme
License: GNU General Public License v2 or later
*/

body { --b2b-edge: max(var(--wp--preset--spacing--kit-gutter, clamp(1.25rem,5vw,5rem)), calc((100% - var(--wp--style--global--wide-size, 1280px))/2)); margin: 0; }
/* 案例详情：只限定此模板；字号、图片比例仍可由原生区块内联样式覆盖。 */
.b2b-case-detail { padding:clamp(2rem,4vw,3.5rem) var(--b2b-edge,5vw) clamp(2.5rem,5vw,4rem); }
.b2b-case-detail .b2b-case-hero { gap:clamp(1.5rem,4vw,3.5rem); margin-block:0 3rem; padding-bottom:2.5rem; border-bottom:1px solid var(--wp--preset--color--mist); }
.b2b-case-hero > .wp-block-column { min-width:0; }
.b2b-case-intro > .wp-block-post-title { text-wrap:balance; overflow-wrap:anywhere; letter-spacing:-.035em; }
.b2b-case-intro > .b2b-case-eyebrow { margin:0 0 1rem; color:var(--wp--preset--color--sun); font-size:.72rem; font-weight:650; letter-spacing:.14em; }
.b2b-case-intro > .b2b-case-summary { max-width:48ch; margin-top:1.25rem; font-size:1.05rem; line-height:1.75; opacity:.8; }
.b2b-case-summary .wp-block-post-excerpt__excerpt { margin:0; }
.b2b-case-hero-media > .wp-block-post-featured-image { width:100%; overflow:hidden; background:var(--wp--preset--color--mist); border-radius:var(--wp--preset--spacing--kit-corner,0px); }
.b2b-case-detail .b2b-case-body { width:100%; max-width:960px; margin-inline:auto; margin-block:0 2.5rem; }
.b2b-case-body > :where(p,h2,h3,h4,ul,ol,blockquote,figure,.wp-block-buttons) { max-width:var(--wp--style--global--content-size,760px); margin-inline:auto; }
.b2b-case-body > :where(p,ul,ol) { font-size:1rem; line-height:1.85; overflow-wrap:anywhere; }
.b2b-case-body > :where(h2) { font-size:clamp(1.45rem,2.2vw,1.9rem); line-height:1.25; margin-top:2.5rem; margin-bottom:1rem; }
.b2b-case-body > :where(h3,h4) { line-height:1.35; margin-top:1.75rem; }
.b2b-case-body > .zi-biz { max-width:none; margin-block:2.5rem; }
.b2b-case-detail .b2b-case-navigation { max-width:960px; margin:2.5rem auto 0; padding-top:1.5rem; border-top:1px solid var(--wp--preset--color--mist); gap:1.5rem; }
.b2b-case-navigation > .wp-block-post-navigation-link { flex:1 1 18rem; min-width:0; }
.b2b-case-navigation .post-navigation-link-next { text-align:right; }
.b2b-case-navigation a { display:flex; flex-direction:column; gap:.45rem; color:inherit; line-height:1.5; text-decoration:none; overflow-wrap:anywhere; }
.b2b-case-navigation .post-navigation-link__label { font-size:.75rem; opacity:.65; font-weight:500; }
.b2b-case-navigation .post-navigation-link__title { font-size:.95rem; font-weight:600; }
.b2b-case-navigation a:hover .post-navigation-link__title { text-decoration:underline; text-underline-offset:.22em; }
.b2b-case-navigation a:focus-visible { outline:2px solid var(--wp--preset--color--sun); outline-offset:6px; }
@supports selector(:has(*)) {
    .b2b-case-hero:not(:has(.wp-block-post-featured-image)) { display:block; }
    .b2b-case-hero:not(:has(.wp-block-post-featured-image)) > .b2b-case-hero-media { display:none; }
    .b2b-case-hero:not(:has(.wp-block-post-featured-image)) > .b2b-case-intro { max-width:760px; margin-inline:auto; }
}
@media(max-width:781px) {
    .b2b-case-detail .b2b-case-hero { gap:1.5rem; margin-bottom:2rem; padding-bottom:2rem; }
    .b2b-case-intro > .b2b-case-summary { font-size:1rem; margin-top:1rem; }
    .b2b-case-body > :where(h2) { margin-top:2rem; }
    .b2b-case-detail .b2b-case-navigation { gap:1.25rem; }
    .b2b-case-navigation .post-navigation-link-next { text-align:left; }
}
.wp-site-blocks > :where(header, main, footer), .b2b-main > .entry-content, .b2b-main .entry-content > :first-child { margin-block-start: 0; }
.b2b-header, .b2b-footer, .b2b-band, .b2b-inner, .b2b-page-title { padding-inline: var(--b2b-edge, 5vw); }
.b2b-header { padding-block: 1rem; min-height: 4rem; border-bottom: 1px solid var(--wp--preset--color--mist); }
.b2b-header .wp-block-site-title, .b2b-footer .wp-block-site-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.b2b-header .wp-block-site-title a, .b2b-footer .wp-block-site-title a { text-decoration: none; }
.b2b-header .wp-block-navigation-item { font-size: .95rem; font-weight: 550; }
/* 导航位置来自当前页面/所属栏目，不把最后一个链接当作当前页。 */
.b2b-header .wp-block-navigation-item > .wp-block-navigation-item__content { border-bottom: 2px solid transparent; padding-block: .3rem; text-decoration: none; }
.b2b-header .wp-block-navigation-item:is(.current-menu-item,.current-menu-ancestor) > .wp-block-navigation-item__content,
.b2b-header .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] { border-bottom-color: var(--wp--preset--color--sun); }
.b2b-header .wp-block-navigation-item__content:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.b2b-page-title { margin-block:0; padding-block:clamp(2rem,4vw,3.5rem) 1.25rem; font-size:clamp(2.25rem,4vw,3.5rem); line-height:1.12; letter-spacing:-.035em; text-wrap:balance; }
.b2b-footer { padding-block: var(--wp--preset--spacing--kit-section); }
.b2b-footer p { margin-block: .7rem 0; max-width: 48ch; }
/* 分栏使用原生网格属性，编辑器与前台共用；独立留白由区块内边距覆盖默认值。 */
.b2b-footer--structured { padding-block:clamp(2.25rem,4vw,3.5rem) 1.5rem; border-top:1px solid #7f7f7f26; }
.b2b-footer--structured .b2b-footer-grid { align-items:start; margin-block:0; }
.b2b-footer--structured .b2b-footer-grid > * { min-width:0; margin-block:0; }
.b2b-footer--structured .wp-block-site-title { font-size:1.1rem; line-height:1.35; letter-spacing:-.025em; overflow-wrap:anywhere; }
.b2b-footer--structured h3 { font-family:inherit; font-size:1rem; font-weight:650; line-height:1.4; letter-spacing:0; color:inherit; margin:0 0 .85rem; }
.b2b-footer--structured p { font-size:.9rem; line-height:1.7; color:inherit; }
.b2b-footer--structured .b2b-footer-brand > p:not(.wp-block-site-title), .b2b-footer--structured .b2b-footer-contact > p { max-width:36ch; opacity:.8; }
.b2b-footer--structured .b2b-footer-links { margin-block:0; font-size:.9rem; }
.b2b-footer--structured .b2b-footer-links .wp-block-navigation__container { align-items:flex-start; gap:.2rem; }
.b2b-footer--structured .b2b-footer-links .wp-block-navigation-item__content { display:inline-block; padding-block:.3rem; line-height:1.5; color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.b2b-footer--structured .b2b-footer-links a:hover, .b2b-footer--structured .b2b-footer-links a:focus-visible { text-decoration:underline; text-underline-offset:.25em; }
.b2b-footer--structured .b2b-footer-contact-link { margin-top:1rem; font-weight:650; }
.b2b-footer--structured .b2b-footer-contact-link .wp-block-navigation-item__content { text-decoration:underline; text-underline-offset:.25em; }
.b2b-footer--structured .zi-company-contact, .b2b-footer--structured .zi-company-contact-details { margin:0; font-size:.9rem; }
.b2b-footer--structured .b2b-footer-bottom { border-top:1px solid #7f7f7f26; margin-top:2rem; padding-top:1rem; }
.b2b-footer--structured .b2b-footer-bottom p { margin:0; max-width:none; font-size:.78rem; opacity:.7; }
.b2b-main { min-height: 55vh; }
.b2b-main > .entry-content > :where(.b2b-band,.zi-area) + :where(.b2b-band,.zi-area) { margin-block-start: 0; }
.b2b-band, .b2b-inner { padding-block: var(--wp--preset--spacing--kit-section); }
.b2b-band h2 { margin-block: 0 1rem; }
.b2b-band > p { max-width: min(100%,var(--wp--style--global--content-size)); }
.b2b-contact { border-top: 1px solid var(--wp--preset--color--mist); }
.b2b-contact .zi-inquiry :is(input,textarea,select) { border: 1px solid var(--wp--preset--color--ink); border-radius:var(--wp--preset--spacing--kit-corner); background:var(--wp--preset--color--white); color:var(--wp--preset--color--ink); }
.zi-inquiry .wp-element-button { justify-self: start; cursor:pointer; }
.b2b-inner .wp-block-post-content > *, .b2b-inner > .wp-block-post-excerpt { max-width: var(--wp--style--global--content-size); }
.b2b-inner .wp-block-post-content img, .b2b-inner .wp-block-post-featured-image img { height:auto; max-width:100%; }
.b2b-inner .wp-block-table :is(td,th) { border-color:var(--wp--preset--color--mist); padding:.7rem; text-align:start; }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-grid, :is(.b2b-main,.editor-styles-wrapper) .zi-area-split { padding-inline: var(--b2b-edge,5vw); }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-grid article { border-top: 0; }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-grid .zi-area-copy { padding: 1.25rem 0; }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-split .zi-area-copy { padding: 0; }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-slider .zi-area-copy { max-width: min(54%, 46rem); }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-slider .zi-area-item { padding-inline: var(--b2b-edge,5vw); }
.zi-area-link.wp-element-button { display:inline-block; text-decoration:none; }
/* 单项设置优先，其他分区按钮采用核心生成的 .wp-element-button 样式。 */
.zi-area .zi-area-item[style*="--zi-button:"] .zi-area-link { background-color:var(--zi-button); }
.zi-area .zi-area-item[style*="--zi-button-text:"] .zi-area-link { color:var(--zi-button-text); }
:where(.zi-area-split,.zi-area-grid,.b2b-band,.b2b-inner) :where(img) { border-radius:var(--wp--preset--spacing--kit-corner); }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-slider nav { background:var(--wp--preset--color--ink); color:var(--wp--preset--color--paper); padding: .55rem var(--b2b-edge,5vw); }
:is(.b2b-main,.editor-styles-wrapper) .zi-area-slider nav button { background:transparent; border:1px solid currentColor; color:inherit; border-radius:99px; padding:.4rem .9rem; }
:where(.b2b-main,.editor-styles-wrapper) :where(.wp-block-post-template) { gap:var(--wp--style--block-gap,1.25rem); }
.b2b-main .wp-block-post-template > li { border-top:1px solid var(--wp--preset--color--mist); padding-top:1.1rem; }
.b2b-main .wp-block-post-template .wp-block-post-title { margin:.5rem 0; }
.b2b-main .wp-block-post-template .wp-block-post-title a { text-decoration-thickness:1px; text-underline-offset:.12em; }
@media(max-width:767px){
    :is(.b2b-main,.editor-styles-wrapper) .zi-area-slider .zi-area-copy { max-width:100%; text-shadow:0 2px 8px rgba(0,0,0,.5); }
}

/* 通用工业版式：图片、正文、链接仍来自区块；配色、字体与间距沿用全局设置。 */
.b2b-header--industrial { gap:1.5rem; padding-block:.8rem; }
.b2b-header--industrial .b2b-header-brand { display:flex; align-items:center; gap:.8rem; flex:0 1 auto; min-width:0; }
.b2b-header-brand > * { margin:0; }
.b2b-header-brand .wp-block-site-logo { flex:none; line-height:0; }
.b2b-header-brand .wp-block-site-logo img { display:block; height:auto; max-width:100%; object-fit:contain; }
.b2b-header-brand .wp-block-site-title { font-size:1.05rem; letter-spacing:-.025em; max-width:16rem; }
.b2b-header--industrial .wp-block-navigation { margin-block:0; }
.b2b-header--industrial .wp-block-navigation__container { gap:clamp(.9rem,1.4vw,1.4rem); }
.b2b-header--industrial .wp-block-navigation-item { font-size:.85rem; font-weight:600; }
.b2b-header .b2b-nav-cta > .wp-block-navigation-item__content { padding:.7rem 1rem; border:2px solid transparent; border-radius:var(--wp--preset--spacing--kit-corner,4px); background:var(--wp--preset--color--sun); color:var(--wp--preset--color--white); }
.b2b-header .b2b-nav-cta.current-menu-item > .wp-block-navigation-item__content { border-bottom-color:currentColor; }
.b2b-header a:hover { text-decoration-thickness:2px; text-underline-offset:.3em; }
:is(.b2b-main,.editor-styles-wrapper) .b2b-industrial-hero .zi-area-item { padding-block:3.5rem; }
:is(.b2b-main,.editor-styles-wrapper) .b2b-industrial-hero .zi-area-copy { max-width:min(57%,43rem); }
.b2b-industrial-hero h1 { max-width:15ch; text-wrap:balance; }
.b2b-industrial-hero .zi-area-copy > p:not(.zi-area-eyebrow) { max-width:45ch; margin-block:1.25rem 2rem; line-height:1.65; }
.b2b-industrial-hero .zi-area-eyebrow { font-size:.72rem; font-weight:650; letter-spacing:.16em; }
.b2b-industrial-hero .zi-area-link { font-size:.9rem; font-weight:650; }
.b2b-industrial-hero .zi-area-text-link { font-size:.9rem; font-weight:600; }
.b2b-family-cards .zi-area-group-heading, .b2b-application-cards .zi-area-group-heading { max-width:24ch; margin-bottom:1rem; }
.b2b-family-cards .zi-area-item, .b2b-application-cards .zi-area-item { min-width:0; }
.b2b-family-cards picture { background:var(--zi-image-bg,var(--wp--preset--color--mist)); overflow:hidden; }
.b2b-family-cards img { box-sizing:border-box; padding:1rem; }
.b2b-family-cards h3, .b2b-application-cards h3 { line-height:1.25; }
.b2b-family-cards .zi-area-copy > p, .b2b-application-cards .zi-area-copy > p { font-size:.9rem; opacity:.8; margin:.7rem 0; }
.b2b-family-cards .zi-area-text-link, .b2b-application-cards .zi-area-text-link { font-size:.85rem; font-weight:650; padding-block:.25rem; }
.b2b-industrial-band > :first-child { margin-top:0; }
.b2b-industrial-band .zi-crane-heading-row { gap:1.5rem; margin:0 0 2rem; }
.b2b-industrial-band .zi-crane-heading-copy h2 { max-width:24ch; }
.b2b-industrial-band .zi-crane-heading-copy p { max-width:60ch; }
.b2b-main .b2b-featured-products.zi-product-catalog { margin-block:0; }
.b2b-featured-products > h2 { margin:0 0 2rem; }
.b2b-featured-products .zi-product-cards { gap:var(--zi-product-gap,1.5rem); }
.b2b-featured-products .zi-product-card { border:1px solid var(--wp--preset--color--mist); border-radius:var(--wp--preset--spacing--kit-corner,0px); background:var(--wp--preset--color--paper); }
.b2b-featured-products .zi-product-card-media { background:var(--zi-product-image-bg,var(--wp--preset--color--paper)); border-bottom:1px solid var(--wp--preset--color--mist); }
.b2b-featured-products .zi-product-card-media img { box-sizing:border-box; padding:var(--zi-product-image-padding,1rem); }
.b2b-featured-products .zi-product-card h3 { font-size:1.15em; line-height:1.3; }
.b2b-featured-products .zi-product-card-copy { padding:1.25rem; gap:.65rem; }
.b2b-featured-products .zi-product-card-model { font-size:.78rem; opacity:.7; }
.b2b-featured-products .zi-product-card-quote { font-size:.85rem; }
.b2b-equipment-split .zi-area-copy h2 { max-width:20ch; }
.b2b-equipment-split .zi-area-copy > p:not(.zi-area-eyebrow) { max-width:48ch; opacity:.8; line-height:1.75; }
.b2b-equipment-split picture img { aspect-ratio:4/3; height:auto; object-fit:cover; }
.b2b-equipment-split .zi-area-text-link { font-size:.9rem; font-weight:650; }
.b2b-application-cards { border-top:1px solid var(--wp--preset--color--mist); }
.b2b-editorial-guides .wp-block-post-template > li { border:0; padding-top:0; }
.b2b-editorial-guides .wp-block-post-featured-image { margin:0 0 1rem; }
.b2b-editorial-guides .wp-block-post-title { line-height:1.3; }
.b2b-editorial-guides .wp-block-post-title a { text-decoration:none; }
.b2b-editorial-guides .wp-block-post-excerpt { font-size:.9rem; opacity:.8; }
.b2b-editorial-guides .wp-block-post-excerpt__more-link { font-size:.85rem; font-weight:600; text-underline-offset:.25em; }
.b2b-compact-quote { display:flex; align-items:center; justify-content:space-between; gap:2.5rem; }
.b2b-compact-quote .b2b-quote-copy { max-width:52rem; }
.b2b-compact-quote h2 { color:inherit; max-width:23ch; }
.b2b-compact-quote p { max-width:60ch; font-size:.95rem; opacity:.8; margin-bottom:0; }
.b2b-compact-quote .wp-block-buttons { flex:none; margin:0; }
.b2b-product-detail { padding-top:clamp(2rem,4vw,3.5rem); }
.b2b-product-header { margin-bottom:2.25rem; }
.b2b-product-header .wp-block-post-terms { display:flex; flex-wrap:wrap; gap:.4rem; font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; opacity:.7; }
.b2b-product-header .wp-block-post-terms a { text-decoration:none; }
.b2b-product-header .wp-block-post-title { max-width:25ch; margin-block:1rem; text-wrap:balance; }
.b2b-product-header .wp-block-post-excerpt { max-width:74ch; opacity:.8; }
.b2b-product-detail > .zi-product-information { margin:0 0 3rem; }
.b2b-product-detail .zi-product-gallery-stage > figure { border-radius:var(--wp--preset--spacing--kit-corner,0px); background:var(--wp--preset--color--mist); }
.b2b-product-detail .zi-product-gallery-stage img { padding:1rem; box-sizing:border-box; }
.b2b-product-detail .zi-product-facts { font-size:.9rem; margin-top:0; }
.b2b-product-detail .zi-product-specifications { font-size:.9rem; }
.b2b-product-detail .zi-product-specifications caption { font-size:1.15rem; }
.b2b-product-detail .zi-product-applications h2 { font-size:1.15rem; }
.b2b-product-detail .zi-product-applications p { font-size:.9rem; }
:is(.b2b-product-detail .b2b-product-content,.editor-styles-wrapper) > .b2b-product-section { max-width:none; margin-block:2.5rem; }
.b2b-product-section > h2 { max-width:26ch; margin:0 0 1rem; }
.b2b-product-section > p, .b2b-product-section > ul { max-width:78ch; }
.b2b-product-section li { margin-block:.6rem; }
.b2b-product-features { max-width:none; padding-inline:0; border-block:1px solid var(--wp--preset--color--mist); }
.b2b-product-features .zi-biz__header { margin-bottom:1.5rem; }
.b2b-product-reference > p:last-child { font-size:.8rem; opacity:.7; }
.b2b-product-enquiry > .wp-block-buttons { margin-top:1.5rem; }
.b2b-product-detail .b2b-featured-products .zi-product-catalog { margin-bottom:0; }
@media(max-width:1160px){
    .b2b-header--industrial .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display:none; }
    .b2b-header--industrial .wp-block-navigation__responsive-container-open:not(.always-shown) { display:flex; }
    .b2b-header--industrial .wp-block-navigation__responsive-container.is-menu-open { padding:2rem; background:var(--wp--preset--color--paper); color:var(--wp--preset--color--ink); }
}
@media(max-width:960px){
    .b2b-compact-quote { flex-direction:column; align-items:flex-start; gap:1.5rem; }
}
@media(min-width:768px) and (max-width:1024px){
    .b2b-family-cards:is([style*="--zi-cols:4"],[style*="--zi-cols:3"]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px){
    .b2b-header--industrial { padding-block:.65rem; }
    .b2b-header-brand .wp-block-site-title { font-size:.9rem; max-width:12rem; }
    :is(.b2b-main,.editor-styles-wrapper) .b2b-industrial-hero .zi-area-copy { max-width:100%; }
    .b2b-industrial-hero h1 { max-width:14ch; }
    .b2b-industrial-hero .zi-area-copy > p:not(.zi-area-eyebrow) { max-width:32ch; }
    .b2b-industrial-hero .zi-area-text-link { margin:1rem 0 0; display:block; width:max-content; }
    .b2b-product-header .wp-block-post-title { max-width:22ch; }
}
