/* ==========================================================================
   Chyen Den Enterprise (千電實業有限公司)
   Unified Industrial Corporate Design System (Proposal B Header/Body + Proposal A Footer)
   Wide Desktop (1280px) + Full Mobile RWD
   ========================================================================== */

:root {
  --cd-blue: #0072CE;
  --cd-blue-dark: #0058A3;
  --cd-navy: #004E8C;
  --cd-charcoal: #1C232B;
  --cd-bg: #F4F6F9;
  --cd-surface: #FFFFFF;
  --cd-border: #DFE5EC;
  --cd-text: #1D252D;
  --cd-muted: #4D5A68;
  --cd-max: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--cd-bg) !important;
  color: var(--cd-text);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Segoe UI", Arial, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---------- Shared Single-Row Flagship Header (Proposal B) ---------- */
.cd-site-header {
  position: sticky;
  top: 0;
  z-index: 850;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E7EE;
}

.cd-header-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cd-brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.cd-brand-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.cd-main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cd-main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: #2C3540;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.18s;
}

.cd-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cd-blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.cd-main-nav a:hover,
.cd-main-nav a.is-active {
  color: var(--cd-blue);
}

.cd-main-nav a:hover::after,
.cd-main-nav a.is-active::after {
  transform: scaleX(1);
}

.cd-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cd-header-phone {
  font-size: 13px;
  font-weight: 700;
  color: var(--cd-navy);
  text-decoration: none;
  white-space: nowrap;
}

.cd-header-phone:hover {
  text-decoration: underline;
}

.cd-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--cd-blue);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.18s;
}

.cd-header-cta:hover {
  background: var(--cd-blue-dark);
}

.cd-menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #C8D2DE;
  color: #1D252D;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.cd-nav-mobile-extra {
  display: none;
}

/* ---------- Shared 4-Column Charcoal Footer (Proposal A) ---------- */
.cd-site-footer,
body.cd-inner-page #wrapper #footer.cd-footer-upgraded {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  background: var(--cd-charcoal) !important;
  background-image: none !important;
  border-top: none !important;
  color: #C3CCD6 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit !important;
}

.cd-footer-in {
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 46px 28px 26px;
}

.cd-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cd-footer-col h4 {
  margin: 0 0 11px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.4px;
}

.cd-footer-col p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #B4BFC9;
}

.cd-footer-col a {
  color: #7AC0FF;
  text-decoration: none;
}

.cd-footer-col a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.cd-footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #8894A0;
}

.cd-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cd-footer-nav a {
  color: #B4BFC9;
  text-decoration: none;
}

.cd-footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Floating Back-to-Top */
.cd-back-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--cd-charcoal);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s;
  z-index: 840;
}

.cd-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cd-back-top:hover {
  background: var(--cd-blue);
}

/* ==========================================================================
   Homepage Styles (index.html — Proposal B Body + Proposal A Footer)
   ========================================================================== */
body.cd-home-page {
  background: #FFFFFF !important;
}

.cd-home-page a {
  text-decoration: none;
}

.cd-home-page img {
  max-width: 100%;
  display: block;
}

/* Full-Bleed Visual Hero */
.cd-hero-wrap {
  position: relative;
  background: #041222;
}

.cd-hero-viewport {
  position: relative;
  height: 510px;
  overflow: hidden;
}

.cd-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.cd-hero-slide.is-active {
  opacity: 1;
}

.cd-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 18, 34, 0.94) 0%, rgba(4, 18, 34, 0.78) 48%, rgba(4, 18, 34, 0.16) 100%);
}

.cd-hero-content {
  position: absolute;
  inset: 0;
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 0 28px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
}

.cd-hero-content h1 {
  margin: 0 0 14px 0;
  font-size: 38px;
  line-height: 1.26;
  font-weight: 700;
  max-width: 640px;
  color: #FFFFFF;
}

.cd-hero-content p {
  margin: 0 0 28px 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: #E2ECF6;
  max-width: 560px;
}

.cd-hero-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cd-btn-delta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--cd-blue);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.18s;
}

.cd-btn-delta:hover {
  background: var(--cd-blue-dark);
}

.cd-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}

.cd-btn-ghost:hover {
  background: #FFFFFF;
  color: #041222 !important;
}

.cd-hero-pager {
  position: absolute;
  right: 28px;
  bottom: 74px;
  display: flex;
  gap: 8px;
  z-index: 6;
}

.cd-hero-pager button {
  width: 32px;
  height: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.cd-hero-pager button.is-active {
  background: #00A0E9;
}

/* Floating 4-Tile Quick Bar */
.cd-float-bar-wrap {
  max-width: var(--cd-max);
  margin: -50px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 10;
}

.cd-float-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(10, 32, 58, 0.12);
  border-top: 3px solid var(--cd-blue);
}

.cd-float-tile {
  padding: 22px;
  border-right: 1px solid #EAEEF3;
  transition: background 0.18s;
  color: inherit;
}

.cd-float-tile:last-child {
  border-right: none;
}

.cd-float-tile:hover {
  background: #F5F9FD;
}

.cd-float-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cd-blue);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.cd-float-tile strong {
  display: block;
  font-size: 16px;
  color: #16202A;
  margin-bottom: 4px;
}

