/* 沿用工厂管理软件当前奶油暖白主题，原品牌素材保持比例与颜色。 */
@font-face { font-family:"App Noto SC"; src:local("Noto Sans SC"),local("NotoSansSC-Thin"); font-style:normal; font-weight:100 900; font-display:swap; }
:root { color-scheme:light; --ink:#302f2b; --muted:#69665c; --accent:#292a28; --line:#ded7c8; --surface:#f7f3e8; --control:#fffdf8; --control-border:#918a79; --subtle:#f0ede4; --yellow:#f6d86d; --selected:#faf0cb; --error:#a13746; --focus:#795a32; --panel:rgba(255,255,255,.55); --panel-shadow:0 8px 24px -8px rgba(48,56,68,.09),inset 0 1px 0 rgba(255,255,255,.95); font-family:"App Noto SC","Noto Sans SC","PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif; color:var(--ink); background:var(--surface); font-synthesis:none; scrollbar-color:#aaa696 transparent; }
* { box-sizing:border-box; }
body { margin:0; font-size:16px; line-height:1.55; }
::selection { color:var(--ink); background:var(--yellow); }
button,input,select { font:inherit; }
input { caret-color:var(--accent); }
button,select,input { touch-action:manipulation; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
[hidden] { display:none !important; }
.brand-bar { background:var(--panel); box-shadow:inset 0 -1px 0 rgba(255,255,255,.95); }
.brand-inner { max-width:1140px; margin:auto; min-height:84px; padding:12px 28px; display:flex; align-items:center; gap:24px; }
.brand-logo { display:block; width:174px; height:auto; flex-shrink:0; }
.brand-caption { border-left:1px solid var(--line); padding-left:20px; color:var(--muted); font-size:14px; }
.local-label { margin-left:auto; font-size:14px; color:var(--ink); background:var(--selected); padding:7px 14px; border-radius:9px; }
main { max-width:1140px; margin:auto; padding:38px 28px 26px; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:26px; }
h1 { font-size:24px; line-height:1.4; margin:0 0 8px; font-weight:600; letter-spacing:0; }
.page-heading p { margin:0; color:var(--muted); }
.unit-label { color:var(--muted); font-size:14px; flex-shrink:0; padding-bottom:2px; }
.heading-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; }
.install-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.install-status { color:var(--ink); font-size:14px; margin:0 0 20px; }
.install-help { padding:24px 0; margin-bottom:26px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.install-help-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.install-help > p { max-width:68ch; margin:14px 0; }
.install-device-field { max-width:240px; margin:20px 0 14px; }
.install-help ol { padding-left:24px; margin:0; max-width:68ch; }
.install-help li { margin:10px 0; }
@media(max-width:780px) { .heading-tools { width:100%; justify-content:space-between; } }
.workbench { display:grid; grid-template-columns:1.04fr 1fr; gap:20px; align-items:start; }
form,.result-panel { background:var(--panel); border-radius:20px; box-shadow:var(--panel-shadow); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
form { min-width:0; padding:30px 32px 22px; }
h2 { font-size:18px; font-weight:600; margin:0; line-height:1.5; }
.section-heading,.result-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.text-button { color:#fbf8ee; background:var(--accent); padding:9px 14px; border:1px solid transparent; border-radius:11px; font-size:14px; font-weight:600; min-height:44px; }
.text-button:hover { background:#43433e; }
.dimension-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.field label { display:block; font-size:14px; color:var(--muted); margin-bottom:8px; }
.input-unit { position:relative; display:flex; align-items:center; border:1px solid var(--control-border); border-radius:11px; background:var(--control); height:50px; min-width:0; }
.input-unit:focus-within { border-color:var(--focus); box-shadow:0 0 0 2px #795a3224; }
.input-unit:has(input[aria-invalid="true"]) { border-color:var(--error); }
.input-unit input { border:0; background:none; min-width:0; width:100%; color:var(--ink); padding:10px 32px 10px 13px; height:100%; outline:none; font-size:20px; font-variant-numeric:tabular-nums; }
.input-unit input::placeholder { font-size:15px; color:var(--muted); opacity:1; }
.input-unit > span { position:absolute; right:10px; font-size:13px; color:var(--muted); pointer-events:none; }
.field-error { color:var(--error); font-size:14px; margin:8px 0 0; }
.field-error:empty { display:none; }
.type-field { margin-bottom:12px; }
.type-field select { font-size:16px; }
.type-help { font-size:14px; color:var(--muted); margin:0 0 22px; }
.type-help:empty { display:none; }
.fit-section { margin-top:24px; }
.fit-section h3 { font-size:14px; font-weight:500; margin:0; }
.two-fields { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:12px; }
.dimension-fields.round-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.missing-formula { padding:22px 0 12px; }
.missing-formula p { font-size:15px; color:var(--muted); }
fieldset { padding:0; border:0; margin:0; min-width:0; }
.finish-field { margin-top:28px; }
legend { padding:0; font-size:14px; margin-bottom:11px; color:var(--muted); }
.choice-row { display:flex; gap:14px; flex-wrap:wrap; }
.choice { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 11px; border:1px solid var(--line); border-radius:11px; background:var(--control); cursor:pointer; }
.choice:has(input:checked) { background:var(--selected); border-color:#b09b5d; }
input[type=radio],input[type=checkbox] { width:18px; height:18px; accent-color:var(--accent); margin:0; flex-shrink:0; }
.choice small { font-size:13px; color:var(--muted); margin-left:4px; white-space:nowrap; }
.tie-section { margin-top:16px; }
.checkbox-label { display:flex; align-items:center; gap:9px; cursor:pointer; min-height:44px; }
.tie-fields { display:grid; grid-template-columns:auto 125px; align-items:center; gap:8px 14px; margin:9px 0 4px 27px; }
.tie-fields > label { font-size:14px; color:var(--muted); }
.tie-fields .helper { grid-column:1/-1; margin:0; }
.price-section { border-top:1px solid var(--line); margin-top:25px; padding-top:23px; }
.price-section h2 span { font-size:13px; color:var(--muted); font-weight:400; margin-left:8px; }
.price-fields { display:grid; grid-template-columns:1fr 135px; gap:14px; margin-top:15px; }
.price-input input { padding-left:32px; padding-right:10px; }
.price-input > span { left:12px; right:auto; font-size:17px; }
select { color:var(--ink); background:var(--control); border:1px solid var(--control-border); border-radius:11px; height:50px; padding:0 10px; width:100%; font-size:15px; }
select[aria-invalid=true] { border-color:var(--error); }
.helper { color:var(--muted); font-size:13px; margin:9px 0 0; }
.weight-section { margin-top:25px; padding-top:23px; border-top:1px solid var(--line); }
.weight-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:15px; }
.weight-fields select { padding-left:8px; padding-right:5px; }
.gram-input input { padding-right:45px; }
#weight-input-note.error { color:var(--error); }
.weight-results { margin-top:24px; padding-top:19px; border-top:1px solid var(--line); }
.weight-results h2 { font-size:16px; }
.weight-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; margin:13px 0 0; }
.weight-values .main-weight { grid-column:1/-1; }
.weight-values dt,.box-weight-details dt { font-size:13px; color:var(--muted); }
.weight-values dd { margin:3px 0 0; font-size:22px; font-variant-numeric:tabular-nums; color:var(--accent); overflow-wrap:anywhere; }
.weight-values dd span { font-size:14px; font-weight:400; color:var(--muted); }
.weight-values .main-weight dd { font-size:28px; font-weight:600; }
.box-weight-details { border-top:1px solid var(--line); padding-top:12px; margin:16px 0 0; }
.box-weight-details > div { display:flex; gap:12px; justify-content:space-between; margin:5px 0; }
.box-weight-details dd { margin:0; font-size:14px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.unit-price-results { margin-top:20px; padding-top:19px; border-top:1px solid var(--line); }
.unit-price-results h2 { font-size:16px; }
.unit-price-value { display:flex; align-items:baseline; gap:8px; margin:9px 0 4px; font-size:32px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--accent); }
.unit-price-value output { min-width:0; overflow-wrap:anywhere; }
.unit-price-value span { flex-shrink:0; font-size:14px; font-weight:400; color:var(--muted); }
#unit-price-equation { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
#unit-price-equation:empty { display:none; }
#weight-equations { margin-top:12px; font-size:14px; }
#weight-equations summary { cursor:pointer; color:var(--accent); padding:10px 0; min-height:44px; }
#weight-equations p { margin:6px 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
@media(max-width:440px) { .weight-fields { gap:10px; } .weight-fields select { font-size:14px; } .gram-input input { padding-right:42px; } }
.form-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; color:var(--muted); font-size:13px; }
.secondary { color:var(--ink); background:var(--control); border-color:var(--line); }
.secondary:hover { background:var(--subtle); }
.result-panel { min-width:0; padding:35px 32px 24px; }
.product-label { font-size:13px; color:var(--ink); background:var(--selected); padding:5px 10px; border-radius:8px; flex-shrink:0; }
.result-order { margin:0 0 3px; color:var(--muted); font-size:14px; }
.result-values { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; color:var(--accent); font-size:clamp(27px,3.5vw,42px); line-height:1.45; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.result-values output { min-width:0; max-width:100%; }
.times { font-weight:400; font-size:.65em; color:var(--muted); }
.result-unit { font-size:16px; color:var(--muted); font-weight:400; }
.result-note { margin:5px 0 0; color:var(--muted); font-size:14px; min-height:22px; }
.result-note.error { color:var(--error); }
.dimension-diagram { display:block; width:100%; max-width:390px; height:auto; margin:20px auto 18px; color:var(--muted); }
.bag-outline { fill:var(--control); stroke:var(--control-border); stroke-width:1.6; }
.open-edge { fill:none; stroke:var(--control-border); stroke-width:1.6; stroke-dasharray:5 4; }
.sealed-line { fill:none; stroke:var(--ink); stroke-width:2; }
.dimension-guide { fill:none; stroke:var(--control-border); stroke-width:1; }
.dimension-arrow { fill:none; stroke:currentColor; stroke-width:1; marker-start:url(#arrow); marker-end:url(#arrow); }
.dimension-diagram text { font-family:inherit; font-size:14px; fill:var(--muted); }
.dimension-diagram .diagram-center { font-size:14px; fill:var(--muted); }
.dimension-diagram .diagram-caption { font-size:12px; fill:var(--muted); }
.box-diagram { margin:24px 0 20px; padding-top:20px; border-top:1px solid var(--line); container-type:inline-size; }
.box-diagram-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:16px; }
.box-diagram-heading h3 { margin:0; font-size:16px; font-weight:600; }
.box-diagram-heading > span { color:var(--muted); font-size:12px; }
.box-diagram-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.box-diagram figure { min-width:0; margin:0; }
.box-diagram figcaption { font-size:14px; font-weight:600; margin-bottom:8px; }
.box-shape,.box-blank { width:100%; height:auto; display:block; color:var(--muted); overflow:visible; }
.box-shape text,.box-blank text { font-family:inherit; font-size:18px; fill:var(--ink); }
.box-front-face { fill:#fffdf8; stroke:#69665c; stroke-width:1.7; }
.box-side-face { fill:#eae3cf; fill-opacity:.55; stroke:#69665c; stroke-width:1.7; }
.box-opening { fill:#f7f3e8; stroke:#69665c; stroke-width:1.7; }
.box-back-edge { fill:none; stroke:#918a79; stroke-width:1.2; stroke-dasharray:5 4; }
.box-guides { fill:none; stroke:#918a79; stroke-width:1; }
.box-measure,.blank-measures { fill:none; stroke:currentColor; stroke-width:1.2; marker-start:url(#box-arrow); marker-end:url(#box-arrow); }
.blank-measures { marker-start:url(#blank-arrow); marker-end:url(#blank-arrow); }
.blank-body { fill:#fffdf8; stroke:#69665c; stroke-width:1.7; }
.blank-base-band { fill:#f6d86d; fill-opacity:.5; }
.blank-tie-band { fill:#e8e4d9; }
.blank-band-line { fill:none; stroke:#918a79; stroke-width:1.2; stroke-dasharray:4 3; }
.diagram-facts { margin:6px 0 0; }
.diagram-facts > div { display:flex; justify-content:space-between; gap:8px; padding:5px 0; font-size:13px; line-height:1.5; }
.diagram-facts dt { color:var(--muted); }
.diagram-facts dd { margin:0; text-align:right; font-weight:500; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; min-width:0; }
.box-diagram > .helper { margin-top:14px; }
@container(max-width:420px) { .box-diagram-grid { grid-template-columns:1fr; gap:24px; } .box-shape,.box-blank { max-width:290px; margin-inline:auto; } .diagram-facts { max-width:290px; margin:6px auto 0; } }
.calculation-lines { border-top:1px solid var(--line); padding-top:16px; }
.calculation-lines > div { display:grid; grid-template-columns:40px 1fr; gap:10px; align-items:baseline; margin:6px 0; }
.calculation-lines span { font-size:13px; color:var(--muted); }
.calculation-lines p { font-size:15px; font-variant-numeric:tabular-nums; margin:0; overflow-wrap:anywhere; }
.price-summary { display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding-top:17px; margin-top:22px; font-size:14px; }
.price-summary > span { color:var(--muted); flex-shrink:0; }
.price-summary strong { font-weight:500; text-align:right; overflow-wrap:anywhere; }
.page-footer { color:var(--muted); font-size:13px; padding-top:18px; }
.page-footer p { margin:4px 0; }
.page-footer a { color:inherit; text-underline-offset:3px; }
@media(max-width:780px) { main { padding-top:25px; } .page-heading { align-items:flex-start; flex-direction:column; gap:9px; } .workbench { grid-template-columns:1fr; gap:16px; } .result-values { font-size:38px; } }
@media(max-width:440px) { .brand-inner { padding:10px 20px; gap:14px; min-height:72px; } .brand-logo { width:150px; } .brand-caption { padding-left:14px; } .local-label { display:none; } main { padding:23px 16px; } h1 { font-size:24px; } .page-heading p { font-size:15px; } form,.result-panel { padding:24px 20px; } .dimension-fields { gap:8px; } .input-unit input { padding-left:10px; padding-right:26px; font-size:18px; } .input-unit > span { right:7px; font-size:12px; } .input-unit input::placeholder { font-size:14px; } .price-fields { grid-template-columns:minmax(0,1fr) 115px; gap:10px; } .price-input input { padding-left:28px; padding-right:8px; } .price-input > span { left:10px; right:auto; } .choice-row { gap:8px; } .choice { padding:8px; font-size:14px; } .choice small { font-size:12px; margin-left:0; } .result-values { font-size:34px; gap:9px; } .result-heading { gap:6px; } }
@media(prefers-reduced-motion:no-preference) { .input-unit { transition:border-color .15s ease-out,box-shadow .15s ease-out; } }
