:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #585858;
  --paper: #fff;
  --soft: #f4f4f4;
  --line: #d6d6d6;
  --dark: #202020;
  --edge: clamp(16px, 4vw, 64px);
  --section: clamp(44px, 6vw, 96px);
  --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.68 var(--font); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 660; overflow-wrap: anywhere; }
h1 { font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.015em; }
h3 { font-size: clamp(17px, 1.55vw, 20px); }
:lang(zh-CN) h1, :lang(zh-CN) h2 { letter-spacing: -.012em; }
p + p { margin-top: 12px; }
.container { width: min(1360px, calc(100% - var(--edge) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.dark { background: var(--dark); color: white; }
.light { background: var(--soft); }
.small { font-size: 13px; color: var(--muted); }
.lead { max-width: 60ch; font-size: 17px; color: var(--muted); }
.dark .lead, .dark p { color: #e4e4e4; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); padding: 10px 16px; background: white; z-index: 5; }
.skip:focus { transform: none; }
.site-header { background: white; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 820; font-style: italic; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav, .header-actions, .language { display: flex; align-items: center; }
.site-nav { gap: clamp(16px, 2vw, 32px); }
.site-nav a, .header-inquire { font-size: 14px; font-weight: 620; text-decoration: none; padding-block: 12px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav [aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { gap: 10px; }
.header-inquire { background: var(--ink); color: white; padding-inline: 15px; }
.language { border: 1px solid var(--line); }
.language button, .menu-toggle { min-height: 44px; border: 0; background: white; font-size: 13px; padding: 6px 10px; }
.language button[aria-pressed="true"] { background: #ededed; font-weight: 730; text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle, .site-nav .mobile-inquire { display: none; }
.actions, .link-group { display: flex; gap: 10px 14px; flex-wrap: wrap; }
.actions { margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 100%; min-height: 46px; padding: 9px 15px; border: 1px solid var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.button.primary { color: white; background: var(--ink); }
.button.primary:hover, .header-inquire:hover { background: #414141; }
.button.secondary { color: var(--ink); background: white; }
.button.secondary:hover { background: #ededed; }
.button.inverse { color: var(--ink); background: white; border-color: white; }
.button.inverse:hover { background: #ededed; }
.button.outline-light { color: white; border-color: #a8a8a8; background: transparent; }
.button.outline-light:hover { background: #3a3a3a; }
.button:disabled { opacity: .55; }
.text-link { font-weight: 620; text-underline-offset: 5px; overflow-wrap: anywhere; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; }
.hero-copy { display: grid; align-content: center; padding: clamp(26px, 5vw, 80px) var(--edge); }
.hero-copy p { margin-top: 18px; max-width: 37ch; }
.hero-image, .case-media, .gallery-main { position: relative; display: block; text-decoration: none; background: #f4f4f4; }
.hero-image { min-width: 0; }
.hero-image img { width: 100%; height: clamp(370px, 43vw, 650px); object-fit: contain; background: white; }
.media-action { display: inline-block; position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); background: white; color: var(--ink); border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; line-height: 1.4; }
.feature { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(24px, 6vw, 96px); }
.feature p { margin-block: 14px 18px; }
.feature-text { align-items: start; }
.feature-text p { margin-top: 0; }
.detail-media img { width: 100%; height: clamp(220px, 35vw, 430px); object-fit: contain; background: #ededed; }
.dark .detail-media img { background: #292929; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); }
.product-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { min-width: 0; background: white; border: 1px solid var(--line); }
.product-card:hover { border-color: var(--ink); }
.product-card a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.product-media { aspect-ratio: 1; background: white; padding: 6%; }
.product-media.horizontal { padding: 2%; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.card-info { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: clamp(10px, 1.5vw, 18px); }
.card-info p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.case-grid, .system-examples, .components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.case-grid.full, .components { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-card { border: 1px solid var(--line); }
.case-media img { width: 100%; height: clamp(300px, 40vw, 540px); object-fit: contain; }
.full .case-media img { height: clamp(280px, 34vw, 460px); }
.case-info { padding: 18px; }
.case-info p, .components p { margin-top: 8px; }
.case-info .link-group { margin-top: 6px; font-size: 14px; }
.system-examples figure { background: white; border: 1px solid var(--line); }
.system-examples img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.system-examples figcaption { padding: 12px 16px; border-top: 1px solid var(--line); }
.component-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #eee; margin-bottom: 16px; }
.page-intro { padding-block: clamp(30px, 5vw, 68px); background: var(--soft); }
.page-intro.dark { background: var(--dark); }
.page-intro h1 { font-size: clamp(34px, 4.3vw, 58px); }
.page-intro p { margin-top: 12px; }
.catalog { padding-top: clamp(24px, 4vw, 54px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter { min-height: 44px; border: 1px solid var(--line); background: white; padding: 6px 13px; font-size: 14px; }
.filter[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.catalog-note { margin-top: 12px; }
.compare { margin-top: clamp(36px, 5vw, 68px); }
.compare table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.compare th, .compare td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.compare thead th { background: var(--soft); font-weight: 650; }
.compare tbody th { font-weight: 550; }
.compare a { text-underline-offset: 4px; }
.breadcrumb { display: flex; gap: 10px; padding: 12px 0; font-size: 14px; color: var(--muted); }
.product-page { padding-block: 8px var(--section); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: auto 1fr; gap: 22px clamp(24px, 4vw, 68px); }
.product-heading { grid-column: 2; }
.product-heading h1 { font-size: clamp(30px, 3.7vw, 52px); margin: 4px 0 12px; }
.product-heading p.sku { color: var(--muted); font-size: 13px; letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.product-spec { grid-column: 2; }
.product-spec h2, .configure h2 { font-size: clamp(24px, 2.5vw, 31px); }
.product-spec p { margin-top: 14px; }
.product-spec .button { margin-top: 20px; }
.specs { margin-top: 12px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }
.gallery { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.gallery-main { border: 1px solid var(--line); background: white; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-toolbar, .gallery-controls { display: flex; align-items: center; gap: 8px; }
.gallery-toolbar { justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--muted); }
.gallery-toolbar p { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.gallery-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: white; }
.gallery-controls button:hover { border-color: var(--ink); }
.gallery-thumbs { display: flex; overflow-x: auto; gap: 8px; padding: 5px 4px 10px; }
.gallery-thumbs button { position: relative; flex: 0 0 70px; padding: 0; border: 1px solid var(--line); background: white; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-thumbs span { position: absolute; right: 2px; bottom: 2px; background: white; font-size: 12px; padding-inline: 3px; }
.lightbox { width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: white; border: 1px solid var(--line); padding: 12px; color: var(--ink); }
.lightbox::backdrop { background: rgb(0 0 0 / 82%); }
.lightbox-inner form { display: flex; justify-content: flex-end; }
.lightbox-inner img { width: 100%; height: min(74dvh, 800px); object-fit: contain; }
.lightbox-inner p { font-size: 14px; text-align: center; }
.configure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(18px, 4vw, 62px); align-items: start; }
.configure > * { border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); min-width: 0; }
.configure h2 { margin-bottom: 16px; }
.configure label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
.configure input:not([type="checkbox"]), .configure textarea, .configure select { width: 100%; min-height: 46px; border: 1px solid #999; border-radius: 0; background: white; padding: 7px 9px; }
.configure input:disabled { background: var(--soft); }
.configure textarea { resize: vertical; }
.configure fieldset { min-width: 0; margin: 20px 0 0; padding: 10px 12px 14px; border: 1px solid var(--line); }
.configure legend { font-weight: 630; padding: 0 4px; }
.configure label.checkbox { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.checkbox input { width: 18px; height: 18px; accent-color: #222; }
.dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.summary-image img { width: 100%; height: 180px; object-fit: contain; border: 1px solid var(--line); }
.summary .small { margin-top: 10px; }
.summary .actions { margin-top: 10px; }
.summary > .button { margin-top: 12px; }
.site-footer { color: #eee; background: var(--dark); padding-block: 36px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px 36px; flex-wrap: wrap; }
.footer-inner p { color: #dedede; font-size: 13px; margin-top: 8px; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: start; gap: 8px 20px; }
.footer-inner nav a { font-size: 14px; text-decoration: none; padding-block: 6px; }
.footer-inner nav a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .header-inner { min-height: 62px; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: white; border-bottom: 1px solid var(--line); padding: 6px var(--edge) 14px; }
  .site-nav.open { display: grid; gap: 0; }
  .site-nav a { border-bottom: 1px solid var(--line); }
  .site-nav .mobile-inquire, .menu-toggle { display: block; }
  .menu-toggle { border: 1px solid var(--line); }
  .header-inquire { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-image img { height: clamp(270px, 57vw, 440px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid.full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .product-heading, .product-spec, .gallery { grid-column: auto; grid-row: auto; }
  .gallery { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 580px) {
  .brand { font-size: 20px; gap: 5px; }
  .brand img { width: 28px; height: 28px; }
  .header-actions { gap: 6px; }
  .hero h1 { font-size: clamp(36px, 9vw, 44px); }
  .hero-copy p { margin-top: 10px; }
  .hero-copy .actions { margin-top: 14px; }
  .feature, .configure, .case-grid, .case-grid.full, .components { grid-template-columns: minmax(0, 1fr); }
  .product-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-media img, .full .case-media img { height: clamp(290px, 105vw, 440px); }
  .compare th, .compare td { padding-inline: 5px; font-size: 13px; }
  .section-head { margin-bottom: 16px; }
}

.hero h1 span { display: block; }
.gallery-main .media-action, .case-media .media-action {
  position: static;
  display: block;
  max-width: none;
  border: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 580px) {
  .hero h1 span { display: inline; }
  html[lang="en"] .hero h1 span + span::before { content: " "; }
  .hero h1 { text-wrap: balance; }
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-actions strong { overflow-wrap: anywhere; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: 24px;
}
.contact-code {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  padding: clamp(8px, 1.5vw, 18px);
  border: 1px solid var(--line);
  background: white;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.contact-code:hover { border-color: var(--ink); }
.contact-code img { width: min(100%, 220px); height: auto; }
.contact-actions .button { flex-wrap: wrap; gap: 4px 12px; }
.founder-credit { padding-top: 12px; border-top: 1px solid var(--line); }
.founder-credit strong { margin-inline-start: 6px; }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