.cd-float-tile span {
  font-size: 13px;
  color: #64748B;
}

/* Homepage Product Solutions */
.cd-sec-wrap {
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 64px 28px;
}

.cd-sec-title-center {
  text-align: center;
  margin-bottom: 38px;
}

.cd-sec-title-center span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--cd-blue);
  margin-bottom: 6px;
}

.cd-sec-title-center h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
  color: #141C24;
}

.cd-sec-title-center p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 15px;
  color: #5B6775;
}

.cd-featured-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.cd-feat-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: #F7F9FC;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cd-feat-card:hover {
  border-color: var(--cd-blue);
  box-shadow: 0 10px 26px rgba(0, 62, 118, 0.09);
}

.cd-feat-img {
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cd-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 230px;
}

.cd-feat-body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cd-feat-body h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #141C24;
}

.cd-feat-body p {
  margin: 0 0 16px 0;
  font-size: 13.5px;
  color: #4D5A68;
  line-height: 1.7;
}

.cd-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--cd-blue-dark);
  font-weight: 600;
}

.cd-sub-links a:hover {
  text-decoration: underline;
}

.cd-feat-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cd-blue);
}

.cd-matrix-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cd-m-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-bottom: 3px solid transparent;
  padding: 16px;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cd-m-card:hover {
  border-color: #CBD8E6;
  border-bottom-color: var(--cd-blue);
  box-shadow: 0 6px 18px rgba(0, 62, 118, 0.07);
}

.cd-m-card img {
  width: 96px;
  height: 82px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #EEF2F6;
}

.cd-m-card h3 {
  margin: 0 0 5px 0;
  font-size: 15.5px;
  color: #16202A;
}

.cd-m-card p {
  margin: 0;
  font-size: 12.5px;
  color: #5C6A78;
  line-height: 1.55;
}

.cd-center-cta-row {
  text-align: center;
  margin-top: 32px;
}

.cd-band-gray {
  background: #F4F6F9;
  border-top: 1px solid #E4E9EF;
}

.cd-app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.cd-app-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cd-app-media a {
  display: block;
  background: #FFFFFF;
  border: 1px solid #DFE5EC;
  overflow: hidden;
  color: inherit;
}

.cd-app-media img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.cd-app-media span {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1D252D;
}

.cd-app-media a:hover span {
  color: var(--cd-blue);
}

.cd-app-copy span.cd-en {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cd-blue);
  margin-bottom: 6px;
}

.cd-app-copy h2 {
  margin: 0 0 14px 0;
  font-size: 27px;
  color: #141C24;
  line-height: 1.35;
}

.cd-app-copy p {
  margin: 0 0 18px 0;
  font-size: 14.5px;
  color: #4B5866;
  line-height: 1.8;
}

.cd-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cd-blue);
}

.cd-app-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Inner Pages — Unified Wide Desktop + Mobile RWD (Sharp Industrial Style)
   ========================================================================== */
html.cd-rwd-ready #wrapper > #header,
html.cd-rwd-ready #wrapper > #headerlink,
html.cd-rwd-ready #wrapper > #button {
  display: none !important;
}

body.cd-inner-page #wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: var(--cd-bg) !important;
  float: none !important;
}

/* Full-width architectural midnight-navy banner strip (Proposal 3 + Proposal 1 seamless feather) */
.cd-banner-strip {
  width: 100%;
  background: #061625;
  border-bottom: 3px solid var(--cd-blue);
  padding: 0;
  overflow: hidden;
}

body.cd-inner-page #wrapper #banner {
  float: none !important;
  width: 100% !important;
  max-width: 1080px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

body.cd-inner-page #wrapper #banner .bx-wrapper {
  max-width: 100% !important;
  margin: 0 auto !important;
  border: none !important;
  background: #061625 !important;
  box-shadow: none !important;
}

body.cd-inner-page #wrapper #banner .bx-viewport {
  height: auto !important;
  border: none !important;
  left: 0 !important;
  box-shadow: none !important;
  background: #061625 !important;
}

body.cd-inner-page #wrapper #banner .bxslider,
body.cd-inner-page #wrapper #banner .bxslider li {
  margin: 0 !important;
  padding: 0 !important;
}

body.cd-inner-page #wrapper #banner .bxslider img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
}

body.cd-inner-page #wrapper #banner .bx-pager {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 12px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  z-index: 10;
}

body.cd-inner-page #wrapper #banner .bx-pager.bx-default-pager a {
  width: 34px !important;
  height: 3px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.3) !important;
  margin: 0 5px !important;
}

body.cd-inner-page #wrapper #banner .bx-pager.bx-default-pager a:hover,
body.cd-inner-page #wrapper #banner .bx-pager.bx-default-pager a.active {
  background: #38BDF8 !important;
}

/* Wide Two-Column Content Area (1280px max) */
body.cd-inner-page #wrapper #content {
  float: none !important;
  width: 100% !important;
  max-width: var(--cd-max) !important;
  margin: 26px auto 40px !important;
  padding: 0 28px !important;
  background: transparent !important;
  font-family: inherit !important;
}

body.cd-inner-page #wrapper #content > table {
  width: 100% !important;
  display: block !important;
}

