/* 品牌与导航使用同一内容轴线；装饰不参与素材展示。 */
.app-header {
  position: relative;
  height: clamp(72px, 4vw, 100px);
  padding: 0 max(6vw, calc((100vw - 2800px) / 2));
  background: linear-gradient(100deg, #111722ed, #131a28e8);
  border-bottom: 1px solid #abb8d219;
  box-shadow: 0 12px 40px #070c171a;
  backdrop-filter: blur(20px);
}
.brand { gap: 16px; }
.brand-mark { width: clamp(40px, 2.6vw, 62px); height: auto; color: #c9ba93; flex-shrink: 0; }
.brand strong { font-size: 1.65rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.brand small { margin-top: 8px; font-size: clamp(10px, .57rem, 14px); letter-spacing: .1em; color: #8d98ac; }
.brand-slash { margin: 0 9px; color: #495469; }
.feature-nav { height: 100%; gap: clamp(22px, 2.2vw, 70px); padding: 0; border: 0; border-radius: 0; background: none; align-items: stretch; }
.feature-tab { position: relative; gap: 12px; padding: 0 12px; border: 0; border-radius: 0; color: #8e9bb0; background: none; justify-content: flex-start; }
.feature-tab:hover { color: #ecedf6; background: none; }
.feature-tab[aria-current=page] { color: #f0effb; background: none; border: 0; box-shadow: none; }
.feature-tab::after { content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: #a6a1e0; opacity: 0; transform: scaleX(.5); transition: opacity .2s, transform .2s; }
.feature-tab[aria-current=page]::after { opacity: 1; transform: scaleX(1); }
.nav-index { align-self: center; color: #738199; font-size: clamp(10px, .6rem, 16px); font-variant-numeric: tabular-nums; }
.feature-tab[aria-current=page] .nav-index { color: #b3acd9; }
.nav-label { font-size: 1rem; letter-spacing: .04em; font-weight: 500; }
.nav-label small { display: block; margin-top: 5px; font-size: clamp(10px, .55rem, 14px); letter-spacing: .1em; font-weight: 400; color: #7f8da6; }
.feature-tab[aria-current=page] small { color: #9a9ab7; }
.sync-button { gap: 10px; font-size: clamp(12px, .75rem, 18px); color: #a0acbd; }
.status-dot { width: 5px; height: 5px; box-shadow: 0 0 0 4px #75b6a00b; }
.sync-button .icon { margin-left: 5px; opacity: .55; }
.main { padding-top: clamp(34px, 2.6vw, 72px); }
.collection-header { position: relative; align-items: center; margin-bottom: 25px; padding-bottom: clamp(26px, 2vw, 48px); border-bottom: 1px solid #b4c0de24; }
.collection-header .eyebrow { display: flex; align-items: center; gap: 13px; color: #a9aec4; font-size: clamp(10px, .6rem, 15px); letter-spacing: .22em; margin-bottom: 20px; }
.collection-number { font-size: inherit; color: #cec2a5; letter-spacing: .04em; padding-right: 13px; border-right: 1px solid #c3b69766; }
.collection-header h1 { font-size: clamp(34px, 2.35vw, 64px); font-weight: 500; letter-spacing: .015em; line-height: 1.15; }
.title-point { color: #cabc9b; margin-left: 5px; }
.collection-header .page-subtitle { color: #a0acc0; margin-top: 16px; font-size: .95rem; letter-spacing: .045em; }
.collection-count { display: flex; align-items: center; gap: 20px; padding: 0 0 0 28px; border-left: 1px solid #b4c0de2b; }
.collection-count strong { font-size: clamp(42px, 3.2vw, 86px); line-height: 1; font-weight: 250; letter-spacing: -.05em; color: #ddddea; font-variant-numeric: tabular-nums; }
.collection-count>span { color: #aeb7c8; font-size: clamp(12px, .8rem, 20px); }
.collection-count small { display: block; margin-top: 9px; font-size: clamp(10px, .55rem, 14px); color: #93a1b8; letter-spacing: .16em; }
.demo-notice { padding: 0; margin-bottom: 22px; gap: 12px; border: 0; border-radius: 0; background: none; font-size: clamp(12px, .75rem, 18px); color: #a0acc0; }
.demo-tag { color: #c6bda6; padding: 4px 8px; border: 1px solid #c6bda62e; border-radius: 3px; background: #181c2480; font-size: clamp(11px, .65rem, 16px); white-space: nowrap; }
.notice-tail { margin-left: auto; color: #8a98ae; font-size: clamp(11px, .7rem, 17px); }
.unreal-tool-placeholder { max-width: 640px; padding: 28px; border: 1px solid #b4c0de24; border-radius: 14px; background: #151d2bc4; }
.unreal-tool-placeholder h2 { margin: 16px 0 12px; font-size: 1.25rem; font-weight: 500; }
.unreal-tool-placeholder p { color: #a0acc0; line-height: 1.8; }
@media (max-width: 1200px) {
  .app-header { height: auto; flex-wrap: wrap; padding-top: 18px; padding-bottom: 0; row-gap: 18px; }
  .brand { order: 1; }
  .sync-button { order: 2; }
  .feature-nav { position: static; transform: none; order: 3; width: 100%; height: 58px; justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .app-header { padding-left: 4vw; padding-right: 4vw; }
  .feature-nav { gap: 12px; }
}
@media (max-width: 850px) {
  .app-header { height: auto; min-height: 86px; padding-top: 18px; padding-bottom: 0; row-gap: 18px; }
  .feature-nav { height: 58px; width: 100%; max-width: 100%; gap: 20px; justify-content: flex-start; overflow-x: auto; }
  .feature-tab { flex: 0 0 auto; padding: 0 4px 14px; white-space: nowrap; }
  .feature-tab::after { left: 4px; right: 4px; }
  .brand-mark { width: 38px; }
  .brand strong { font-size: 1.3rem; }
  .collection-count { gap: 12px; padding-left: 18px; }
  .notice-tail { display: none; }
}
@media (max-width: 450px) {
  .feature-nav { gap: 8px; }
  .feature-tab { flex: 1 1 0; min-width: 0; padding-left: 2px; padding-right: 2px; }
  .feature-tab .nav-index { display: none; }
  .nav-label { min-width: 0; font-size: 12px; }
  .nav-label small { font-size: 8px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand-slash { margin: 0 5px; }
  .collection-count { display: none; }
  .sync-button { font-size: .62rem; gap: 6px; }
}

/* SuperTools shared interface. Keep engine controls and canvas geometry in their feature styles. */
body.st-site {
  --st-bg: #191716;
  --st-surface: #211e1c;
  --st-raised: #2b2623;
  --st-input: #161413;
  --st-border: #453b35;
  --st-border-strong: #65534a;
  --st-text: #f4efea;
  --st-muted: #bcb2aa;
  --st-accent: #f6aa97;
  --st-accent-hover: #ffc5b5;
  --st-accent-ink: #2a1915;
  --st-mono: 'IBM Plex Mono', Consolas, 'Microsoft YaHei UI', monospace;
  --bg: var(--st-bg);
  --panel: var(--st-surface);
  --panel-raised: var(--st-raised);
  --line: var(--st-border);
  --text: var(--st-text);
  --muted: var(--st-muted);
  --accent: var(--st-accent);
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.st-site :is(button, input, select, textarea) { font-family: inherit; }
.st-site :is(input[type=number], code, .st-project-path, .account-project small, .st-probe-scene small, .stage-footer) {
  font-family: var(--st-mono);
  font-variant-numeric: tabular-nums;
}
.st-site :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 3px;
}
.st-site .ambient-background { display: none; }
.st-masthead { border-bottom: 1px solid var(--st-border); background: var(--st-surface); }
.st-masthead-inner { display: flex; align-items: center; width: min(1200px, calc(100% - 40px)); min-height: 59px; margin-inline: auto; }
.st-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--st-text); text-decoration: none; }
.st-wordmark img { display: block; flex: none; border: 1px solid #744139; border-radius: 8px; }
.st-wordmark strong { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.st-site .main { width: min(1200px, calc(100% - 40px)); min-height: calc(100vh - 60px); padding: 32px 0 52px; }

.st-site .account-shell {
  --account-surface: var(--st-surface);
  --account-field: var(--st-input);
  --account-line: var(--st-border);
  --account-text: var(--st-text);
  --account-muted: var(--st-muted);
  --account-accent: var(--st-accent);
  padding: 20px 0 36px;
}
.st-site .account-shell--login { padding-top: clamp(16px, 7vh, 80px); }
.st-site .account-panel { width: min(100%, 930px); border-radius: 12px; box-shadow: none; }
.st-site .account-shell--login .account-panel { box-shadow: 0 20px 55px #100a0860; }
.st-site .account-panel h1 { letter-spacing: -.025em; }
.st-site .account-shell--login h1 { font-size: clamp(23px, 4vw, 29px); }
.st-site .account-button { background: var(--st-raised); }
.st-site .account-button:hover:not(:disabled) { background: #3b312d; }
.st-site .account-project small { color: var(--st-muted); }
.st-site .account-empty { margin-top: 16px; padding: 24px; border: 1px dashed var(--st-border-strong); border-radius: 10px; }
.st-site .account-empty strong { display: block; margin-bottom: 3px; color: var(--st-text); }
.st-site .st-project-highlight {
  gap: 14px;
  margin-top: 15px;
  padding: 19px;
  border: 1px solid var(--st-border-strong);
  border-radius: 10px;
  background: linear-gradient(110deg, #2a2420, #38251f);
}
.st-project-highlight span { color: var(--st-accent); font-size: 12px; }
.st-site .st-project-highlight strong { margin-top: 3px; font-size: clamp(17px, 2.5vw, 23px); }

.st-site .st-workspace-header { gap: 22px; flex-wrap: wrap; align-items: end; padding-bottom: 24px; border-bottom-color: var(--st-border); }
.st-site .st-workspace-header h1 { margin: 7px 0 0; font-size: clamp(26px, 4vw, 38px); font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.st-breadcrumb { color: var(--st-accent); font-size: 13px; text-decoration: none; }
.st-breadcrumb:hover { text-decoration: underline; }
.st-project-path { margin-top: 7px; font-size: 12px; color: var(--st-muted); overflow-wrap: anywhere; }
.st-site .st-workspace-tools > h2 { margin: 0 0 12px; font-size: 17px; font-weight: 650; }
.st-site .st-feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-site .st-feature-card { width: auto; min-width: 0; border-color: var(--st-border); border-radius: 10px; background: var(--st-surface); box-shadow: none; }
.st-site .st-feature-card-button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 92px; padding: 14px; gap: 12px; }
.st-site .st-feature-card-button:hover { background: var(--st-raised); }
.st-site .st-feature-card-button:focus-visible { outline-offset: -3px; }
.st-site .st-feature-mark { width: 45px; height: 45px; border-color: var(--st-border-strong); border-radius: 8px; color: var(--st-accent); background-color: #352620; }
.st-site .st-feature-copy strong { color: var(--st-text); font-size: 15px; font-weight: 650; }
.st-site .st-feature-copy > span:last-child { color: var(--st-muted); font-size: 12px; }
.st-site .st-feature-arrow { color: var(--st-accent); font-size: 12px; white-space: nowrap; }
.st-site .st-feature-arrow.is-locked { color: var(--st-muted); }
.st-masthead--workspace { position: sticky; top: 0; z-index: 50; }
.st-masthead--workspace .st-masthead-inner { position: relative; justify-content: space-between; gap: 12px; }
.st-workspace-connection > summary {
  cursor: pointer;
  border: 1px solid var(--st-border-strong);
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--st-raised);
  color: var(--st-text);
  font-weight: 650;
  white-space: nowrap;
}
.st-workspace-connection > summary:hover,
.st-workspace-connection[open] > summary { border-color: var(--st-accent); }
.st-masthead-popover {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--st-border-strong);
  border-radius: 10px;
  background: var(--st-surface);
  box-shadow: 0 16px 45px #100a0880;
}
.st-masthead-popover .st-setup-panel { border: 0; border-radius: 0; }
.st-setup-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 9px 14px; }
.st-setup-tools .secondary-button { width: auto; min-height: 36px; white-space: nowrap; }
.st-masthead-popover .st-setup-pair { border-color: var(--st-border); }
.st-masthead-popover .st-pair-row input { background: var(--st-input); border-color: var(--st-border-strong); }
.st-site .st-setup-panel { margin: 0; border: 0; border-top: 1px solid var(--st-border); background: transparent; box-shadow: none; }
.st-site .st-setup-panel :is(p, h3) { color: var(--st-text); }

.st-site :is(.st-render-dialog,.st-update-dialog,.sl-rail,.sl-library,.st-probe,.st-probe-head,.sl-library-card,.sl-node,.st-probe-scene > div,.st-dialog-tools .st-probe-body) {
  background: var(--st-surface);
  border-color: var(--st-border);
  color: var(--st-text);
}
.st-site :is(.st-render-dialog,.st-update-dialog)::backdrop { background: #110d0bb0; }
.st-site :is(.st-update-heading,.unreal-tool-heading,.st-probe-head,.sl-pin) { border-color: var(--st-border); }
.st-site :is(.st-update-heading span,.st-render-dialog .tiny-tag,.st-library-card span,.sl-library-card span,.sl-canvas-empty,.st-probe-scene span,.st-probe-scene small,.st-render-dialog .field-note) { color: var(--st-muted); }
.st-site .sl-canvas { background-color: var(--st-input); background-image: radial-gradient(circle, #51433d 1px, transparent 1px); border-color: var(--st-border); }
.st-site .sl-canvas .sl-node { border-color: var(--st-border-strong); box-shadow: 0 10px 26px #120c0b70; }
.st-site .sl-canvas .sl-node.is-selected { outline-color: var(--st-accent); }
.st-site .sl-canvas .sl-pin :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select):not(.is-linked):not(.is-linked-float) { background: var(--st-input); border-color: var(--st-border-strong); color: var(--st-text); }
.st-site :is(.sl-rail-btn,.st-dialog-close,.st-update-launcher,.st-probe-refresh,.st-probe-toggle,.secondary-button,.back-link,.tool-button,.secondary-export) {
  background: var(--st-raised);
  border-color: var(--st-border-strong);
  color: var(--st-text);
}
.st-site :is(.sl-rail-btn,.sl-library-card,.st-update-launcher,.st-probe-refresh,.st-probe-toggle,.secondary-button,.back-link,.tool-button,.secondary-export):hover:not(:disabled) { background: #3b312d; border-color: var(--st-accent); }
.st-site :is(.sl-rail-btn.is-on,.tool-button.active) { background: #432f28; border-color: var(--st-accent); color: var(--st-accent); }
.st-site :is(.primary-button,.account-button--primary,.tool-button.primary,.export-button:not(.secondary-export)) { background: var(--st-accent); color: var(--st-accent-ink); border-color: var(--st-accent); box-shadow: none; }
.st-site :is(.primary-button,.account-button--primary,.tool-button.primary,.export-button:not(.secondary-export)):hover:not(:disabled) { background: var(--st-accent-hover); }
.st-site .st-dialog-tools .st-probe-head { background: transparent; }

.st-ae-site .ae-page { padding-top: 27px; }
.st-ae-site .ae-header h1 { margin-top: 0; font-size: clamp(23px, 3.4vw, 31px); letter-spacing: -.025em; }
.st-ae-site :is(.ae-stage-card,.panel) { background: var(--st-surface); border-color: var(--st-border); border-radius: 10px; }
.st-ae-site .canvas-wrap { background: var(--st-input); border-color: var(--st-border); }
.st-ae-site :is(.panel ol,.panel dt,.panel dd,.preview-grid span,.stage-footer,.hint,.empty-state) { color: var(--st-muted); }
.st-ae-site .preview-grid canvas { border-color: var(--st-border); }
.st-ae-site .stage-footer { flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; }
.st-ae-site .back-link { text-decoration: none; }
@media (max-width: 780px) {
  .st-site .st-feature-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 450px) {
  .st-site .main,.st-masthead-inner { width: calc(100% - 24px); }
  .st-site .main { padding-top: 20px; }
  .st-site .st-feature-card-button { grid-template-columns: auto minmax(0, 1fr); }
  .st-site .st-feature-arrow { grid-column: 2; }
  .st-site .st-project-highlight { grid-template-columns: minmax(0, 1fr); }
  .st-site .st-project-highlight .account-button { justify-self: start; }
}
