/* English public pages: self-hosted type and content-driven layout.
   Loaded last because the recovered site contains legacy !important rules. */
@font-face {
  font-family: 'Dewei Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html[lang='en'] { --font-ui: 'Dewei Inter', 'Helvetica Neue', Arial, sans-serif; }
html[lang='en'] body { font-family: var(--font-ui) !important; -webkit-font-smoothing: antialiased; }
html[lang='en'] :is(nav, h1, h2, h3, button, .hero-en, .hero-desc, .kicker, .section-label, .hero-foot, .visual-caption, footer) {
  font-family: var(--font-ui) !important;
}
html[lang='en'] :is(a, button):focus-visible { outline: 2px solid #316b4d; outline-offset: 5px; }

/* Navigation stays in document flow, including when English labels wrap. */
html[lang='en'] nav {
  position: relative; height: auto !important; min-height: 100px;
  padding: 12px max(32px, calc((100vw - 1600px) / 2)) !important; gap: 24px;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto;
}
html[lang='en'] nav .brand-motion { width: 150px; height: 76px; }
html[lang='en'] nav .brand img.logo-color { width: 150px; height: 76px; }
html[lang='en'] nav .navlinks { display: flex !important; justify-content: center; flex-wrap: wrap; gap: 12px 24px !important; }
html[lang='en'] nav .navlinks a { font-size: 13px !important; font-weight: 500 !important; letter-spacing: -.01em !important; line-height: 1.5; }
html[lang='en'] nav .nav-actions { gap: 8px; flex-wrap: wrap; }
html[lang='en'] nav .nav-actions a { height: auto; min-height: 40px; padding: 10px 12px !important; font-size: 12px !important; font-weight: 500 !important; }

/* Copy, photography, controls and topic strip each reserve their own space. */
html[lang='en'] .hero.carousel { height: auto !important; min-height: 0 !important; }
html[lang='en'] .hero .hero-track { height: auto; min-height: 0 !important; align-items: stretch; }
html[lang='en'] .hero .hero-panel,
html[lang='en'] .hero .hero-panel:nth-child(2) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto;
  padding: 48px max(32px, calc((100vw - 1320px) / 2)) 24px !important;
  column-gap: clamp(32px, 4.5vw, 80px); align-items: center;
}
html[lang='en'] .hero .hero-copy { min-width: 0; max-width: 650px; justify-self: stretch; }
html[lang='en'] .hero :is(h1, h2) {
  font-size: clamp(38px, 3.4vw, 56px) !important; font-weight: 550 !important;
  line-height: 1.12 !important; letter-spacing: -.035em !important;
  text-wrap: balance; margin: 24px 0 22px;
}
html[lang='en'] .hero :is(h1, h2) em { font-style: normal; color: #3187ae; }
html[lang='en'] .hero .kicker { display: flex; align-items: center; gap: 12px; font-size: 10px !important; letter-spacing: .12em !important; font-weight: 600 !important; line-height: 1.6 !important; }
html[lang='en'] .hero .kicker span { flex: 0 0 24px; width: 24px !important; margin: 0 !important; }
html[lang='en'] .hero .hero-en { font-size: 16px !important; font-weight: 500 !important; letter-spacing: -.015em !important; line-height: 1.6 !important; margin-bottom: 14px; color: #395f52 !important; }
html[lang='en'] .hero .hero-desc { font-size: 15px !important; line-height: 1.8 !important; letter-spacing: 0 !important; max-width: 58ch; margin: 0; }
html[lang='en'] .hero .actions { flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }
html[lang='en'] .hero .actions a { font-size: 13px !important; line-height: 1.5; font-weight: 500 !important; padding-block: 12px; }
html[lang='en'] .hero .actions .primary { padding: 14px 20px; border-radius: 3px; box-shadow: none !important; }
html[lang='en'] .hero .industrial,
html[lang='en'] .hero .hero-panel:nth-child(2) .industrial {
  height: auto !important; min-height: 0 !important; max-height: none; width: 100%;
  max-width: none; min-width: 0; margin: 0; transform: none !important; overflow: visible;
}
html[lang='en'] .hero .original-scene > .original-scene-image {
  position: static; display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: contain; background: #edf3ef;
}
html[lang='en'] .hero .hero-panel:nth-child(2) .original-scene-image { aspect-ratio: auto; background: none; }
html[lang='en'] .hero .visual-caption,
html[lang='en'] .hero .hero-panel:nth-child(2) .visual-caption {
  position: static; padding: 16px 0 0; background: none; border-top: 1px solid #cad9d0;
  margin-top: 16px; letter-spacing: 0 !important; line-height: 1.5 !important;
}
html[lang='en'] .hero .visual-caption b,
html[lang='en'] .hero .hero-panel:nth-child(2) .visual-caption b { color: #395f52 !important; font-size: 13px; font-weight: 500; }
html[lang='en'] :is(.visual-caption, .hero-foot) { text-transform: none !important; }
html[lang='en'] .hero .visual-caption span,
html[lang='en'] .hero .hero-panel:nth-child(2) .visual-caption span { color: #647a70 !important; font-size: 11px !important; font-weight: 400 !important; letter-spacing: .01em !important; margin-top: 4px !important; }
html[lang='en'] .hero .slide-controls { position: relative; inset: auto; width: fit-content; margin: 0 max(32px, calc((100vw - 1320px) / 2)) 20px auto; gap: 10px; }
html[lang='en'] .slide-controls > button { display: block !important; width: 40px; height: 40px; font-size: 24px; }
html[lang='en'] .slide-controls > div { gap: 10px; }
html[lang='en'] .slide-line { width: 32px; height: 24px; border-radius: 0; background: linear-gradient(#9ab3a9, #9ab3a9) center / 100% 3px no-repeat !important; opacity: .65; }
html[lang='en'] .slide-line.active { width: 48px; opacity: 1; background-image: linear-gradient(#ff5a00, #ff5a00) !important; box-shadow: none; }
html[lang='en'] .hero .hero-foot { position: relative; inset: auto; gap: 16px 24px; padding: 22px max(32px, calc((100vw - 1320px) / 2)) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: .015em !important; line-height: 1.6; background: #ffffff70; }
html[lang='en'] .hero-foot span { display: flex; align-items: center; }
html[lang='en'] .hero-foot span:before { flex: 0 0 5px; width: 5px !important; height: 5px !important; margin-right: 10px !important; }

/* Numbered labels sit above the copy, leaving a generous, consistent measure. */
html[lang='en'] .narrative-chapter { padding: 56px 32px; }
html[lang='en'] .chapter-inner { max-width: 1320px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 4.5vw, 80px); align-items: center; }
html[lang='en'] .chapter-label { grid-column: 1; margin: 0 !important; align-self: end; font-size: 10px !important; letter-spacing: .1em !important; line-height: 1.6 !important; }
html[lang='en'] .chapter-copy { grid-column: 1; }
html[lang='en'] .chapter-media { grid-column: 2; grid-row: 1 / span 2; }
html[lang='en'] .chapter-copy h2 { font-size: clamp(28px, 2.35vw, 38px) !important; line-height: 1.2 !important; letter-spacing: -.035em !important; font-weight: 550 !important; margin-bottom: 20px; text-wrap: balance; }
html[lang='en'] .chapter-deck { font-size: 18px; line-height: 1.55; letter-spacing: -.015em; margin-bottom: 16px; }
html[lang='en'] .chapter-summary { max-width: 64ch; font-size: 15px !important; line-height: 1.8 !important; letter-spacing: 0 !important; margin-bottom: 22px; }
html[lang='en'] .chapter-highlights { margin: 22px 0; gap: 18px 28px; padding-top: 18px; }
html[lang='en'] .chapter-highlights b { font-size: 16px; line-height: 1.5; font-weight: 500 !important; letter-spacing: -.015em; }
html[lang='en'] .chapter-highlights span { font-size: 13px; line-height: 1.65; }
html[lang='en'] :is(.chapter-more, .chapter-detail-links a) { font-size: 13px; font-weight: 500; line-height: 1.65; }
html[lang='en'] .chapter-figure img { max-height: 430px; }
html[lang='en'] #global { height: auto; min-height: 360px; padding: 48px max(32px, calc((100vw - 1440px) / 2)) !important; gap: 12px 64px; }
html[lang='en'] #global .global-head { max-width: none; }
html[lang='en'] #global .global-head h2 { font-size: clamp(28px, 2.35vw, 38px) !important; font-weight: 550; letter-spacing: -.035em; }
html[lang='en'] #global .global-en { display: none; }
html[lang='en'] #global .map-legend { line-height: 1.6; }
html[lang='en'] .closing { padding: 64px 32px; }
html[lang='en'] .closing h2 { max-width: 840px; margin: 20px auto 24px; font-size: clamp(30px, 3vw, 44px) !important; font-weight: 550 !important; line-height: 1.2 !important; letter-spacing: -.035em !important; }
html[lang='en'] .closing > .closing-description { max-width: 760px; margin: 0 auto 28px; font-family: var(--font-ui) !important; font-size: 15px !important; line-height: 1.8 !important; letter-spacing: 0 !important; font-weight: 400 !important; text-transform: none !important; }
html[lang='en'] .closing > .closing-description:before { display: none; }
html[lang='en'] footer { flex-wrap: wrap; gap: 20px 32px; line-height: 1.7; letter-spacing: .025em !important; }

/* The same type and spacing continue into equipment, ERP and MES pages. */
html[lang='en'] .detail-intro { padding-top: 36px; }
html[lang='en'] .detail-title-grid h1 { font-size: clamp(30px, 2.7vw, 42px); font-weight: 550; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
html[lang='en'] .detail-title-grid > p { font-size: 15px; line-height: 1.8; }
html[lang='en'] .detail-feature { padding-block: 40px; }
html[lang='en'] .detail-feature h2 { font-size: 26px; line-height: 1.25; font-weight: 550; }
html[lang='en'] .detail-related b { font-size: 21px; gap: 16px; line-height: 1.35; }

@media (max-width: 1440px) {
  html[lang='en'] nav { grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; }
  html[lang='en'] nav .nav-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  html[lang='en'] nav .navlinks { grid-column: 1 / -1; justify-content: space-between; padding: 10px 0 6px; border-top: 1px solid #e5ece7; }
}
@media (max-width: 1000px) {
  html[lang='en'] .hero :is(h1, h2) { font-size: 38px !important; }
  html[lang='en'] .hero .hero-panel, html[lang='en'] .hero .hero-panel:nth-child(2) { column-gap: 32px; padding-top: 40px !important; }
  html[lang='en'] .chapter-inner { column-gap: 32px; }
  html[lang='en'] .hero .hero-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  html[lang='en'] nav { padding: 12px 24px !important; }
  html[lang='en'] nav .navlinks { gap: 10px 20px !important; justify-content: flex-start; }
  html[lang='en'] .hero .hero-panel, html[lang='en'] .hero .hero-panel:nth-child(2) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; padding: 36px 24px 24px !important; gap: 32px; align-content: start; }
  html[lang='en'] .hero .hero-copy { max-width: 620px; }
  html[lang='en'] .hero :is(h1, h2) { font-size: clamp(34px, 6vw, 48px) !important; }
  html[lang='en'] .hero .industrial { max-width: 620px; }
  html[lang='en'] .hero .slide-controls { margin: 0 24px 20px auto; }
  html[lang='en'] .hero .hero-foot { padding: 20px 24px !important; }
  html[lang='en'] .hero .hero-foot span { font-size: 11px !important; line-height: 1.6; }
  html[lang='en'] .narrative-chapter { padding: 36px 24px; }
  html[lang='en'] .chapter-inner { display: flex; gap: 18px; }
  html[lang='en'] .chapter-label { align-self: flex-start; }
  html[lang='en'] .chapter-copy h2 { font-size: 30px !important; }
  html[lang='en'] .chapter-media { width: 100%; }
  html[lang='en'] #global { padding: 36px 24px !important; min-height: 0; }
  html[lang='en'] .detail-intro { padding-top: 28px; }
}
@media (max-width: 520px) {
  html[lang='en'] nav { grid-template-columns: 100px minmax(0, 1fr); gap: 10px 16px; padding-inline: 20px !important; }
  html[lang='en'] nav .brand-motion, html[lang='en'] nav .brand img.logo-color { width: 100px; height: 70px; }
  html[lang='en'] nav .nav-actions { flex-direction: row; gap: 6px; }
  html[lang='en'] nav .nav-actions a { min-height: 36px; padding: 8px 10px !important; font-size: 11px !important; }
  html[lang='en'] nav .navlinks { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 16px !important; }
  html[lang='en'] nav .navlinks a { font-size: 12px !important; }
  html[lang='en'] .hero :is(h1, h2) { font-size: 34px !important; letter-spacing: -.04em !important; }
  html[lang='en'] .hero .actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  html[lang='en'] .hero .hero-foot { gap: 14px; }
  html[lang='en'] .chapter-highlights { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html[lang='en'] .chapter-copy h2 { font-size: 28px !important; }
  html[lang='en'] .closing { padding: 48px 24px; }
  html[lang='en'] .detail-tabs { gap: 6px 18px; }
}