body.cd-inner-page #wrapper #content > table > tbody {
  display: block !important;
  width: 100% !important;
}

body.cd-inner-page #wrapper #content > table > tbody > tr {
  display: flex !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
}

/* Left Sidebar — Crisp Sharp Industrial Panel */
body.cd-inner-page #wrapper #content > table > tbody > tr > td:first-child:not(:last-child) {
  flex: 0 0 260px !important;
  width: 260px !important;
  display: block !important;
  background: #FFFFFF !important;
  border: 1px solid var(--cd-border);
  border-top: 3px solid var(--cd-blue);
  overflow: hidden;
  padding: 0 !important;
}

body.cd-inner-page #content .ct_tab01 {
  width: 100% !important;
  background: #FFFFFF !important;
  background-image: none !important;
  display: block !important;
}

body.cd-inner-page #content .ct_tab01 > tbody,
body.cd-inner-page #content .ct_tab01 > tbody > tr,
body.cd-inner-page #content .ct_tab01 > tbody > tr > td {
  display: block !important;
  width: 100% !important;
}

body.cd-inner-page #content .ct_tab01 img[src*="icon_products"],
body.cd-inner-page #content .ct_tab01 img[src*="icon_down"],
body.cd-inner-page #content .ct_tab01 tr:has(img[src*="icon_products"]),
body.cd-inner-page #content .ct_tab01 tr:has(img[src*="icon_down"]) {
  display: none !important;
}

.cd-side-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  background: var(--cd-charcoal);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  text-align: left;
  font-family: inherit;
}

.cd-side-bar-head .cd-side-chevron {
  display: none;
  font-size: 12.5px;
  color: #9DD0FF;
}

body.cd-inner-page #content .ct_div01 {
  width: auto !important;
  margin: 0 !important;
  padding: 12px 12px 16px !important;
}

body.cd-inner-page #content .ct_div01 hr {
  border: none !important;
  border-top: 1px solid #E6ECF2 !important;
  margin: 10px 0 !important;
  height: 1px !important;
}

body.cd-inner-page #content .ct_div01 p {
  margin: 6px 0 !important;
  padding: 0 !important;
}

body.cd-inner-page #content .ct_link07,
body.cd-inner-page #content .ct_link01 {
  width: auto !important;
  background-image: none !important;
  padding: 0 !important;
  margin: 4px 0 6px 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.cd-inner-page #content .ct_link07 a,
body.cd-inner-page #content .ct_link01 a {
  display: block !important;
  padding: 7px 10px !important;
  margin: 0 !important;
  color: #16202A !important;
  background: #F4F7FA !important;
  border-left: 3px solid var(--cd-blue);
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

body.cd-inner-page #content .ct_link07 a:hover,
body.cd-inner-page #content .ct_link01 a:hover {
  background: #E8F2FC !important;
  color: var(--cd-blue-dark) !important;
}

/* Universal reset for ALL sidebar lists & 30 legacy ct_link* / ct_text* / pd_text* variants across 578 pages */
body.cd-inner-page #content .ct_div01 ul {
  list-style: none !important;
  margin: 4px 0 8px 0 !important;
  padding: 0 !important;
  width: auto !important;
}

body.cd-inner-page #content .ct_div01 ol {
  list-style: none !important;
  margin: 2px 0 6px 0 !important;
  padding: 0 0 0 11px !important;
  border-left: 2px solid #E2E8F0 !important;
  width: auto !important;
}

body.cd-inner-page #content .ct_div01 ol ol {
  padding: 0 0 0 10px !important;
  border-left: 1px dashed #CBD5E1 !important;
}

body.cd-inner-page #content .ct_div01 li {
  list-style: none !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  background-image: none !important;
  background-color: transparent !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  border: none !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

body.cd-inner-page #content .ct_div01 li a {
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 5px 8px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #334155 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* Level 1 sub-category links (ct_link06*, ct_link10-14) */
body.cd-inner-page #content .ct_div01 li[class^="ct_link06"] > a,
body.cd-inner-page #content .ct_div01 li[class^="ct_link1"] > a {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1E293B !important;
  padding: 6px 8px !important;
}

/* Level 2 item links (ct_link08*) */
body.cd-inner-page #content .ct_div01 li[class^="ct_link08"] > a {
  font-size: 12.8px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  padding: 4px 8px !important;
}

/* Level 3 anchor/detail links (ct_link09*) */
body.cd-inner-page #content .ct_div01 li[class^="ct_link09"] > a {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #475569 !important;
  padding: 3px 8px !important;
}

/* Non-link group heading labels (ct_text02/03/04*, pd_text17, pd_text23) */
body.cd-inner-page #content .ct_div01 li[class^="ct_text"],
body.cd-inner-page #content .ct_div01 li.pd_text17,
body.cd-inner-page #content .ct_div01 li.pd_text23 {
  padding: 7px 8px 3px !important;
  margin-top: 6px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--cd-navy) !important;
  border-bottom: 1px solid #E6ECF2 !important;
  background: #FAFBFD !important;
}

body.cd-inner-page #content .ct_div01 li a:hover {
  background: #F0F6FC !important;
  color: var(--cd-blue) !important;
}

