:root {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #202c34;
  background: #f5f6f6;
  font-synthesis: none;
  --ink: #202c34;
  --muted: #69777f;
  --line: #dce2e4;
  --accent: #1c6260;
  --viewport-bg: #eef0f1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.resource-charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.resource-chart { border: 1px solid #dce2e4; padding: 12px 10px 8px; background: #fafcfc; }
.resource-chart svg { display: block; width: 100%; height: auto; }
.chart-title { font-size: 11px; color: #40545e; }
.chart-caption { font-size: 10px; color: #69777f; }
@media (max-width: 1050px) { .resource-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body { margin: 0; }
button, select, input { font: inherit; }
button, select { color: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #4d9e98; outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; background: white; padding: 10px 18px; border: 1px solid var(--accent); }
.skip-link:focus { top: 10px; }
.page-header, .scene-nav, main, .page-footer { max-width: 1800px; margin-right: auto; margin-left: auto; }
.page-header { min-height: 104px; padding: 22px 36px 19px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand-block { display: flex; align-items: center; gap: 15px; }
.brand-mark { font-size: 29px; line-height: 1; letter-spacing: -2px; font-weight: 800; border-right: 1px solid #cbd4d8; padding: 8px 20px 8px 0; }
.brand-mark span { color: var(--accent); font-size: 23px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; color: var(--muted); margin: 0 0 4px; }
h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: .8px; }
.header-meta { text-align: right; }
.header-meta p { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.offline-badge { font-size: 11px; color: #425b59; display: inline-flex; align-items: center; gap: 7px; }
.offline-badge i { width: 6px; height: 6px; background: #51867b; border-radius: 50%; }
.scene-nav { display: flex; gap: 4px; padding: 0 36px; border-bottom: 1px solid #ced7db; overflow-x: auto; scrollbar-width: thin; }
.scene-tab { flex: 0 0 auto; border: 0; background: transparent; padding: 14px 21px 13px; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 550; color: #65747c; white-space: nowrap; }
.scene-tab:hover { color: var(--ink); background: #edf1f1; }
.scene-tab.is-active, .scene-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); background: #e9f0ef; }
main { padding: 23px 36px 0; }
.dataset-section { background: #fff; border: 1px solid var(--line); padding: 20px 24px 16px; margin-bottom: 22px; }
.dataset-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-kicker { color: var(--muted); font-size: 10px; letter-spacing: 1px; margin: 0 0 6px; }
.dataset-heading h2 { margin: 0; font-size: 25px; font-weight: 650; letter-spacing: -.5px; }
.dataset-counter { font-size: 11px; color: var(--muted); white-space: nowrap; }
.facts-grid, .resource-grid { display: grid; margin: 17px 0 0; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px 18px; }
.fact { min-width: 0; }
.fact dt, .facts-grid dt, .resource-grid dt { font-size: 10px; font-weight: 400; color: var(--muted); margin-bottom: 5px; }
.fact dd, .facts-grid dd, .resource-grid dd { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.fact small, .resource-grid small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.scene-note { font-size: 11px; color: #766242; line-height: 1.6; padding: 9px 12px; background: #faf7ef; border-left: 2px solid #b69965; margin: 14px 0 0; }
.comparison-section { display: grid; grid-template-columns: minmax(220px, 24fr) minmax(0, 76fr); gap: 22px; align-items: start; scroll-margin-top: 20px; }
.photo-panel { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; margin-bottom: 10px; }
.section-heading > div:first-child { display: flex; align-items: center; gap: 8px; }
.section-heading h2 { margin: 0; font-size: 13px; font-weight: 650; white-space: nowrap; }
.section-number { color: #9ba7ae; font-size: 10px; font-variant-numeric: tabular-nums; }
.section-caption { font-size: 10px; color: var(--muted); }
.photo-figure { margin: 0; }
.photo-stage { height: 390px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); padding: 10px; }
#photo-main { display: block; width: 100%; height: 100%; object-fit: contain; }
#photo-main:not([src]) { visibility: hidden; }
#photo-caption { min-height: 33px; padding: 10px 1px 0; font-size: 10px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.photo-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.photo-thumb { height: 52px; border: 1px solid #d7dfe2; background: #fff; border-radius: 2px; padding: 3px; position: relative; overflow: hidden; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-thumb:hover { border-color: #789f9b; }
.photo-thumb.is-active, .photo-thumb[aria-pressed="true"] { border: 2px solid var(--accent); padding: 2px; box-shadow: 0 0 0 1px #dcebe8; }
.photo-hint { color: #89959b; font-size: 10px; margin: 9px 0 0; }
.models-area { min-width: 0; }
.view-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.button { padding: 5px 10px; border: 1px solid #ccd7dc; border-radius: 3px; background: #fff; font-size: 10px; font-weight: 500; line-height: 1.5; }
.button:hover { background: #e9efef; border-color: #aebfc4; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #184e4d; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 10px; padding: 7px 11px; border: 1px solid var(--line); background: #fff; }
.select-controls, .toggle-controls { display: flex; align-items: center; gap: 14px; }
.select-controls label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
select { border: 1px solid #dce2e5; border-radius: 2px; background: #fafbfb; padding: 3px 22px 3px 7px; font-size: 10px; max-width: 150px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; color: #52646c; cursor: pointer; }
.checkbox-label input { margin: 0; accent-color: var(--accent); width: 12px; height: 12px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model-panel { background: #fff; border: 1px solid var(--line); min-width: 0; overflow: hidden; }
.model-header { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px 8px; border-bottom: 1px solid var(--line); }
.model-header h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.branch-tag { color: #859199; font-size: 9px; font-weight: 400; white-space: nowrap; }
.model-viewport { position: relative; background: var(--viewport-bg); width: 100%; height: 430px; overflow: hidden; touch-action: none; }
.model-viewport canvas { display: block; width: 100%; height: 100%; outline: 0; }
.model-loading { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; color: #687b83; font-size: 11px; background: var(--viewport-bg); text-align: center; padding: 20px; line-height: 1.6; }
.model-loading.error { color: #a64f43; background: #f8eeeb; }
.loading-spinner { display: block; width: 21px; height: 21px; border: 2px solid #d4dedf; border-top-color: #467b77; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.model-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 11px; margin: 0; border-top: 1px solid var(--line); min-height: 65px; }
.model-stats > div { min-width: 0; }
.model-stats dt { color: #829097; font-size: 9px; margin-bottom: 4px; }
.model-stats dd { margin: 0; color: #31424b; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.model-stats .stat-wide { grid-column: 1 / -1; }
.model-guidance { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #86949b; font-size: 9px; margin-top: 10px; min-height: 18px; }
.model-guidance b { font-size: 12px; font-weight: 500; color: #70858f; margin-right: 2px; }
.model-guidance-end { margin-left: auto; color: #527d75; }
.evidence-section { margin-top: 24px; padding: 17px 20px; border: 1px solid var(--line); background: #fff; }
.evidence-section .section-heading { margin-bottom: 0; min-height: 22px; }
.resource-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.resource-grid > div { border-left: 2px solid #dfe8e8; padding-left: 11px; }
.resource-grid dd { font-size: 16px; }
.evidence-note { color: #7e8c92; font-size: 10px; line-height: 1.6; margin: 14px 0 0; }
.table-scroll { overflow-x: auto; margin-top: 13px; }
.stage-data-table { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stage-data-table th { font-size: 10px; color: #7d8d94; font-weight: 500; background: #f5f7f7; text-align: left; padding: 8px 11px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.stage-data-table td { padding: 8px 11px; border-bottom: 1px solid #edf0f1; }
.stage-data-table tr:last-child td { border-bottom: 0; }
.stage-data-table th:not(:first-child), .stage-data-table td:not(:first-child) { text-align: right; }
.sources-details { margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--line); color: #7d8d94; font-size: 10px; }
.sources-details summary { cursor: pointer; width: fit-content; }
.sources-body { margin-top: 12px; background: #fff; border: 1px solid var(--line); padding: 9px 17px; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.sources-body ul { padding-left: 17px; margin: 3px 0; }
.sources-body li { margin: 4px 0; }
.sources-body p { margin: 6px 0; }
.page-footer { padding: 20px 36px 24px; color: #8b979d; font-size: 9px; display: flex; justify-content: space-between; gap: 20px; }
.noscript-message { padding: 20px; text-align: center; color: #963e32; background: #fff1ed; }
:fullscreen { background: #f5f6f6; padding: 22px; overflow: auto; }
.models-area:fullscreen .model-viewport { height: calc(100vh - 210px); min-height: 300px; }
.comparison-section:fullscreen .model-viewport { height: calc(100vh - 220px); min-height: 300px; }
@media (min-width: 1700px) { .model-viewport { height: 500px; } .photo-stage { height: 460px; } }
@media (max-width: 1150px) {
  .page-header { padding-right: 22px; padding-left: 22px; }
  .scene-nav { padding-right: 22px; padding-left: 22px; }
  main { padding: 20px 22px 0; }
  .comparison-section { grid-template-columns: minmax(180px, 22fr) minmax(0, 78fr); gap: 16px; }
  .model-grid { gap: 7px; }
  .model-viewport { height: 360px; }
  .photo-stage { height: 320px; }
  .photo-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .branch-tag { font-size: 8px; }
  .viewer-toolbar { flex-wrap: wrap; }
  .model-header { padding-right: 8px; padding-left: 8px; }
  .scene-tab { padding-right: 14px; padding-left: 14px; }
  .page-footer { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 820px) {
  .page-header { min-height: 90px; padding-top: 18px; padding-bottom: 16px; }
  h1 { font-size: 19px; }
  .header-meta p { max-width: 165px; font-size: 10px; line-height: 1.6; }
  .brand-mark { font-size: 25px; padding-right: 14px; }
  .dataset-heading h2 { font-size: 23px; }
  .dataset-section { padding: 18px; }
  .dataset-counter { display: none; }
  .comparison-section { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .photo-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr); gap: 0 16px; }
  .photo-heading { grid-column: 1 / -1; }
  .photo-figure { grid-row: 2 / 4; }
  .photo-stage { height: 220px; }
  .photo-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; margin-top: 0; }
  .photo-thumb { height: 85px; }
  .photo-hint { align-self: start; }
  .model-viewport { height: 360px; }
  .model-header { flex-direction: column; align-items: flex-start; min-height: 49px; gap: 4px; }
  .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .page-header { padding-right: 14px; padding-left: 14px; }
  .brand-block { gap: 10px; }
  .brand-mark { display: none; }
  .eyebrow { font-size: 9px; }
  .header-meta p { max-width: 135px; }
  .scene-nav { padding: 0 10px; }
  .scene-tab { font-size: 12px; padding: 12px 12px 11px; }
  main { padding: 16px 12px 0; }
  .dataset-section { padding: 15px; margin-bottom: 18px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fact dd { font-size: 12px; }
  .photo-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 10px; }
  .photo-stage { height: 175px; padding: 6px; }
  .photo-thumb { height: 56px; }
  .photo-thumbs { gap: 5px; }
  .models-heading { align-items: flex-start; }
  .models-heading > div:first-child { padding-top: 3px; }
  .view-actions { gap: 4px; }
  .button { padding: 4px 7px; font-size: 9px; }
  .viewer-toolbar { padding: 8px; gap: 9px; }
  .select-controls, .toggle-controls { gap: 10px; }
  .model-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .model-header { flex-direction: row; align-items: center; min-height: 36px; }
  .model-viewport { height: 380px; }
  .model-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 58px; }
  .model-guidance { gap: 10px; }
  .model-guidance-end { margin-left: 0; width: 100%; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-section { padding: 14px; margin-top: 20px; }
  .section-caption { font-size: 9px; }
  .page-footer { padding: 20px 14px; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
@media print {
  body { background: #fff; }
  .page-header { min-height: 75px; padding-top: 10px; padding-bottom: 10px; }
  .scene-nav, .viewer-toolbar, .view-actions, .photo-thumbs, .photo-hint, .model-guidance, .sources-details { display: none !important; }
  main { padding-top: 10px; }
  .dataset-section { padding: 12px 16px; margin-bottom: 16px; }
  .comparison-section { grid-template-columns: 24fr 76fr; gap: 14px; }
  .photo-panel { display: block; }
  .model-viewport { height: 300px; }
  .photo-stage { height: 335px; }
  .evidence-section { break-inside: avoid; }
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
