:root {
  color-scheme: light;
  --ink: #213d48;
  --muted: #657983;
  --teal: #276a68;
  --line: #d9e3e6;
  --paper: #f4f7f8;
  --white: #fff;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, iframe:focus-visible { outline: 3px solid #389a95; outline-offset: 4px; }
button:disabled { opacity: .4; cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; background: white; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 86px; padding: 12px max(28px, calc((100vw - 1460px)/2)); border-bottom: 1px solid var(--line); background: rgba(244,247,248,.96); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.brand-name { font-size: 24px; font-weight: 650; letter-spacing: .12em; }
.brand-name span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .25em; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.brand-detail { border-left: 1px solid #bacbd0; padding-left: 22px; font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.site-header nav { display: flex; gap: 26px; font-size: 14px; }
.site-header nav a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-color: var(--teal); color: var(--teal); }
.page-layout { display: grid; grid-template-columns: minmax(0,1fr) 400px; column-gap: 44px; max-width: 1460px; padding: 42px 28px 76px; margin: auto; align-items: start; }
.intro { grid-column: 1; grid-row: 1; padding: 12px 0 36px; }
.eyebrow { font-size: 13px; font-weight: 550; letter-spacing: .13em; color: var(--muted); }
h1 { margin: 17px 0 22px; font: 500 clamp(30px,3.2vw,48px)/1.35 var(--serif); letter-spacing: .04em; }
h1 span { display: block; }
.intro-copy { color: var(--muted); line-height: 1.85; }
.project-meta { display: flex; margin-top: 28px; gap: 28px; }
.project-meta div { padding-left: 26px; border-left: 1px solid #cbd8dc; }
.project-meta div:first-child { padding: 0; border: 0; }
dt { font-size: 13px; color: var(--muted); }
dd { font-size: 24px; font-weight: 500; letter-spacing: .02em; }
dd span { font-size: 13px; color: var(--muted); }
.model-rail { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 110px; display: grid; gap: 20px; min-width: 0; }
.model-card, .download-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; }
.panel-heading h2 { font-size: 20px; font-weight: 550; margin-top: 3px; }
.panel-heading .text-link { white-space: nowrap; font-size: 14px; }
.text-link { color: var(--teal); }
iframe { border: 0; display: block; width: 100%; height: 350px; background: #f0f3f0; }
.model-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.model-actions > span { color: var(--muted); font-size: 13px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; background: white; border: 1px solid #bfd1d6; border-radius: 6px; padding: 9px 18px; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; }
.button:hover { background: #edf4f4; border-color: #65918d; }
.button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.button.primary:hover { background: #315967; }
.button.small { min-height: 38px; padding: 6px 12px; }
.download-card { padding: 24px; }
.download-card h2 { font: 500 24px/1.4 var(--serif); margin: 8px 0 12px; }
.download-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.download-card .primary { display: flex; margin-top: 20px; }
.download-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; margin-top: 16px; color: var(--teal); }
.reference-note { font-size: 12px; line-height: 1.9; color: #73858d; padding-inline: 4px; }
.gallery-section { grid-column: 1; grid-row: 2; min-width: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.section-heading h2 { font: 500 29px/1.5 var(--serif); }
.section-heading p { font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.filters button { background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 7px 12px; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.filters button:hover:not([aria-pressed="true"]) { background: #e9f0f1; }
.featured { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.featured-image { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #dce3e3; overflow: hidden; }
.featured-image img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.image-action { position: absolute; right: 18px; bottom: 18px; color: white; background: #213d48e8; font-size: 13px; padding: 8px 14px; border-radius: 5px; }
.featured figcaption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 23px; }
.caption-category { font-size: 12px; color: var(--teal); margin-bottom: 3px; }
.featured h3 { font-size: 17px; font-weight: 550; line-height: 1.6; }
#featured-description { font-size: 13px; color: var(--muted); margin-top: 5px; }
.image-stepper { display: flex; gap: 8px; flex-shrink: 0; }
.catalogue-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 18px; }
.catalogue-title h3 { font-size: 18px; font-weight: 550; }
.catalogue-title span { color: var(--muted); font-size: 13px; }
.catalogue-group { margin-bottom: 34px; scroll-margin-top: 105px; }
.catalogue-group > h3 { color: var(--muted); font-size: 14px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.image-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.image-card { min-width: 0; }
.thumbnail-button { display: block; position: relative; width: 100%; padding: 0; background: white; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; text-align: left; }
.thumbnail-button img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; transition: transform .3s ease; }
.thumbnail-button:hover img { transform: scale(1.025); }
.image-card h4 { margin: 9px 0 0; font-weight: 500; font-size: 14px; line-height: 1.65; }
.image-card p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.site-footer { max-width: 1404px; margin: auto; border-top: 1px solid var(--line); padding: 24px 28px 35px; display: flex; gap: 18px 50px; justify-content: space-between; color: var(--muted); font-size: 12px; }
dialog { padding: 0; border: 0; }
dialog::backdrop { background: #102027c9; backdrop-filter: blur(6px); }
.lightbox { background: #132630; color: #e7eff2; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 80px; padding: 14px 26px; border-bottom: 1px solid #ffffff20; }
.lightbox-heading { min-width: 0; }
.lightbox h2 { font-size: 17px; font-weight: 500; line-height: 1.45; }
.lightbox-heading p { font-size: 12px; color: #9fb6c0; margin-top: 4px; }
.lightbox-close { color: white; background: transparent; border: 1px solid #a3b8c14f; border-radius: 4px; padding: 7px 14px; white-space: nowrap; font-size: 14px; }
.lightbox-close span { font-size: 21px; vertical-align: -1px; padding-left: 6px; }
.lightbox-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage img { max-width: calc(100% - 52px); max-height: calc(100% - 26px); width: auto; height: auto; object-fit: contain; user-select: none; pointer-events: none; transform-origin: center; will-change: transform; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 26px; border-top: 1px solid #ffffff20; font-size: 14px; }
.lightbox-controls button { color: white; background: #ffffff09; border: 1px solid #b1c4ca4a; border-radius: 4px; padding: 6px 13px; min-height: 36px; font-size: 14px; }
.lightbox-controls button:hover { background: #ffffff19; }
.zoom-controls { display: flex; gap: 8px; align-items: center; }
.zoom-controls output { text-align: center; min-width: 48px; font-size: 13px; }
.lightbox-help { text-align: center; color: #91a9b4; font-size: 12px; padding: 0 16px 11px; }
.model-dialog { width: min(1440px,95vw); max-width: none; height: 92dvh; max-height: none; border-radius: 10px; background: #f4f7f8; }
.model-dialog[open] { display: flex; flex-direction: column; }
.model-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.model-dialog-heading h2 { font-size: 18px; font-weight: 550; }
.model-dialog-heading > div { display: flex; gap: 18px; align-items: center; font-size: 14px; }
#expanded-model-slot { flex: 1; min-height: 0; }
#expanded-model-slot iframe { height: 100%; }
body.modal-open { overflow: hidden; }
@media(min-width:1700px) { .page-layout { grid-template-columns: minmax(0,1fr) 430px; } }
@media(max-width:1190px) {
  .page-layout { grid-template-columns: minmax(0,1fr) 355px; column-gap: 26px; padding-inline: 24px; }
  .model-rail { top: 102px; }
  .model-card iframe { height: 320px; }
  .panel-heading { padding: 16px; }
  .panel-heading h2 { font-size: 18px; }
  .featured figcaption { flex-wrap: wrap; }
  .project-meta { gap: 20px; }
  .project-meta div { padding-left: 18px; }
}
@media(max-width:900px) {
  .site-header { padding: 12px 20px; min-height: 78px; }
  .brand-detail { display: none; }
  .site-header nav { gap: 17px; font-size: 13px; }
  .page-layout { display: flex; flex-direction: column; padding: 28px 20px 45px; gap: 0; }
  .intro { width: 100%; padding: 4px 0 28px; }
  .intro h1 span { display: inline; padding-left: .3em; }
  .intro h1 { margin: 12px 0 16px; }
  .model-rail { position: static; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px; }
  .model-card { grid-column: 1 / -1; }
  .model-card iframe { height: 340px; }
  .download-card { align-self: start; }
  .reference-note { padding: 15px 5px; font-size: 13px; }
  .gallery-section { width: 100%; }
  .site-footer { flex-direction: column; gap: 10px; margin: 0 20px; padding-inline: 0; }
}
@media(max-width:540px) {
  .site-header { display: block; padding: 12px 16px 9px; }
  .brand-name { font-size: 20px; }
  .brand-name span { display: inline; font-size: 12px; margin-left: 12px; letter-spacing: .08em; }
  .site-header nav { gap: 23px; margin-top: 9px; font-size: 13px; overflow: auto; white-space: nowrap; }
  html { scroll-padding-top: 116px; }
  .page-layout { padding: 25px 16px 40px; }
  .intro h1 { font-size: 32px; }
  .intro h1 span { display: block; padding: 0; }
  .intro-copy { font-size: 14px; }
  .project-meta { gap: 18px; margin-top: 22px; }
  .project-meta div { padding-left: 15px; }
  dd { font-size: 21px; }
  .model-rail { display: flex; flex-direction: column; gap: 14px; }
  .model-card, .download-card { width: 100%; }
  .model-card iframe { height: 310px; }
  .reference-note { padding: 1px 3px; font-size: 12px; }
  .panel-heading { padding: 15px; }
  .download-card { padding: 20px; }
  .download-card h2 { font-size: 22px; }
  .section-heading h2 { font-size: 26px; }
  .filters { gap: 6px; }
  .filters button { font-size: 13px; padding: 7px 10px; }
  .featured figcaption { padding: 16px; gap: 14px; }
  .featured h3 { font-size: 15px; }
  .image-stepper .button { font-size: 13px; }
  .image-action { right: 10px; bottom: 10px; padding: 5px 9px; font-size: 12px; }
  .catalogue-title h3 { font-size: 17px; }
  .image-grid { gap: 17px 12px; }
  .image-card h4 { font-size: 13px; }
  .image-card p { display: none; }
  .lightbox-toolbar { padding: 12px 14px; min-height: 82px; }
  .lightbox h2 { font-size: 14px; }
  .lightbox-stage img { max-width: calc(100% - 16px); max-height: calc(100% - 16px); }
  .lightbox-controls { padding: 10px 13px; justify-content: center; gap: 10px 18px; }
  .lightbox-controls button { padding: 5px 10px; font-size: 13px; }
  .lightbox-help { font-size: 11px; }
  .model-dialog-heading { padding: 12px; gap: 10px; }
  .model-dialog-heading h2 { font-size: 15px; }
  .model-dialog-heading > div { gap: 10px; font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