body.cd-inner-page #content .ct_div01 a.cd-side-active {
  background: #E6F2FC !important;
  color: var(--cd-blue-dark) !important;
  font-weight: 700 !important;
  border-left: 2px solid var(--cd-blue) !important;
}

/* Right Main White Content Panel */
body.cd-inner-page #wrapper #content > table > tbody > tr > td:last-child {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  display: block !important;
  background: #FFFFFF !important;
  border: 1px solid var(--cd-border);
  padding: 24px 30px 32px !important;
}

body.cd-inner-page #content table.ct_tab04 {
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
}

body.cd-inner-page #content table.ct_tab04 > tbody,
body.cd-inner-page #content table.ct_tab04 > tbody > tr,
body.cd-inner-page #content table.ct_tab04 > tbody > tr > td {
  display: block !important;
  width: 100% !important;
}

/* Clean Industrial Breadcrumb */
body.cd-inner-page #content .ct_tab05 {
  padding: 0 0 12px 0 !important;
  margin-bottom: 18px;
  border-bottom: 1px solid #E5EAEF;
  font-size: 13px !important;
  color: #64748B;
}

body.cd-inner-page #content .ct_tab05 a {
  color: var(--cd-blue) !important;
  text-decoration: none;
}

body.cd-inner-page #content .ct_tab05 a:hover {
  text-decoration: underline;
}

body.cd-inner-page #content img[src*="down_top.gif"] {
  display: none !important;
}

/* Global cleanup of legacy bottom pagination & 570px map wrappers */
body.cd-inner-page #content table.ct_tab04 table[width="570"],
body.cd-inner-page #content .pd_div07 {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  float: none !important;
}

body.cd-inner-page #content table.ct_tab04 td:has(img[src*="down_top.gif"]) {
  display: none !important;
}

body.cd-inner-page #content .pd_div07 .pd_ul06 {
  width: auto !important;
  max-width: 100% !important;
  margin: 10px auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px !important;
  list-style: none !important;
}

body.cd-inner-page #content .pd_div07 .pd_ul06 li {
  float: none !important;
  width: auto !important;
  min-width: 28px;
  height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 4px 8px !important;
}

body.cd-inner-page .cd-ui-map-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto 14px auto;
}

body.cd-inner-page #content .ct_tab01 td[height] {
  height: auto !important;
}

/* ---------- Restyle .cd-ui-* Blocks to Crisp Industrial Precision ---------- */
body.cd-inner-page .cd-ui-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: var(--cd-text) !important;
}

body.cd-inner-page .cd-ui-hero {
  width: 100% !important;
  background: #F7F9FC !important;
  border: 1px solid var(--cd-border) !important;
  border-left: 4px solid var(--cd-blue) !important;
  border-radius: 0 !important;
  padding: 20px 22px !important;
  margin-bottom: 18px !important;
}

body.cd-inner-page .cd-ui-badge {
  display: inline-block;
  padding: 0 !important;
  background: transparent !important;
  color: var(--cd-blue) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  border-radius: 0 !important;
  margin-bottom: 4px !important;
}

body.cd-inner-page .cd-ui-h1 {
  font-size: 24px !important;
  line-height: 1.35 !important;
  color: #141C24 !important;
  margin: 4px 0 8px 0 !important;
}

body.cd-inner-page .cd-ui-sub {
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: var(--cd-muted) !important;
}

body.cd-inner-page .cd-ui-h2 {
  font-size: 17px !important;
  color: #141C24 !important;
  border-bottom: 2px solid #E5EAEF !important;
  padding-bottom: 8px !important;
  margin: 14px 0 14px 0 !important;
}

body.cd-inner-page .cd-ui-card,
body.cd-inner-page .cd-ui-card-tint,
body.cd-inner-page .cd-ui-note,
body.cd-inner-page .cd-ui-cta {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  padding: 20px 22px !important;
  margin-bottom: 18px !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.cd-inner-page .cd-ui-card {
  border-color: var(--cd-border) !important;
}

body.cd-inner-page .cd-ui-card-tint {
  background: #F8FAFC !important;
  border-color: var(--cd-border) !important;
  border-top: 3px solid var(--cd-blue) !important;
}

body.cd-inner-page .cd-ui-btn-primary {
  background: var(--cd-blue) !important;
  border-color: var(--cd-blue) !important;
  border-radius: 0 !important;
  padding: 9px 18px !important;
  font-size: 13.5px !important;
}

body.cd-inner-page .cd-ui-btn-primary:hover {
  background: var(--cd-blue-dark) !important;
}

body.cd-inner-page .cd-ui-btn-outline {
  color: var(--cd-blue) !important;
  border-color: var(--cd-blue) !important;
  border-radius: 0 !important;
  padding: 9px 18px !important;
  font-size: 13.5px !important;
}

body.cd-inner-page .cd-ui-btn-outline:hover {
  background: #F0F7FD !important;
}

/* Catalog Grid (product.html) — 4 columns sharp cards on desktop */
body.cd-inner-page .cd-ui-catalog-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

body.cd-inner-page .cd-ui-catalog-grid li {
  border-radius: 0 !important;
  border-color: var(--cd-border) !important;
}

body.cd-inner-page .cd-ui-catalog-grid li:hover {
  border-color: var(--cd-blue) !important;
  box-shadow: 0 6px 18px rgba(0, 62, 118, 0.08) !important;
}

body.cd-inner-page .cd-ui-catalog-grid li img {
  height: 146px !important;
}

body.cd-inner-page .cd-ui-catalog-grid li .cd-ui-cat-label {
  font-size: 13px !important;
  padding: 10px 8px !important;
  color: #16202A !important;
}

/* Company Page Modern Corporate Profile Layout (Proposal 3 + Proposal 1 seamless #061625) */
.cd-about-banner {
  position: relative;
  width: 100%;
  background: #061625;
  border-bottom: 3px solid var(--cd-blue);
  overflow: hidden;
}

.cd-about-banner-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--cd-max);
  background: url(company/about-banner.jpg?v=20261128) right 16px center / auto 112% no-repeat;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, #000 60%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, #000 60%, #000 92%, transparent 100%);
}

