/* Layout tokens reuse the current LR-LINK mobile spacing and component sizes. */
html.lr-mobile-document {
  --lr-mobile-space-1: 5px;
  --lr-mobile-space-2: 10px;
  --lr-mobile-space-3: 15px;
  --lr-mobile-space-4: 20px;
  --lr-mobile-header-height: 71px;
  --lr-mobile-control-height: 40px;
  --lr-mobile-field-basis: 210px;
  --lr-mobile-modal-max: 400px;
  --lr-mobile-brand: #0079c2;
  --lr-mobile-rule: #ddd;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: visible !important;
}
body.lr-mobile-fluid {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  overflow-x: visible !important;
}
.lr-mobile-fluid *, .lr-mobile-fluid *::before, .lr-mobile-fluid *::after { box-sizing: border-box; }
.lr-mobile-fluid :where(img, video, iframe, object, embed) { max-width: 100%; }
.lr-mobile-fluid :where(img, video) { height: auto; }
.lr-mobile-fluid :where(video, iframe, object, embed) { display: block; }
.lr-mobile-fluid :where(input, select, textarea) { max-width: 100%; font-size: 1rem; }
.lr-mobile-fluid :where(.lybanner, .news, .solution, .tylm, .download, .downloadshow,
  .contactnews, .fangwei, .fangweileft, .jobs, .activity, .cpmain, .cpmainlist,
  .lymain, .lmlb, .search, .end, .groupphoto, .lanrenzhijia) {
  width: auto;
  min-width: 0;
  max-width: 100%;
}
.lr-mobile-fluid :where(.news, .solution, .tylm, .contactnews, .tablist) { overflow: visible; }
.lr-mobile-fluid :where(.news_title, .prod_model, .list-page-title) { overflow-wrap: anywhere; }
.lr-mobile-fluid .lybanner { margin-top: var(--lr-mobile-header-height); }
.lr-mobile-fluid .lybanner img { display: block; width: 100%; height: auto; }
.lr-mobile-fluid .end { padding-inline: var(--lr-mobile-space-4); }
.lr-mobile-fluid #location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--lr-mobile-space-2);
  height: auto;
  min-height: 36px;
}
.lr-mobile-fluid #location .title { float: none; flex: 1 1 75%; min-width: 0; }
.lr-mobile-fluid #location .back { float: none; flex: 0 0 auto; padding-block: var(--lr-mobile-space-1); }

/* The existing hero uses the same 480:250 artwork at the actual device width. */
.lr-mobile-fluid .flexslider { width: 100%; height: auto; aspect-ratio: 480 / 250; }
.lr-mobile-fluid .flexslider .slides { height: 100%; }
.lr-mobile-fluid .flexslider .slides > li { height: 100%; }
.lr-mobile-fluid .flexslider .slides > li > a,
.lr-mobile-fluid .flexslider .slides > li > a > div { display: block; width: 100%; height: 100%; }
.lr-mobile-fluid .flexslider .flex-control-nav { left: 0; bottom: var(--lr-mobile-space-2); text-align: center; }

