/* Shared type scale for desktop, responsive and legacy mobile pages.
   Proportions aligned to siybe.com: bold compact headings, regular airy body. */
:root {
  --siyb-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --siyb-body-size: 15px;
  --siyb-ui-size: 15px;
  --siyb-title-size: 31px;
  --siyb-section-size: 25px;
  --siyb-subtitle-size: 18px;
  --siyb-minor-title-size: 15px;
  --siyb-nav-size: 14px;
  --siyb-table-size: 14px;
  --siyb-note-size: 13px;
  --siyb-aux-size: 12px;
  --siyb-reading-line: 1.7;
  --siyb-heading-line: 1.3;
}

body, body :where(*) {
  font-family: var(--siyb-font) !important;
  font-size: var(--siyb-ui-size) !important;
  font-weight: 400;
}

body :is(h1, h2, h3, h4, h5, h6) { line-height: var(--siyb-heading-line); font-weight: 700; }
body h1 { font-size: var(--siyb-title-size) !important; line-height: 1.2; }
body h2 { font-size: var(--siyb-section-size) !important; }
body h3 { font-size: var(--siyb-subtitle-size) !important; }
body :is(h4, h5, h6) { font-size: var(--siyb-minor-title-size) !important; }
body :is(th, td) { font-size: var(--siyb-table-size) !important; font-weight: 400; }
body th { font-weight: 700; }
body :is(h1, h2, h3, h4, h5, h6, th, td) :where(*) { font-size: inherit !important; font-weight: inherit; }
body :is(.head-a, .inn-a, .main-nav a, .inn-link a, .foot-dl dd a, .mian > nav a) {
  font-size: var(--siyb-nav-size) !important;
  font-weight: 400;
}
body :is(.head-toplf, .inn-link, .map-attr, .news_other, .news_other *) {
  font-size: var(--siyb-note-size) !important;
  font-weight: 400;
}
body .foot-tel span { font-size: var(--siyb-subtitle-size) !important; font-weight: 700; }

body :is(.i_news_show h1, .siyb-product-article .inn-desc h1, .siyb-restored-detail .inn-desc h1) {
  height: auto;
  overflow: visible;
  overflow-wrap: anywhere;
  font-size: var(--siyb-title-size) !important;
  line-height: 1.2;
  font-weight: 700;
}
body :is(.siyb-section-title, .inn-desc-tit h3) { font-size: var(--siyb-section-size) !important; font-weight: 700; }

/* Buttons and emphasized controls use a medium/semibold weight like the reference. */
body :is(button, .button, .btn, input[type="submit"], input[type="button"], .site-nav-contact, .banner-btn) {
  font-weight: 600;
}

/* Legacy content contains pasted spans, font tags and inline pt/px values.
   Inline formatting inherits its paragraph, heading or table cell size. */
body :where(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont:not(:has(:is(.list-page, .list-article, .list-pro, .pro-list)))) {
  font-size: var(--siyb-body-size) !important;
  line-height: var(--siyb-reading-line) !important;
  font-weight: 400;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
}
body :where(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont:not(:has(:is(.list-page, .list-article, .list-pro, .pro-list)))) :where(*) {
  font-size: inherit !important;
  line-height: inherit !important;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont) :is(h2, h3, h4, h5, h6) {
  line-height: var(--siyb-heading-line) !important;
  font-weight: 700;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont) h2 {
  font-size: var(--siyb-section-size) !important;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab) h3 {
  font-size: var(--siyb-subtitle-size) !important;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont) :is(h4, h5, h6) {
  font-size: var(--siyb-minor-title-size) !important;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont) :is(th, td) {
  font-size: var(--siyb-table-size) !important;
  line-height: 1.6 !important;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont) :is(b, strong) {
  font-weight: 700;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab, .inn-desc-cont) :is(sub, sup) {
  font-size: .75em !important;
  line-height: 0 !important;
}
body :is(.news_content, .pro-body, .pro-canshu, .pro-down, .pro-content > .tab) :is(caption, figcaption) {
  font-size: var(--siyb-note-size) !important;
}