.cd-about-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 22, 37, 0.94) 0%, rgba(6, 22, 37, 0.78) 46%, rgba(6, 22, 37, 0) 68%);
  pointer-events: none;
}

.cd-about-banner-in {
  position: relative;
  z-index: 2;
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 44px 28px 46px;
  color: #FFFFFF;
}

.cd-about-en {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #60B5FF;
  margin-bottom: 8px;
}

.cd-about-banner-in h1 {
  margin: 0 0 10px 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: #FFFFFF;
}

.cd-about-banner-in p {
  margin: 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.75;
  color: #D7E4F0;
}

.cd-about-crumb {
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 14px 28px 0;
  font-size: 13px;
  color: #64748B;
}

.cd-about-crumb a {
  color: var(--cd-blue);
  text-decoration: none;
}

.cd-about-crumb a:hover {
  text-decoration: underline;
}

.cd-about-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 24px;
  align-items: start;
}

.cd-about-panel {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  padding: 28px 30px;
}

.cd-about-panel-top {
  border-top: 3px solid var(--cd-blue);
}

.cd-about-h2 {
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5EAEF;
  font-size: 19px;
  font-weight: 700;
  color: #141C24;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cd-about-h2 small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--cd-blue);
}

.cd-about-story p {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.9;
  color: #2B3642;
}

.cd-about-story p:last-child {
  margin-bottom: 0;
}

.cd-about-prod-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5EAEF;
}

.cd-about-prod-mini {
  display: block;
  border: 1px solid var(--cd-border);
  background: #FAFBFD;
  text-decoration: none;
  color: #1D252D;
  overflow: hidden;
  transition: border-color 0.18s;
}

.cd-about-prod-mini:hover {
  border-color: var(--cd-blue);
}

.cd-about-prod-mini img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #E8EDF3;
}

.cd-about-prod-mini span {
  display: block;
  padding: 7px 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  color: #16202A;
}

.cd-profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cd-profile-table th,
.cd-profile-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #E8EDF3;
  vertical-align: top;
  text-align: left;
  line-height: 1.65;
}

.cd-profile-table th {
  width: 92px;
  color: #004E8C;
  font-weight: 700;
  white-space: nowrap;
}

.cd-profile-table td {
  color: #2B3642;
}

.cd-profile-table a {
  color: var(--cd-blue);
  text-decoration: none;
  font-weight: 600;
}

.cd-profile-table a:hover {
  text-decoration: underline;
}

.cd-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cd-about-hq-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.cd-about-hq-fig {
  margin: 0;
  border: 1px solid var(--cd-border);
  background: #FAFBFD;
  overflow: hidden;
}

.cd-about-hq-fig img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.cd-about-hq-fig figcaption {
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #16202A;
  text-align: center;
  border-top: 1px solid #E8EDF3;
  background: #F7F9FC;
}

.cd-about-offices {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cd-about-office-card {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-top: 3px solid var(--cd-navy);
  padding: 20px 22px;
}

.cd-about-office-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--cd-navy);
}

.cd-about-office-card p {
  margin: 4px 0;
  font-size: 13.5px;
  color: #3B4754;
  line-height: 1.65;
}

.cd-about-office-card a {
  color: var(--cd-blue);
  text-decoration: none;
  font-weight: 600;
}

.cd-about-office-card a:hover {
  text-decoration: underline;
}

/* Download Collapsible Panels (download.html) */
body.cd-inner-page .cd-ui-download-wrap .CollapsiblePanel {
  border-radius: 0 !important;
  border-color: var(--cd-border) !important;
  margin-bottom: 10px !important;
}

body.cd-inner-page .cd-ui-download-wrap .CollapsiblePanelTab {
  background: var(--cd-navy) !important;
  padding: 11px 16px !important;
  font-size: 14.5px !important;
}

body.cd-inner-page .cd-ui-download-wrap .CollapsiblePanelTab2 {
  background: var(--cd-charcoal) !important;
  padding: 11px 16px !important;
  font-size: 14.5px !important;
}

body.cd-inner-page .cd-ui-download-wrap .pd_link05 a,
body.cd-inner-page .cd-ui-download-wrap .pd_link05_2 a,
body.cd-inner-page .cd-ui-download-wrap .pd_link05_3 a,
body.cd-inner-page .cd-ui-download-wrap .pd_link05_4 a {
  border-radius: 0 !important;
  font-size: 13px !important;
  padding: 7px 12px 7px 26px !important;
}

