﻿:root {
  --bg: #f2f3f3;
  --panel: #fff;
  --ink: #181a1b;
  --muted: #687076;
  --line: #dfe2e3;
  --dark: #202426;
  --red: #c8202f;
  --red-dark: #a81623;
  --green: #167553;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink); background: var(--bg); font-family: "Microsoft YaHei", "Segoe UI", sans-serif; letter-spacing: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar { height: 66px; padding: 0 24px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--red); }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 36px; height: 36px; background: var(--red); display: grid; place-items: center; font-weight: 900; font-size: 22px; clip-path: polygon(0 0,100% 0,100% 76%,50% 100%,0 76%); }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 15px; }
.brand small { color: #adb4b7; font-size: 11px; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mode-tabs { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 560px; height: 38px; border: 1px solid #4b5053; background: #2b3032; display: grid; grid-template-columns: 1fr 1fr 1fr; border-radius: 4px; overflow: hidden; }
.mode-tabs a { min-width: 0; color: #d5d9da; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 7px; border-right: 1px solid #4b5053; font-size: 12px; font-weight: 800; }
.mode-tabs a:last-child { border-right: 0; }
.mode-tabs a.active { color: #fff; background: var(--red); }
.mode-tabs svg { width: 16px; flex: none; }
.tool-link { height: 38px; padding: 0 11px; border: 1px solid #4b5053; border-radius: 4px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.tool-link:hover { border-color: #ff6572; }.tool-link svg { width: 16px; }
.language-picker { position: absolute; left: 235px; top: 50%; transform: translateY(-50%); height: 38px; border: 1px solid #4b5053; border-radius: 4px; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #fff; background: transparent; }
.language-picker svg { width: 16px; flex: none; color: #d5d9da; }
.language-picker select { width: 92px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 11px; font-weight: 700; }
.language-picker option { color: var(--ink); background: #fff; }
.draft-state { display: flex; gap: 6px; align-items: center; color: #bdc3c5; font-size: 12px; }
.draft-state svg, .icon-button svg { width: 18px; height: 18px; }
.icon-button { width: 38px; height: 38px; border: 1px solid #4b5053; color: inherit; background: transparent; display: grid; place-items: center; border-radius: 4px; }
.cart-button { height: 40px; border: 0; border-radius: 4px; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.cart-button svg { width: 17px; }.cart-button b { color: var(--red); }

.workspace { max-width: 1580px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 340px) minmax(540px, 1fr) 330px; gap: 0; min-height: calc(100vh - 66px); }
.product-panel, .summary-panel { background: var(--panel); padding: 24px; }
.product-panel { border-right: 1px solid var(--line); }
.product-image-wrap { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #f8f8f7; border: 1px solid var(--line); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.image-badge { position: absolute; left: 12px; bottom: 12px; padding: 7px 9px; color: #fff; background: rgba(24,26,27,.88); font-size: 11px; border-radius: 3px; }
.product-heading { padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.product-heading p, .config-head p, .dialog-head p { color: var(--red); font-weight: 800; font-size: 10px; margin: 0 0 6px; }
.product-heading h1 { font-size: 29px; margin: 0 0 6px; line-height: 1; }
.product-heading > span { color: var(--muted); font-size: 12px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 10px 0; }
.spec-grid div { padding: 10px 0; }
.spec-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.spec-grid dd { margin: 0; font-weight: 700; font-size: 13px; }
.included-note { border-left: 3px solid #e1a112; background: #fff8e8; display: flex; gap: 9px; padding: 11px; font-size: 11px; line-height: 1.6; }
.included-note svg { width: 17px; flex: none; color: #a57000; }.included-note p { margin: 0; }

.configurator { padding: 28px 32px 60px; min-width: 0; }
.config-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.config-head h2 { margin: 0; font-size: 24px; }
.progress { text-align: right; width: 128px; }
.progress span { font-size: 10px; color: var(--muted); }
.progress div { height: 4px; margin-top: 7px; background: #d6d9da; overflow: hidden; }
.progress i { display: block; width: 100%; height: 100%; background: var(--green); }
.strategy-panel { background: var(--dark); color: #fff; padding: 15px; margin-bottom: 14px; border-radius: 5px; }
.strategy-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.strategy-title > div { display: flex; align-items: center; gap: 9px; }
.strategy-title svg { width: 18px; color: #ff6572; }
.strategy-title span { display: grid; gap: 2px; }
.strategy-title strong { font-size: 12px; }.strategy-title small { color: #aeb5b8; font-size: 9px; }
.strategy-title > em { color: #d5d9da; font-size: 10px; font-style: normal; }
.strategy-options { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.strategy-options button { min-height: 68px; position: relative; border: 1px solid #464c4f; background: #2b3032; color: #fff; border-radius: 4px; padding: 10px; display: grid; grid-template-columns: 26px 1fr; text-align: left; gap: 7px; align-items: center; }
.strategy-options button > svg { width: 19px; color: #aeb5b8; }
.strategy-options button > span { display: grid; gap: 3px; }.strategy-options button strong { font-size: 12px; }.strategy-options button small { font-size: 9px; color: #aeb5b8; }
.strategy-options button > em { grid-column: 2; color: #ff7b87; font-size: 10px; font-style: normal; }
.strategy-options button > b { position: absolute; right: 6px; top: 6px; font-size:9px; background: var(--red); padding: 2px 4px; border-radius: 2px; }
.strategy-options button.selected { border-color: #ff5363; background: #3a292c; box-shadow: inset 0 0 0 1px #ff5363; }
.strategy-options button.selected > svg { color: #ff6572; }
.section-tabs { height: 48px; display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid var(--line); background: #fff; position: sticky; top: 79px; z-index: 10; margin-bottom: 18px; }
.section-tabs button { border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; }
.section-tabs button:last-child { border-right: 0; }
.section-tabs button.active { color: var(--red); box-shadow: inset 0 -3px var(--red); font-weight: 700; }
.section-tabs svg { width: 16px; }
.config-section { background: #fff; padding: 22px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 5px; scroll-margin-top: 140px; }
.section-title { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-title > span { font-size: 25px; color: #c7cbcd; font-weight: 800; }
.section-title h3 { margin: 0; font-size: 16px; }.section-title p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.option-group { margin-top: 16px; }
.option-group:first-of-type { margin-top: 0; }
.option-group > label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 9px; }
.option-group > label small { color: var(--muted); font-size: 9px; font-weight: 400; margin-left: 5px; }
.options { display: grid; gap: 9px; }.options.three { grid-template-columns: repeat(3,1fr); }.options.four { grid-template-columns: repeat(4,1fr); }.options.two { grid-template-columns: repeat(2,1fr); }
.motor-options { grid-template-columns: repeat(5,1fr); }
.motor-options .option { padding: 11px 9px; }.motor-options .option strong { font-size: 11px; overflow-wrap: anywhere; }
.motor-note { margin-top: 12px; background: #f2f5f6; color: #555e62; display: flex; align-items: center; gap: 7px; padding: 9px 10px; font-size: 9px; line-height: 1.5; }
.motor-note svg { width: 14px; flex: none; color: var(--red); }
.option { min-height: 84px; text-align: left; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 12px; position: relative; display: grid; align-content: start; gap: 4px; }
.option strong { font-size: 13px; padding-right: 36px; }.option span { font-size: 10px; color: var(--muted); line-height: 1.4; }.option em { font-style: normal; color: var(--red); font-size: 11px; font-weight: 700; margin-top: 3px; }
.option b { position: absolute; right: 7px; top: 7px; background: #f7e5e7; color: var(--red); font-size: 9px; padding: 3px 5px; border-radius: 2px; }
.option.selected, .compact-options button.selected { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fffafa; }
.option.engineering { border-style: dashed; }
.custom-size-fields { margin-top: 10px; padding: 12px; background: #f5f6f6; border-left: 3px solid #d49300; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.custom-size-fields[hidden] { display: none; }
.custom-size-fields label { position: relative; display: grid; gap: 5px; }.custom-size-fields label span { font-size: 9px; color: var(--muted); }
.custom-size-fields input { width: 100%; height: 36px; border: 1px solid var(--line); padding: 0 36px 0 9px; outline: none; background: #fff; }
.custom-size-fields input:focus { border-color: var(--red); }.custom-size-fields label > em { position: absolute; right: 8px; bottom: 10px; color: var(--muted); font-size: 9px; font-style: normal; }
.custom-size-fields p { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: #8a5a00; font-size: 9px; line-height: 1.5; }.custom-size-fields p svg { width: 14px; flex: none; }
.option.selected::after { content: "✓"; position: absolute; right: 8px; bottom: 7px; color: #fff; background: var(--red); width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { border: 1px solid var(--line); background: #fff; padding: 8px 11px; border-radius: 4px; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.swatch i { width: 17px; height: 17px; background: var(--swatch); border: 1px solid #999; border-radius: 50%; }.swatch small { color: var(--red); }
.swatch.selected { border-color: var(--red); }
.split-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compact-options { display: grid; gap: 7px; }
.compact-options button { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 10px; text-align: left; font-size: 11px; display: flex; justify-content: space-between; }
.compact-options em { color: var(--red); font-style: normal; }
.compatibility { margin-top: 14px; color: var(--green); background: #edf7f3; padding: 10px; display: flex; gap: 8px; align-items: center; font-size: 11px; }
.compatibility svg { width: 16px; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addon-grid label { cursor: pointer; }.addon-grid input { position: absolute; opacity: 0; }
.addon-grid span { min-height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 4px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; padding: 8px; gap: 6px; }
.addon-grid svg { width: 17px; color: var(--muted); }.addon-grid b { font-size: 11px; }.addon-grid small { font-size: 10px; color: var(--red); }
.addon-grid input:checked + span { border-color: var(--red); background: #fffafa; box-shadow: inset 3px 0 var(--red); }

.summary-panel { border-left: 1px solid var(--line); position: sticky; top: 66px; height: calc(100vh - 66px); overflow: auto; }
.summary-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.summary-head p { margin: 0 0 4px; color: var(--muted); font-size: 10px; }.summary-head h2 { margin: 0; font-size: 17px; }
.status-dot { color: var(--green); background: #eaf7f2; font-size: 10px; padding: 5px 7px; border-radius: 3px; }
.summary-list { padding: 13px 0 6px; }
.summary-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 6px; padding: 6px 0; font-size: 10px; align-items: start; }
.summary-item span { color: var(--muted); }.summary-item strong { font-weight: 600; line-height: 1.35; }.summary-item em { font-style: normal; color: var(--muted); white-space: nowrap; }
.text-button { width: 100%; border: 1px dashed #b9bec0; background: #fff; padding: 9px; border-radius: 4px; color: #4d5559; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.text-button svg { width: 14px; }
.delivery { margin: 14px 0; padding: 12px; background: #f5f6f6; display: flex; gap: 10px; align-items: center; }
.delivery svg { width: 21px; color: var(--red); }.delivery div { display: grid; gap: 3px; }.delivery strong { font-size: 11px; }.delivery span { font-size: 9px; color: var(--muted); }
.price-block { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: end; }
.price-block > span { font-size: 12px; font-weight: 700; }.price-block strong { color: var(--red); font-size: 27px; }.price-block small { color: var(--muted); font-size: 9px; grid-column: 1 / -1; text-align: right; margin-top: 3px; }
.quantity-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; font-size: 11px; }
.stepper { display: grid; grid-template-columns: 32px 38px 32px; border: 1px solid var(--line); height: 32px; }
.stepper button { border: 0; background: #f5f6f6; }.stepper input { width: 100%; border: 0; text-align: center; outline: none; }
.primary-button { border: 0; background: var(--red); color: #fff; border-radius: 4px; min-height: 45px; padding: 0 15px; display: flex; justify-content: center; align-items: center; gap: 9px; font-weight: 700; font-size: 12px; }
.primary-button:hover { background: var(--red-dark); }.primary-button svg { width: 17px; }
.summary-panel > .primary-button { width: 100%; justify-content: space-between; }
.secure-note { color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 5px; line-height: 1.5; }.secure-note svg { width: 14px; }
.mobile-total { display: none; }

dialog { width: min(560px, calc(100vw - 28px)); border: 0; border-radius: 6px; padding: 0; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(14,16,17,.66); }
#orderForm { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }.dialog-head h2 { margin: 0; font-size: 22px; }.dialog-head .icon-button { color: var(--ink); border-color: var(--line); }
.dialog-summary { margin: 20px 0; background: var(--dark); color: #fff; padding: 15px; display: flex; justify-content: space-between; }.dialog-summary strong { color: #ff6170; font-size: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.field-grid .wide { grid-column: 1 / -1; }
.field-grid label { display: grid; gap: 6px; }.field-grid label span { font-size: 11px; font-weight: 700; }
.field-grid input, .field-grid textarea { border: 1px solid var(--line); border-radius: 4px; padding: 10px; outline: none; resize: vertical; }.field-grid input:focus, .field-grid textarea:focus { border-color: var(--red); }
.agreement { display: flex; align-items: center; gap: 7px; font-size: 10px; margin: 15px 0; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }.secondary-button { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--dark); color: #fff; padding: 10px 15px; border-radius: 4px; display: flex; align-items: center; gap: 8px; font-size: 11px; z-index: 50; transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast svg { width: 16px; color: #60d7a8; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 250px minmax(500px,1fr) 285px; }
  .product-panel, .summary-panel { padding: 18px; }.configurator { padding: 24px 20px 60px; }
  .options.three, .options.four { grid-template-columns: 1fr; }.option { min-height: 70px; }.strategy-options { grid-template-columns: repeat(3,1fr); }.motor-options { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .topbar { gap: 10px; }
  .language-picker { left: 176px; }
  .mode-tabs { width: 430px; }
  .mode-tabs a { font-size: 11px; }
  .workspace { display: block; }.product-panel { display: grid; grid-template-columns: 220px 1fr; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-heading { align-self: end; }.spec-grid, .included-note { grid-column: 2; }.product-image-wrap { grid-row: 1 / 4; }
  .summary-panel { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); padding-bottom: 90px; }
}
@media (max-width: 620px) {
  .topbar { height: 58px; padding: 0 12px; gap: 8px; }.brand strong { font-size: 0; }.brand small, .draft-state, .cart-button span, .cart-button b, .tool-link span, .language-picker svg { display: none; }.brand-mark { width: 34px; height: 34px; }.mode-tabs { height: 36px; width: calc(100vw - 112px); }.mode-tabs a { font-size: 0; gap: 0; }.mode-tabs svg { width: 18px; }.cart-button, .tool-link { width: 38px; padding: 0; justify-content: center; }.language-picker { left: 54px; width: 46px; padding: 0 4px; justify-content: center; }.language-picker select { width: 38px; font-size: 10px; }
  .product-panel { display: block; padding: 14px; }.product-image-wrap { aspect-ratio: 4 / 3; }.product-heading { padding: 15px 0; }.product-heading h1 { font-size: 25px; }
  .spec-grid { grid-template-columns: repeat(4,1fr); gap: 5px; }.spec-grid dd { font-size: 10px; }.spec-grid dt { font-size: 9px; }
  .configurator { padding: 18px 10px 30px; }.config-head { align-items: center; }.config-head h2 { font-size: 20px; }.progress { width: 90px; }
  .strategy-title > em { display: none; }.strategy-options { grid-template-columns: 1fr; }.strategy-options button { min-height: 58px; grid-template-columns: 26px 1fr auto; }.strategy-options button > em { grid-column: 3; grid-row: 1; padding-right: 3px; }.strategy-options button > b { display: none; }
  .custom-size-fields { grid-template-columns: 1fr; }.custom-size-fields p { grid-column: auto; }
  .section-tabs { top: 66px; height: 44px; margin: 0 -1px 12px; }.section-tabs button { font-size: 0; }.section-tabs svg { width: 19px; }
  .config-section { padding: 16px 12px; }.section-title { margin-bottom: 14px; }.options.three, .options.two { grid-template-columns: 1fr; }
  .option { min-height: 67px; }.split-groups, .addon-grid { grid-template-columns: 1fr; }
  .motor-options { grid-template-columns: 1fr; }
  .summary-panel { padding-bottom: 90px; }.summary-panel > .primary-button { display: none; }
  .mobile-total { position: fixed; display: flex; bottom: 0; left: 0; right: 0; z-index: 25; background: var(--dark); color: #fff; padding: 10px 12px; justify-content: space-between; align-items: center; border-top: 2px solid var(--red); }
  .mobile-total div { display: grid; }.mobile-total span { color: #aeb5b8; font-size: 9px; }.mobile-total strong { color: #fff; font-size: 19px; }
  .mobile-total button { background: var(--red); color: #fff; border: 0; height: 40px; padding: 0 16px; border-radius: 4px; font-size: 11px; font-weight: 700; }
  .field-grid { grid-template-columns: 1fr; }.field-grid .wide { grid-column: auto; }
}
