/* Chinese UI tokens. Existing shortcode markup, ACF keys and page structure stay intact. */
html[lang^="zh"] {
  --stm-color-primary:#0077db;
  --stm-color-primary-dark:#005aa8;
  --stm-color-bg:#f7fbff;
  --stm-color-bg-soft:#edf5fc;
  --stm-color-text:#102f48;
  --stm-color-text-secondary:#4d657b;
  --stm-color-border:#dce7ef;
  --stm-container:none;
  --stm-content-max:var(--stm-container);
  --stm-content-width:92%;
  --stm-reading-width:47.5rem;
  --stm-layout-gap:clamp(24px,2.4vw,64px);
  --stm-hero-title:clamp(3.25rem,calc(1.75rem + 1.67vw),5rem);
  --stm-radius-sm:8px;
  --stm-radius-md:10px;
  --stm-space-section:clamp(72px,6.7vw,96px);
  --stm-space-section-mobile:64px;
}

/* Legacy Elementor/snippet styles and the existing stm-chinese layer use
   !important. These component overrides deliberately remain in the same layer
   with a semantic body scope; ordinary declarations cannot override that stack.
   New components below use normal declarations wherever there is no conflict. */
@media(max-width:767px) {
 html[lang^="zh"] {--stm-content-width:calc(100% - 40px);--stm-space-section:var(--stm-space-section-mobile)}
}
@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined {
  --stm-zh-font:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  --rp-muted:var(--stm-color-text-secondary)!important;
  --rh-space:var(--stm-space-section)!important;
  color:var(--stm-color-text);
}
html[lang^="zh"] body.stm-ui-refined :is(.rp-wrap,.stm-rh-wrap,.stm-system-wrap,.ct-wrap,.ab-wrap) {
  width:var(--stm-content-width)!important;max-width:var(--stm-container)!important;margin-inline:auto!important;
}
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh,.stm-rp,.stm-contact) :is(h1,h2,h3) {font-weight:600!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp h1 {font-size:clamp(38px,3.7vw,54px)!important;line-height:1.22!important}
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh-heading,.rp-heading) h2 {font-size:clamp(30px,2.65vw,38px)!important;line-height:1.3!important}
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh,.stm-rp) p {line-height:1.8!important}
html[lang^="zh"] body.stm-ui-refined :is(.rp-hero-copy,.rp-readmore,.rp-overview>div:first-child) {max-width:760px}
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh-button,.rp-primary,.rp-outline,.ct-primary) {
  border-radius:var(--stm-radius-sm)!important;min-height:46px!important;
  font-weight:600!important;font-size:15px!important;line-height:1.5!important;
  transition:background .2s,border-color .2s,transform .2s!important;
}
html[lang^="zh"] body.stm-ui-refined :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #0673cf!important;outline-offset:4px!important}
html[lang^="zh"] body.stm-ui-refined :is(.rp-product-card,.rp-application-grid article,.rp-support-grid article,.rp-overview-points article) {
  border-radius:var(--stm-radius-sm)!important;border-color:var(--stm-color-border)!important;box-shadow:none!important;
}
html[lang^="zh"] body.stm-ui-refined .stm-rp:not(.rp-catalog-hero):not(.rp-product-hero):not(.rp-solution-hero):not(.rp-metrics):not(.rp-cta):not(.stm-content-compact):not(.stm-core-text-only) {padding-block:var(--stm-space-section)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp.stm-content-compact {
  padding-block:32px!important;min-height:0!important;
}
html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-wrap {border-top:1px solid var(--stm-color-border);padding-top:28px}
html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-heading {margin-bottom:14px!important}
html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-heading h2 {font-size:26px!important;line-height:1.4!important}
html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-eyebrow {display:none!important}
html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-content-pending {padding:0!important;margin:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-content-pending a {margin:0!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-core-panel.stm-capability-text:not([hidden]) {min-height:180px!important;max-width:720px!important}
html[lang^="zh"] body.stm-ui-refined .stm-capability-symbol {width:64px;height:64px;object-fit:contain;background:#eaf4ff;padding:12px;border-radius:10px;margin-top:24px}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-inner {padding:104px 0 104px 24px!important}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero h1 {font-size:clamp(40px,3.7vw,54px)!important;line-height:1.24!important}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-hero-side,html[lang^="zh"] body.stm-ui-refined.home .stm-rh-scroll {display:none!important}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-pillars {opacity:.78!important;gap:24px!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products {padding-block:var(--stm-space-section)!important;background:var(--stm-color-bg)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-panel {border-radius:var(--stm-radius-md)!important;box-shadow:none!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-tabs strong {font-size:19px!important;font-weight:600!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-panel-copy h3 {font-size:26px!important;line-height:1.35!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-panel-copy .stm-rh-tags span {background:#16455c80!important;border-color:#9fbccc40!important;font-size:13px!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-cap-product img {transition:transform .2s!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-cap-product:hover img {transform:translateY(-3px)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-solutions .stm-rh-scene-detail {box-shadow:0 8px 22px #00264220!important;border-radius:var(--stm-radius-md)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-rh-projects {padding-block:var(--stm-space-section)!important}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-insights {padding-block:72px!important}
@media(hover:hover) and (pointer:fine) {
 html[lang^="zh"] body.stm-ui-refined :is(.rp-product-card,.rp-application-grid article):hover {transform:translateY(-3px)!important;border-color:#8bbddd!important;box-shadow:0 6px 18px #1739540d!important}
}
@media(max-width:1024px) {
 html[lang^="zh"] body.stm-ui-refined .rp-overview>.rp-wrap {align-items:start!important}
 html[lang^="zh"] body.stm-ui-refined .rp-overview-points {grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html[lang^="zh"] body.stm-ui-refined .rp-overview>.rp-wrap {grid-template-columns:1fr!important;gap:28px!important}
}
@media(max-width:767px) {
 html[lang^="zh"] {--stm-content-width:calc(100% - 40px);--stm-space-section:var(--stm-space-section-mobile)}
 html[lang^="zh"] body.stm-ui-refined :is(.stm-rh-heading,.rp-heading) h2 {font-size:28px!important;line-height:1.35!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp h1 {font-size:34px!important;line-height:1.25!important}
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-inner {padding:104px 0 116px!important}
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero h1 {font-size:36px!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-solutions .stm-rh-scene-options {padding-top:var(--stm-scene-panel-height,500px)!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-solutions .stm-rh-scene-detail {max-width:100%!important}
 html[lang^="zh"] body.stm-ui-refined .rp-overview-points {grid-template-columns:1fr!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp.stm-content-compact {padding-block:24px!important}
 html[lang^="zh"] body.stm-ui-refined .stm-content-compact .rp-heading h2 {font-size:24px!important}
}
@media(prefers-reduced-motion:reduce) {
 html[lang^="zh"] body.stm-ui-refined :is(.stm-rh,.stm-rp) * {scroll-behavior:auto!important;transition:none!important;animation:none!important}
 /* The existing homepage section rules include IDs and multiple body classes. */
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand :is(#stm-products,#stm-solutions) :is(img,button,.stm-rh-scene-detail,.stm-rh-product-panel) {transition:none!important;animation:none!important;scroll-behavior:auto!important}
 html[lang^="zh"] body.stm-ui-refined :is(.rp-product-card,.rp-application-grid article):hover,html[lang^="zh"] body.stm-ui-refined #stm-products .stm-cap-product:hover img {transform:none!important}
}
}

/* Catalogue controls and reusable image/text card states. Legacy overrides are
   scoped to the Chinese design layer for the cascade reason documented above. */
@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh,.stm-rp,.stm-contact) {font-family:var(--stm-zh-font)!important}
html[lang^="zh"] body.stm-ui-refined .stm-more-filters {margin:12px 0 28px;border-block:1px solid var(--stm-color-border);padding:12px 0}
html[lang^="zh"] body.stm-ui-refined .stm-more-filters summary {cursor:pointer;min-height:44px;align-content:center;color:var(--stm-color-primary-dark);font-size:15px}
html[lang^="zh"] body.stm-ui-refined .stm-more-filters summary span {font-size:14px;color:var(--stm-color-text-secondary);margin-left:14px}
html[lang^="zh"] body.stm-ui-refined .stm-more-filters[open] .rp-filter-rows {margin-top:18px}
html[lang^="zh"] body.stm-ui-refined .stm-filter-selected:not([hidden]) {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0 20px}
html[lang^="zh"] body.stm-ui-refined .stm-filter-selected>div {display:flex;gap:8px;flex-wrap:wrap}
html[lang^="zh"] body.stm-ui-refined .stm-filter-selected button {padding:7px 10px;background:#e5f1fb;border:1px solid #b8d6ed;color:#005b9f;border-radius:6px;min-height:36px;font-size:14px}
html[lang^="zh"] body.stm-ui-refined .stm-filter-selected>[data-rp-reset] {background:none;border-color:transparent}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-product-photo {aspect-ratio:4/3;height:auto!important;padding:0!important;display:flex!important;align-items:center;justify-content:center;background:#f0f5fa!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-product-photo img {width:72%!important;height:72%!important;object-fit:contain!important}
html[lang^="zh"] body.stm-ui-refined .rp-product-card h3 {font-size:22px!important;line-height:1.35!important}
html[lang^="zh"] body.stm-ui-refined .rp-product-card .rp-muted {font-size:15px!important}
html[lang^="zh"] body.stm-ui-refined .rp-product-card .rp-chips span {font-size:13px!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-system-feature.stm-system-text {grid-template-columns:1fr 1fr!important;min-height:0!important}
html[lang^="zh"] body.stm-ui-refined .stm-system-text .rp-feature-thumbs {display:none!important}
html[lang^="zh"] body.stm-ui-refined .stm-system-outline {margin-top:auto;padding-top:24px;font-size:14px!important;line-height:1.9!important;color:#526e85}
html[lang^="zh"] body.stm-ui-refined .stm-system-summary {text-align:left;padding:24px;border-left:1px solid #c6dced}
html[lang^="zh"] body.stm-ui-refined .stm-system-summary h3 {font-size:20px!important}
html[lang^="zh"] body.stm-ui-refined .stm-system-summary p {margin:18px 0 0!important;font-size:15px!important;text-align:left!important}
html[lang^="zh"] body.stm-ui-refined .stm-system-summary :is(strong,span) {display:block}
html[lang^="zh"] body.stm-ui-refined .stm-system-summary span {color:var(--stm-color-text-secondary)}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-case-carousel article.stm-project-text {min-height:0!important;background:#f0f6fc!important;color:var(--stm-color-text)!important;border:1px solid var(--stm-color-border);border-radius:8px!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-case-carousel .stm-project-text>div {position:static!important;padding:28px!important}
html[lang^="zh"] body.stm-ui-refined .rp-case-carousel .stm-project-text h3 {display:block!important;margin:12px 0!important;font-size:22px!important}
html[lang^="zh"] body.stm-ui-refined .stm-project-text :is(p,small) {color:var(--stm-color-text-secondary)!important;font-size:15px!important}
html[lang^="zh"] body.stm-ui-refined .stm-project-text a {color:var(--stm-color-primary-dark)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-case-detail.stm-project-text:not([hidden]) {grid-template-columns:1fr!important;min-height:0!important;max-width:760px;background:#f0f6fc;padding:28px;border:1px solid var(--stm-color-border);border-radius:8px}
html[lang^="zh"] body.stm-ui-refined .rp-application-grid {grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}
html[lang^="zh"] body.stm-ui-refined .rp-photo-controls[hidden] {display:none!important}
@media(max-width:900px) {
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-explorer .rp-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px) {
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-explorer .rp-product-grid {grid-template-columns:1fr!important}
 html[lang^="zh"] body.stm-ui-refined .rp-product-card h3 {overflow-wrap:anywhere!important;word-break:normal!important}
}
html[lang^="zh"] body.stm-ui-refined .rp-config-intro h2 {text-wrap:balance}
html[lang^="zh"] body.stm-ui-refined .rp-core-tabs {scrollbar-width:thin;scrollbar-color:#547e92 transparent}
html[lang^="zh"] body.stm-ui-refined .rp-core-tabs::-webkit-scrollbar {height:6px;background:transparent}
html[lang^="zh"] body.stm-ui-refined .rp-core-tabs::-webkit-scrollbar-thumb {background:#547e92;border-radius:3px}
html[lang^="zh"] body.stm-ui-refined :is(.rp-eyebrow,.stm-rh-eyebrow) {font-size:12px!important;line-height:1.5!important}
html[lang^="zh"] body.stm-ui-refined .rp-system-cards button[aria-selected="true"] span {color:#c3dce9!important}
@media(max-width:767px) {
 html[lang^="zh"] body.stm-ui-refined .stm-more-filters summary span {display:block;margin:4px 0 0 16px}
 html[lang^="zh"] body.stm-ui-refined .rp-filter-row button {min-height:36px!important;font-size:13px!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-system-feature.stm-system-text {grid-template-columns:1fr!important}
 html[lang^="zh"] body.stm-ui-refined .stm-system-summary {padding:20px 0 0;border-left:0;border-top:1px solid #c6dced}
 html[lang^="zh"] body.stm-ui-refined .rp-application-grid {grid-template-columns:1fr!important}
}
}

@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined .rp-dark :is(.rp-muted,.rp-heading p,.rp-support-grid p,.rp-core-panel p) {color:#d2e4f0!important}
html[lang^="zh"] body.stm-ui-refined .rp-support-band {isolation:isolate}
html[lang^="zh"] body.stm-ui-refined .rp-support-band::before {content:"";position:absolute;inset:0;background:rgba(0,25,43,.78);z-index:0;pointer-events:none}
html[lang^="zh"] body.stm-ui-refined .rp-support-band>.rp-wrap>:is(.rp-heading,.rp-support-grid) {position:relative;z-index:1}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-result-grid.stm-deliverable-gallery {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:auto!important;grid-auto-rows:auto!important;gap:20px!important;min-height:0!important}
html[lang^="zh"] body.stm-ui-refined .stm-deliverable-card {margin:0;min-width:0;background:white;border:1px solid var(--stm-color-border);border-radius:8px;overflow:hidden}
html[lang^="zh"] body.stm-ui-refined .stm-result-open {display:block!important;position:relative;width:100%;aspect-ratio:4/3;border:0;padding:0;background:#062235!important;cursor:zoom-in;border-radius:0}
html[lang^="zh"] body.stm-ui-refined .stm-result-open>img {display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
html[lang^="zh"] body.stm-ui-refined .stm-result-open>span {position:absolute;top:12px;right:12px;color:white;background:#082134;padding:8px;border-radius:4px}
html[lang^="zh"] body.stm-ui-refined .stm-deliverable-card figcaption {padding:20px}
html[lang^="zh"] body.stm-ui-refined .stm-deliverable-card h3 {font-size:19px!important;line-height:1.5!important;margin:0 0 8px!important}
html[lang^="zh"] body.stm-ui-refined .stm-deliverable-card p {font-size:14px!important;color:var(--stm-color-text-secondary)!important;margin:0!important}
html[lang^="zh"] body.stm-ui-refined .stm-field-proof {margin-top:48px;padding-top:32px;border-top:1px solid var(--stm-color-border)}
html[lang^="zh"] body.stm-ui-refined .stm-field-proof>h3 {font-size:24px!important;margin:0 0 8px!important}
html[lang^="zh"] body.stm-ui-refined .stm-field-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}
html[lang^="zh"] body.stm-ui-refined .stm-field-grid figure {margin:0}
html[lang^="zh"] body.stm-ui-refined .stm-field-grid img {width:100%;aspect-ratio:3/2;object-fit:cover;object-position:center 70%;border-radius:8px}
html[lang^="zh"] body.stm-ui-refined .stm-field-grid figcaption {padding-top:12px;font-size:15px;line-height:1.8}
html[lang^="zh"] body.stm-ui-refined .stm-field-grid p {font-size:14px!important;color:var(--stm-color-text-secondary)!important;margin:4px 0 0!important}
html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context {padding:18px;background:#e8f3fc;border:1px solid #c7dfef;border-radius:8px;margin-bottom:24px}
html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context label {display:block;font-size:15px;font-weight:600;margin-bottom:10px}
html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context>div {display:flex;gap:12px;align-items:center}
html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context input {flex:1;min-width:0;background:white;border:1px solid #c3d9e9;border-radius:6px;font-size:16px;padding:12px;color:#102f48}
html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context button {min-height:44px;padding:8px 12px;background:white!important;color:#005aa8!important;border:1px solid #b8d6ed!important;border-radius:6px;flex-shrink:0}
html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context small {display:block;font-size:14px;color:#4d657b;margin-top:10px}
@media(max-width:767px){
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-result-grid.stm-deliverable-gallery {grid-template-columns:1fr!important;gap:16px!important}
 html[lang^="zh"] body.stm-ui-refined .stm-field-grid {grid-template-columns:1fr}
 html[lang^="zh"] body.stm-ui-refined .stm-inquiry-context {padding:14px}
}
}

@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined .stm-result-context {margin:0 0 24px;max-width:760px}
html[lang^="zh"] body.stm-ui-refined .stm-result-context h3 {font-size:22px!important;margin:0 0 8px!important}
html[lang^="zh"] body.stm-ui-refined .stm-result-context p {margin:0!important}
}

/* Text-only capabilities: no visual-canvas reservation; image/mixed sections keep their layout. */
@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp.rp-core.stm-core-text-only {min-height:0!important;padding-block:48px!important}
html[lang^="zh"] body.stm-ui-refined .stm-core-text-only .rp-heading {margin-bottom:24px!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-core-text-only .rp-core-grid {grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-core-text-only .rp-core-tabs {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:8px!important;border:0!important;overflow:visible!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-core-text-only .rp-core-tabs button {min-width:0!important;width:100%!important;white-space:normal!important;padding:14px 16px!important;align-items:center!important;border:1px solid #31566e!important;line-height:1.5!important}
html[lang^="zh"] body.stm-ui-refined .stm-core-text-only .rp-core-tabs button span {white-space:normal!important;overflow-wrap:anywhere}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-core-text-only .rp-core-panel.stm-capability-text:not([hidden]) {min-height:0!important;max-width:760px!important;padding:0!important}
html[lang^="zh"] body.stm-ui-refined .stm-capability-heading {display:flex;align-items:center;gap:12px;margin-bottom:12px}
html[lang^="zh"] body.stm-ui-refined .stm-capability-heading h3 {margin:0!important}
html[lang^="zh"] body.stm-ui-refined .stm-capability-heading .stm-capability-symbol {display:block;width:32px!important;height:32px!important;flex:0 0 32px;object-fit:contain;background:transparent;padding:0;margin:0;border-radius:0;filter:brightness(0) invert(1);opacity:.85}
html[lang^="zh"] body.stm-ui-refined .stm-core-text-only .rp-core-panel>p {margin:0!important}
@media(max-width:767px){
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp.rp-core.stm-core-text-only {padding-block:36px!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-core-text-only .rp-core-tabs {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-core-text-only .rp-core-tabs button {padding:12px!important;font-size:15px!important;gap:8px!important}
}
}

/* Fluid display wrappers, bounded reading columns. Existing Chinese layer contains
   legacy important declarations; these semantic overrides stay in that same layer.
   No position/overflow/stacking reset on shared wrappers (R01 depends on static wrap). */
@media(max-width:359px){html[lang^="zh"]{--stm-content-width:calc(100% - 32px)}}
@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh-header-inner,.stm-rh-footer-grid) {gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-home .stm-rh-nav {flex:0 1 auto!important;margin-right:auto!important;gap:clamp(18px,2vw,38px)!important}
html[lang^="zh"] body.stm-ui-refined .stm-rh-header-actions {flex-shrink:0!important}
html[lang^="zh"] body.stm-ui-refined .stm-rh-footer-grid>div {min-width:0;max-width:26rem}
html[lang^="zh"] body.stm-ui-refined .stm-rh-footer-contact p {overflow-wrap:anywhere}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero {height:auto!important;min-height:clamp(36rem,82svh,60rem)!important}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-inner {min-height:inherit!important;height:auto!important;padding:clamp(112px,14svh,184px) 0 110px!important;justify-content:flex-start!important}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-copy {width:58%!important;max-width:54rem!important}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero h1 {font-size:var(--stm-hero-title)!important;line-height:1.24!important}
html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-lead {max-width:40em!important;font-size:clamp(1rem,calc(.9rem + .12vw),1.125rem)!important}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-intro-grid {grid-template-columns:minmax(0,34rem) minmax(0,47.5rem) minmax(120px,1fr)!important;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-intro-grid>p {max-width:var(--stm-reading-width)!important}
html[lang^="zh"] body.stm-ui-refined :is(.stm-rh-heading,.rp-heading) h2 {font-size:clamp(1.875rem,calc(1.45rem + .8vw),2.75rem)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-layout {grid-template-columns:clamp(230px,18%,330px) minmax(0,1fr)!important;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-cap-panel {height:clamp(520px,30vw,780px)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-panel-copy {width:min(54%,720px)!important;padding:clamp(28px,2.3vw,60px)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-panel-copy h3 {font-size:clamp(1.625rem,calc(1.25rem + .65vw),2.25rem)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-solutions .stm-rh-scene-landscape {height:clamp(620px,68svh,820px)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-rh-about .stm-rh-about-desc {max-width:var(--stm-reading-width)!important;font-size:clamp(1rem,calc(.9rem + .12vw),1.125rem)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-rh-about .stm-rh-about-grid {min-height:clamp(400px,32vw,580px)!important;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr) minmax(0,1fr)!important;gap:32px var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined.home #stm-rh-about .stm-rh-about-title h2 {font-size:clamp(2rem,calc(1.4rem + .9vw),3rem)!important}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-insight-grid article {max-width:52rem}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-insight-grid article p {max-width:38em}
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-project-card {min-height:clamp(340px,27vw,540px)!important}
@media(max-width:1100px){
 html[lang^="zh"] body.stm-ui-refined.stm-reference-home .stm-rh-menu {display:block!important;margin-left:auto!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-home .stm-rh-header-actions>.stm-rh-button {display:none!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-home .stm-rh-nav {display:none!important;position:absolute!important;left:0!important;right:0!important;top:100%!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;background:#f7fbff!important;padding:12px 4%!important;max-height:calc(100dvh - 100px);overflow-y:auto}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-home .stm-rh-nav.is-open {display:flex!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-home .stm-rh-nav a {padding:12px!important;font-size:15px!important}
 html[lang^="zh"] body.stm-ui-refined.home .stm-rh-intro-grid {grid-template-columns:1fr 1fr!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-rh-about .stm-rh-about-grid {grid-template-columns:64% 1fr!important;grid-template-areas:"title ." "description ." "stats stats"!important}
}
@media(max-width:767px){
 html[lang^="zh"] body.stm-ui-refined :is(.stm-rh-header-inner,.stm-rh-footer-grid) {gap:16px!important}
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero {min-height:600px!important}
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-inner {padding:100px 0 116px!important}
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero-copy {width:100%!important;max-width:100%!important}
 html[lang^="zh"] body.stm-ui-refined.home.stm-reference-home.stm-official-brand .stm-rh-hero h1 {font-size:clamp(2rem,calc(1.4rem + 3vw),2.375rem)!important}
 html[lang^="zh"] body.stm-ui-refined.home .stm-rh-intro-grid {grid-template-columns:1fr!important;gap:20px!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-cap-panel {height:600px!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-panel-copy {width:100%!important;padding:24px!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-solutions .stm-rh-scene-landscape {height:auto!important;min-height:0!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-rh-about .stm-rh-about-grid {min-height:0!important}
 html[lang^="zh"] body.stm-ui-refined.home .stm-rh-project-card {min-height:340px!important}
}
}

@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined.home .stm-rh-intro-grid>div:last-child {justify-self:end}
@media(max-width:767px){
 html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-tabs strong {font-size:16px!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-tabs button {padding:12px 10px!important;gap:8px!important}
 html[lang^="zh"] body.stm-ui-refined.home #stm-products .stm-rh-product-tabs button>span {font-size:14px!important}
}
}

/* Template-specific content limits. Display wrappers remain fluid at every desktop width. */
@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp h1 {font-size:var(--stm-hero-title)!important;overflow-wrap:anywhere}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-product-hero h1 {font-size:clamp(2.375rem,calc(1.75rem + 1.1vw),4rem)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages :is(.rp-catalog-hero,.rp-solutions-hero,.rp-solution-hero) {height:auto!important;min-height:clamp(540px,72svh,820px)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-hero-copy {max-width:var(--stm-reading-width)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-hero-copy>p:not(.rp-eyebrow) {font-size:clamp(1rem,calc(.9rem + .12vw),1.125rem)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-product-hero-grid {grid-template-columns:minmax(0,min(44%,47.5rem)) minmax(0,1fr)!important;gap:var(--stm-layout-gap)!important;min-height:clamp(380px,58svh,760px)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-main-product {height:clamp(320px,29vw,720px)!important;width:100%;max-width:76rem;justify-self:center}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-product-hero-grid h2 {font-size:clamp(1.25rem,calc(1rem + .5vw),2rem)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-explorer .rp-product-grid {grid-template-columns:repeat(var(--stm-product-page-size,4),minmax(0,30rem))!important;gap:clamp(18px,1.5vw,36px)!important;justify-content:center!important}
html[lang^="zh"] body.stm-ui-refined .rp-product-card>div {padding:clamp(20px,1.6vw,32px)!important}
html[lang^="zh"] body.stm-ui-refined .rp-product-card .rp-muted {max-width:36em}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-overview>.rp-wrap {grid-template-columns:minmax(0,min(44%,47.5rem)) minmax(0,1fr)!important;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined .rp-overview-points {max-width:84rem;gap:24px!important}
html[lang^="zh"] body.stm-ui-refined .rp-overview-points p {max-width:26em;margin-inline:auto!important}
html[lang^="zh"] body.stm-ui-refined .stm-core-text-only .rp-core-grid {max-width:76rem}
html[lang^="zh"] body.stm-ui-refined :is(.rp-readmore,.rp-config-intro,.stm-system-summary,.rp-case-detail.stm-project-text,.rp-cta p) {max-width:var(--stm-reading-width)!important}
html[lang^="zh"] body.stm-ui-refined .rp-spec-grid {grid-template-columns:minmax(180px,18%) minmax(0,1fr)!important;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined .rp-spec-grid table {max-width:90rem}
html[lang^="zh"] body.stm-ui-refined .rp-spec-grid :is(th,td) {overflow-wrap:anywhere}
html[lang^="zh"] body.stm-ui-refined .rp-support-grid p {max-width:30em}
html[lang^="zh"] body.stm-ui-refined .stm-field-grid img {max-height:480px}
html[lang^="zh"] body.stm-ui-refined .rp-case-carousel article.stm-project-text {flex-basis:clamp(280px,31%,560px)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-case-switcher {grid-template-columns:clamp(180px,18%,300px) minmax(0,1fr)!important;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined .rp-application-grid {gap:clamp(18px,1.5vw,32px)!important}
html[lang^="zh"] body.stm-ui-refined .rp-application-grid article {min-width:0}
html[lang^="zh"] body.stm-ui-refined.stm-contact-design .ct-contact-grid {grid-template-columns:minmax(0,38rem) minmax(0,52rem)!important;justify-content:center;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined.stm-contact-design .ct-form-card {width:100%;max-width:52rem;justify-self:start}
html[lang^="zh"] body.stm-ui-refined.stm-contact-design .ct-direct {max-width:38rem}
html[lang^="zh"] body.stm-ui-refined.stm-contact-design :is(.ct-lead,.ct-visit-panel>div,.ct-location p) {max-width:var(--stm-reading-width)!important}
html[lang^="zh"] body.stm-ui-refined.stm-contact-design .ct-location-panel {grid-template-columns:minmax(0,38rem) minmax(0,1fr)!important;gap:var(--stm-layout-gap)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages.rp-page-gallery .stm-gallery-grid {gap:clamp(18px,1.5vw,32px)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages.rp-page-gallery .stm-gallery-photo {height:clamp(210px,20vw,420px)!important}
html[lang^="zh"] body.stm-ui-refined.stm-reference-pages.rp-page-gallery .stm-gallery-card.is-featured .stm-gallery-photo {height:clamp(280px,25vw,520px)!important}
@media(max-width:1100px){
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-explorer .rp-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-overview>.rp-wrap {grid-template-columns:1fr!important}
 html[lang^="zh"] body.stm-ui-refined.stm-contact-design .ct-contact-grid {grid-template-columns:minmax(240px,.7fr) minmax(0,1fr)!important}
}
@media(max-width:767px){
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp h1 {font-size:clamp(2rem,calc(1.4rem + 3vw),2.375rem)!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages :is(.rp-catalog-hero,.rp-solutions-hero,.rp-solution-hero) {min-height:0!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages :is(.rp-product-hero-grid,.rp-case-switcher,.rp-spec-grid) {grid-template-columns:minmax(0,1fr)!important;gap:24px!important;min-height:0!important}
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-main-product {height:280px!important}
 html[lang^="zh"] body.stm-ui-refined.stm-contact-design :is(.ct-contact-grid,.ct-location-panel) {grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 html[lang^="zh"] body.stm-ui-refined .rp-case-carousel article.stm-project-text {flex-basis:88%!important}
}
@media(max-width:600px){html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .rp-explorer .rp-product-grid {grid-template-columns:minmax(0,1fr)!important}}
}

/* Final Visual Polish: desktop all-text core groups only. */
@layer stm-chinese {
@media(min-width:1600px){
 html[lang^="zh"] body.stm-ui-refined .stm-core-text-only :is(.rp-heading,.rp-core-grid) {max-width:clamp(76rem,55vw,100rem);margin-inline:auto}
}
}

@layer stm-chinese {
html[lang^="zh"] body.stm-ui-refined #stm-main-content[role="main"]{scroll-margin-top:var(--stm-header-height,88px)}
/* Keep the secondary consultation link in the matrix flow, clear of search. */
@media(min-width:768px){
 html[lang^="zh"] body.stm-ui-refined.stm-reference-pages .stm-rp .rp-consult-float{position:static!important;inset:auto!important;width:max-content!important;margin:24px 0 0 auto!important}
}
}

html[lang^="zh"] body.single-product #stm-product-detail-hero :is(
  .nd-summary, .sd-intro, .ac-hero-copy > p, .su-description, .oi-hero-copy > p, .rp-product-hero-grid > div > .rp-muted
) {
  white-space: pre-line;
}