/* News & Office Cards */
body.cd-inner-page .cd-ui-news-item {
  border-radius: 0 !important;
  border-left-color: var(--cd-blue) !important;
  background: #FFFFFF !important;
  padding: 14px 16px !important;
}

body.cd-inner-page .cd-ui-office-box {
  border-radius: 0 !important;
  border-top: 2px solid var(--cd-navy) !important;
  background: #FAFBFD !important;
  padding: 15px 16px !important;
  font-size: 13.5px !important;
}

body.cd-inner-page .cd-ui-form-table {
  font-size: 14px !important;
}

body.cd-inner-page .cd-ui-form-table input[type="text"],
body.cd-inner-page .cd-ui-form-table textarea {
  font-size: 14px !important;
  padding: 9px 11px !important;
  border-radius: 0 !important;
}

body.cd-inner-page .cd-ui-form-table input[type="submit"],
body.cd-inner-page .cd-ui-form-table input[type="reset"] {
  border-radius: 0 !important;
  padding: 9px 22px !important;
  font-size: 14px !important;
}

body.cd-inner-page .cd-ui-form-table input[type="submit"] {
  background: var(--cd-blue) !important;
  border-color: var(--cd-blue) !important;
}

/* Tables & Legacy Diagrams */
body.cd-inner-page .cd-ui-table {
  font-size: 13.5px !important;
}

body.cd-inner-page .cd-ui-table th,
body.cd-inner-page .cd-ui-table td {
  padding: 8px 10px !important;
}

body.cd-inner-page .cd-ui-faq dt {
  font-size: 14.5px !important;
  color: #141C24 !important;
}

body.cd-inner-page .cd-ui-faq dd {
  font-size: 13.5px !important;
  line-height: 1.78 !important;
}

body.cd-inner-page .cd-ui-legacy img {
  max-width: 100% !important;
  height: auto !important;
}

body.cd-inner-page .cd-ui-legacy table.cd-ui-wide-table td,
body.cd-inner-page .cd-ui-legacy table.cd-ui-wide-table th {
  font-size: 12px !important;
  padding: 6px 5px !important;
}

.cd-rwd-table-scroll,
.cd-ui-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

