:root {
  --jlk-mobile-gutter: 20px;
  --jlk-header-height: 66px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

x-dc,
helmet {
  display: block;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.jlk-site-shell {
  width: 100%;
}

.jlk-mobile-menu,
.jlk-mobile-drawer {
  display: none;
}

.jlk-mobile-menu {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #fff;
  color: #17345f;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(24, 61, 112, 0.08);
}

.jlk-mobile-menu span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.jlk-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 19, 40, 0.42);
  backdrop-filter: blur(5px);
}

.jlk-mobile-drawer.is-open {
  display: block;
}

.jlk-mobile-drawer-panel {
  width: min(86vw, 360px);
  height: 100%;
  margin-left: auto;
  overflow-y: auto;
  background: #fff;
  box-shadow: -24px 0 60px rgba(9, 35, 72, 0.2);
  padding: 20px 18px 32px;
}

.jlk-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 18px;
  border-bottom: 1px solid #e7edf5;
}

.jlk-mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b1220;
  font-size: 17px;
  font-weight: 800;
}

.jlk-mobile-drawer-brand img {
  width: auto;
  height: 30px;
}

.jlk-mobile-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f1f5fa;
  color: #17345f;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.jlk-mobile-nav {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.jlk-mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #34445d;
  font-size: 15px;
  font-weight: 600;
}

.jlk-mobile-nav a:hover,
.jlk-mobile-nav a.is-active {
  background: #eaf3fb;
  color: #2e5fa3;
}

.jlk-mobile-nav-group {
  margin: 13px 14px 4px;
  color: #8896aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.jlk-mobile-nav .jlk-mobile-product {
  padding-left: 28px;
  font-size: 14px;
  font-weight: 500;
}

.jlk-mobile-contact {
  margin-top: 10px;
  text-align: center;
  color: #fff !important;
  background: linear-gradient(135deg, #2e5fa3, #4a7fc4) !important;
}

body.jlk-menu-open {
  overflow: hidden;
}

.jlk-wide-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.jlk-wide-table::after {
  content: "表格可左右滑动";
  display: none;
  padding: 8px 14px;
  color: #7b899c;
  background: #f7f9fc;
  font-size: 11px;
  text-align: right;
}

@media (max-width: 1024px) {
  :root {
    --jlk-mobile-gutter: 28px;
  }

  .jlk-site-shell {
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .jlk-content-wrap {
    width: auto !important;
    max-width: 100% !important;
    padding-left: var(--jlk-mobile-gutter) !important;
    padding-right: var(--jlk-mobile-gutter) !important;
    box-sizing: border-box;
  }

  .jlk-site-header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 var(--jlk-mobile-gutter) !important;
    box-sizing: border-box;
  }

  .jlk-desktop-nav {
    display: none !important;
  }

  .jlk-mobile-menu {
    display: flex;
  }

  .jlk-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .jlk-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .jlk-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px !important;
  }

  .jlk-wide-table > .jlk-table-row {
    min-width: 720px;
  }

  .jlk-wide-table::after {
    display: block;
  }

  [style*="width:900px"],
  [style*="width:820px"],
  [style*="width:800px"],
  [style*="width:680px"],
  [style*="width:520px"],
  [style*="width:480px"],
  [style*="width:440px"] {
    max-width: 100% !important;
  }
}

@media (max-width: 900px) {
  .jlk-grid-2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .jlk-grid-2 {
    gap: 28px !important;
  }

  .jlk-hero-visual {
    height: 320px !important;
    min-height: 0 !important;
  }

  .jlk-hero-visual > [style*="width:400px"] {
    width: 300px !important;
    height: 300px !important;
  }

  .jlk-hero-visual img {
    width: auto;
    height: auto !important;
    max-width: 88% !important;
    max-height: 88% !important;
    object-fit: contain;
  }

  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns:1fr 2fr"] {
    column-gap: 18px !important;
  }
}

@media (max-width: 640px) {
  :root {
    --jlk-mobile-gutter: 18px;
  }

  .jlk-site-header-inner {
    height: 60px !important;
  }

  .jlk-site-header-inner > a {
    min-width: 0;
    gap: 9px !important;
  }

  .jlk-site-header-inner > a img {
    height: 29px !important;
  }

  .jlk-site-header-inner > a span:last-child {
    overflow: hidden;
    max-width: 155px;
    font-size: 15px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jlk-grid-4,
  .jlk-grid-3,
  .jlk-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .jlk-content-wrap {
    padding-left: var(--jlk-mobile-gutter) !important;
    padding-right: var(--jlk-mobile-gutter) !important;
  }

  .jlk-heading-xl {
    font-size: 34px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
  }

  .jlk-heading-lg {
    font-size: 31px !important;
    line-height: 1.3 !important;
  }

  .jlk-heading-md {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }

  .jlk-heading-sm {
    font-size: 23px !important;
  }

  .jlk-home-hero-title {
    font-size: clamp(34px, 10vw, 42px) !important;
  }

  .jlk-large-card-padding {
    padding: 26px !important;
  }

  [style*="padding:30px;"] {
    padding: 22px !important;
  }

  [style*="height:460px"] {
    height: 300px !important;
  }

  [style*="height:400px"] {
    max-height: 300px !important;
  }

  [style*="height:340px"] {
    height: 270px !important;
  }

  [style*="height:300px"] {
    height: 250px !important;
  }

  [style*="height:250px"] {
    height: 210px !important;
  }

  .jlk-hero-visual {
    height: 280px !important;
  }

  .jlk-spec-row {
    grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr) !important;
    padding: 14px 16px !important;
    gap: 14px;
    line-height: 1.6;
  }

  .jlk-footer-bottom {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px;
  }

  .jlk-metric-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 !important;
    width: 100%;
  }

  .jlk-metric-row > div {
    min-width: 0;
    padding: 0 10px !important;
  }

  .jlk-metric-row > div:first-child {
    padding-left: 0 !important;
  }

  .jlk-metric-row > div:last-child {
    padding-right: 0 !important;
  }

  .jlk-metric-row [style*="font:700 32px"] {
    font-size: 25px !important;
    white-space: nowrap;
  }

  .jlk-wide-table {
    margin-right: calc(var(--jlk-mobile-gutter) * -1);
    border-right: 0 !important;
    border-radius: 16px 0 0 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
