/* 视觉豁免:官网自有纸色、衬线、墨阶体系(2026-10-22 定) */
/* 2026-11-28 fifth batch, part three: one order for the whole site. Loaded after every other sheet in <head>;
   page sheets linked inside <main> (services, cooperate, catalog …) come later, so rules that must win over them
   repeat a class for weight instead of using !important. */

/* ------------------------------------------------------------------ inner-page head: title and plate as one
   Wide (1100+): two columns, 7 : 5. The plate is a four-column grid of square cells; one large tile spans 2 x 2.
   Its top sits level with the page label, so the title block and the plate start on one line.
   Narrow: the plate folds into one row of small tiles under the title; tiles that do not fit the row are clipped. */
.ph-split.ph-split{--ph-g:16px}
.ph-copy{min-width:0}
.ph-art{position:relative;min-width:0}
.ph-grid{display:grid;gap:var(--ph-g)}
.ph-t{position:relative;aspect-ratio:1;min-width:0}
.ph-f{position:absolute;inset:0;overflow:hidden;border-radius:2px;background:#ece8de}
.ph-f::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(20,20,19,.09);pointer-events:none}
.ph-art .ph-f>svg,.ph-art .ph-f>img{position:absolute;display:block;width:100%;height:100%;inset:0;max-width:none;object-fit:cover}
.ph-art .ph-f>img[style]{inset:auto}
/* the slow change: the incoming face lies over the old one and fades in */
.ph-f.ph-next{opacity:0;transition:opacity 1.6s cubic-bezier(.4,0,.2,1)}
.ph-f.ph-next.ph-on{opacity:1}

@media (min-width:1100px){
  .ph-split.ph-split{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(48px,5vw,88px);align-items:start}
  .ph-split.ph-split>.ph-copy>:first-child{margin-top:0}
  .ph-art{container-type:inline-size;margin-top:6px}
  .ph-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:calc((100cqi - 3 * var(--ph-g)) / 4)}
  .ph-t{grid-area:var(--a);aspect-ratio:auto}
  .ph-t.ph-x{display:none}
  /* a head whose title block is long keeps its plate centred on it */
  .ph-split.ph-split:has(.ph-r2){align-items:center}
  .a-hero.ph-split.ph-split{align-items:start}
  .a-hero.ph-split .a-hero-copy{margin-top:28px}
}
@media (max-width:1099.98px){
  .ph-art{margin-top:36px}
  .ph-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));grid-template-rows:auto;grid-auto-rows:0;row-gap:0;column-gap:12px;overflow:hidden}
  .a-hero.ph-split.ph-split{display:block}
  .a-hero.ph-split .a-hero-copy{margin-top:20px}
}
@media (max-width:559.98px){
  .ph-art{margin-top:28px}
  .ph-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));column-gap:8px}
}

