:root {
  --ink: #171b1d;
  --blue: #202e90;
  --paper: #f5f5f1;
  --rule: #c6c8c5;
  --muted: #4b5256;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #547bdf; outline-offset: 4px; }
.wrap { width: min(100% - clamp(2rem, 8vw, 9rem), 1380px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; left: 1rem; top: -5rem; padding: .6rem 1rem; background: white; }
.skip:focus { top: 1rem; }
.mast { position: sticky; top: 0; z-index: 10; background: var(--paper); border-top: 4px solid var(--blue); border-bottom: 1px solid var(--rule); }
html { scroll-padding-top: 96px; }
.skip { z-index: 11; }
.mast-inner, nav, footer, figcaption { display: flex; align-items: center; }
.mast-inner { min-height: 78px; gap: 2rem; }
.identity { display: block; margin-right: auto; }
.logo { display: block; width: 110px; aspect-ratio: 168 / 93; }
.logo { background-image: url("assets/xuxiang-product-sheet.png"); background-repeat: no-repeat; mix-blend-mode: multiply; }
.logo { background-size: 1013.1% auto; background-position: 21.25% 13.05%; }
nav { gap: clamp(1rem, 3vw, 3rem); }
nav a { text-decoration: none; font-weight: 590; }
nav a:hover, footer a:hover { text-decoration: underline; }
.action, .button { display: inline-block; border: 0; background: var(--blue); color: #fff; text-decoration: none; padding: .72rem 1.18rem; font-weight: 650; }
.action:hover, .button:hover { background: #101b64; }
.hero-stage { position: relative; aspect-ratio: 16 / 9; isolation: isolate; display: grid; align-items: center; background: #14212c; color: #fcf8f1; }
.hero-panorama { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#06111e80,transparent 62%); }
.hero-title h1 { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: clamp(2rem,5.7vw,6.9rem); font-weight: 560; line-height: 1.04; letter-spacing: -.055em; }
h1, h2, h3 { line-height: 1; }
h1 { font-family: "Arial", "Inter", sans-serif; font-size: clamp(4rem, 7vw, 7.75rem); letter-spacing: -.073em; font-weight: 750; }
.textlink { color: var(--blue); font-weight: 650; text-underline-offset: 5px; }
.credentials {
  padding-block: clamp(2.5rem, 4.5vw, 4.5rem);
  color: #f3f5f5;
  background-color: #101920;
  background-image:
    radial-gradient(ellipse at 85% 0%, #37627775, transparent 54%),
    linear-gradient(115deg, #111b22 18%, #16232eea 58%, #172632de),
    url("assets/catalog-indoor-fixed.jpg");
  background-size: cover;
  background-position: center, center, right 52%;
  border-block: 1px solid #53636d;
}
.credential-heading h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
.credential-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding-bottom: 1.35rem; }
.credential-download { color: #ffc48c; font-weight: 650; text-underline-offset: 4px; padding-block: .45rem; }
.credential-heading p { margin: .7rem 0 0; color: #c1d0d8; }
.credential-heading span { margin-inline: .3rem; }
.credential-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.credential-files article { display: flex; flex-direction: column; border: 1px solid #60717e; background: #14212bf2; box-shadow: 0 10px 24px #05090c33; }
.credential-files .scan-link { display: grid; place-items: center; padding: 1.25rem; border-bottom: 1px solid #4d5d68; background: radial-gradient(ellipse at 36% 18%, #70818c, #354754 58%, #21303c); }
.scan-link img { display: block; width: auto; height: clamp(145px, 14vw, 194px); outline: 1px solid #b9bfd1; box-shadow: 2px 5px 0 #18252c, 7px 12px 15px #07121885; }
.credential-files article > div { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 1rem 1.2rem 1.25rem; }
.credential-files h3 { margin: .15rem 0 .5rem; font-size: 1.25rem; }
.credential-files p { font-size: 1rem; }
.credential-files small { display: block; margin: .7rem 0; color: #c1d0d8; font-size: .85rem; }
.credential-files article div a { margin-top: auto; color: #ffc48c; text-underline-offset: 4px; font-weight: 650; }
.ip-records { margin-top: 1.25rem; border-color: #627380; }
.ip-records summary { font-weight: 600; }
.ip-records li { margin-block: .35rem; }
@media (max-width: 730px) {
  .credential-files { grid-template-columns: 1fr; gap: .85rem; }
  .credential-files article { display: grid; grid-template-columns: minmax(95px, .5fr) 1fr; }
  .credential-files .scan-link { padding: .65rem; border-bottom: 0; }
  .scan-link img { width: min(100%, 110px); height: auto; }
  .credential-files article > div { padding: .85rem; }
}
figcaption, footer span { font: .8125rem/1.4 "IBM Plex Mono", Consolas, monospace; }
.format-strip { background: #233444; border: 0; margin: 0; padding: 0; color: #fff; }
.format-inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.format-inner a { display: flex; align-items: center; gap: .8rem; padding: .75rem; border-inline-start: 1px solid #52616c; font-weight: 600; }
.format-inner img { width: clamp(48px,6vw,82px); height: auto; }
.format-inner a:hover { background: #304559; }
.range-photo:has(.product-shot) { aspect-ratio: 1; max-width: 550px; margin-inline: auto; }
.range-photo img.product-shot { object-position: center; }
h2 { font-size: clamp(2.45rem, 4.2vw, 4.75rem); letter-spacing: -.058em; }
.catalog { background: #1c2124; color: #f7f7f3; padding-block: clamp(2.75rem, 5vw, 5.25rem); }
.catalog-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.range-list { margin-top: clamp(1.35rem, 2.5vw, 2.6rem); }
.range-list button { width: 100%; display: block; text-align: left; color: #d2d5d5; background: transparent; border: 0; border-top: 1px solid #4c5255; padding: .8rem .4rem .8rem 0; font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.range-list button:last-child { border-bottom: 1px solid #4c5255; }
.range-list button[aria-pressed=true] { color: white; font-weight: 650; box-shadow: inset 4px 0 #9bb4ff; padding-left: .9rem; background: #272d32; }
.range-list button:hover { background: #2b3135; }
.range-photo { aspect-ratio: 1.93; background: #111719; overflow: hidden; }
.range-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right; }
.range-photo img.tall { object-position: center 63%; }
.range-figure figcaption { flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: .75rem; color: #c7cece; }
.range-figure strong { color: #fff; font-weight: 600; }
.field { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(2rem, 7vw, 8rem); padding-block: clamp(3rem, 6vw, 6rem); }
.packing-photo img { display: block; width: 100%; height: auto; }
.dispatch figcaption { margin-top: .6rem; color: var(--muted); }
.field-copy > p { max-width: 50ch; margin: 1.15rem 0 1.7rem; }
.documents h3 { font-size: 1rem; margin-bottom: .8rem; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { padding-block: .6rem; }
details p { padding: 0 1rem .8rem; color: var(--muted); }
.inquiry { border-top: 2px solid var(--ink); padding-block: clamp(2.5rem, 5vw, 5rem); background: #e9eae5; }
.inquiry-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); }
.inquiry-inner > div p { max-width: 33ch; margin-top: 1rem; }
form { display: grid; gap: .9rem; align-content: start; justify-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }
form label { display: block; width: 100%; font-weight: 600; }
input, select, textarea { display: block; margin-top: .3rem; width: 100%; min-height: 44px; border: 1px solid #999e99; border-radius: 0; padding: .55rem .65rem; background: var(--paper); color: var(--ink); }
textarea { resize: vertical; }
form label span, .form-note, #brief-status { font-weight: 400; color: var(--muted); }
.form-note, #brief-status { font-size: .9rem; }
#brief-output { width: 100%; }
#copy-brief { margin-top: .5rem; }
#brief-status:empty { display: none; }
footer { min-height: 70px; justify-content: space-between; gap: 1rem; }
footer a { text-decoration: none; font-weight: 730; color: var(--blue); }
@media (max-width: 800px) {
  .mast-inner { gap: 1rem; }
  nav { gap: .9rem; font-size: .9rem; }
  .catalog-layout, .field, .inquiry-inner { gap: 1.5rem; }
}
@media (max-width: 650px) {
  .mast-inner { flex-wrap: wrap; padding: .5rem 0 .65rem; gap: .55rem; }
  .logo { width: 85px; }
  nav { order: 1; width: 100%; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: .5rem; }
  .action { padding: .55rem .8rem; }
  .field, .inquiry-inner, .catalog-layout { grid-template-columns: 1fr; }
  .hero-title h1 { font-size: clamp(1.75rem,6.8vw,2.7rem); }
  .format-inner a { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .65rem .4rem; font-size: .875rem; }
  h1 { font-size: clamp(3.7rem, 13.5vw, 5.2rem); }
  .catalog-layout { gap: 1.25rem; }
  .range-list { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #4c5255; }
  .range-list button { padding: .65rem .4rem; }
  .range-list button:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
}
.products-menu { position: relative; z-index: 5; border: 0; }
.products-menu summary { font-weight: 650; cursor: pointer; }
.menu-items { position: absolute; left: 0; top: 100%; width: 230px; padding: .6rem; background: #162330; color: white; box-shadow: 0 8px 24px #1113; }
.menu-items a { display: block; padding: .55rem; }
.menu-items a:hover { background: #304457; }
.families { padding-block: clamp(2.5rem,5vw,5rem); background: #fff; }
.family-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.family-heading p { margin-top: .6rem; }
.rail-buttons { display: flex; gap: .5rem; }
.rail-buttons button { width: 42px; height: 42px; border: 1px solid #abb1b6; background: #fff; font-size: 1.6rem; line-height: 1; }
.rail-buttons button:disabled { opacity: .35; }
.family-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(235px,27%,360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 3px 14px; margin-block: 1.5rem 2.5rem; }
.family-card { display: flex; flex-direction: column; scroll-snap-align: start; background: #f4f5f2; border-bottom: 3px solid #d4d9dd; text-decoration: none; }
.family-card:is(:hover,:focus-visible), .family-card[aria-current] { border-bottom-color: var(--blue); background: #edf0f6; }
.family-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #a3acbc; }
.family-card div { display: flex; flex-direction: column; flex: 1; align-items: start; padding: 1.1rem; }
.family-card h3 { font-size: 1.4rem; margin: .45rem 0; }
.family-card small,.spec-source { color: #4b5864; }
.family-card strong { margin-top: auto; padding-top: 1rem; color: #202e90; text-decoration: underline; text-underline-offset: 3px; }
.spec-picker { display: flex; align-items: end; gap: .8rem 1.25rem; flex-wrap: wrap; border-top: 3px solid #ffb269; padding: 1.05rem 1.25rem; background: #182d42; color: white; }
.spec-picker label { font-size: .9rem; font-weight: 650; }
.spec-picker select { width: auto; max-width: 100%; min-width: 8rem; background: #fff; color: var(--ink); }
.spec-picker .action { margin-left: auto; color: #182029; background: #ffb269; }
.spec-picker .action:hover { background: #ffc590; }
.model-selection:not([hidden]) { display: flex; align-items: end; gap: .8rem; width: 100%; }
.model-selection input { background: #e2ebf5; color: #182d42; border-color: #9aa9bc; }
#clear-model { min-height: 44px; background: transparent; color: var(--blue); border: 0; text-decoration: underline; }
.contact-profile { display: inline-block; margin: .7rem .4rem; }
.sales-contacts, .footer-contacts { display: grid; gap: .45rem; font-style: normal; }
.sales-contacts { margin-top: 1.35rem; }
.sales-contacts strong { display: inline-block; min-width: 6rem; }
.sales-contacts a, .footer-contacts a { color: var(--blue); text-underline-offset: 3px; }
.share-brief { display: flex; gap: .65rem; flex-wrap: wrap; margin-block: .85rem .4rem; }
.spec-panel { margin-top: 1.1rem; scroll-margin-top: 1rem; }
.spec-panel h3 { font-size: 1.6rem; }
.spec-source { margin: .45rem 0 1rem; font-size: .9rem; }
.spec-resources { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; margin: .6rem 0 1rem; }
.spec-resources .spec-source { margin: 0; }
.spec-resources a { font-size: .92rem; }
.spec-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .8rem; flex-basis: 100%; grid-column: 1 / -1; }
.spec-picker .differences { display: flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; font-weight: 500; }
#plan-size { padding: .55rem 0; border: 0; color: #ffc48c; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: .95rem; }
.differences input { margin: 0; width: 18px; height: 18px; min-height: 0; accent-color: #ffc58f; }
.range-figure figcaption p { flex-basis: 100%; max-width: 65ch; font: 1rem/1.5 "Inter", "Segoe UI", Arial, sans-serif; }
#range-inquiry { color: #ffc48c; padding-block: .55rem; font: 650 1rem/1.3 "Inter", "Segoe UI", Arial, sans-serif; text-underline-offset: 4px; }
#layout-planner { margin-top: 1.4rem; padding: 0 clamp(.9rem, 2vw, 1.5rem); background: #f2f5f4; border: 1px solid #c9d1d1; }
#layout-planner summary { padding-block: 1rem; font-size: 1.16rem; font-weight: 650; }
#layout-planner[open] { padding-bottom: 1.25rem; }
#layout-planner > p { padding: 0; max-width: 74ch; }
#layout-form { margin-top: 1.15rem; }
#layout-model { padding: 0; font-weight: 650; color: var(--ink); }
.layout-inputs { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 1rem; }
#layout-result:not(:empty) { margin: 1rem 0; }
#layout-result:has(dl) { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; align-items: center; gap: clamp(1rem,3vw,3rem); border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.cabinet-diagram { padding: 1rem; background: #192b39; color: #edf2f3; }
.layout-drawing { aspect-ratio: 2; display: grid; place-items: center; }
.layout-opening { outline: 1px dashed #adc3ce; position: relative; }
.layout-screen { position: absolute; left: 0; bottom: 0; background-color: #84b1c2; }
.layout-screen.with-cabinets { background-image: linear-gradient(to right, #334f5b 1px, transparent 1px),linear-gradient(to top, #334f5b 1px, transparent 1px); }
.cabinet-diagram figcaption { margin-top: .7rem; font-size: .75rem; }
#layout-result dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; margin: 0; }
#layout-result dt { color: var(--muted); font-size: .9rem; }
#layout-result dd { font-weight: 650; margin: .2rem 0 0; }
#inquiry-layout { white-space: pre-line; padding-left: .8rem; border-left: 2px solid #788aa4; font-size: .94rem; }
@media (max-width: 760px) {
  .layout-inputs, #layout-result dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #layout-result:has(dl) { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .layout-inputs { gap: .65rem; }
  .layout-inputs label { font-size: .93rem; }
  .layout-inputs select { padding-inline: .35rem; }
}
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-spacing: 0; font-size: .95rem; }
.table-scroll :is(th,td) { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid #cfd4d6; white-space: nowrap; }
.table-scroll th:first-child { position: sticky; left: 0; white-space: normal; min-width: 120px; max-width: 220px; background: #edf0f0; }
.table-scroll thead th,.table-scroll thead th:first-child { background: #182d42; color: white; }
.table-scroll tbody tr:nth-child(even) td { background: #f7f8f8; }
.table-scroll tbody tr td.model-column { background: #fdf0db; }
.table-scroll thead .model-column { background: #ffb269; color: #182029; }
.social-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.social-links svg { width: 23px; height: 23px; }
.social-links a:is(:hover,:focus-visible) { background: var(--blue); }
footer.wrap { flex-wrap: wrap; padding-block: 1rem; }
.social-links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #182d42; color: #fff; text-decoration: none; }
@media(max-width:650px) {
  html { scroll-padding-top: 140px; }
  .mast-inner nav a, .mast-inner summary { display: inline-flex; align-items: center; min-height: 40px; }
  .mast-inner summary::after { content: '⌄'; margin-left: .3rem; }
  .products-menu[open] summary::after { transform: rotate(180deg); }
  .spec-picker { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: .65rem; padding: .85rem; }
  .spec-picker select { width: 100%; min-width: 0; }
  .spec-picker .action { grid-column: 1 / -1; width: 100%; text-align: center; }
  .family-rail { grid-auto-columns: 78%; }
  .family-heading { align-items: center; }
  .table-scroll th:first-child { max-width: 135px; }
}
