@charset "UTF-8";

/* 基础令牌：中性深灰承托模型，绿色只用于操作和状态。 */
:root {
  --bg: #101210;
  --surface: #191d19;
  --surface-raised: #232923;
  --line: #303730;
  --text: #e9eee7;
  --secondary: #bcc5b8;
  --muted: #8d9988;
  --accent: #b2ef83;
  --header: 68px;
  --sidebar: 236px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.8; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; }
button:disabled { opacity: .35; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, a, summary, select { transition: color 160ms, background 160ms, border-color 160ms; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.live-dot { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; background: var(--accent); color: #17220f; padding: 8px 18px; }
.skip-link:focus { top: 10px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 7px; background: transparent; color: var(--muted); border-radius: 4px; }
.icon-button:hover { color: var(--accent); background: #b2ef830a; }
.icon-button svg { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 0; color: var(--accent); background: transparent; font-size: 12px; }
.text-link svg { width: 16px; height: 16px; transition: transform 180ms; }
.text-link:hover svg { transform: translateX(4px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 400; margin: 0 0 8px; color: var(--muted); }

/* 固定框架与项目目录。 */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header); display: flex; align-items: center; gap: 34px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #101210f7; backdrop-filter: blur(14px); }
.identity { display: flex; align-items: center; gap: 11px; min-width: calc(var(--sidebar) - 22px); font-size: 15px; line-height: 1.35; font-weight: 600; }
.identity-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #5b6a50; color: var(--accent); font-size: 22px; }
.identity-mark span { margin-left: -3px; }
.identity-sub { display: block; font-size: 9px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.header-nav { display: flex; align-items: stretch; height: 100%; gap: 30px; }
.header-nav a { display: flex; align-items: center; position: relative; font-size: 12px; color: var(--muted); }
.header-nav a:hover, .header-nav a.active { color: var(--text); }
.header-nav a.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.resume-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; border: 1px solid #48523f; padding: 6px 12px; border-radius: 4px; font-size: 11px; }
.resume-link:hover { color: var(--accent); border-color: var(--accent); }
.resume-link svg { width: 14px; height: 14px; }
.menu-toggle { display: none; }
.page-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); max-width: 1800px; margin: auto; }
.sidebar { position: sticky; top: var(--header); display: flex; flex-direction: column; height: calc(100dvh - var(--header)); padding: 25px 20px 18px; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3b4637 transparent; }
.sidebar-heading { display: flex; justify-content: space-between; margin-bottom: 17px; font-size: 11px; color: #c2cbbd; }
.sidebar-heading .mono { font-size: 10px; color: var(--muted); }
.search-box { display: flex; gap: 8px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px; background: #171c16; color: #83917b; }
.search-box:focus-within { border-color: #829d6a; }
.search-box svg { width: 14px; height: 14px; }
.search-box input { width: 100%; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: 10px; }
.search-box input::placeholder { color: #7c8b75; }
.filter-row { display: flex; gap: 17px; margin: 15px 0 17px; }
.filter { padding: 0 0 5px; border-bottom: 1px solid transparent; background: none; color: var(--muted); font-size: 10px; }
.filter.active { border-color: var(--accent); color: var(--accent); }
.filter span { margin-left: 6px; font: 10px Consolas, monospace; }
.project-link { display: block; border: 1px solid #343f2e; border-radius: 4px; overflow: hidden; background: #151a14; }
.project-link:hover { border-color: #718663; }
.project-link.active { border-color: #61754f; }
.project-thumb { position: relative; overflow: hidden; height: 105px; background: #1c251b; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 450ms var(--ease); filter: brightness(1.1); }
.project-link:hover img { transform: scale(1.05); }
.project-index { position: absolute; top: 9px; left: 11px; font-size: 9px; color: var(--accent); }
.project-thumb svg { position: absolute; right: 10px; bottom: 10px; width: 16px; height: 16px; color: var(--accent); }
.project-link-copy { display: block; padding: 10px 11px; }
.project-link strong { display: block; font-size: 12px; font-weight: 500; color: var(--accent); }
.project-link small { display: block; color: #92a088; font-size: 9px; margin-top: 3px; }
.search-empty { font-size: 11px; color: var(--muted); }
.search-empty button { display: block; color: var(--accent); background: none; font-size: 11px; padding: 6px 0; }
.section-nav { margin-top: 25px; }
.section-nav>p { font-size: 10px; color: #677561; margin-bottom: 10px; }
.section-link { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: #8e9c87; font-size: 11px; }
.section-link span { font: 9px Consolas, monospace; color: #5d6d56; }
.section-link:hover, .section-link.active { color: var(--accent); }
.section-link.active span { color: var(--accent); }
.sidebar-bottom { margin-top: auto; padding-top: 28px; font-size: 9px; color: #9daa94; }
.sidebar-bottom p { margin: 11px 0 9px; font-size: 12px; color: var(--secondary); }
.sidebar-bottom p>span { font-size: 10px; color: #75866c; }
.sidebar-bottom>a { display: flex; align-items: center; gap: 35px; font-size: 10px; color: var(--accent); }
.sidebar-bottom>a svg { width: 13px; height: 13px; }
.sidebar-stamp { display: block; margin-top: 17px; font-size: 9px; color: #55674d; }
.menu-scrim { display: none; }
main { min-width: 0; width: 100%; max-width: 1440px; padding: 0 36px; }

/* 首屏只保留项目身份和三维展台。 */
.case-section { padding-top: 22px; scroll-margin-top: 90px; }
.case-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; animation: enter 500ms var(--ease) both; }
.case-heading .eyebrow .mono { color: var(--accent); font-size: 9px; }
.heading-divider { display: block; width: 18px; height: 1px; background: #536348; }
.case-heading h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 16px; margin: 0; font-size: 34px; line-height: 1.2; font-weight: 500; }
.case-heading-light { font-size: 21px; font-weight: 400; color: #b1bda9; }
.title-point { color: var(--accent); margin-left: -13px; font-family: Georgia, serif; font-size: 48px; line-height: .6; }
.case-lead { margin: 9px 0 0; font-size: 12px; color: #98a58f; line-height: 1.8; }
.project-heading-aside { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.source-label { font-size: 10px; color: #a6b89a; white-space: nowrap; }
.project-heading-aside .text-link { font-size: 11px; }
.project-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 12px 0 14px; }
.project-tags>span { padding: 1px 8px; color: #aebaa5; border: 1px solid #34402f; border-radius: 3px; font-size: 9px; }
.project-tags .tag-source { margin-left: auto; padding-right: 0; color: #7f9273; border: 0; font-size: 10px; }
.tag-source>span { color: #43513b; margin: 0 4px; }
.viewer { position: relative; overflow: hidden; background: #171d17; border: 1px solid #43503b; border-radius: 7px; animation: enter 700ms 60ms var(--ease) both; }
.viewer-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; padding: 0 15px; border-bottom: 1px solid #303c2c; background: #1b2319; }
.viewer-title { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #bfccb4; white-space: nowrap; }
.viewer-title svg { width: 16px; height: 16px; color: var(--accent); }
.viewer-separator { color: #55684a; margin: 0 2px; }
#model-state { font-size: 9px; color: #8a9f7d; }
.viewer-top-actions { display: flex; align-items: center; gap: 8px; }
.model-select-label select { max-width: 150px; padding: 3px 22px 3px 9px; color: #bdcfb0; border: 1px solid #415238; border-radius: 3px; background: #263020; font-size: 10px; }
.top-tool { display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border: 1px solid transparent; background: none; border-radius: 3px; font-size: 10px; color: #99ae8a; }
.top-tool svg { width: 14px; height: 14px; }
.top-tool:hover, .top-tool[aria-expanded=true] { background: #b2ef8312; color: var(--accent); border-color: #5a7149; }
.viewer-top-actions .icon-button { padding: 4px; }
.viewer-top-actions .icon-button svg { width: 15px; height: 15px; }
.viewer-stage { position: relative; height: clamp(320px, calc(100svh - 366px), 640px); min-height: 0; isolation: isolate; background: radial-gradient(ellipse at 50% 40%, #2e392a 0, #20281e 40%, #151c15 85%); }
.canvas-host { position: absolute; inset: 0 0 56px; overflow: hidden; }
.canvas-host canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.viewer-cover { position: absolute; inset: 0; z-index: 5; background: #192218; opacity: 1; transition: opacity 240ms; }
.viewer-cover.loaded { opacity: 0; pointer-events: none; }
.viewer-cover>img { width: 100%; height: 100%; object-fit: cover; opacity: .7; filter: brightness(.8); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #132011cc, transparent 75%); }
.cover-cta { position: absolute; top: 25px; left: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cover-kicker { color: #d1dfc7; font-size: 18px; }
.primary-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--accent); color: #1b2a13; border-radius: 3px; font-size: 12px; font-weight: 600; }
.primary-button svg { width: 17px; height: 17px; }
.primary-button svg:last-child { margin-left: 15px; }
.primary-button:hover { background: #ceffa6; }
.cover-cta small { color: #9db48e; font-size: 10px; }
.viewer-cover.loading .primary-button svg:first-child { animation: spin 2s linear infinite; }
.viewport-label { position: absolute; top: 16px; left: 18px; z-index: 2; color: #98ae89; font-size: 9px; pointer-events: none; }
.viewport-label .mono { margin-left: 12px; font-size: 9px; color: #667d58; }
.axis-key { position: absolute; top: 17px; right: 23px; width: 43px; height: 48px; color: #728b63; font: 10px Consolas, monospace; pointer-events: none; opacity: .8; }
.axis-key:before, .axis-key:after { content: ""; position: absolute; left: 21px; top: 27px; width: 23px; height: 1px; background: #637b54; transform-origin: left center; transform: rotate(25deg); }
.axis-key:after { transform: rotate(150deg); }
.axis-key span { position: absolute; }
.axis-y { left: 19px; top: 0; }
.axis-y:after { content: ""; position: absolute; left: 3px; top: 12px; width: 1px; height: 16px; background: #90b975; }
.axis-x { right: -5px; bottom: 0; }
.axis-z { left: -3px; bottom: 0; }
.viewer-controls { position: absolute; z-index: 4; left: 15px; right: 15px; bottom: 15px; display: flex; gap: 10px; justify-content: space-between; align-items: center; opacity: 0; pointer-events: none; transition: opacity 200ms; }
.viewer[data-state=ready] .viewer-controls { opacity: 1; pointer-events: auto; }
.view-presets, .display-tools { display: flex; gap: 1px; padding: 3px; border: 1px solid #435439; border-radius: 4px; background: #1a2517ed; }
.viewer-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 29px; padding: 4px 9px; background: none; color: #a7bc99; border-radius: 2px; font-size: 10px; white-space: nowrap; }
.viewer-controls button:hover { background: #35492b; color: var(--text); }
.viewer-controls button[aria-pressed=true] { background: var(--accent); color: #203316; }
.viewer-controls svg { width: 13px; height: 13px; }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 51px; padding: 10px 16px; background: #1e281b; border-top: 1px solid #34452c; }
.explode-control { display: flex; align-items: center; gap: 14px; flex: 1; max-width: 440px; }
.explode-control button { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; font-size: 11px; white-space: nowrap; }
.explode-control button svg { width: 13px; height: 13px; transition: transform 220ms; }
.explode-control button[aria-pressed=true] { color: var(--accent); }
.explode-control button[aria-pressed=true] svg { transform: rotate(45deg); }
input[type=range] { min-width: 30px; height: 3px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.explode-control input { width: 100%; max-width: 220px; }
.explode-control output { min-width: 34px; color: var(--accent); font-size: 10px; }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.action-button { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 4px 9px; border: 1px solid #46563d; border-radius: 3px; background: #263222; color: #b4cba4; font-size: 10px; white-space: nowrap; }
.action-button svg { width: 14px; height: 14px; }
.action-button:hover { color: var(--accent); background: #314529; border-color: #799c60; }
.section-control { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #263623; color: #b9cdae; font-size: 10px; }
.section-control input { width: 140px; }
.section-control>span { margin-left: auto; color: #8da77e; font-size: 9px; }
.viewer-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 27px; padding: 5px 16px; color: #809874; background: #131c12; font-size: 9px; }
.viewer-error { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; background: #192417f5; text-align: center; }
.viewer-error>svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 17px; }
.viewer-error h3 { font-size: 18px; font-weight: 400; margin-bottom: 12px; }
.viewer-error p { font-size: 12px; color: var(--muted); max-width: 380px; }
.secondary-button { background: #304628; color: var(--accent); padding: 8px 18px; border: 1px solid #6e8e58; border-radius: 3px; font-size: 12px; }

/* 模型内的零件目录和操作说明，不占用主页面阅读空间。 */
.component-panel { position: absolute; z-index: 7; top: 12px; right: 12px; display: flex; flex-direction: column; width: 243px; max-height: calc(100% - 85px); padding: 12px; background: #172215f5; border: 1px solid #627951; border-radius: 5px; box-shadow: 0 12px 30px #07100655; overflow: hidden; animation: panel-in 220ms var(--ease); }
.component-panel .panel-heading, .component-panel .panel-caption, .component-panel .panel-reset { flex-shrink: 0; }
#component-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #698556 transparent; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #d3e6c8; }
.panel-heading .icon-button { padding: 2px; }
.panel-heading .icon-button svg { width: 14px; height: 14px; }
.panel-caption { font-size: 9px; color: #8aa17e; margin: 5px 0 12px; }
.component-item { display: flex; width: 100%; gap: 8px; text-align: left; align-items: center; padding: 8px 7px; margin-bottom: 3px; border: 1px solid transparent; border-radius: 3px; background: #25352080; color: #b6cba9; }
.component-item:hover { background: #364b2d; border-color: #5f7d4b; }
.component-item[aria-pressed=true] { background: #b2ef8320; border-color: #90b574; color: var(--accent); }
.component-item .part-number { color: #749365; font: 9px Consolas, monospace; }
.component-item strong { display: block; font-weight: 400; font-size: 11px; }
.component-item small { display: block; color: #78936a; font-size: 9px; line-height: 1.6; }
.panel-reset { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 3px 0; margin-top: 8px; border-top: 1px solid #364b2c; background: none; color: #a6c493; font-size: 10px; }
.panel-reset svg { width: 13px; height: 13px; }
.viewer-help { position: absolute; z-index: 8; right: 12px; top: 12px; width: 285px; max-width: calc(100% - 24px); padding: 18px; border: 1px solid #698456; background: #1c2a18f7; box-shadow: 0 12px 30px #07100655; border-radius: 5px; animation: panel-in 220ms var(--ease); }
.viewer-help strong { color: #d8eace; font-size: 12px; font-weight: 400; }
.viewer-help dl { margin: 15px 0 18px; }
.viewer-help dl>div { display: grid; grid-template-columns: 66px 1fr; gap: 9px; padding: 4px 0; font-size: 10px; }
.viewer-help dt { color: #819c70; }
.viewer-help dd { margin: 0; color: #b1c8a3; }
.viewer-help .text-link { font-size: 10px; }
.part-tooltip { position: absolute; z-index: 6; display: flex; gap: 18px; align-items: center; left: 17px; bottom: 67px; max-width: calc(100% - 34px); padding: 8px 12px; border: 1px solid #7d9e66; background: #1c2d18ed; border-radius: 4px; font-size: 11px; color: #e0f1d4; }
.part-tooltip small { display: block; color: #91b17e; font-size: 9px; }
.part-tooltip button { flex-shrink: 0; padding: 4px 7px; background: #34502a; border-radius: 3px; color: var(--accent); font-size: 10px; }
.viewer.parts-open .axis-key { opacity: 0; }
.viewer:fullscreen, .viewer.is-faux-fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100dvh; border: 0; border-radius: 0; background: #171f15; }
.viewer.is-faux-fullscreen { position: fixed; inset: 0; z-index: 100; }
.viewer:fullscreen .viewer-stage, .viewer.is-faux-fullscreen .viewer-stage { flex: 1; height: auto; min-height: 0; }
.no-scroll { overflow: hidden; }

/* 项目阅读：用留白、分隔线和字号组织信息。 */
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0 23px; border-bottom: 1px solid var(--line); }
.project-meta span { display: block; margin-bottom: 5px; color: #75866c; font-size: 10px; }
.project-meta strong { font-size: 12px; font-weight: 400; color: #bdcdb2; }
.project-notes, .about-section { display: grid; grid-template-columns: 1fr 1.65fr; gap: 60px; padding: 65px 0 34px; scroll-margin-top: 88px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h3 { font-size: 27px; line-height: 1.65; font-weight: 400; }
.notes-content p, .about-content>p { color: #a2b198; font-size: 13px; line-height: 2.1; }
.notes-content p.large-copy, .about-content p.large-copy { color: #d1deca; font-size: 16px; line-height: 2; margin-bottom: 18px; }
.notes-content .scope-note { padding-left: 13px; border-left: 2px solid #526746; font-size: 10px; color: #7a906e; margin-top: 23px; }
.structure-notes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: 25px 0 52px; gap: 30px; }
.step-index { color: #718b62; font-size: 11px; }
.structure-notes h4 { font-size: 17px; font-weight: 400; margin: 10px 0 9px; }
.structure-notes p { font-size: 12px; line-height: 1.95; color: #8d9f82; margin-bottom: 18px; }
.structure-notes .text-link { font-size: 11px; }
.subsection-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.subsection-heading h3 { font-size: 23px; font-weight: 400; margin: 0; }
.subsection-heading>span { color: #7f9473; font-size: 10px; }
.gallery-section { scroll-margin-top: 90px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-item { overflow: hidden; padding: 0; border: 1px solid #394733; border-radius: 4px; background: #1a2417; text-align: left; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; background: #d8dcda; transition: transform 500ms var(--ease); }
.gallery-item:hover { border-color: #708a5c; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item>span { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; color: #afc39f; font-size: 11px; }
.gallery-item strong { font-weight: 400; }
.gallery-item svg { width: 14px; height: 14px; }
.engineering-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 35px; }
.engineering-details summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; list-style: none; padding: 19px 0; cursor: pointer; color: #b2c4a6; font-size: 12px; }
.engineering-details summary::-webkit-details-marker { display: none; }
.engineering-details summary>span { display: flex; gap: 12px; align-items: center; }
.engineering-details svg { width: 16px; height: 16px; color: #7e9c6a; transition: transform 200ms; }
.engineering-details[open] .details-plus { transform: rotate(45deg); }
.details-body { padding: 0 28px 23px; font-size: 11px; line-height: 2; color: #91a387; max-width: 850px; }
.details-body ul { padding-left: 20px; }
.details-body strong { color: #b9cfae; font-weight: 400; }
.about-section { padding-top: 74px; padding-bottom: 50px; }
.about-section h2 { margin-bottom: 25px; font-size: 35px; line-height: 1.6; font-weight: 400; }
.about-section h2 span { color: var(--accent); }
.about-role { display: block; margin-top: 3px; font-size: 11px; color: #91ad7f; }
.education { display: flex; flex-direction: column; gap: 5px; padding: 20px 0; margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8ba27c; font-size: 11px; }
.education .mono { font-size: 10px; color: #9fba8d; }
.education strong { font-size: 14px; font-weight: 400; color: #c4d7b9; }
.skills { margin: 0; }
.skills>div { display: grid; grid-template-columns: 85px 1fr; gap: 10px; margin-bottom: 15px; font-size: 11px; }
.skills dt { color: #708965; }
.skills dd { margin: 0; color: #a3bc96; }
.experience-section { border-top: 1px solid var(--line); padding-top: 32px; }
.experience-list>div { display: grid; grid-template-columns: 24px 1fr 1.35fr; gap: 15px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid #293525; }
.experience-list .mono { color: #67825a; font-size: 10px; }
.experience-list h4 { margin: 0; color: #b9cfad; font-size: 12px; font-weight: 400; }
.experience-list p { margin: 0; color: #7c9670; font-size: 10px; }
.experience-note { margin: 14px 0 30px; color: #647d57; font-size: 10px; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 50px; }
.awards>div { display: flex; gap: 18px; color: #7f9a71; font-size: 10px; }
.awards .mono { color: var(--accent); font-size: 11px; padding-top: 2px; }
.awards p { margin: 0; line-height: 2; }
.awards strong { font-weight: 400; color: #a4be96; }
.contact-section { padding: 55px 0 45px; border-top: 1px solid #485d3d; scroll-margin-top: 90px; }
.contact-section .eyebrow { margin-bottom: 15px; font-size: 11px; color: #829f72; }
.contact-section h2 { margin-bottom: 28px; font-size: 38px; font-weight: 400; line-height: 1.5; }
.contact-section h2 span { color: var(--accent); }
.contact-row { display: flex; align-items: center; gap: 35px; }
.contact-row>a { color: #91ae81; font-size: 12px; }
.contact-row .contact-mail { display: flex; gap: 42px; align-items: center; color: #c9e2bb; font-size: 21px; }
.contact-mail svg { width: 22px; height: 22px; transform: rotate(-35deg); color: var(--accent); }
footer { display: flex; align-items: center; gap: 25px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 9px; color: #5b7550; }
footer button { padding: 0; margin-left: auto; background: none; color: #8cab79; font-size: 9px; }
footer a { display: flex; align-items: center; gap: 8px; color: #8cab79; }
footer svg { width: 14px; height: 14px; }

/* 对话框、反馈与渐进增强。 */
.image-dialog { width: max-content; max-width: min(94vw, 1400px); max-height: 93dvh; padding: 0; overflow: auto; border: 1px solid #647e52; border-radius: 5px; color: var(--text); background: #192317; box-shadow: 0 25px 80px #0008; }
.image-dialog::backdrop { background: #050b04e8; backdrop-filter: blur(8px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 12px 18px; }
.dialog-head h3 { font-size: 13px; font-weight: 400; margin: 0; }
.image-dialog>img { width: auto; max-width: 100%; max-height: calc(87dvh - 80px); object-fit: contain; }
.image-dialog>p { margin: 0; padding: 10px 18px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 150; bottom: 25px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: 10px 18px; border: 1px solid #7ca45f; border-radius: 4px; background: #283f20; color: #d8f0cb; font-size: 12px; box-shadow: 0 8px 25px #0005; }
.noscript-note { position: fixed; z-index: 100; bottom: 0; width: 100%; margin: 0; padding: 10px 20px; background: #384d2b; font-size: 12px; }
.reveal-pending { opacity: 0; transform: translateY(15px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal-pending.revealed { opacity: 1; transform: none; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 平板保留项目目录，压缩辅助信息。 */
@media (min-width: 1600px) {
  :root { --sidebar: 268px; }
  main { padding-right: 56px; padding-left: 56px; }
  .sidebar { padding-right: 25px; padding-left: 25px; }
  .project-thumb { height: 125px; }
}
@media (max-width: 1100px) {
  :root { --sidebar: 210px; }
  .site-header { gap: 24px; padding: 0 24px; }
  .identity { min-width: 178px; }
  .sidebar { padding-right: 16px; padding-left: 16px; }
  main { padding: 0 27px; }
  .case-heading h1 { font-size: 31px; gap: 0 12px; }
  .case-heading-light { font-size: 18px; }
  .project-heading-aside { gap: 12px; }
  .source-label { font-size: 9px; }
  .case-lead { font-size: 11px; }
  .viewer-controls { left: 12px; right: 12px; gap: 6px; }
  .viewer-controls button { padding-right: 7px; padding-left: 7px; }
  .project-notes, .about-section { gap: 35px; }
  .structure-notes { gap: 24px; }
  .experience-list>div { grid-template-columns: 24px 1fr; gap: 4px 15px; }
  .experience-list p { grid-column: 2; }
}
@media (max-width: 850px) {
  :root { --sidebar: 190px; }
  .identity { min-width: 155px; }
  .header-nav { gap: 23px; }
  .sidebar { padding: 22px 13px 16px; }
  main { padding: 0 23px; }
  .project-heading-aside .source-label { display: none; }
  .project-heading-aside { align-self: flex-start; padding-top: 3px; }
  .case-heading { gap: 14px; }
  .case-heading h1 { font-size: 31px; }
  .case-heading-light { flex-basis: 100%; font-size: 17px; margin-top: 6px; }
  .title-point { display: none; }
  .case-lead { max-width: 330px; }
  .project-tags .tag-source { font-size: 9px; }
  .viewer-title { gap: 5px; font-size: 10px; }
  #model-state { font-size: 8px; }
  .viewer-topbar { padding: 0 11px; }
  .viewer-top-actions { gap: 5px; }
  .top-tool { padding: 4px; }
  .top-tool>span { display: none; }
  .model-select-label select { max-width: 110px; padding-left: 6px; font-size: 9px; }
  .viewer-stage { height: 440px; }
  .canvas-host { bottom: 94px; }
  .viewer-controls { flex-direction: column; align-items: flex-start; bottom: 12px; }
  .viewer-controls button { font-size: 10px; padding: 5px 8px; }
  .viewer-bottom { gap: 10px; padding-right: 11px; padding-left: 11px; }
  .explode-control { gap: 9px; }
  .explode-control button { font-size: 10px; }
  .explode-control input { max-width: 110px; }
  .viewer-actions { gap: 5px; }
  .action-button { padding: 5px 7px; }
  .action-button>span { display: none; }
  .viewer-caption { flex-wrap: wrap; gap: 2px 12px; font-size: 8px; padding: 7px 12px; }
  .project-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .project-notes, .about-section { grid-template-columns: 1fr; gap: 10px; padding-top: 45px; }
  .section-heading h3 { font-size: 25px; line-height: 1.5; }
  .section-heading h3 br { display: none; }
  .notes-content p.large-copy { font-size: 15px; }
  .structure-notes { gap: 19px; }
  .structure-notes h4 { font-size: 15px; }
  .structure-notes p { font-size: 11px; }
  .subsection-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .subsection-heading h3 { font-size: 21px; }
  .gallery { gap: 13px; }
  .gallery-item>span { padding: 10px; font-size: 10px; }
  .about-section h2 { font-size: 31px; line-height: 1.5; margin-bottom: 17px; }
  .about-section h2 br { display: none; }
  .about-section .text-link { margin-bottom: 15px; }
  .awards { grid-template-columns: 1fr; gap: 20px; padding-bottom: 38px; }
  .contact-section h2 { font-size: 29px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 15px; }
  footer { flex-wrap: wrap; gap: 12px; }
  footer>span:nth-child(2) { display: none; }
}

/* 手机把目录收进抽屉，保留全部模型操作。 */
@media (max-width: 680px) {
  :root { --header: 62px; --sidebar: 0px; scroll-padding-top: 80px; }
  .site-header { padding: 0 18px; gap: 13px; }
  .identity { min-width: 0; margin-right: auto; gap: 9px; font-size: 13px; }
  .identity-mark { width: 32px; height: 32px; font-size: 20px; }
  .identity-sub { margin-top: 3px; font-size: 8px; }
  .header-nav { display: none; }
  .resume-link { margin: 0; padding: 5px 9px; font-size: 10px; gap: 5px; }
  .resume-link svg { width: 12px; height: 12px; }
  .menu-toggle { display: inline-flex; padding: 3px; }
  .menu-toggle svg { width: 21px; height: 21px; }
  .page-shell { display: block; }
  .sidebar { position: fixed; top: var(--header); bottom: 0; left: 0; z-index: 50; width: 270px; height: calc(100dvh - var(--header)); padding: 24px; background: #141d11; transform: translateX(-100%); transition: transform 250ms var(--ease); }
  .sidebar.open { transform: none; }
  .sidebar .project-thumb { height: 117px; }
  .sidebar .search-box input { font-size: 12px; }
  .sidebar .project-link strong { font-size: 14px; }
  .sidebar .project-link small { font-size: 10px; }
  .sidebar .filter { font-size: 12px; }
  .sidebar .section-link { padding: 6px 0; font-size: 12px; }
  .sidebar .sidebar-bottom { font-size: 10px; }
  .menu-scrim:not([hidden]) { display: block; position: fixed; inset: var(--header) 0 0; z-index: 45; background: #0009; backdrop-filter: blur(3px); }
  body.menu-open { overflow: hidden; }
  main { padding: 0 18px; }
  .case-section { padding-top: 22px; scroll-margin-top: 80px; }
  .case-heading { display: block; position: relative; }
  .case-heading .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .case-heading h1 { font-size: 32px; line-height: 1.25; }
  .case-heading-light { flex-basis: auto; font-size: 17px; margin-top: 0; }
  .project-heading-aside { position: absolute; top: -2px; right: 0; padding: 0; }
  .project-heading-aside .text-link { font-size: 9px; gap: 5px; }
  .project-heading-aside .text-link svg { width: 12px; height: 12px; }
  .case-lead { font-size: 11px; line-height: 1.95; max-width: 320px; margin-top: 11px; }
  .project-tags { margin-top: 13px; margin-bottom: 16px; gap: 6px; }
  .project-tags>span { font-size: 9px; padding: 1px 6px; }
  .project-tags .tag-source { display: none; }
  .viewer { border-radius: 5px; }
  .viewer-topbar { height: 44px; padding: 0 10px; gap: 6px; }
  .viewer-title { font-size: 10px; gap: 5px; }
  .viewer-title svg { width: 14px; height: 14px; }
  .viewer-title .viewer-separator, #model-state { display: none; }
  .viewer-top-actions { gap: 6px; }
  .model-select-label select { font-size: 10px; max-width: 105px; padding: 3px 14px 3px 6px; }
  .top-tool { padding: 4px 5px; }
  .viewer-stage { height: 420px; }
  .cover-cta { top: 23px; left: 18px; gap: 12px; }
  .cover-kicker { font-size: 16px; }
  .primary-button { min-height: 42px; font-size: 11px; padding: 9px 13px; }
  .cover-cta small { font-size: 9px; }
  .viewport-label { left: 13px; top: 15px; font-size: 9px; }
  .axis-key { top: 16px; right: 18px; transform: scale(.85); }
  .viewer-controls { left: 9px; right: 9px; bottom: 10px; gap: 5px; }
  .viewer-controls button { min-height: 33px; padding: 5px 8px; font-size: 10px; }
  .view-presets, .display-tools { padding: 2px; }
  .viewer-bottom { min-height: 55px; gap: 6px; padding: 10px; }
  .explode-control { gap: 8px; }
  .explode-control button { font-size: 10px; gap: 4px; }
  .explode-control button svg { width: 11px; height: 11px; }
  .explode-control input { max-width: 95px; }
  .explode-control output { font-size: 9px; min-width: 30px; }
  .viewer-actions { gap: 5px; }
  .action-button { min-height: 31px; padding: 5px 7px; }
  .viewer-caption { padding: 8px 10px; font-size: 8px; line-height: 1.8; }
  .viewer-caption>span { display: block; }
  .section-control { gap: 8px; padding: 10px; font-size: 9px; flex-wrap: wrap; }
  .section-control input { width: 85px; }
  .section-control>span { font-size: 8px; }
  .component-panel { width: 245px; max-height: calc(100% - 96px); top: 10px; right: 10px; }
  .component-item { min-height: 43px; }
  .viewer.parts-open .part-tooltip { display: none; }
  .part-tooltip { left: 11px; bottom: 97px; max-width: calc(100% - 22px); gap: 12px; padding: 8px 10px; }
  .part-tooltip small { font-size: 8px; overflow-wrap: anywhere; }
  .project-meta { padding: 20px 0; gap: 17px 10px; }
  .project-meta span { font-size: 9px; }
  .project-meta strong { font-size: 11px; }
  .project-notes { padding-top: 39px; padding-bottom: 25px; gap: 0; }
  .section-heading h3 { font-size: 25px; }
  .notes-content p.large-copy { font-size: 14px; }
  .notes-content p { font-size: 12px; line-height: 2.05; }
  .notes-content .scope-note { font-size: 10px; }
  .structure-notes { grid-template-columns: 1fr; gap: 23px; padding: 24px 0 43px; }
  .structure-notes>div { position: relative; padding-left: 36px; }
  .step-index { position: absolute; left: 0; top: 10px; }
  .structure-notes h4 { font-size: 17px; margin-top: 3px; }
  .structure-notes p { font-size: 12px; margin-bottom: 11px; }
  .structure-notes .text-link { font-size: 11px; }
  .subsection-heading { margin-bottom: 19px; }
  .subsection-heading h3 { font-size: 22px; }
  .subsection-heading>span { font-size: 9px; }
  .gallery { gap: 10px; }
  .gallery-item>span { font-size: 10px; padding: 9px; }
  .gallery-item svg { width: 12px; height: 12px; }
  .engineering-details { margin-top: 28px; }
  .engineering-details summary { font-size: 11px; padding: 17px 0; gap: 15px; }
  .details-body { padding: 0 5px 17px; font-size: 10px; }
  .details-body strong { overflow-wrap: anywhere; }
  .about-section { padding: 45px 0 35px; gap: 9px; }
  .about-section h2 { font-size: 29px; }
  .about-content>p { font-size: 12px; }
  .about-content p.large-copy { font-size: 18px; }
  .skills>div { grid-template-columns: 74px 1fr; gap: 8px; font-size: 10px; }
  .education strong { font-size: 13px; }
  .experience-section { padding-top: 27px; }
  .experience-list>div { padding: 15px 0; gap: 4px 10px; }
  .experience-list h4 { font-size: 12px; }
  .experience-list p { font-size: 10px; }
  .experience-note { font-size: 9px; }
  .awards>div { font-size: 9px; }
  .contact-section { padding: 36px 0; }
  .contact-section .eyebrow { font-size: 10px; }
  .contact-section h2 { font-size: 25px; }
  .contact-row .contact-mail { font-size: 19px; gap: 30px; }
  footer { padding: 20px 0; gap: 13px; }
  footer>span { width: 100%; }
  footer button { margin-left: 0; }
  footer a { margin-left: auto; }
  .image-dialog { max-width: 96vw; }
  .dialog-head { padding: 10px 14px; }
  .image-dialog>img { max-height: 75dvh; }
  .toast { font-size: 11px; text-align: center; }
}
@media (max-width: 360px) {
  .case-heading h1 { font-size: 29px; gap: 0 10px; }
  .case-heading-light { font-size: 15px; }
  .viewer-stage { height: 400px; }
  .viewer-top-actions { gap: 3px; }
  .viewer-title { gap: 4px; }
  .viewer-controls button { padding: 5px 7px; }
  .explode-control { gap: 6px; }
  .viewer-actions { gap: 3px; }
  .action-button { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* 打印回退始终展示原生工程视图，并保留完整说明。 */
@media print {
  * { color: #111 !important; box-shadow: none !important; text-shadow: none !important; }
  body { background: white; font-size: 10pt; }
  .site-header { position: static; height: auto; padding: 0 0 15pt; border: 0; background: none; }
  .identity-mark { border-color: #333; }
  .header-nav, .resume-link, .menu-toggle, .sidebar, .menu-scrim, .project-heading-aside, .viewer-topbar, .viewer-controls, .viewer-bottom, .viewer-caption, .section-control, .component-panel, .viewer-help, .part-tooltip, .axis-key, .viewport-label, .viewer-error, .text-link, .toast, .image-dialog, .noscript-note { display: none !important; }
  .page-shell { display: block; }
  main { padding: 0; max-width: none; }
  .case-section { padding-top: 10pt; }
  .case-heading h1 { font-size: 27pt; }
  .case-heading-light { font-size: 17pt; flex-basis: auto; }
  .title-point { display: none; }
  .case-lead { font-size: 9pt; }
  .viewer { border: 1px solid #bbb; background: white; break-inside: avoid; animation: none; }
  .viewer-stage { height: 280pt; background: white; }
  .canvas-host, .cover-cta, .cover-shade { display: none; }
  .viewer-cover { display: block !important; background: white; opacity: 1 !important; }
  .viewer-cover img { content: url('./assets/images/mecha_isometric.webp'); width: 100%; height: 100%; object-fit: contain; opacity: 1; filter: none; }
  .project-meta { grid-template-columns: repeat(4, 1fr); padding: 12pt 0; }
  .project-notes, .about-section { grid-template-columns: 1fr 1.7fr; gap: 24pt; padding: 24pt 0 10pt; }
  .section-heading h3 { font-size: 19pt; }
  .notes-content p, .about-content>p { font-size: 9pt; }
  .notes-content p.large-copy { font-size: 10pt; }
  .structure-notes { grid-template-columns: repeat(3, 1fr); gap: 15pt; padding: 15pt 0; break-inside: avoid; }
  .structure-notes>div { padding-left: 0; }
  .step-index { position: static; }
  .structure-notes h4 { font-size: 12pt; }
  .structure-notes p { font-size: 8pt; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 8pt; }
  .gallery-section { break-inside: avoid; }
  .gallery-item { border-color: #bbb; background: white; }
  .gallery-item>span { padding: 6pt; font-size: 8pt; }
  .gallery-item svg { display: none; }
  .subsection-heading h3 { font-size: 15pt; }
  .engineering-details { margin-top: 15pt; }
  .engineering-details summary { font-size: 10pt; padding: 10pt 0; }
  .engineering-details svg { display: none; }
  .details-body { max-width: none; padding: 0 0 8pt; font-size: 8pt; }
  .about-section h2 { font-size: 23pt; }
  .education { padding: 10pt 0; margin: 10pt 0; }
  .skills>div { font-size: 8pt; margin-bottom: 8pt; }
  .experience-section { padding-top: 15pt; }
  .experience-list>div { grid-template-columns: 20pt 1fr 1.5fr; padding: 8pt 0; }
  .experience-list h4 { font-size: 9pt; }
  .experience-list p { font-size: 8pt; grid-column: auto; }
  .awards { grid-template-columns: 1fr 1fr; padding-bottom: 15pt; }
  .contact-section { padding: 20pt 0; }
  .contact-section h2 { font-size: 22pt; }
  .contact-row { flex-direction: row; }
  .contact-row .contact-mail { font-size: 15pt; }
  .contact-row svg, footer button, footer a { display: none; }
  footer { padding: 10pt 0; }
  .reveal-pending { opacity: 1; transform: none; }
  @page { size: A4; margin: 16mm; }
}