.cd-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--cd-blue-dark);
  background: #F0F7FD;
  border: 1px solid #C2DDF4;
  padding: 5px 10px;
  margin: 0 0 6px 0;
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1100px) {
  body.cd-inner-page .cd-ui-catalog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .cd-featured-two {
    grid-template-columns: 1fr;
  }
  .cd-matrix-six {
    grid-template-columns: repeat(2, 1fr);
  }
  .cd-float-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .cd-app-split {
    grid-template-columns: 1fr;
  }
  .cd-footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  /* Mobile Header + Drawer Nav */
  .cd-header-in {
    height: 64px;
    padding: 0 16px;
  }
  .cd-brand-logo img {
    height: 42px;
  }
  .cd-header-right {
    display: none;
  }
  .cd-menu-toggle {
    display: inline-flex;
  }
  .cd-main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #FFFFFF;
    border-bottom: 2px solid var(--cd-blue);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  }
  .cd-main-nav.is-open {
    display: flex;
  }
  .cd-main-nav a {
    padding: 11px 6px;
    border-bottom: 1px solid #EEF2F6;
  }
  .cd-main-nav a::after {
    display: none;
  }
  .cd-nav-mobile-extra {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }
  .cd-nav-mobile-extra a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 13.5px;
    font-weight: 700;
    border-bottom: none !important;
  }
  .cd-nav-mobile-tel {
    background: #EEF4FA;
    color: var(--cd-navy) !important;
  }
  .cd-nav-mobile-cta {
    background: var(--cd-blue);
    color: #FFFFFF !important;
  }

  /* Homepage Mobile */
  .cd-hero-viewport {
    height: 430px;
  }
  .cd-hero-content {
    padding: 0 16px 40px;
  }
  .cd-hero-content h1 {
    font-size: 26px;
  }
  .cd-hero-content p {
    font-size: 14.5px;
  }
  .cd-hero-pager {
    right: 16px;
    bottom: 20px;
  }
  .cd-float-bar-wrap {
    margin-top: 0;
    padding: 16px;
  }
  .cd-sec-wrap {
    padding: 40px 16px;
  }

  /* Inner Page Mobile */
  body.cd-inner-page #wrapper #banner {
    padding: 0 !important;
  }
  body.cd-inner-page #wrapper #banner .bxslider img {
    max-height: none !important;
  }
  body.cd-inner-page #wrapper #banner .bx-pager,
  body.cd-inner-page #wrapper #banner .bx-controls-direction {
    display: none !important;
  }
  body.cd-inner-page #wrapper #content {
    margin: 14px auto 26px !important;
    padding: 0 12px !important;
  }
  body.cd-inner-page #wrapper #content > table > tbody > tr {
    flex-direction: column !important;
    gap: 14px !important;
  }
  body.cd-inner-page #wrapper #content > table > tbody > tr > td:first-child:not(:last-child) {
    flex: none !important;
    width: 100% !important;
  }
  .cd-side-bar-head {
    cursor: pointer;
  }
  .cd-side-bar-head .cd-side-chevron {
    display: inline-block;
  }
  .cd-side-collapsed .ct_tab01,
  .cd-side-collapsed .ct_div01 {
    display: none !important;
  }
  body.cd-inner-page #wrapper #content > table > tbody > tr > td:last-child {
    width: 100% !important;
    padding: 16px 14px 22px !important;
  }
  /* Mobile stacking for legacy reducer / robotics / multi-column boxes */
  body.cd-inner-page .cd-ui-map-wrap [class*="pd_div21_"],
  body.cd-inner-page .cd-ui-map-wrap [class*="pd_div21_"] + .pd_div,
  body.cd-inner-page .cd-ui-legacy [class*="pd_div22_e"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px !important;
    background-image: none !important;
  }
  body.cd-inner-page .cd-ui-map-wrap .pd_div21_text {
    width: auto !important;
    margin: 0 0 12px 0 !important;
  }
  body.cd-inner-page .cd-ui-legacy div:has(> .pd_div16) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  body.cd-inner-page .cd-ui-legacy div:has(> .pd_div17) {
    grid-template-columns: 1fr !important;
  }
  body.cd-inner-page .cd-ui-legacy .pd_span04 {
    width: calc(50% - 4px) !important;
  }
  body.cd-inner-page .cd-ui-legacy div:has(> .pd_span03) {
    flex-wrap: wrap !important;
  }
  body.cd-inner-page .cd-ui-legacy .pd_div10,
  body.cd-inner-page .cd-ui-legacy .pd_div10_1,
  body.cd-inner-page .cd-ui-legacy .pd_div19,
  body.cd-inner-page .cd-ui-legacy .pd_div20,
  body.cd-inner-page .cd-ui-legacy .pd_div23,
  body.cd-inner-page .cd-ui-legacy .pd_div23_1 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Turn 3-col legacy product/sample card tables into spacious 2-col mobile grid */
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.pd_tab01),
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.sp_tab01) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.pd_tab01) > tbody,
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.pd_tab01) > tbody > tr,
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.sp_tab01) > tbody,
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.sp_tab01) > tbody > tr {
    display: contents !important;
  }
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.pd_tab01) > tbody > tr > td,
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.sp_tab01) > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.pd_tab01) > tbody > tr > td:not(:has(table.pd_tab01)),
  body.cd-inner-page .cd-ui-legacy table:has(> tbody > tr > td > table.sp_tab01) > tbody > tr > td:not(:has(table.sp_tab01)) {
    display: none !important;
  }
  body.cd-inner-page .cd-ui-legacy table.pd_tab01,
  body.cd-inner-page .cd-ui-legacy table.sp_tab01 {
    width: 100% !important;
    margin: 0 !important;
  }
  body.cd-inner-page .cd-ui-legacy table.sp_tab01 img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Stack 2-column legacy bullet-list tables (e.g. product_e0-2.html td[width="280"]) cleanly on mobile */
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_2),
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_3),
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_4) {
    display: block !important;
    width: 100% !important;
  }
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_2) > tbody,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_2) > tbody > tr,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_2) > tbody > tr > td,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_3) > tbody,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_3) > tbody > tr,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_3) > tbody > tr > td,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_4) > tbody,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_4) > tbody > tr,
  body.cd-inner-page .cd-ui-legacy table:has(ul.pd_ul07_4) > tbody > tr > td {
    display: block !important;
    width: 100% !important;
  }
  .cd-about-grid,
  .cd-about-offices {
    grid-template-columns: 1fr;
  }
  .cd-about-banner-in {
    padding: 28px 16px 30px;
  }
  .cd-about-banner-in h1 {
    font-size: 23px;
  }
  .cd-about-crumb {
    padding: 12px 12px 0;
  }
  .cd-about-panel {
    padding: 18px 16px;
  }
  .cd-about-prod-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  body.cd-inner-page .cd-ui-hero,
  body.cd-inner-page .cd-ui-card,
  body.cd-inner-page .cd-ui-card-tint {
    padding: 14px 12px !important;
  }
  body.cd-inner-page .cd-ui-h1 {
    font-size: 20px !important;
  }
  body.cd-inner-page .cd-ui-catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  body.cd-inner-page .cd-ui-catalog-grid li img {
    height: 118px !important;
  }
  body.cd-inner-page .cd-ui-office-grid {
    grid-template-columns: 1fr !important;
  }
  body.cd-inner-page .cd-ui-legacy table.cd-ui-wide-table {
    min-width: 540px !important;
  }
  .cd-scroll-hint.is-needed {
    display: block;
  }
  .cd-footer-in {
    padding: 34px 16px 22px;
  }
}

