/* =============================================================
   OSS Modern Refresh
   Static-only override stylesheet for the exported Aliyun OSS
   site of Jiangsu Liyang New Materials. Loaded after the
   legacy commen.css / style.css, scoped via body[data-modern="1"]
   so the original ThinkPHP source is unaffected.
   ============================================================= */

/* ---------- Design tokens ---------- */
body[data-modern="1"] {
  --brand-navy: #0e1d3a;
  --brand-navy-2: #142a55;
  --brand-amber: #ffb400;
  --brand-amber-deep: #d99500;
  --ink: #1a2236;
  --ink-soft: #4d5a76;
  --ink-mute: #6f7b94;
  --line: #e5eaf2;
  --line-strong: #c9d2e2;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-elev: #ffffff;
  --shadow-sm: 0 1px 2px rgba(14, 29, 58, 0.06), 0 1px 3px rgba(14, 29, 58, 0.04);
  --shadow-md: 0 6px 18px rgba(14, 29, 58, 0.08), 0 2px 6px rgba(14, 29, 58, 0.05);
  --shadow-lg: 0 18px 40px rgba(14, 29, 58, 0.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: min(1200px, 100% - 32px);
  --gutter: 24px;
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft Yahei", "微软雅黑", Helvetica, Arial, sans-serif;
}

/* ---------- Base + reset on top of legacy reset ---------- */
body[data-modern="1"],
body[data-modern="1"] #wrapper {
  background: var(--bg) !important;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-modern="1"] img {
  max-width: 100%;
  height: auto;
}

body[data-modern="1"] a { color: var(--brand-navy-2); transition: color .2s ease; }
body[data-modern="1"] a:hover { color: var(--brand-amber-deep); }

body[data-modern="1"] .clear { clear: both; height: 0; }

/* ---------- Container override ---------- */
body[data-modern="1"] .footer,
body[data-modern="1"] .main,
body[data-modern="1"] .header,
body[data-modern="1"] .mainwrap,
body[data-modern="1"] .top,
body[data-modern="1"] .head,
body[data-modern="1"] .mainbox {
  width: var(--container) !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
}

/* ---------- Top utility bar ---------- */
body[data-modern="1"] .topwrap {
  width: 100%;
  height: 36px;
  background: var(--brand-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body[data-modern="1"] .topwrap .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 36px;
}
body[data-modern="1"] .topwrap font,
body[data-modern="1"] .topwrap .menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  letter-spacing: .02em;
  font-family: var(--font-sans);
}
body[data-modern="1"] .topwrap .menu { float: none; display: flex; align-items: center; gap: 14px; }
body[data-modern="1"] .topwrap .menu a { margin-left: 0; padding: 0 6px; }
body[data-modern="1"] .topwrap .menu .language_1,
body[data-modern="1"] .topwrap .menu .language_2 {
  background: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 12px !important;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.92);
}
body[data-modern="1"] .topwrap .menu .language_1:hover,
body[data-modern="1"] .topwrap .menu .language_2:hover {
  background: var(--brand-amber);
  border-color: var(--brand-amber);
  color: var(--brand-navy);
}

/* ---------- Header ---------- */
body[data-modern="1"] #header {
  width: 100%;
  height: 84px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
body[data-modern="1"] #header .topbg1,
body[data-modern="1"] #header .topbg2 { display: none !important; }
body[data-modern="1"] #header .header { height: 84px; position: relative; left: auto; top: auto; }
body[data-modern="1"] #header .head {
  background: none !important;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[data-modern="1"] .logo { margin: 0; }
body[data-modern="1"] .logo img { height: 56px; width: auto; display: block; }

/* ---------- Primary navigation ---------- */
body[data-modern="1"] .navbar { width: auto; float: none; }
body[data-modern="1"] .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
body[data-modern="1"] .nav .m { width: auto; float: none; padding: 0; }
body[data-modern="1"] .nav h3 a {
  height: 64px;
  width: auto;
  line-height: 64px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  border-radius: 8px;
  background: none !important;
}
body[data-modern="1"] .nav h3 a:hover,
body[data-modern="1"] .nav li:hover h3 > a,
body[data-modern="1"] .nav h3 .current {
  background: rgba(255, 180, 0, 0.10) !important;
  color: var(--brand-amber-deep) !important;
}
body[data-modern="1"] .nav h3 .current::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 2px;
  background: var(--brand-amber);
  border-radius: 2px;
}
body[data-modern="1"] .nav .sub {
  width: 220px !important;
  left: 50% !important;
  top: 64px !important;
  transform: translateX(-50%);
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px !important;
}
body[data-modern="1"] .nav .sub li {
  display: block;
  width: 100%;
  float: none;
  padding: 0;
  text-align: left;
  line-height: normal;
}
body[data-modern="1"] .nav .sub li a {
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
}
body[data-modern="1"] .nav .sub li a:hover {
  text-decoration: none;
  background: var(--bg-soft);
  color: var(--brand-amber-deep);
}