@media (max-width: 720px) {
  :root {
    --siyb-ui-size: 14px;
    --siyb-body-size: 14px;
    --siyb-title-size: 26px;
    --siyb-section-size: 21px;
    --siyb-subtitle-size: 17px;
    --siyb-minor-title-size: 14px;
    --siyb-nav-size: 13px;
    --siyb-note-size: 12px;
    --siyb-aux-size: 11px;
  }
}

/* Category sidebars and lists use the primary navigation's type scale. */
body .inn-nav .inn-tit {
  font-size: var(--siyb-nav-size) !important;
  font-weight: 700;
}
body .inn-nav .inn-a {
  font-size: var(--siyb-nav-size) !important;
  font-weight: 400;
}
body.siyb-text-list :is(.pro-list-left h3, .list-pro-box-left h2, .list-article h3) {
  font-size: var(--siyb-nav-size) !important;
  line-height: var(--siyb-heading-line);
  font-weight: 700;
}
body.siyb-text-list :is(.pro-list-left .pro-info, .list-pro-box-left p, .list-article .arc-info),
body.siyb-text-list :is(.pro-list-left .pro-info, .list-pro-box-left p, .list-article .arc-info) :where(*) {
  font-size: var(--siyb-nav-size) !important;
  line-height: var(--siyb-reading-line);
  font-weight: 400;
  color: var(--siyb-muted);
}

/* Company profile and culture share the reading layout. */
body .inn-desc .company-article {
  max-width: 760px;
  margin-inline: auto;
  color: var(--siyb-ink);
  font-size: var(--siyb-body-size) !important;
  line-height: var(--siyb-reading-line) !important;
}
body .inn-desc .company-article h2 {
  margin: 0 0 12px;
  color: var(--siyb-blue);
  font-size: var(--siyb-section-size) !important;
  font-weight: 700;
}
body .inn-desc .company-article h3 {
  margin: 18px 0 8px;
  font-size: var(--siyb-subtitle-size) !important;
  font-weight: 600;
}
body .inn-desc .company-article p {
  margin: 0 0 12px;
  text-indent: 0;
}
body .inn-desc .company-article ul {
  margin: 0 0 16px;
  padding-inline-start: 1.4em;
}
body .inn-desc .company-article li { list-style: disc; margin-block: 4px; }
body .inn-desc .company-article hr {
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 1px solid var(--siyb-line);
}
body .inn-desc .company-article .company-photo { margin-bottom: 22px; }
body .inn-desc .company-article .company-photo img { display: block; margin-inline: auto; border-radius: 6px; }