@media (max-width: 600px) {
  .cd-feat-card {
    grid-template-columns: 1fr;
  }
  .cd-matrix-six,
  .cd-float-bar,
  .cd-app-media,
  .cd-footer-top {
    grid-template-columns: 1fr;
  }
  .cd-float-tile {
    border-right: none;
    border-bottom: 1px solid #EAEEF3;
  }
  body.cd-inner-page .cd-ui-form-table,
  body.cd-inner-page .cd-ui-form-table tbody,
  body.cd-inner-page .cd-ui-form-table tr,
  body.cd-inner-page .cd-ui-form-table td {
    display: block !important;
    width: 100% !important;
  }
  body.cd-inner-page .cd-ui-form-table tr {
    padding: 6px 0;
    border-bottom: 1px solid #E8EFF6;
  }
  body.cd-inner-page .cd-ui-form-table td {
    border-bottom: none !important;
    padding: 3px 0 !important;
  }
  body.cd-inner-page .cd-ui-form-table .cd-ui-form-label {
    width: 100% !important;
    margin-bottom: 2px;
  }
  body.cd-inner-page .cd-ui-news-head {
    flex-direction: column;
    gap: 3px;
  }
}

/* ==========================================================================
   Sitewide Instant Model Search (Header Trigger, Modal & Product Inline Box)
   ========================================================================== */
.cd-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #F4F7FA;
  border: 1px solid #C8D4E0;
  color: #1D2A38;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.cd-search-btn:hover {
  border-color: var(--cd-blue);
  color: var(--cd-blue);
  background: #EFF6FF;
}

.cd-search-btn svg,
.cd-mobile-search-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.cd-mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  margin-left: auto;
  background: #F4F7FA;
  border: 1px solid #C8D2DE;
  color: #1D252D;
  cursor: pointer;
  flex-shrink: 0;
}

.cd-mobile-search-btn:hover {
  border-color: var(--cd-blue);
  color: var(--cd-blue);
}

@media (max-width: 1240px) and (min-width: 921px) {
  .cd-header-phone {
    display: none;
  }
  .cd-main-nav {
    gap: 14px;
  }
}

@media (max-width: 1080px) and (min-width: 921px) {
  .cd-brand-logo img {
    height: 38px;
  }
  .cd-main-nav {
    gap: 11px;
  }
  .cd-main-nav a {
    font-size: 13.5px;
  }
}

@media (max-width: 920px) {
  .cd-mobile-search-btn {
    display: inline-flex;
  }
  .cd-header-in {
    gap: 8px;
  }
  .cd-brand-logo img {
    height: 38px;
    max-width: 195px;
    object-fit: contain;
  }
}

/* Search Modal Overlay */
.cd-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 14px 24px;
  background: rgba(6, 22, 37, 0.62);
  box-sizing: border-box;
}

.cd-search-modal.is-open {
  display: flex;
}

.cd-search-dialog {
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 96px);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-top: 3px solid var(--cd-blue);
  box-shadow: 0 22px 48px rgba(6, 22, 37, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.cd-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.cd-search-head svg {
  width: 18px;
  height: 18px;
  color: var(--cd-blue);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.cd-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15.5px;
  font-family: inherit;
  color: #0F172A;
  background: transparent;
}

.cd-search-input::placeholder {
  color: #94A3B8;
}

.cd-search-close {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.cd-search-close:hover {
  border-color: var(--cd-blue);
  color: var(--cd-blue);
}

.cd-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.cd-search-chips-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  margin-right: 4px;
}

.cd-search-chip {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.cd-search-chip:hover {
  border-color: var(--cd-blue);
  color: var(--cd-blue);
  background: #EFF6FF;
}

.cd-search-status {
  padding: 8px 16px;
  font-size: 12.5px;
  color: #64748B;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
}

.cd-search-results {
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: 440px;
}

.cd-search-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 16px;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none !important;
  color: #0F172A !important;
  transition: background 0.12s;
}

.cd-search-item:hover,
.cd-search-item.is-selected {
  background: #EFF6FF;
}

.cd-search-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cd-search-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
}

.cd-search-item-cat {
  font-size: 11.5px;
  font-weight: 600;
  color: #005AA3;
  background: #EBF4FD;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cd-search-item-meta {
  font-size: 12px;
  color: #64748B;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-search-item mark {
  background: #FEF08A;
  color: #0F172A;
  padding: 0 2px;
}

.cd-search-empty {
  padding: 28px 18px;
  text-align: center;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.cd-search-empty a {
  color: var(--cd-blue);
  font-weight: 700;
}

.cd-search-foot {
  padding: 9px 16px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
}

.cd-search-foot a {
  color: var(--cd-blue);
  font-weight: 600;
  text-decoration: none;
}

.cd-search-foot a:hover {
  text-decoration: underline;
}

/* Inline Quick Search Bar on product.html */
.cd-inline-search-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
}

.cd-inline-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-inline-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #B8C7D8;
  font-size: 14.5px;
  font-family: inherit;
  color: #0F172A;
  background: #FFFFFF;
}

.cd-inline-search-input:focus {
  outline: none;
  border-color: var(--cd-blue);
  box-shadow: 0 0 0 2px rgba(0, 114, 206, 0.14);
}

.cd-inline-search-results {
  margin-top: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.cd-inline-search-results.is-visible {
  display: block;
}

@media (max-width: 600px) {
  .cd-search-modal {
    padding: 16px 10px 16px;
  }
  .cd-search-dialog {
    max-height: calc(100vh - 32px);
  }
  .cd-search-item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