/* ---------- Hero (homepage) ---------- */
body[data-modern="1"] .banner,
body[data-modern="1"] .focusBox,
body[data-modern="1"] .focusBox .pic { height: 540px; }
body[data-modern="1"] .focusBox .pic li,
body[data-modern="1"] .focusBox .pic li a { background-size: cover !important; background-position: center center !important; }
body[data-modern="1"] .focusBox::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The hero has no overlaid headline, so the old 10%->45% navy wash
     just darkened the photos. Keep the scrim only as a thin bottom
     band so the white pagination dots stay legible on bright frames. */
  background: linear-gradient(180deg,
                rgba(14, 29, 58, 0) 0%,
                rgba(14, 29, 58, 0) 70%,
                rgba(14, 29, 58, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}
body[data-modern="1"] .focusBox .hd { z-index: 5; bottom: 24px; }
body[data-modern="1"] .focusBox .hd li {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  width: 24px;
  height: 4px;
  margin: 0 4px;
}
body[data-modern="1"] .focusBox .hd .on { background: var(--brand-amber); }
body[data-modern="1"] .focusBox .prev,
body[data-modern="1"] .focusBox .next {
  background: rgba(14, 29, 58, 0.55) url(../images/ad_ctr.png) no-repeat 0 -20px;
  border-radius: 999px;
  z-index: 6;
}
body[data-modern="1"] .focusBox .next {
  background-position: 0 -110px;
}

/* Inner banner (sub pages) */
body[data-modern="1"] .nybanner {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  height: 320px !important;
  margin-bottom: 0;
}
body[data-modern="1"] .nybanner::after {
  content: none;
}

/* ---------- Section: home_equipment / advantages ---------- */
body[data-modern="1"] .home_equipment {
  background: var(--bg);
  background-image: none;
  padding: 80px 0 64px;
  text-align: center;
}
body[data-modern="1"] .lan1,
body[data-modern="1"] .lan2,
body[data-modern="1"] .lan3,
body[data-modern="1"] .lan4 {
  background: none !important;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 14px;
  position: relative;
}
body[data-modern="1"] .lan1::after,
body[data-modern="1"] .lan2::after,
body[data-modern="1"] .lan3::after,
body[data-modern="1"] .lan4::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand-amber);
  border-radius: 2px;
  margin: 14px auto 0;
}
body[data-modern="1"] .equipment_about {
  margin: 28px auto 0;
  max-width: 880px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

/* ---------- Section: home_about ---------- */
body[data-modern="1"] .home_about {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
  padding: 80px 0;
}
body[data-modern="1"] .home_about .mainwrap {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  align-items: center;
  gap: 56px;
}
body[data-modern="1"] .home_about .aboutimg,
body[data-modern="1"] .home_about .aboutbox {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body[data-modern="1"] .home_about .aboutimg {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.04);
}
body[data-modern="1"] .home_about .aboutimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 5 / 4;
}
body[data-modern="1"] .home_about .lan2 { color: #fff; text-align: left; }
body[data-modern="1"] .home_about .lan2::after { margin: 14px 0 0; }
body[data-modern="1"] .home_about .about {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.95;
  margin-top: 22px;
  max-height: none;
}
body[data-modern="1"] .aboutmore { margin-top: 28px; }

/* ---------- Cases ---------- */
body[data-modern="1"] .home_case {
  background: var(--bg-soft);
  padding: 80px 0;
}
body[data-modern="1"] .home_case .mainwrap {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 48px;
  align-items: start;
}
body[data-modern="1"] .home_case .casebox,
body[data-modern="1"] .home_case .caselistbox {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}
body[data-modern="1"] .home_case .lan3 { text-align: left; }
body[data-modern="1"] .home_case .lan3::after { margin: 14px 0 0; }
body[data-modern="1"] .home_case .caseabout {
  color: var(--ink-soft);
  margin-top: 18px;
  max-height: none;
}
body[data-modern="1"] .home_case .case_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
body[data-modern="1"] .home_case .case_list a {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
body[data-modern="1"] .home_case .case_list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
body[data-modern="1"] .home_case .case_list a img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  display: block;
}
body[data-modern="1"] .home_case .case-title {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.4;
  margin: 0;
  padding: 14px 16px 16px;
  background: #fff;
  font-weight: 500;
}
body[data-modern="1"] .home_case .case_list a:hover .case-title {
  color: var(--brand-amber-deep);
}

/* ---------- Products carousel (homepage) ---------- */
body[data-modern="1"] .home_product {
  background: linear-gradient(180deg, #0c1631 0%, #142a55 100%);
  padding: 80px 0 70px;
}
body[data-modern="1"] .home_product .lan4 { color: #fff; }
body[data-modern="1"] .product_list .hd { margin-top: 28px; }
body[data-modern="1"] .product_list .hd li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 16px;
  height: 34px;
  line-height: 34px;
  margin: 0 6px 10px;
  transition: all .2s ease;
}
body[data-modern="1"] .product_list .hd li.on {
  background: var(--brand-amber);
  color: var(--brand-navy);
  border-color: var(--brand-amber);
}
body[data-modern="1"] .product_list .lh {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}
body[data-modern="1"] .product_list .lh li {
  width: auto;
  margin: 0;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
body[data-modern="1"] .product_list .lh li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
body[data-modern="1"] .product_list .lh li a { display: block; }
body[data-modern="1"] .proitem,
body[data-modern="1"] .proitem2 {
  width: auto !important;
  height: auto !important;
  position: relative;
  background: #f8f9fc;
}
body[data-modern="1"] .proitem img,
body[data-modern="1"] .proitem2 img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  margin: 0 !important;
  border: 0 !important;
  display: block;
}
body[data-modern="1"] .proitem .bg,
body[data-modern="1"] .proitem2 .bg {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(180deg, rgba(14, 29, 58, 0) 50%, rgba(14, 29, 58, 0.55) 100%);
  opacity: 1;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
body[data-modern="1"] .proitem .bg h3,
body[data-modern="1"] .proitem2 .bg h3 {
  color: #fff;
  font-size: 14px;
  padding: 0;
  text-align: left;
  font-weight: 500;
}
body[data-modern="1"] .proitem .lt,
body[data-modern="1"] .proitem .lb,
body[data-modern="1"] .proitem .rt,
body[data-modern="1"] .proitem .rb,
body[data-modern="1"] .proitem2 .lt,
body[data-modern="1"] .proitem2 .lb,
body[data-modern="1"] .proitem2 .rt,
body[data-modern="1"] .proitem2 .rb { display: none !important; }
body[data-modern="1"] .title,
body[data-modern="1"] .title2 {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.4;
  height: auto;
  text-align: left;
  padding: 12px 14px 16px;
  white-space: normal;
  font-weight: 500;
}
body[data-modern="1"] .product_list .lh li a:hover .title,
body[data-modern="1"] .mainbox_2b li a:hover .title2 { color: var(--brand-amber-deep); }
body[data-modern="1"] .productmore { margin-top: 36px; }

/* ---------- News section (homepage) ---------- */
body[data-modern="1"] .home_news {
  background: var(--bg);
  padding: 80px 0;
}
body[data-modern="1"] .news_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 36px;
}
body[data-modern="1"] .news_list dl {
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 !important;
  padding: 16px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
body[data-modern="1"] .news_list dl:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: #ffffff !important;
}
body[data-modern="1"] .news_list dl dt,
body[data-modern="1"] .news_list dl dt img {
  width: 100% !important;
  height: 100%;
}
body[data-modern="1"] .news_list dl dt {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}
body[data-modern="1"] .news_list dl dt img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}
body[data-modern="1"] .news_list dl dd {
  position: static !important;
  margin: 0 !important;
  padding: 4px 0;
}
body[data-modern="1"] .news_list dl dd .title2 {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 17px !important;
  font-weight: 600;
  height: auto !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body[data-modern="1"] .news_list dl dd .info {
  margin: 12px 0 0 !important;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  height: auto !important;
  max-height: 4.5em;
  overflow: hidden;
  padding: 0 !important;
}
body[data-modern="1"] .news_list dl dd .info a { color: var(--brand-amber-deep); }
body[data-modern="1"] .newsmore { padding-top: 36px; }

/* ---------- Contact section ---------- */
body[data-modern="1"] .home_contact {
  background: linear-gradient(135deg, #0c1631 0%, #142a55 100%) !important;
  padding: 72px 0 56px;
}
body[data-modern="1"] .home_contact .lan4 { color: #fff; }
body[data-modern="1"] .contactword { color: rgba(255, 255, 255, 0.78); margin-top: 14px; }
body[data-modern="1"] .contact_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
body[data-modern="1"] .contact_list dl {
  width: auto;
  float: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
}
body[data-modern="1"] .contact_list dt {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
body[data-modern="1"] .contact_list dt img {
  display: block;
  margin: 0 auto 12px;
  filter: brightness(0) invert(1);
  opacity: .85;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
body[data-modern="1"] .contact_list dd {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.6;
}
body[data-modern="1"] .contact_list dd a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.6;
}
body[data-modern="1"] .contact_list dd a:hover { color: var(--brand-amber); }

body[data-modern="1"] .contactbox {
  margin: 44px auto 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
body[data-modern="1"] .form1 { width: 100% !important; float: none !important; }
body[data-modern="1"] .field { padding-left: 0 !important; margin-bottom: 16px; }
body[data-modern="1"] .field.float_l,
body[data-modern="1"] .field.float_r {
  float: none !important;
  display: inline-block;
  width: calc(50% - 8px);
}
body[data-modern="1"] .field.float_l { margin-right: 12px; }
body[data-modern="1"] .field label {
  position: static !important;
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
body[data-modern="1"] .field input,
body[data-modern="1"] .field textarea {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 10px 14px !important;
  height: 42px;
  font-size: 14px;
  font-family: inherit;
}
body[data-modern="1"] .field textarea { height: 110px !important; resize: vertical; }
body[data-modern="1"] .field input::placeholder,
body[data-modern="1"] .field textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
body[data-modern="1"] .btn-submit { padding-left: 0 !important; }
body[data-modern="1"] .btn-submit .more {
  width: auto !important;
  padding: 0 28px;
  height: 44px;
  line-height: 44px;
}
body[data-modern="1"] .static-form-notice {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
body[data-modern="1"] .wechat { float: none !important; text-align: center; }
body[data-modern="1"] .wechat img {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
body[data-modern="1"] .wechat p { color: rgba(255, 255, 255, 0.78); margin-top: 8px; }

/* ---------- Buttons ---------- */
body[data-modern="1"] .more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  padding: 0 24px;
  height: 44px;
  line-height: 44px;
  border-radius: 999px !important;
  background: var(--brand-amber) !important;
  color: var(--brand-navy) !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(255, 180, 0, 0.25);
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body[data-modern="1"] .more:hover {
  background: var(--brand-amber-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(217, 149, 0, 0.32);
  color: #fff !important;
}

/* ---------- Sub-page common: position bar / category chips ---------- */
body[data-modern="1"] .postion {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: -8px;
}
body[data-modern="1"] .postion .mainwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
body[data-modern="1"] .postion span.float_l {
  float: none !important;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
body[data-modern="1"] .postion .nylan,
body[data-modern="1"] .postion .nylan a {
  float: none !important;
  color: var(--ink-mute);
  font-size: 13px;
}
body[data-modern="1"] .postion .nylan .nav_id { color: var(--brand-navy-2); }

body[data-modern="1"] .mainbox {
  padding: 36px 0 56px !important;
}
body[data-modern="1"] .mainbox_2 {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px 36px !important;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}
body[data-modern="1"] .mainbox_2 p { margin: 0 0 14px; color: var(--ink); }
body[data-modern="1"] .mainbox_2 img { border-radius: 8px; }

body[data-modern="1"] .procat {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}
body[data-modern="1"] .procat a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  line-height: 1;
  padding: 0 16px !important;
  margin: 0 !important;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px;
  transition: all .2s ease;
}
body[data-modern="1"] .procat a:hover {
  border-color: var(--brand-amber) !important;
  color: var(--brand-amber-deep);
}
body[data-modern="1"] .procat .current {
  background: var(--brand-amber) !important;
  color: var(--brand-navy) !important;
  border-color: var(--brand-amber) !important;
}

/* ---------- Article detail ---------- */
body[data-modern="1"] .show_pic {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
body[data-modern="1"] .show_pic h4 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}
body[data-modern="1"] .time2 {
  color: var(--ink-mute);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
body[data-modern="1"] .time2 span { display: inline-flex; align-items: center; gap: 4px; }
body[data-modern="1"] .time2 a { color: var(--brand-navy-2); }
body[data-modern="1"] .nrr {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.95;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}
/* Hard-reset all the legacy MS-Word / CMS rich-text inline styles so
   every product detail page reads with the same look. Inline
   font-family / font-size / line-height / colors / text-indent are
   normalized; only structural styles (alignment, white-space) survive. */
body[data-modern="1"] .nrr,
body[data-modern="1"] .nrr p,
body[data-modern="1"] .nrr span,
body[data-modern="1"] .nrr div,
body[data-modern="1"] .nrr li,
body[data-modern="1"] .nrr td,
body[data-modern="1"] .nrr strong,
body[data-modern="1"] .nrr em {
  font-family: var(--font-sans) !important;
  font-size: 15.5px !important;
  line-height: 1.95 !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
  background: transparent !important;
}
body[data-modern="1"] .nrr p {
  margin: 0 0 14px !important;
  text-indent: 0 !important;
  white-space: normal !important;
}
body[data-modern="1"] .nrr p[align="center"],
body[data-modern="1"] .nrr div[style*="text-align:center"],
body[data-modern="1"] .nrr div[style*="text-align: center"] { text-align: center !important; }
body[data-modern="1"] .nrr h1,
body[data-modern="1"] .nrr h2,
body[data-modern="1"] .nrr h3,
body[data-modern="1"] .nrr h4,
body[data-modern="1"] .nrr h5 {
  font-family: var(--font-sans) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  margin: 24px 0 10px !important;
  line-height: 1.4 !important;
}
body[data-modern="1"] .nrr h3 {
  font-size: 19px !important;
  color: var(--brand-navy) !important;
  padding-left: 14px !important;
  position: relative;
}
body[data-modern="1"] .nrr h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--brand-amber);
  border-radius: 2px;
}
body[data-modern="1"] .nrr h4 { font-size: 16.5px !important; }
body[data-modern="1"] .nrr strong,
body[data-modern="1"] .nrr b {
  font-weight: 700 !important;
  color: var(--brand-navy) !important;
}
body[data-modern="1"] .nrr a { color: var(--brand-navy-2) !important; }
body[data-modern="1"] .nrr a:hover { color: var(--brand-amber-deep) !important; }
body[data-modern="1"] .nrr ul,
body[data-modern="1"] .nrr ol { margin: 0 0 14px 24px !important; padding-left: 0 !important; }
body[data-modern="1"] .nrr ul { list-style: disc outside !important; }
body[data-modern="1"] .nrr ol { list-style: decimal outside !important; }
body[data-modern="1"] .nrr li { margin-bottom: 6px !important; }
body[data-modern="1"] .nrr img {
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto !important;
  display: block !important;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
/* Tables that occasionally appear in product specs */
body[data-modern="1"] .nrr table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 18px 0 !important;
  font-size: 14.5px !important;
}
body[data-modern="1"] .nrr table th,
body[data-modern="1"] .nrr table td {
  border: 1px solid var(--line) !important;
  padding: 8px 12px !important;
  text-align: left !important;
  vertical-align: top !important;
}
body[data-modern="1"] .nrr table th {
  background: var(--bg-soft) !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
body[data-modern="1"] .nrr table td:first-child,
body[data-modern="1"] .nrr table th:first-child {
  width: 30%;
  white-space: nowrap;
}
/* Supporting classes for the unified product-detail template */
body[data-modern="1"] .nrr .spec-note {
  margin: -6px 0 18px !important;
  font-size: 13.5px !important;
  color: var(--ink-mute) !important;
  line-height: 1.6 !important;
}
body[data-modern="1"] .nrr .product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 10px 0 6px;
}
body[data-modern="1"] .nrr .product-gallery img {
  margin: 0 !important;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
body[data-modern="1"] .nrr .gallery-empty {
  margin: 4px 0 0 !important;
  padding: 28px 18px !important;
  text-align: center !important;
  color: var(--ink-mute) !important;
  background: var(--bg-soft) !important;
  border: 1px dashed var(--line-strong) !important;
  border-radius: var(--radius-sm);
  font-size: 14px !important;
}
/* Drop the trail of non-breaking spaces that the CMS used for indentation
   so paragraphs do not look randomly shifted. */
body[data-modern="1"] .nrr p:empty,
body[data-modern="1"] .nrr p:has(> br:only-child),
body[data-modern="1"] .nrr p:has(> span:empty:only-child) { display: none !important; }
/* Normalize the time meta row (category / date / views) */
body[data-modern="1"] .show_pic .time2 strong { color: var(--ink); font-weight: 600; }
body[data-modern="1"] .show_pic .time2 a { color: var(--brand-navy-2); }
body[data-modern="1"] .fanye {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
body[data-modern="1"] .fanye > div {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
body[data-modern="1"] .fanye a { color: var(--brand-navy-2); font-weight: 500; }
body[data-modern="1"] .fanye a:hover { color: var(--brand-amber-deep); }

/* ---------- Product list (sub-page) ---------- */
body[data-modern="1"] .mainbox_2b { width: 100% !important; }
body[data-modern="1"] .mainbox_2b ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}
body[data-modern="1"] .mainbox_2b li {
  width: auto;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
body[data-modern="1"] .mainbox_2b li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- News list (sub-page) ---------- */
body[data-modern="1"] .mainbox_2a {
  width: 100% !important;
  margin-top: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
body[data-modern="1"] .mainbox_2a a {
  width: auto !important;
  margin: 0 !important;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
body[data-modern="1"] .mainbox_2a a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
body[data-modern="1"] .mainbox_2a dl {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: start;
}
body[data-modern="1"] .mainbox_2a dl dt {
  width: 84px;
  height: 84px;
  border: 0 !important;
  background: var(--brand-amber);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  text-align: center;
  padding: 12px 4px;
  font-size: 12px;
  line-height: 1.3;
}
body[data-modern="1"] .mainbox_2a dl dt p {
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  height: auto;
  line-height: 1.2;
  margin-bottom: 4px;
}
body[data-modern="1"] .mainbox_2a a:hover dt { background: var(--brand-amber-deep); color: #fff; }
body[data-modern="1"] .mainbox_2a a:hover dt p { color: #fff; }
body[data-modern="1"] .mainbox_2a dl dd { margin: 0 !important; }
body[data-modern="1"] .mainbox_2a dl dd h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  height: auto;
  white-space: normal;
}
body[data-modern="1"] .mainbox_2a dl dd p {
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.7;
  height: auto;
  max-height: 4.5em;
  overflow: hidden;
}
body[data-modern="1"] .mainbox_2a dl dd .icon { display: none; }

/* ---------- Pagination ---------- */
body[data-modern="1"] .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 24px 0 0;
}
body[data-modern="1"] .pagination li > a,
body[data-modern="1"] .pagination li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  background: #fff;
}
body[data-modern="1"] .pagination li.active > a,
body[data-modern="1"] .pagination li.active > span {
  background: var(--brand-amber);
  border-color: var(--brand-amber);
  color: var(--brand-navy);
}

/* ---------- Footer ---------- */
body[data-modern="1"] footer { display: block; }
body[data-modern="1"] #footer {
  width: 100%;
  background: #08122a;
  color: rgba(255, 255, 255, 0.65);
  padding: 22px 0;
}
body[data-modern="1"] #footer .footer {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
body[data-modern="1"] #footer .footer a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 6px;
}
body[data-modern="1"] #footer .footer a:hover { color: var(--brand-amber); }

/* ---------- Misc cleanup of legacy artifacts ---------- */
body[data-modern="1"] .clearfix:after { content: ""; display: block; clear: both; }
body[data-modern="1"] .home_about .aboutbox,
body[data-modern="1"] .home_about .aboutimg { padding-top: 0 !important; }

/* P with margin-left:65pt (legacy MS Word artifacts) */
body[data-modern="1"] .mainbox_2 p[style*="margin-left:65"] { margin-left: 0 !important; text-indent: 0 !important; }
body[data-modern="1"] .mainbox_2 p[style*="text-indent"] { text-indent: 0 !important; }
body[data-modern="1"] .equipment_about p[style*="text-indent"] { text-indent: 0 !important; }
body[data-modern="1"] .about p[style*="text-indent"] { text-indent: 0 !important; }

/* Hide stray empty paragraphs */
body[data-modern="1"] .mainbox_2 p:has(> br:only-child) { display: none; }
body[data-modern="1"] .nrr p:has(> br:only-child) { display: none; }

/* ---------- Placeholder pages (for hidden categories) ---------- */
body[data-modern="1"].placeholder-page { background: var(--bg-soft); }
body[data-modern="1"] .placeholder-shell {
  max-width: 720px;
  margin: 80px auto;
  padding: 48px 36px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}
body[data-modern="1"] .placeholder-shell h1 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
}
body[data-modern="1"] .placeholder-shell p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
body[data-modern="1"] .placeholder-shell .placeholder-cta {
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  body[data-modern="1"] .nav h3 a { padding: 0 12px; font-size: 14px; }
  body[data-modern="1"] .product_list .lh,
  body[data-modern="1"] .mainbox_2b ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  body[data-modern="1"] .topwrap {
    display: block;
    height: 34px;
  }
  body[data-modern="1"] .topwrap .top {
    justify-content: center;
    line-height: 34px;
  }
  body[data-modern="1"] .topwrap font {
    display: none;
  }
  body[data-modern="1"] .topwrap .menu {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  body[data-modern="1"] .topwrap .menu a {
    font-size: 12px;
    line-height: 22px;
    white-space: nowrap;
  }
  body[data-modern="1"] .topwrap .menu .language_1,
  body[data-modern="1"] .topwrap .menu .language_2 {
    padding: 1px 10px !important;
    line-height: 22px;
  }
  body[data-modern="1"] #header {
    height: auto;
    position: relative;
    overflow: visible;
  }
  body[data-modern="1"] #header .header { height: auto; }
  body[data-modern="1"] #header .head {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0;
  }
  body[data-modern="1"] .logo img { height: 42px; }
  body[data-modern="1"] .navbar { width: 100%; order: 3; }
  body[data-modern="1"] .nav {
    width: 100%;
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 0 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body[data-modern="1"] .nav::-webkit-scrollbar { display: none; }
  body[data-modern="1"] .nav .m { flex: 0 0 auto; }
  body[data-modern="1"] .nav h3 a { height: 42px; line-height: 42px; padding: 0 12px; font-size: 13.5px; white-space: nowrap; }
  body[data-modern="1"] .nav h3 .current::after { bottom: 5px; left: 12px; right: 12px; }
  body[data-modern="1"] .nav .sub { display: none !important; }

  body[data-modern="1"] .banner,
  body[data-modern="1"] .focusBox,
  body[data-modern="1"] .focusBox .pic { height: 320px; }
  body[data-modern="1"] .nybanner { height: 200px !important; }

  body[data-modern="1"] .home_about,
  body[data-modern="1"] .home_case,
  body[data-modern="1"] .home_product,
  body[data-modern="1"] .home_news,
  body[data-modern="1"] .home_equipment,
  body[data-modern="1"] .home_contact { padding: 56px 0; }

  body[data-modern="1"] .home_about .mainwrap,
  body[data-modern="1"] .home_case .mainwrap { grid-template-columns: 1fr; gap: 28px; }
  body[data-modern="1"] .home_about .lan2,
  body[data-modern="1"] .home_case .lan3 { text-align: center; }
  body[data-modern="1"] .home_about .lan2::after,
  body[data-modern="1"] .home_case .lan3::after { margin: 14px auto 0; }

  body[data-modern="1"] .product_list .lh,
  body[data-modern="1"] .mainbox_2b ul { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  body[data-modern="1"] .news_list,
  body[data-modern="1"] .mainbox_2a,
  body[data-modern="1"] .home_case .case_list { grid-template-columns: 1fr; }
  body[data-modern="1"] .contact_list { grid-template-columns: 1fr; }
  body[data-modern="1"] .contactbox { grid-template-columns: 1fr; gap: 24px; }

  body[data-modern="1"] .news_list dl { grid-template-columns: 110px 1fr; padding: 10px; gap: 12px; }

  body[data-modern="1"] .mainbox_2 { padding: 24px 18px !important; }
  body[data-modern="1"] .show_pic h4 { font-size: 22px; }
  body[data-modern="1"] .fanye { grid-template-columns: 1fr; }

  body[data-modern="1"] .field.float_l,
  body[data-modern="1"] .field.float_r { width: 100%; margin-right: 0; }
}

@media (max-width: 480px) {
  body[data-modern="1"] .product_list .lh,
  body[data-modern="1"] .mainbox_2b ul { grid-template-columns: 1fr; }
  body[data-modern="1"] .lan1, body[data-modern="1"] .lan2,
  body[data-modern="1"] .lan3, body[data-modern="1"] .lan4 { font-size: 22px; }
  body[data-modern="1"] .show_pic h4 { font-size: 19px; }
}

/* ---------- Right floating side panel (online service) ----------
   The legacy template anchors the panel by viewport center which causes
   the close button to overlap the homepage banner pagination on shorter
   viewports. Anchor it to the bottom-right with safe spacing instead.
   Also gives it a card look that matches the rest of the modernization. */
body[data-modern="1"] .qq_onService_panel .sidebar2_Mo {
  position: fixed;
  right: 18px;
  top: auto !important;
  bottom: 96px !important;
  margin-top: 0 !important;
  z-index: 1000;
}
body[data-modern="1"] .qq_onService_panel .sidebar2_list {
  width: 50px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 0;
  box-shadow: 0 10px 28px rgba(14, 29, 58, 0.28), 0 2px 6px rgba(14, 29, 58, 0.18);
}
body[data-modern="1"] .qq_onService_panel .list_c,
body[data-modern="1"] .qq_onService_panel .alt_bg,
body[data-modern="1"] .qq_onService_panel .sidebar2_listC { background: transparent !important; }
body[data-modern="1"] .qq_onService_panel .sidebar2_listT,
body[data-modern="1"] .qq_onService_panel .sidebar2_listB { background-image: none !important; }
body[data-modern="1"] .qq_onService_panel .function_list .list {
  height: 44px;
  margin-bottom: 4px;
  border-radius: 999px;
  transition: background .2s ease;
}
body[data-modern="1"] .qq_onService_panel .function_list .list:hover {
  background: rgba(255, 180, 0, 0.18);
}
/* The legacy icon PNGs were designed for a dark grey panel and the
   foreground glyphs are nearly white. They show up perfectly on the
   navy panel; we just need to nudge them vertically and brighten them
   on hover with a subtle filter. */
body[data-modern="1"] .qq_onService_panel .list .tel_icon,
body[data-modern="1"] .qq_onService_panel .list .mail_icon,
body[data-modern="1"] .qq_onService_panel .list .map_icon {
  margin-top: 9px;
  filter: brightness(1.05);
}
body[data-modern="1"] .qq_onService_panel .list:hover .tel_icon,
body[data-modern="1"] .qq_onService_panel .list:hover .mail_icon,
body[data-modern="1"] .qq_onService_panel .list:hover .map_icon {
  filter: brightness(1.25);
}
/* Up/down arrows: the originals are white-ish, so just adjust opacity. */
body[data-modern="1"] .qq_onService_panel .sidebar2_listC .prev_btn,
body[data-modern="1"] .qq_onService_panel .sidebar2_listC .next_btn {
  margin-bottom: 4px;
  opacity: .8;
  transition: opacity .2s ease;
}
body[data-modern="1"] .qq_onService_panel .sidebar2_listC .prev_btn:hover,
body[data-modern="1"] .qq_onService_panel .sidebar2_listC .next_btn:hover { opacity: 1; }
body[data-modern="1"] .qq_onService_panel .sidebar2_listC .prev_btn img,
body[data-modern="1"] .qq_onService_panel .sidebar2_listC .next_btn img {
  filter: brightness(1.5);
}
body[data-modern="1"] .qq_onService_panel .sidebar2_state {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(14, 29, 58, 0.22);
}
body[data-modern="1"] .qq_onService_panel .sidebar2_state a {
  width: 28px;
  height: 28px;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: brightness(1.5);
}
/* Tooltip popups stay on a slightly nicer card */
body[data-modern="1"] .qq_onService_panel .alt_c .lxwm_c.alt_bg,
body[data-modern="1"] .qq_onService_panel .alt_c .lxwm_c {
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
body[data-modern="1"] .qq_onService_panel .lxwm_c .lxwm_tit {
  color: var(--ink) !important;
  border-bottom-color: var(--line) !important;
}
body[data-modern="1"] .qq_onService_panel .lxwm_c .lxwm_list li {
  background: none !important;
  color: var(--ink) !important;
  font-size: 14px;
}

/* ---------- Mobile: hide floating panel on narrow viewports ---------- */
@media (max-width: 720px) {
  body[data-modern="1"] .qq_onService_panel { display: none; }
}

/* ---------- Category / case intro blocks (added in EN content rewrite) ---------- */
body[data-modern="1"] .cat-intro {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  border: 1px solid #e3e7f1;
  border-left: 4px solid var(--brand-amber);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 18px 0 26px;
  box-shadow: 0 4px 14px rgba(14, 29, 58, 0.04);
}
body[data-modern="1"] .cat-intro h3 {
  margin: 0 0 10px;
  color: var(--brand-navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
body[data-modern="1"] .cat-intro h3 + h3 {
  margin-top: 18px;
}
body[data-modern="1"] .cat-intro p {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}
body[data-modern="1"] .cat-intro ul {
  margin: 8px 0 4px;
  padding-left: 22px;
}
body[data-modern="1"] .cat-intro li {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 4px;
  color: var(--ink);
}
body[data-modern="1"] .cat-intro a {
  color: var(--brand-amber-deep);
  text-decoration: none;
  border-bottom: 1px dotted var(--brand-amber-deep);
}
body[data-modern="1"] .cat-intro a:hover {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-navy);
}

/* Tighten content spacing on the simple About / Contact / Culture pages.
   IMPORTANT: only style h3 elements that are DIRECT children of mainbox_2
   (article-style content), so the small overlay titles inside product
   cards (.proitem .bg h3, .proitem2 .bg h3) are NOT affected. */
body[data-modern="1"] .mainbox_2 > h3:first-of-type {
  margin-top: 0;
}
body[data-modern="1"] .about-company-title {
  margin: 0 0 22px;
  color: var(--brand-navy);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
}
body[data-modern="1"] .about-factory-photo {
  margin: 0 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
body[data-modern="1"] .about-factory-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
body[data-modern="1"] .about-timeline,
body[data-modern="1"] .about-honor-list {
  list-style: none;
  margin: 12px 0 24px;
  padding: 0;
}
body[data-modern="1"] .about-timeline {
  display: grid;
  gap: 12px;
}
body[data-modern="1"] .about-timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
body[data-modern="1"] .about-timeline strong {
  color: var(--brand-amber-deep);
  font-size: 17px;
  line-height: 1.4;
}
body[data-modern="1"] .about-timeline span {
  color: var(--ink-soft);
  line-height: 1.75;
}
body[data-modern="1"] .about-honor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
body[data-modern="1"] .about-honor-list li {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
body[data-modern="1"] .about-cert-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 12px 0 28px;
}
body[data-modern="1"] .about-cert-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
body[data-modern="1"] .about-cert-gallery img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 10px;
  background: #f8f9fc;
}
body[data-modern="1"] .about-cert-gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
body[data-modern="1"] .mainbox_2 > h3 {
  color: var(--brand-navy);
  font-size: 19px;
  margin: 22px 0 10px;
  position: relative;
  padding-left: 14px;
}
body[data-modern="1"] .mainbox_2 > h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--brand-amber);
  border-radius: 2px;
}
body[data-modern="1"] .mainbox_2 > ul {
  margin: 6px 0 16px;
  padding-left: 22px;
}
body[data-modern="1"] .mainbox_2 > ul > li {
  margin-bottom: 4px;
  line-height: 1.7;
}

/* Defensive reset: never let our accent bar or padding leak into the
   thumbnail overlay titles inside product / case cards. */
body[data-modern="1"] .proitem .bg h3,
body[data-modern="1"] .proitem2 .bg h3 {
  position: static;
  padding-left: 0;
}
body[data-modern="1"] .proitem .bg h3::before,
body[data-modern="1"] .proitem2 .bg h3::before {
  content: none;
  display: none;
}

@media (max-width: 768px) {
  body[data-modern="1"] .about-timeline li,
  body[data-modern="1"] .about-honor-list,
  body[data-modern="1"] .about-cert-gallery {
    grid-template-columns: 1fr;
  }
}

/* Optional print styles to keep the static promo presentable */
@media print {
  body[data-modern="1"] header,
  body[data-modern="1"] footer,
  body[data-modern="1"] .home_contact,
  body[data-modern="1"] .home_news,
  body[data-modern="1"] .topwrap { display: none !important; }
  body[data-modern="1"] .mainbox_2 { box-shadow: none; border: 0; padding: 0; }
}
