:root {
  font-family: "Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;
  color:#192e48;
  background:#e7edf5;
  color-scheme:light;
  --ink:#192e48;
  --muted:#526780;
  --line:#c8d7e6;
  --accent:#2262a4;
  --focus:#104e8e;
  --primary:linear-gradient(100deg,#609fce,#135095);
  font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0;min-height:100vh}
button,input,select {font:inherit}
button,a {touch-action:manipulation}
button:not(:disabled) {cursor:pointer}
button:disabled {opacity:.48;cursor:not-allowed}
button:focus-visible,input:focus-visible,a:focus-visible,select:focus-visible {
  outline:2px solid var(--focus);outline-offset:3px
}
[hidden] {display:none!important}
a {color:var(--accent);text-underline-offset:.18em}
img {display:block;max-width:100%}
h1,p,dl,dd {margin:0}
#app {width:min(100vw,177.77778vh);margin:auto;aspect-ratio:16/9;container-type:inline-size}
body:has(#app) {display:grid;place-items:center;font-size:clamp(13px,1.02cqw,19px)}
.stage {position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;background:#eef2f8}
.stage-background,.original-board {position:absolute;inset:0;z-index:-1;background-size:100% 100%}
.selection .stage-background {background-image:url('/assets/parts/selection-background.svg')}
.light .stage-background {background:linear-gradient(117deg,#f5f9ff,#e4edf8)}
.admin-landing .stage-background {background-image:url('/assets/parts/landing-background.svg')}
.original-board svg {display:block;width:100%;height:100%}
.artwork-hit {position:absolute;border:0;border-radius:.55cqw;background:transparent}
.artwork-hit:hover {background:#6eb7f020;box-shadow:inset 0 0 0 2px #3979be88}
.home-account {position:absolute;top:2%;right:2.2%;display:flex;align-items:center;gap:1cqw;color:#4c6075}
.app-header {position:absolute;z-index:2;top:0;left:0;width:100%;height:11%;padding:0 2.6cqw;
  display:grid;grid-template-columns:22% 1fr auto;align-items:center;gap:2.3cqw}
.brand,.main-tabs,.account {display:flex;align-items:center;gap:1cqw}
.brand {gap:.42cqw;white-space:nowrap}
.brand img {width:2.25cqw;height:2.25cqw;object-fit:cover;object-position:left}
.brand .btn {font-size:1.43cqw;font-weight:800;padding:0;color:#251d1d}
.main-tabs {gap:1.72cqw}
.account {grid-column:3;white-space:nowrap;justify-self:end}
.account-name {max-width:12cqw;overflow:hidden;text-overflow:ellipsis}
.watermark {position:absolute;top:14%;right:3.6%;z-index:-1;font-size:5.58cqw;font-weight:850;
  line-height:1;letter-spacing:.022em;color:transparent;-webkit-text-stroke:1px #acc2df;
  opacity:.48;user-select:none;white-space:nowrap}
.btn {border:1px solid transparent;border-radius:.48em;background:transparent;display:inline-flex;
  align-items:center;justify-content:center;gap:.35em;min-height:2.42em;padding:.42em .88em;
  color:var(--ink);text-decoration:none;line-height:1.15;font-weight:550;white-space:nowrap}
.btn.ghost {background:#f2f6fc;border-color:#d1deef}
.btn.plain {min-height:2em;color:#34475e}
.btn.small {font-size:.88em;min-height:2.2em;padding:.34em .67em}
.btn:hover:not(:disabled) {filter:brightness(.96)}
.btn.primary,.btn.selected {background:var(--primary);color:white;box-shadow:0 2px 8px #2b67a820}
.btn.selected,.btn.pill {border-radius:3em}
.btn.pill {background:#e0e6ee;border-color:#f5f8fe}
.btn.return {position:absolute;right:3.35%;bottom:4.4%;min-width:6.5cqw;border-radius:3em;
  background:#edf4fb;border-color:#bad0e7;color:#225b97}
.btn.return::before {content:"";width:.5em;height:.5em;border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:.12em}
.btn.danger {background:#a52232;color:white}
.btn.danger-outline {border-color:#deabb2;color:#942436;background:#fff8f9}
.model-pane {position:absolute;left:3%;top:14.8%;width:42%;height:70%}
.viewer-host {width:100%;height:100%;position:relative;overflow:hidden;display:grid;place-items:center}
.viewer-host:empty::before {content:"正在加载 3D 模型…";color:var(--muted)}
.viewer-host canvas {width:100%;height:100%;display:block}
.model-fallback {width:80%;height:80%;object-fit:contain}
.model-help {position:absolute;left:1cqw;bottom:0;color:#4e6480;font-size:.9cqw;pointer-events:none}
.btn.model-reset {position:absolute;right:0;bottom:-.5cqw;min-height:2em;font-size:.86cqw;color:#376791;background:#edf3fa}
.custom-actions {position:absolute;top:85%;left:4.05%;width:42.8%;display:flex;justify-content:center;gap:1.07cqw;
  border:1px solid #d7e3f0;background:#f3f8fcd0;padding:1.15cqw .55cqw;border-radius:1.02cqw;
  box-shadow:0 2px 5px #24466a19}
.custom-actions .btn {min-width:8.65cqw;padding:.45em 1em;font-size:.98cqw}
.custom-actions .primary {border-radius:3em}
.custom-options {position:absolute;top:29%;left:55.3%;right:5.85%;height:55%;display:flex;flex-direction:column}
.section-title {display:flex;align-items:baseline;gap:1.08cqw;margin:0 0 1.1cqw;color:#1c2d42}
.section-title h1 {font-size:clamp(21px,2.1cqw,40px);letter-spacing:.01em;line-height:1.15}
.section-title span {color:#516782;font-size:.78cqw;letter-spacing:.055em;white-space:nowrap}
.custom-options .section-title::after {content:"";margin-left:auto;align-self:center;width:1cqw;height:1px;background:#7590ab}
.option-grid {display:grid;align-content:start;gap:.6cqw;overflow:auto;margin-top:.2cqw;padding:.2cqw}
.option-grid.shape {grid-template-columns:repeat(2,minmax(0,1fr))}
.option-grid.material,.option-grid.pattern {grid-template-columns:repeat(3,minmax(0,1fr))}
.option-grid.color {grid-template-columns:repeat(5,minmax(0,1fr))}
.btn.option {min-width:0;white-space:normal;background:#f9fcff;border:1px solid #bfcddd;
  justify-content:center;text-align:center;font-size:1.06cqw;font-weight:700;height:3.75cqw;padding:.3em}
.option-grid.shape .btn {justify-content:flex-start;padding-left:1.08cqw;font-size:1.23cqw;height:4.52cqw}
.btn.option[aria-pressed=true],.btn.tier-choice[aria-pressed=true],.btn.mode-card[aria-pressed=true] {
  background:#e2effc;border-color:#448fcd;box-shadow:inset 0 0 0 1px #448fcd;color:#104a87
}
.option-grid.shape .btn[aria-pressed=true] {background:var(--primary);color:white}
.sock-symbol {display:inline-block;flex:none;width:2.85cqw;height:3.12cqw;margin-right:.5cqw;background:currentColor;
  color:#34516b;clip-path:polygon(39% 4%,80% 4%,81% 57%,68% 74%,40% 91%,18% 94%,7% 81%,16% 68%,33% 62%,39% 52%)}
.option[data-option="boat"] .sock-symbol {transform:scale(.85,.59) rotate(-26deg)}
.option[data-option="short"] .sock-symbol {transform:scale(.88,.78)}
.option[data-option="long"] .sock-symbol {transform:scale(.89,1.06)}
.option[aria-pressed=true] .sock-symbol {color:white}
.swatch {display:block;min-width:1.22cqw;min-height:1.22cqw;border-radius:.16cqw;border:1px solid #11355922}
.color-families {display:flex;gap:.72cqw;margin:.5cqw 0 .9cqw;flex-wrap:wrap}
.btn.family {height:2.45cqw;min-height:0;width:2.45cqw;padding:0;border-radius:50%;
  color:transparent;font-size:0;position:relative}
.btn.family[aria-pressed=true] {outline:2px solid #2161a0;outline-offset:3px}
.pattern-swatch {display:block;width:1.5cqw;height:1.3cqw;flex:none;border:1px solid #acb8c9;border-radius:2px;
  background:repeating-linear-gradient(#314c6e 0 2px,#dae7f3 2px 4px)}
.pattern-none {background:#eee}
.pattern-vertical {background:repeating-linear-gradient(90deg,#314c6e 0 2px,#dae7f3 2px 4px)}
.pattern-large-dot,.pattern-small-dot {background:radial-gradient(#314c6e 30%,transparent 34%) 0 0/.55cqw .55cqw}
.pattern-diamond,.pattern-wide-check,.pattern-fine-check,.pattern-mosaic,.pattern-triangle {
  background:repeating-conic-gradient(#314c6e 0% 25%,#dae7f3 0% 50%) 0 0/.57cqw .57cqw
}
.step-links {display:flex;gap:.7cqw;margin-top:auto;padding-top:1.1cqw}
.step-links .btn {flex:1;min-height:2.85em;font-size:1.02cqw}
.panel {position:absolute;left:10.2%;right:10.2%;top:15%;bottom:12%;border:1px solid #dae5f0;
  padding:2.1cqw 2.45cqw;overflow:auto;background:linear-gradient(129deg,#f7fbff,#f3f7fb);
  box-shadow:0 .7cqw 2.4cqw #234c7b20;border-radius:.58cqw}
.panel .section-title {padding-bottom:.85cqw;border-bottom:1px solid var(--line);margin-bottom:1.25cqw}
.notice-panel {left:28%;right:28%;top:27%;bottom:auto;min-height:23%}
.profile-layout {display:grid;grid-template-columns:24% 1fr;gap:2cqw}
.profile-info {display:flex;flex-direction:column;align-items:flex-start;gap:.75cqw;color:#536781}
.profile-info strong {font-size:1.55cqw;color:var(--ink)}
.monogram {width:6.8cqw;height:6.8cqw;border-radius:50%;display:grid;place-items:center;margin:.2cqw 0 .7cqw;
  background:#dce9f8;color:#17558e;font-size:2.8cqw;font-weight:700}
.design-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85cqw}
.btn.design-tile {white-space:normal;flex-direction:column;color:#153b61;align-items:flex-start;
  background:#e8f0f9;border-color:#d6e4f3;overflow:hidden;text-align:left;min-width:0}
.design-tile img {width:100%;height:8.25cqw;object-fit:contain;background:#f6f9fd}
.design-tile time {font-size:.75cqw;color:var(--muted)}
.design-panel {left:15%;right:15%;bottom:11%}
.design-feature {display:grid;grid-template-columns:76% 1fr;gap:1.5cqw;min-height:58%}
.card-image {width:100%;height:20.3cqw;object-fit:contain;background:#e8f1fb;border:1px solid #dce9f6;border-radius:.5cqw}
.config-summary {display:grid;gap:.5cqw;align-content:center;padding:.65cqw 0}
.config-summary div {display:grid;grid-template-columns:3em 1fr;gap:.2em;padding:.45em 0;border-bottom:1px solid #d9e4f0}
.config-summary dt {color:var(--muted)}
.config-summary dd {font-weight:700}
.card-footer {display:flex;justify-content:space-between;align-items:center;gap:2cqw;margin-top:.92cqw}
.qr-area {display:flex;align-items:center;gap:.65cqw;min-height:5.2cqw}
.qr-area>div {display:flex;flex-direction:column;gap:.26em}
.qr-area a {font-size:.87em}
.inline-qr {width:5.4cqw;height:5.4cqw;aspect-ratio:1;border:1px solid var(--line);background:white}
.card-action-buttons,.form-actions {display:flex;justify-content:flex-end;align-items:center;gap:.64em;flex-wrap:wrap}
.quote-panel {left:12%;right:12%;bottom:11.5%;top:15%}
.quote-layout {display:grid;grid-template-columns:30% 1fr;gap:2cqw}
.quote-design img {width:100%;max-height:10.5cqw;object-fit:contain;background:#e7eff9;border-radius:.45cqw}
.quote-calculation {display:grid;gap:.7cqw;align-content:start}
.quote-ranges {display:flex;gap:.45em;flex-wrap:wrap}
.btn.tier-choice {background:white;border-color:#c6d7e8}
.quote-calculation .field {display:grid;grid-template-columns:max-content minmax(90px,14cqw);align-items:center}
.quote-lines>div {display:flex;justify-content:space-between;gap:.55em;border-bottom:1px solid var(--line);padding:.45em 0}
.quote-grand {display:grid;grid-template-columns:1fr auto;align-items:center;gap:.2em .8em;padding-top:.8em}
.quote-grand strong {color:#175897;font-size:2.12cqw;font-variant-numeric:tabular-nums}
.reduction {grid-column:2;text-align:right;color:#a82236;font-weight:650}
.campaigns {background:#fff1f1;border:1px solid #edd0d6;border-radius:.45em;padding:.55em .7em;color:#862938}
.campaigns ul {display:flex;gap:.42em 1.2em;flex-wrap:wrap;padding-left:1.05em;margin:.2em 0 0;font-size:.85em}
.factory-panel {left:18%;right:18%}
.factory-list {display:grid;gap:.7cqw}
.factory-row {display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:1em;padding:.7em 1em;
  border:1px solid #cfdeee;background:#fff;border-radius:.4em}
.admin-menu {position:absolute;left:15.5%;top:18.5%;width:26%;display:grid;gap:1.05cqw}
.admin-menu .btn {padding:.85cqw;flex-direction:column;font-size:1.65cqw;min-height:5.25cqw}
.admin-menu small {font-size:.55em;font-weight:500;letter-spacing:.04em;opacity:.9}
.admin-panel {left:10%;right:10%;padding:1.72cqw 2cqw}
.admin-body {display:grid;gap:.75cqw}
.admin-footer,.toolbar {display:flex;align-items:center;gap:.65em;flex-wrap:wrap}
.admin-footer {justify-content:space-between}
.grow {flex:1}
.current-mode {color:#355773;margin:.3em 0}
.mode-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5cqw;margin:1.35cqw 0}
.btn.mode-card {display:grid;justify-content:start;gap:.7em;padding:1.45cqw;text-align:left;
  white-space:normal;border-color:#c1d5e8;background:linear-gradient(114deg,#edf6ff,#dceaf9);font-size:1.45cqw}
.mode-card span {font-size:.7em;font-weight:450;color:#42617e}
.table-scroll {overflow:auto;border:1px solid #d8e3ef;border-radius:.42em;background:#fbfdff}
table {width:100%;border-collapse:collapse;text-align:left}
th,td {padding:.52em .75em;border-bottom:1px solid #e1e9f3;vertical-align:middle}
th {background:#e7eff8;font-size:.88em;color:#37536d;white-space:nowrap}
tbody tr:nth-child(2n) {background:#f5f8fd}
tbody tr:last-child td {border-bottom:0}
td input[type=text] {width:100%;min-width:8em}
td input[type=number] {width:8em}
td input[type=checkbox],.toggle input {accent-color:var(--accent)}
.pager,.admin-tabs,.row-actions,.bulk-tools {display:flex;align-items:center;gap:.45em;flex-wrap:wrap}
.admin-tabs {padding:.26em 0 .62em}
.badge {display:inline-flex;padding:.25em .62em;background:#e0ecfb;color:#244b76;border-radius:2em;font-size:.88em}
.price-content {max-height:23cqw;overflow:auto}
.price-scroll {max-height:18cqw}
.price-layout {display:grid;grid-template-columns:24% 1fr;gap:1.1cqw}
.price-model {min-height:12cqw;display:grid;place-items:center;border:1px solid #d6e4f1;border-radius:.5cqw;background:#e7f0fa}
.price-model img {width:84%;height:15.5cqw;object-fit:contain}
.hint,.empty {color:var(--muted);padding:.56em 0}
.field {display:grid;gap:.34em;align-items:center;color:#3b536c}
.toggle {display:flex;align-items:center;gap:.48em;white-space:nowrap}
input:not([type=checkbox]) {border:1px solid #b8ccdf;border-radius:.33em;background:white;color:var(--ink);
  padding:.42em .6em;min-height:2.28em}
input:disabled {opacity:.82;background:#edf3fa}
.form {display:grid;gap:.9em}
.form-feedback,.message {color:var(--muted);min-height:1.2em}
.message.error,.form-feedback:not(:empty) {color:#962f40}
.dialog {width:min(450px,90vw);border:1px solid #bdd1e5;border-radius:12px;padding:24px;background:#f8fbff;
  color:var(--ink);box-shadow:0 16px 50px #183b643e;font-size:16px}
.dialog::backdrop {background:#233e62aa}
.dialog-content {display:grid;gap:12px}
.dialog .section-title h1 {font-size:25px}
.dialog .section-title {margin-right:35px}
.dialog .btn.dialog-dismiss {position:absolute;top:9px;right:10px;color:#55708b;font-size:.78em}
.dialog-description {color:#496078;line-height:1.55}
.share-qr {width:200px;height:200px;border-radius:8px;background:white;margin:.5em auto}
.toast {position:fixed;bottom:2.6%;left:50%;z-index:10;transform:translateX(-50%);color:white;background:#20486f;
  padding:.65em 1.1em;border-radius:.5em;box-shadow:0 5px 17px #27578531;pointer-events:none;font-size:14px}
.toast.error {background:#8e2b3c}
.toast:empty {display:none}
.initial {position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);display:grid;gap:.65em}
@media(max-width:1000px) {
  .app-header,.account,.panel,.custom-options {font-size:12px}
  .model-help,.btn.model-reset {font-size:10px}
  .btn.return {font-size:12px}
  .design-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}

