body.lanhai-product-view {
  margin: 0;
  min-height: 100vh;
  background: #f8f8fa;
}
body.lanhai-product-view > :not(#lanhai-products):not(script):not(link) { display: none; }
#lanhai-products[hidden] { display: none; }
#lanhai-products {
  --u: calc(min(100vw, 600px) / 420);
  --gutter: calc(13.44 * var(--u));
  --surface: #fff;
  --surface-raised: #f0f1f4;
  --text: #1a1d24;
  --muted: #858d9d;
  --accent: #5d9dfe;
  --tab-height: calc(55.98 * var(--u));
  box-sizing: border-box;
  width: min(100%, 600px);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom));
  background: #f6f7fb;
  color: var(--text);
  font: calc(15.6786 * var(--u))/1.45 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,"Segoe UI",Arial,Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
}
#lanhai-products *, #lanhai-products *::before, #lanhai-products *::after { box-sizing: border-box; }
#lanhai-products a { text-decoration: none; }
#lanhai-products h1, #lanhai-products h2, #lanhai-products h3 { margin: 0; color: inherit; letter-spacing: 0; }
#lanhai-products .target-titlebar {
  display: grid;
  place-items: center;
  height: calc(51.52 * var(--u));
  background: var(--surface);
}
#lanhai-products h1 { font-size: calc(17.92 * var(--u)); line-height: 1; font-weight: 600; }
#lanhai-products .target-search { padding: calc(11.20 * var(--u)) var(--gutter); }
#lanhai-products .target-search label {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(38.08 * var(--u));
  padding: 0 calc(15 * var(--u));
  color: var(--muted);
  background: var(--surface);
  border-radius: 99px;
}
#lanhai-products .target-search svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); stroke-width: 1.7; }
#lanhai-products input { width: 100%; flex: 1; min-width: 0; border: 0; padding: 0; font: inherit; color: var(--text); background: none; }
#lanhai-products input:focus { outline: 1px solid var(--accent); }
#lanhai-products input::-webkit-search-cancel-button { display: none; }
#lanhai-products input::placeholder { color: #a7afbf; opacity: 1; }
#lanhai-products .target-search button { border: 0; padding: 0; color: var(--muted); background: none; }
#lanhai-products .target-search button[hidden] { display: none; }
#lanhai-products .target-category {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(49.28 * var(--u));
  font-size: inherit;
  font-weight: 600;
  background: var(--surface);
}
#lanhai-products .target-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: calc(23 * var(--u));
  height: calc(3 * var(--u));
  border-radius: 5px;
  background: var(--accent);
}
#lanhai-products .target-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(14.32 * var(--u));
  padding: var(--gutter);
}
#lanhai-products .target-product {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(125,132,147,.20);
  border-radius: calc(13.44 * var(--u));
  background: var(--surface);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
#lanhai-products .target-product-photo { width: 100%; aspect-ratio: 16/9; background: var(--surface-raised); overflow: hidden; }
#lanhai-products img { display: block; width: 100%; height: 100%; object-fit: cover; }
#lanhai-products .target-product-data {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: calc(20.16 * var(--u)) calc(20.16 * var(--u)) calc(24.24 * var(--u));
  gap: calc(4.48 * var(--u)) calc(8.96 * var(--u));
  padding: calc(11.20 * var(--u)) var(--gutter) var(--gutter);
}
#lanhai-products h3 { font-size: inherit; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lanhai-products .target-change { font-size: calc(13.44 * var(--u)); font-weight: 700; white-space: nowrap; }
#lanhai-products .target-last { grid-column: 1/-1; font-size: calc(16.8 * var(--u)); line-height: 1.2; }
#lanhai-products .target-volume, #lanhai-products .target-product-empty { grid-column: 1/-1; color: var(--muted); font-size: calc(12.32 * var(--u)); }
#lanhai-products .target-tabs {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tab-height) + env(safe-area-inset-bottom));
  width: min(100%, 600px);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid #e9ebef;
}
#lanhai-products .target-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4.47 * var(--u));
  padding-top: calc(1.28 * var(--u));
  color: #323233;
  line-height: 1;
  font-size: calc(13.44 * var(--u));
}
#lanhai-products .target-tabs a[aria-current] { color: var(--accent); }
#lanhai-products .target-tab-icon { width: calc(24.64 * var(--u)); height: calc(24.64 * var(--u)); background: currentColor; mask: var(--icon) center / contain no-repeat; }
#lanhai-products .target-tab-icon.home { --icon: url('/target-assets/tab-home.svg'); }
#lanhai-products .target-tab-icon.products { --icon: url('/target-assets/tab-products.svg'); }
#lanhai-products .target-tab-icon.profile { --icon: url('/target-assets/tab-profile.svg'); }

html[data-theme="dark"]:has(body.lanhai-product-view),
[data-theme="dark"] body.lanhai-product-view { background: #11141b; color-scheme: dark; }
[data-theme="dark"] #lanhai-products {
  --surface: #202634;
  --surface-raised: #2a3141;
  --text: #f1f3f8;
  --muted: #aab4c7;
  background: #181d28;
}
[data-theme="dark"] #lanhai-products .target-tabs { border-top-color: #333c4d; }
[data-theme="dark"] #lanhai-products .target-tabs a:not([aria-current]) { color: var(--text); }
[data-theme="dark"] #lanhai-products input::placeholder { color: #b9bdc5; }