/* Keep technical tables scrollable without widening the surrounding prose. */
.siyb-table { width:100%; max-width:100%; min-width:0; overflow-x:auto; margin-block:12px; }
.siyb-table:focus-visible { outline:2px solid #137fc6; outline-offset:2px; }
/* Pasted fixed-width blocks should also fit the article column. */
.news_content div[style*="width"]:not(.siyb-table *) { max-width:calc(100% - 8px); }

/* Download catalog data cells use regular weight. */
.toollist .toollist-box :is(th, td, th *, td *) { font-weight:400; }

.cms-formatted-body { min-width:0; overflow-wrap:anywhere; }
.cms-formatted-body :is(p,ul,ol,pre,blockquote,table,figure) { margin-block:0.8em; }
.cms-formatted-body ul { list-style:disc outside; padding-inline-start:1.6em; }
.cms-formatted-body ol { list-style:decimal outside; padding-inline-start:1.6em; }
.cms-formatted-body li { list-style:inherit; }
.cms-formatted-body blockquote { padding:0.45em 0.9em; border-inline-start:3px solid #9fbed5; background:#f2f7fb; }
.cms-formatted-body pre { max-width:100%; overflow-x:auto; padding:0.85em; background:#eef3f7; white-space:pre; }
.cms-formatted-body :is(pre,code) { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.cms-formatted-body table { display:block; max-width:100%; overflow-x:auto; }
.cms-formatted-body :is(th,td) { padding:0.45em 0.7em; border:1px solid #c8d8e6; }
.cms-formatted-body th { background:#edf5fb; font-weight:600 !important; }
.cms-formatted-body img { max-width:100%; height:auto; }

body .technical-code { min-width:0; max-width:100%; margin:1em 0; border-radius:8px; overflow:hidden; background:#182a39; color:#edf6fd; }
body .technical-code-toolbar { display:flex; align-items:center; gap:10px; padding:5px 12px; background:#233b4e; color:#e4f0fa; }
body .technical-code-status { margin-inline-start:auto; font-size:12px; }
body .technical-code-toolbar button { border:1px solid #718da4; border-radius:5px; padding:6px 10px; background:transparent; color:inherit; cursor:pointer; min-height:36px; }
body .technical-code-toolbar button:hover { background:#365770; }
body .technical-code pre { display:block; overflow-x:auto; margin:0; padding:12px; background:#182a39; color:#edf6fd; white-space:pre; }
body .technical-code :is(pre,code) { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:14px !important; line-height:1.55; }

body .inn-desc .company-article:is(.culture-article,.profile-article) h2 {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:3px 10px;
  margin:0 0 10px;
  color:#15334c;
  font-size:20px !important;
  font-weight:650;
}
body .inn-desc .company-article:is(.culture-article,.profile-article) .culture-heading-en {
  color:#49677d;
  font-size:14px !important;
  font-weight:400;
}
body .inn-desc .company-article:is(.culture-article,.profile-article) h3 {
  color:#15334c;
  font-size:16px !important;
  font-weight:600;
  margin:14px 0 4px;
}
body .inn-desc .company-article:is(.culture-article,.profile-article) p,
body .inn-desc .company-article:is(.culture-article,.profile-article) li { line-height:1.8; }
body .inn-desc .culture-article .culture-lead {
  color:#075a9b;
  font-weight:550;
  margin-bottom:6px;
}
body .inn-desc .company-article:is(.culture-article,.profile-article) li strong { font-weight:600; }
body .inn-desc .company-article:is(.culture-article,.profile-article) hr { margin-block:20px; }
@media(max-width:720px) {
  body .inn-desc .company-article:is(.culture-article,.profile-article) h2 { font-size:18px !important; }
  body .inn-desc .company-article:is(.culture-article,.profile-article) hr { margin-block:16px; }
}


body .inn-desc .profile-article h3 {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:3px 6px;
}
body .inn-desc .profile-article p strong { font-weight:550; }
body .inn-desc .profile-article .company-photo img { max-width:100%; height:auto; }
@media(min-width:930px) {
  body .inn-desc .profile-items {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:24px;
  }
}

.site-submit-search.siyb-cat-search {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  width:290px;
  max-width:100%;
}
.site-submit-search.siyb-cat-search input,
.site-submit-search.siyb-cat-search button {
  box-sizing:border-box;
  min-height:36px;
  height:36px;
  border:1px solid #b9d4e8;
  font:inherit;
  line-height:1.2;
}
.site-submit-search.siyb-cat-search input {
  min-width:0;
  width:100%;
  padding:0 12px;
  border-radius:999px 0 0 999px;
  border-inline-end:0;
  background:#fff;
}
.site-submit-search.siyb-cat-search input:focus { position:relative; z-index:1; }
.site-submit-search.siyb-cat-search button {
  padding:0 14px;
  border-radius:0 999px 999px 0;
  background:#e9f4fc;
  color:#075a9b;
  white-space:nowrap;
  cursor:pointer;
}
.site-submit-search.siyb-cat-search button:is(:hover,:focus-visible) { background:#d8edf9; color:#064b80; }
.site-submit-search .site-search-status:empty { display:none; }
.site-submit-search .site-search-status { grid-column:1/-1; margin-top:4px; color:#49677d; line-height:1.5; }