/* entrance: the copy settles line by line as before; the tiles follow one after another, large tile first */
.ph-split.ph-split>*{animation:none}
@media (prefers-reduced-motion:no-preference){
  .ph-copy>*{animation:mg-settle .72s var(--mg-ease) both}
  .ph-copy>:nth-child(1){animation-delay:.04s}
  .ph-copy>:nth-child(2){animation-delay:.12s}
  .ph-copy>:nth-child(3){animation-delay:.22s}
  .ph-copy>:nth-child(4){animation-delay:.32s}
  .ph-copy>:nth-child(n+5){animation-delay:.42s}
  .ph-t{animation:ph-in .9s var(--mg-ease) both;animation-delay:calc(.3s + var(--k,0) * 90ms)}
  @keyframes ph-in{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
}
@media (prefers-reduced-motion:reduce){.ph-t,.ph-copy>*{animation:none}.ph-f.ph-next{transition:none}}

/* ------------------------------------------------------------------ five sizes for the whole site (home first screen excluded)
   1 page title (h1, and display figures)   48px wide · 30px phone
   2 block title (h2)                       32px wide · 24px phone
   3 sub-title (h3), page lead              20px      · 18px phone
   4 running text, lists, tables, buttons   16px
   5 labels, captions, meta, badges         13px
   Drawings (business map, showcase, previews, stage, tile plates) keep their own lettering. */
:root{--t1:clamp(34px,3.4vw,48px);--t2:clamp(26px,2.25vw,32px);--t3:20px;--t4:16px;--t5:13px;
  --block:96px;--block-head:40px;--head-text:16px}
@media (max-width:767px){:root{--t1:30px;--t2:24px;--t3:18px;--block:64px;--block-head:28px}}
body:not([data-page="/"]) main :is(h1):not(:is(.sc,.stage,.pv,.bm,svg) *){font-size:var(--t1);line-height:1.25;letter-spacing:0}
body:not([data-page="/"]) main :is(h2):not(:is(.sc,.stage,.pv,.bm,svg,.footer-grid) *){font-size:var(--t2);line-height:1.35;letter-spacing:0}
body:not([data-page="/"]) main :is(h3):not(:is(.sc,.stage,.pv,.bm,svg) *){font-size:var(--t3);line-height:1.5}
body:not([data-page="/"]) main :is(h4,p,li,dd,dt,td,th,blockquote,summary,.button,figure>div):not(:is(.sc,.stage,.pv,.bm,svg) *){font-size:var(--t4)}
body:not([data-page="/"]) main :is(.lead,.cat-lead,.a-hero-copy p,.page-hero>p:not(.section-label),.ph-copy>p:not(.section-label):not(.eyebrow):not(.audience-line)):not(:is(.sc,.stage,.pv,.bm) *){font-size:var(--t3);line-height:1.75}
body:not([data-page="/"]) main :is(.section-label,.eyebrow,.cat-kicker,.a-label,.product-category,.mp-kicker,.audience-line,figcaption,small,thead th,.source-badge,.status-badge,.cat-card-description,.xr-note,.ml-kind,.coop-no,.gen-no,.plate-dir,.cat-back,.rwd-meta dt,.rwd-meta dd,.meta,.caption,.note,.crumbs,.crumbs a,.section-toc a,.section-toc .eyebrow,.family-nav a,.section-nav a):not(:is(.sc,.stage,.pv,.bm,svg) *){font-size:var(--t5)}
body:not([data-page="/"]) main :is(.lead,.cat-lead,.ph-copy>p:not(.section-label):not(.eyebrow):not(.audience-line)){max-width:34em;text-wrap:pretty}

/* ------------------------------------------------------------------ partner wall: one grid of equal cells on hairlines,
   every logo in the same ink and about the same visual weight (heights from partners.py), wordmarks in the serif */
.partner-section h2{font:400 var(--t3)/1.4 var(--serif);margin:0 0 24px}
.partner-section .partner-note{margin:-12px 0 24px;font-size:14px;line-height:1.7;color:var(--muted);max-width:65ch}
.partner-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.partner-logo{display:flex;align-items:center;justify-content:center;width:auto;min-width:0;height:104px;margin:0;padding:16px 20px;background:none;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;flex:none;transition:none}
.partner-logo:hover{transform:none;box-shadow:none}
.partner-logo img{display:block;width:auto;height:var(--h,34px);max-width:100%;max-height:none;object-fit:contain;filter:none;opacity:.82;transition:opacity .3s}
.partner-logo:hover img{filter:none;opacity:1}
.partner-word{display:flex;flex-direction:column;align-items:center;gap:2px;font-family:var(--serif);font-weight:600;color:#141413;opacity:.82;text-align:center;line-height:1.3}
.partner-word>span:first-child{font-size:var(--t5);font-weight:500;letter-spacing:.04em}
.partner-word>span:last-child{font-size:var(--t3);letter-spacing:.06em}
@media (max-width:1023px){.partner-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:767px){
  .partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .partner-logo{height:80px;padding:12px}
  .partner-logo img{height:calc(var(--h,34px) * .8)}
  .partner-word>span:last-child{font-size:16px}
  .partner-grid>.partner-logo:last-child:nth-child(odd){grid-column:1/-1}  /* 2026-11-29: an odd last cell takes the whole row */
}

/* ------------------------------------------------------------------ one rhythm
   between top-level blocks 144 (72 + hairline + 72) · tablet 112 · phone 88
   between blocks inside a block (service sections, sub-blocks) 96 · phone 64
   block title to its content 40 · phone 28;  title to its intro 16
   The hairline between blocks runs exactly over the content column, not out into the page gutter. */
:root{--gutter:64px;--block:72px;--sub:48px;--head-gap:40px}
@media (max-width:1100px){:root{--gutter:40px;--block:56px}}
@media (max-width:800px){:root{--gutter:28px;--block:44px;--sub:32px;--head-gap:28px}}
@media (max-width:420px){:root{--gutter:22px}}
body:not([data-page="/"]) main .section{padding-top:var(--block);padding-bottom:var(--block)}
body:not([data-page="/"]) main :is(.section+.section.wrap,.page-hero+.section,.ph-split+.section,.page-hero+link+.section,.section+link+.section.wrap){border-top:0;background-image:linear-gradient(var(--line),var(--line));background-repeat:no-repeat;background-size:calc(100% - 2 * var(--gutter)) 1px;background-position:50% 0}
.partner-section.wrap{border-top:0;background-image:linear-gradient(var(--line),var(--line));background-repeat:no-repeat;background-size:calc(100% - 2 * var(--gutter)) 1px;background-position:50% 0;padding-top:var(--block);padding-bottom:var(--block)}
body:not([data-page="/"]) main .section-heading{margin-bottom:var(--head-gap)}
body:not([data-page="/"]) main .section-heading+.section-intro{margin-top:-24px}
body:not([data-page="/"]) main .service-legacy .service-section{padding-top:var(--sub);padding-bottom:var(--sub)}
body:not([data-page="/"]) main .service-legacy .section{padding-top:var(--block);padding-bottom:var(--block)}
/* a full-width block keeps its title and intro on the same two columns as the split blocks around it */
@media (min-width:1024px){
  body:not([data-page="/"]) main .section-wide{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:var(--col-gap);align-items:start}
  body:not([data-page="/"]) main .section-wide>*{grid-column:1/-1;min-width:0}
  body:not([data-page="/"]) main .section-wide>.section-heading{grid-column:1;margin:0 0 var(--head-gap)}
  body:not([data-page="/"]) main .section-wide>.section-heading+.section-intro{grid-column:2;margin:0 0 var(--head-gap);max-width:40em}
  body:not([data-page="/"]) main .section-split>.section-intro{max-width:40em}
}
/* running text holds a Chinese reading measure: about 40 characters */
body:not([data-page="/"]) main :is(.prose p,.section-intro,.section-split>p,.service-section>p,.honor-copy>p){max-width:40em}

/* ------------------------------------------------------------------ tables: columns follow their content */
body:not([data-page="/"]) main :is(.ref-table,.std-table,.std-matrix){font-size:var(--t4);line-height:1.7}
@media (min-width:768px){
  body:not([data-page="/"]) main :is(.ref-table,.std-table) :is(tbody th,td){min-width:6.5em}
  body:not([data-page="/"]) main .ref-table tbody th{width:auto;min-width:8em;max-width:15em}
  body:not([data-page="/"]) main .ref-table:has(thead th:nth-child(4)) td:last-child{width:auto}
  body:not([data-page="/"]) main .ref-table td a{white-space:normal}
}
.cell-link{display:block;margin-top:6px;font-size:var(--t5)}
.cell-link a{border-bottom:1px solid currentColor;padding-bottom:1px}
.std-code{display:block;margin-top:2px;font:var(--t5)/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);font-weight:400}
.ref-table td:empty::before{content:none}

/* ------------------------------------------------------------------ credentials and standards: plain, upright plates
   (one paper, one ink hairline inside a hairline, no gradient, no gold) */
body:not([data-page="/"]) main .plates{gap:16px}
body:not([data-page="/"]) main .plate{background:#fff;border:1px solid var(--line);box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 6px #e4e2da;min-height:0;padding:28px 20px 18px}
body:not([data-page="/"]) main .plate-dir{color:var(--muted);letter-spacing:.08em}
body:not([data-page="/"]) main .plate-org{font-size:var(--t5);font-weight:600;margin-top:20px}
body:not([data-page="/"]) main .plate-year{font-size:var(--t5)}
body:not([data-page="/"]) main .plate-std{font-size:var(--t3);margin-top:16px}
body:not([data-page="/"]) main .plate-title{font-size:var(--t5);color:var(--ink);letter-spacing:.12em;margin-top:12px}
body:not([data-page="/"]) main .plate-foot{border-top-color:var(--line);color:var(--muted);font-size:var(--t5);margin-top:20px}
body:not([data-page="/"]) main .plate-foot b{color:var(--ink);font-size:var(--t5)}

/* page heads: the same air above and below on every inner page */
body:not([data-page="/"]) main :is(.page-hero,.mast,.a-hero.container,.cat-sample-head){padding-top:var(--block);padding-bottom:var(--block)}
/* a page lead breaks only between words (build.py marks them) */
body:not([data-page="/"]) main .ph-copy :is(.lead,.cat-lead,.a-hero-copy p){word-break:keep-all;overflow-wrap:anywhere}
@media (min-width:1024px){body:not([data-page="/"]) main :is(.section-split,.section-wide)>.section-heading+.section-intro{margin-top:0}}

/* ------------------------------------------------------------------ solution pages: at most three navigations, never four
   site header · section row (the four solutions) · this section's pages (pills, under the head). The page's own
   contents are the sticky contents bar (page-toc.js) once the head has scrolled away, so the left contents list that
   repeated it is dropped wherever the bar is built (three or more blocks). On phones both rows scroll sideways on one line. */
body:not([data-page="/"]) main .service-legacy .service-layout:has(>div>.service-section:nth-of-type(3)){grid-template-columns:minmax(0,1fr)}
body:not([data-page="/"]) main .service-legacy .service-layout:has(>div>.service-section:nth-of-type(3))>.section-toc{display:none}
body:not([data-page="/"]) main .service-legacy .family-nav{margin-top:0;margin-bottom:0;padding-bottom:var(--head-gap)}
body:not([data-page="/"]) main .service-legacy .family-nav a{font-size:var(--t5)}
@media (max-width:767px){
  body:not([data-page="/"]) main .service-legacy .section-nav .container{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:20px;padding-top:12px;padding-bottom:12px}
  body:not([data-page="/"]) main .service-legacy .section-nav .container::-webkit-scrollbar{display:none}
  body:not([data-page="/"]) main .service-legacy .section-nav a{flex:none;white-space:nowrap}
  body:not([data-page="/"]) main .service-legacy .family-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;mask-image:linear-gradient(90deg,#000 88%,transparent)}
  body:not([data-page="/"]) main .service-legacy .family-nav::-webkit-scrollbar{display:none}
  body:not([data-page="/"]) main .service-legacy .family-nav a{flex:none;white-space:nowrap}
}

/* the remaining sizes, each put on its tier */
body:not([data-page="/"]) main :is(.text-link,.xr-name,.file-name,.kit-row,.kit-row a,.exchange-mid b,.tiers span,.flow span,.rule-row span,.ladder span,.coop-line,.ml-line,.link-list a,.cat-generation-list button,.cat-tag-list button,.cat-gen-link,.ladder b,.ml-title,.research-list a,.contact-secondary a,li>div>a){font-size:var(--t4)}
body:not([data-page="/"]) main :is(.nb,time,.ml-date){font-size:var(--t5)}
body:not([data-page="/"]) main :is(.figure-row span,form label,.cat-rubric-file span,details>summary>span,.cat-generation-list button>span,.cat-tag-list button>span,.cat-gen-link>span){font-size:var(--t5)}
body:not([data-page="/"]) main :is(.flow b,.exchange-party b,.coop-name,.contact-email,.place-list b,.service-section h3){font-size:var(--t3)}
body:not([data-page="/"]) main :is(.model-panel-nav a){font-size:var(--t2)}
body:not([data-page="/"]) main :is(.figure-row b){font-size:var(--t1)}
body:not([data-page="/"]) main :is(p,li,td,dd) .nb{font-size:inherit}
body:not([data-page="/"]) main :is(h1,h2,h3) .ph{font-size:inherit}
body:not([data-page="/"]) main ol>li>strong{font-size:var(--t4)}
/* service sections: title, then 16 to its intro, 40 to anything else */
body:not([data-page="/"]) main .service-legacy .service-section>h2{margin:0 0 16px}
body:not([data-page="/"]) main .service-legacy .service-section>h2+:not(.section-intro){margin-top:calc(var(--head-gap) - 16px)}
body:not([data-page="/"]) main .service-legacy .service-section>.section-intro{margin:0 0 calc(var(--head-gap) - 8px)}
body:not([data-page="/"]) main :is(.section-intro,.service-section>p){text-wrap:pretty}
/* the same content-width hairline for the catalogue blocks and the case pages */
body:not([data-page="/"]) main :is(.section+.section.wrap,.page-hero+.section,.ph-split+.section,.page-hero+link+.section,.section+link+.section.wrap,.cat-generations,.cat-families,.cat-delivery,.a-section){border-top:0;background-image:linear-gradient(var(--line),var(--line));background-repeat:no-repeat;background-size:min(100% - 2 * var(--gutter),1376px - 2 * var(--gutter)) 1px;background-position:50% 0}
/* a heading without marked word breaks may still break where it must, rather than run off a phone screen */
body:not([data-page="/"]) main :is(h1,h2,h3){overflow-wrap:anywhere}
body:not([data-page="/"]) main .a-case-item>*{min-width:0}
/* dates and numbers inside running text keep the text's size */
body:not([data-page="/"]) main :is(p,td,th,dd) :is(time,.nb){font-size:inherit}
/* quotations and award names are display lines, not running text */
body:not([data-page="/"]) main .pull-quote{font:400 var(--t2)/1.5 var(--serif)}
body:not([data-page="/"]) main .honor-name{font:400 var(--t2)/1.35 var(--serif);margin:0 0 20px}
body:not([data-page="/"]) main :is(.ref-table,.std-table)+:is(.fact-list,dl){margin-top:var(--head-gap)}
body:not([data-page="/"]) main .service-legacy .service-section>h3:not(:first-child){font-size:var(--t3)}
body:not([data-page="/"]) main .network-track span{font-size:var(--t5)}
body:not([data-page="/"]) main .module-no{font-size:var(--t5)}
body:not([data-page="/"]) main h2 .rwd-count{font-size:var(--t5)}
body:not([data-page="/"]) main .model-tabs button{font-size:var(--t4)}
