:root {
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --ink: #203c33;
  --muted: #596b61;
  --green: #214d3d;
  --soft-green: #e8ede3;
  --line: #d6ddce;
  --accent: #b66e50;
  --radius: 16px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
button, input, select, textarea { font: inherit; font-size: 16px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--green); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.5; font-weight: 650; }
p { line-height: 1.75; }
.skip-link { position: absolute; z-index: 20; top: -80px; left: 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--green); border-radius: 8px; }
.skip-link:focus { top: 15px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1540px; margin: auto; padding: 26px 36px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; gap: 15px; align-items: center; text-decoration: none; font-size: 23px; font-weight: 700; letter-spacing: .1em; line-height: 1.3; }
.wordmark-symbol { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid var(--green); border-radius: 50%; font-size: 39px; line-height: 1; padding-bottom: 9px; font-weight: 400; }
.wordmark small { display: block; font-size: 16px; font-weight: 400; letter-spacing: 0; margin-top: 4px; color: var(--muted); }
.back-link { font-size: 16px; padding: 12px 0; white-space: nowrap; text-decoration: none; }
.page-shell { max-width: 1540px; margin: auto; padding: 0 36px 44px; }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 60px; padding: 48px 0 38px; }
.eyebrow { font-size: 16px; letter-spacing: .08em; color: var(--muted); margin-bottom: 13px; line-height: 1.5; }
h1 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 0; }
h1 span { color: var(--green); }
.intro-copy { max-width: 480px; margin: 0 0 4px; font-size: 18px; color: var(--muted); }
.workbench { scroll-margin-top: 20px; }
.task-bar { padding: 23px 26px 18px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft-green); }
.task-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.task-heading h2 { margin: 0; font-size: 23px; }
.concept-tag { border: 1px solid #b8c6b2; padding: 6px 11px; border-radius: 7px; font-size: 16px; white-space: nowrap; }
.task-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 20px 0 0; gap: 14px 20px; }
.task-steps li { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.5; }
.task-steps li span { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 50%; background: var(--surface); color: var(--green); font-size: 16px; font-variant-numeric: tabular-nums; }
.task-progress { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 24px; margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.65; }
.task-step { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border: 1px solid #c5d1bd; border-radius: 7px; font-size: 16px; }
.task-step b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: #fffdf790; color: var(--muted); font-size: 16px; font-weight: 600; }
.task-step[data-complete="true"] { color: var(--green); border-color: #9db491; background: #fffdf7a6; }
.task-step[data-complete="true"] b { background: var(--green); color: var(--surface); }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); align-items: start; gap: 24px; }
.visual-column { min-width: 0; }
.model-panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.product-stage { position: relative; height: 680px; overflow: hidden; background: #ecebdf; }
#product-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline-offset: -5px; }
#product-canvas:active { cursor: grabbing; }
.stage-caption { position: absolute; top: 27px; left: 29px; pointer-events: none; color: var(--green); }
.stage-caption span { display: block; font-size: 16px; letter-spacing: .1em; }
.stage-caption strong { display: block; margin-top: 7px; font-size: 20px; font-weight: 550; }
.stage-label { position: absolute; bottom: 24px; left: 29px; color: var(--muted); font-size: 16px; pointer-events: none; }
.view-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px 20px 0; }
.view-controls button, .preset-buttons button, .part-buttons button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--green);
  line-height: 1.5;
}
button[aria-pressed="true"] { border-color: var(--green); background: var(--soft-green); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.canvas-hint { font-size: 16px; color: var(--muted); margin: 14px 20px 10px; text-align: center; }
.preview-status { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 20px; }
.preview-status p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.parts-panel { margin-top: 20px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; font-size: 22px; }
.text-button { min-height: 44px; border: 0; padding: 8px 0; background: transparent; color: var(--green); line-height: 1.5; text-align: left; }
.part-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.part-buttons button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.part-buttons button span { color: var(--accent); font-variant-numeric: tabular-nums; }
.part-description { margin-top: 16px; padding: 15px 17px; border-left: 3px solid var(--green); background: var(--soft-green); color: var(--muted); font-size: 16px; line-height: 1.75; }
.part-description h3, .part-description h4 { margin: 0 0 7px; font-size: 18px; color: var(--green); }
.part-description p { margin: 0; }
.configuration-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.configuration-heading .eyebrow { margin-bottom: 9px; }
.configuration-heading h2 { margin: 0 0 9px; font-size: 25px; }
.configuration-heading > p:last-child { margin-bottom: 25px; color: var(--muted); }
fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
legend { margin-bottom: 11px; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.preset-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.color-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.color-buttons button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 94px; padding: 12px 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); line-height: 1.4; }
.color-buttons button i { display: block; width: 32px; height: 32px; border: 1px solid #233e3220; border-radius: 50%; background: var(--swatch); }
.color-buttons button[aria-pressed="true"] { background: var(--soft-green); border-color: var(--green); }
.select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-bottom: 26px; }
label { display: block; font-size: 16px; font-weight: 550; line-height: 1.5; }
select, input[type="text"], textarea { display: block; width: 100%; margin-top: 9px; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); line-height: 1.5; }
select { padding-right: 30px; }
textarea { resize: vertical; min-height: 120px; }
.full-width { grid-column: 1 / -1; }
.range-field { margin-bottom: 24px; }
.range-field label { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.range-field output { color: var(--green); font-size: 18px; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; height: 32px; margin: 11px 0 2px; accent-color: var(--green); cursor: pointer; }
.range-hints { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.checkbox-label { display: flex; align-items: center; gap: 11px; min-height: 44px; margin-bottom: 23px; font-weight: 400; }
.checkbox-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.current-choice { padding: 18px; background: var(--soft-green); border-radius: 9px; margin-bottom: 20px; }
.current-choice h3 { margin: 0 0 7px; color: var(--green); font-size: 16px; }
#current-summary { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.7; }
.save-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-button, .secondary-button { min-height: 49px; border: 1px solid var(--green); border-radius: 8px; padding: 12px 16px; font-size: 16px; line-height: 1.5; text-align: center; }
.primary-button { background: var(--green); color: #fffdf7; }
.primary-button:hover { background: #153d2d; }
.secondary-button { background: var(--surface); color: var(--green); border-color: #b9c7b0; }
.secondary-button:hover { background: var(--soft-green); border-color: var(--green); }
.saved-status { margin: 11px 0 4px; color: var(--muted); font-size: 16px; }
.reset-button { margin-top: 4px; }
.comparison-panel, .handoff-panel { margin-top: 27px; padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; }
.section-heading > p { color: var(--muted); max-width: 400px; margin: 0; font-size: 16px; }
.comparison { min-width: 0; overflow-x: auto; }
.comparison-caption { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.comparison-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.comparison-table { min-width: 540px; }
.comparison-empty { margin: 0; padding: 25px; border: 1px dashed #bdcbb5; border-radius: 9px; background: var(--soft-green); color: var(--muted); font-size: 16px; }
.comparison table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; line-height: 1.6; }
.comparison th, .comparison td { border-bottom: 1px solid var(--line); padding: 13px 16px; vertical-align: top; }
.comparison th { background: var(--soft-green); font-weight: 600; color: var(--green); }
.comparison td { color: var(--muted); }
.comparison tr[data-changed="true"] td { background: #f6ecdf; color: var(--ink); }
.comparison > p { font-size: 16px; line-height: 1.7; }
.handoff-fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 22px; align-items: start; }
.export-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.demo-status { margin: 18px 0 0; color: var(--green); font-size: 16px; line-height: 1.7; }
.concept-note { margin: 11px 0 0; color: var(--muted); font-size: 16px; }
.site-footer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; max-width: 1468px; margin: 0 auto; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.site-footer strong { font-size: 16px; color: var(--green); font-weight: 600; letter-spacing: .04em; }
.site-footer p { margin: 12px 0 15px; }
.source-links { display: flex; flex-wrap: wrap; gap: 13px 22px; }
.source-links a, .footer-return > a { display: inline-block; min-height: 44px; padding: 9px 0; }
.footer-return { text-align: right; }
html[data-embedded="true"] .outer-header,
html[data-embedded="true"] .outer-intro,
html[data-embedded="true"] .outer-footer { display: none; }
html[data-embedded="true"] .page-shell { padding-top: 18px; }
html[data-embedded="true"] .task-bar { margin-bottom: 18px; }

@media (max-width: 1520px) {
  .site-footer { margin-inline: 36px; }
}
@media (max-width: 1100px) {
  .site-header { padding-inline: 26px; }
  .page-shell { padding-inline: 26px; }
  .intro { gap: 30px; }
  .workbench-grid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); gap: 18px; }
  .configuration-panel { padding: 22px; }
  .product-stage { height: 680px; }
  .stage-caption { top: 22px; left: 22px; }
  .stage-caption strong { max-width: 230px; font-size: 18px; }
  .stage-label { left: 22px; }
  .parts-panel { padding: 20px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .part-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { margin-inline: 26px; gap: 35px; }
}
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 23px; padding: 32px 0 27px; }
  .intro-copy { max-width: 640px; }
  .task-steps { gap: 12px; }
  .task-steps li { flex-direction: column; align-items: flex-start; gap: 7px; }
  .workbench-grid { grid-template-columns: minmax(0, 1fr); }
  .product-stage { height: 600px; }
  .panel-heading { flex-direction: row; align-items: center; gap: 15px; }
  .part-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .configuration-panel { padding: 25px; }
  .color-buttons button { flex-direction: row; min-height: 66px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .section-heading > p { max-width: none; }
  .handoff-fields { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; }
  .footer-return { text-align: left; }
}
@media (max-width: 600px) {
  .site-header { padding: 19px 16px; gap: 15px; align-items: flex-start; }
  .wordmark { font-size: 20px; gap: 10px; }
  .wordmark-symbol { width: 39px; height: 39px; font-size: 34px; padding-bottom: 7px; }
  .wordmark small { max-width: 160px; }
  .back-link { white-space: normal; max-width: 100px; text-align: right; padding-top: 5px; }
  .page-shell { padding: 0 16px 28px; }
  .intro-copy { font-size: 16px; }
  .task-bar { padding: 18px; margin-bottom: 17px; }
  .task-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .task-heading h2 { font-size: 22px; }
  .task-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 12px; margin-top: 17px; }
  .task-steps li { gap: 6px; }
  .product-stage { height: 450px; }
  .stage-caption { top: 20px; left: 20px; }
  .stage-caption strong { max-width: 220px; font-size: 18px; }
  .stage-label { bottom: 19px; left: 20px; }
  .view-controls { padding: 13px 13px 0; gap: 6px; }
  .view-controls button { padding: 10px 4px; }
  .canvas-hint { margin: 13px 16px; text-align: left; }
  .preview-status { padding: 12px 16px; flex-direction: column; gap: 5px; }
  .parts-panel { margin-top: 17px; padding: 18px; }
  .panel-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .part-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .configuration-panel { padding: 21px 18px; }
  .configuration-heading h2 { font-size: 24px; }
  .color-buttons { gap: 7px; }
  .color-buttons button { flex-direction: column; min-height: 96px; }
  .preset-buttons button { padding-inline: 5px; }
  .save-controls { grid-template-columns: 1fr; }
  .comparison-panel, .handoff-panel { margin-top: 20px; padding: 21px 18px; }
  .comparison-empty { padding: 18px; }
  .comparison-table { min-width: 0; table-layout: fixed; }
  .comparison th, .comparison td { padding: 11px 9px; }
  .export-actions { flex-direction: column; gap: 10px; }
  .export-actions button { width: 100%; }
  .site-footer { margin-inline: 16px; padding-top: 23px; padding-bottom: 26px; }
  html[data-embedded="true"] .page-shell { padding-top: 14px; }
}
@media (max-width: 370px) {
  .task-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .select-grid { grid-template-columns: 1fr; }
  .product-stage { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