/* Keep the familiar product cards; remove float widths and fixed text heights. */
.lr-mobile-fluid :is(.honelr, .cpmainlist_ul, .hfour ul, .hfive ul, .hthreeulimg) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lr-mobile-space-2);
  padding: var(--lr-mobile-space-2);
  overflow: visible;
}
.lr-mobile-fluid :is(.hone .p1, .cpmainlist_ul > li, .hfour li, .hfive li, .hthreeulimg > li) {
  float: none;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
}
.lr-mobile-fluid :is(.hone .p1 img, .cpmainlist_ul .liimg, .hfour li img, .hfive li img) {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.lr-mobile-fluid .hone .p1 :is(h2, h3, p),
.lr-mobile-fluid .cpmainlist_ul :is(h2, h6, p) { overflow-wrap: anywhere; height: auto; }
.lr-mobile-fluid :is(.htwo dl, .hthree dl) { width: auto; height: auto; min-width: 0; }
.lr-mobile-fluid .htwo dl { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: var(--lr-mobile-space-3); }
.lr-mobile-fluid .htwo :is(dt, dd) { float: none; width: auto; height: auto; margin: 0; min-width: 0; }
.lr-mobile-fluid .htwo dt img { width: 100%; height: auto; }
.lr-mobile-fluid .hthree dd { float: none; width: auto; height: auto; }
.lr-mobile-fluid :is(.newsul li img, .solutionul li img) { width: min(42%, 180px); height: auto; }
.lr-mobile-fluid .lynav ul { display: flex; flex-wrap: wrap; gap: var(--lr-mobile-space-1); }
.lr-mobile-fluid .lynav ul > a { flex: 1 1 30%; min-width: 0; }
.lr-mobile-fluid .lynav li { width: auto; height: auto; min-height: 31px; margin: 0; padding: var(--lr-mobile-space-1); line-height: 1.5; float: none; }

/* Each gallery slide fills its clipping frame; percentage movement survives resize. */
.lr-mobile-fluid .focus { width: 100%; height: auto; padding-inline: var(--lr-mobile-space-2); }
.lr-mobile-fluid .focusbox { min-width: 0; }
.lr-mobile-fluid .focusimg { width: 100%; height: auto; aspect-ratio: 460 / 428; }
.lr-mobile-fluid .fimglist {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  transform: translateX(calc(var(--lr-gallery-index, 0) * -100%));
}
.lr-mobile-fluid .fimglist li {
  flex: 0 0 100%;
  float: none;
  width: 100%;
  height: 100%;
  animation: none;
  opacity: 1;
  transform: none;
}
.lr-mobile-fluid .fimglist img { width: 100%; height: 100%; object-fit: contain; }
.lr-mobile-fluid .focustool { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.lr-mobile-fluid .ftoollist { display: flex; width: max-content; max-width: none; gap: var(--lr-mobile-space-2); }
.lr-mobile-fluid .ftoollist li { float: none; flex: 0 0 auto; }
.lr-mobile-fluid .ftoollist a { margin: 0; }
.lr-mobile-fluid .ftoollist a:focus-visible,
.lr-mobile-fluid .lr-mobile-table-scroll:focus-visible { outline: 2px solid var(--lr-mobile-brand); outline-offset: 2px; }
.lr-mobile-fluid :is(#tab1, #tab2) { overflow: visible; }
.lr-mobile-fluid :is(#tab1, #tab2) > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.lr-mobile-fluid :is(#tab1, #tab2) li { width: auto; min-width: 0; margin: 0; float: none; }
.lr-mobile-fluid .cpxgxx .p_3 { display: flex; flex-wrap: wrap; gap: var(--lr-mobile-space-2); }
.lr-mobile-fluid .cpxgxx .p_3 a { width: auto; margin: 0; flex: 1 1 9rem; padding-inline: var(--lr-mobile-space-2); }

/* CMS content stays intact. Wide tables scroll locally instead of widening the page. */
.lr-mobile-fluid :is(.news_xxjs, .tablist, .tylm, .contactnews, .lr-article) { min-width: 0; max-width: 100%; }
.lr-mobile-fluid :is(.news_xxjs, .tablist, .tylm, .contactnews, .lr-article)
  :where(p, div, section, figure, blockquote, h2, h3, h4, h5, h6, ul, ol) {
  width: auto !important;
  min-width: 0;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
.lr-mobile-fluid :is(.news_xxjs, .tablist, .tylm, .contactnews, .lr-article)
  :where(p, figure, blockquote) { height: auto !important; }
.lr-mobile-fluid :is(.news_xxjs, .tablist, .tylm, .contactnews, .lr-article) img { max-width: 100% !important; height: auto !important; }
.lr-mobile-fluid :is(.news_xxjs, .tablist, .tylm, .contactnews, .lr-article) iframe { width: 100%; }
.lr-mobile-fluid .lr-mobile-table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.lr-mobile-fluid :is(pre, .downloadshow) { max-width: 100%; overflow-x: auto; }

/* Existing forms wrap at their own boundaries; keyboard zoom remains enabled. */
.lr-mobile-fluid .download form > p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lr-mobile-space-2); }
.lr-mobile-fluid .download form :is(select, input[type="text"]) { flex: 1 1 var(--lr-mobile-field-basis); min-width: 0; width: auto; margin: 0; }
.lr-mobile-fluid .download form input[type="submit"] { flex: 0 0 auto; margin: 0; }
.lr-mobile-fluid #cpmainlb input[type="text"] { width: 100%; float: none !important; }
.lr-mobile-fluid #cpmainlb input[type="submit"] { max-width: 100%; float: none !important; margin-inline: 0 !important; }
.lr-mobile-fluid .fangweileft iframe { width: 100%; }
.lr-mobile-fluid #inqOverlay { height: var(--lr-mobile-visual-height, 100dvh); }
.lr-mobile-fluid #inqOverlay .inquiry-modal { width: calc(100% - 2 * var(--lr-mobile-space-2)); max-width: var(--lr-mobile-modal-max); max-height: calc(var(--lr-mobile-visual-height, 100dvh) - 2 * var(--lr-mobile-space-4)); }
.lr-mobile-fluid .inquiry-body :is(input, select, textarea) { font-size: 1rem; }
.lr-mobile-fluid .reveal-modal { width: calc(100% - 2 * var(--lr-mobile-space-2)); max-width: var(--lr-mobile-modal-max); margin-left: 0; transform: translateX(-50%); padding: var(--lr-mobile-space-4); }
.lr-mobile-fluid :is(.modallrleft, .modallrright) { float: none; width: auto; min-width: 0; max-width: 100%; }
.lr-mobile-fluid .lanrenzhijia .popInfo { width: 100%; max-width: 100%; left: 0; right: auto; }

@media (min-width: 640px) {
  .lr-mobile-fluid :is(.honelr, .cpmainlist_ul, .hfour ul, .hfive ul, .hthreeulimg) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lr-mobile-fluid :is(#tab1, #tab2) > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
