:root {
  color-scheme: dark;
  --ground: #090e13;
  --surface: #111922;
  --field: #18222c;
  --ink: #f3f5f6;
  --muted: #b3bec8;
  --line: #34414d;
  --amber: #f0bd89;
  --success: #a4d6ba;
  --danger: #f2aaa4;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; caret-color: var(--amber); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden], .hidden { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { min-width: 0; overflow-wrap: anywhere; }
::selection { background: var(--amber); color: var(--ground); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 8px 14px; background: var(--ink); color: var(--ground); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead { max-width: 1200px; height: 64px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 34px; height: 34px; }
.brand > span { display: grid; gap: 3px; }
.brand strong { font-size: 23px; font-weight: 750; line-height: 1; letter-spacing: .025em; white-space: nowrap; }
.brand small { font-size: 7px; font-weight: 650; line-height: 1; letter-spacing: .08em; }
.header-tools { display: flex; align-items: center; gap: 24px; font-size: 13px; color: #d0d8df; }
.header-tools > a { white-space: nowrap; }
.header-tools > a:hover { color: var(--amber); }
.search-box { position: relative; }
.search-box summary { display: grid; place-items: center; width: 28px; height: 44px; cursor: pointer; list-style: none; }
.search-box summary::-webkit-details-marker { display: none; }
.search-panel { position: absolute; z-index: 90; top: 48px; right: -20px; width: 250px; padding: 16px; border: 1px solid #657481; border-radius: 8px; background: var(--surface); }
.search-panel label { display: block; margin-bottom: 8px; }
.search-panel input { min-height: 42px; font-size: 14px; }
#search-links { display: grid; margin-top: 8px; }
#search-links a { padding: 8px 0; border-bottom: 1px solid var(--line); }
#search-empty { margin-top: 8px; color: var(--muted); }
.page { width: calc(100% - 64px); max-width: 960px; margin: 0 auto; padding-bottom: 28px; }
.service-nav { display: flex; gap: 36px; height: 49px; border-bottom: 1px solid var(--line); }
.service-nav a { display: inline-flex; align-items: center; justify-content: center; position: relative; white-space: nowrap; font-size: 14px; color: var(--muted); }
.service-nav a:hover { color: var(--ink); }
.service-nav .active { color: var(--ink); font-weight: 600; }
.service-nav .active::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--amber); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 18px; min-height: 40px; }
.page-head h1 { font-size: 28px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.quiet-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-size: 13px; }
.quiet-link:hover { color: var(--amber); }
.service-form { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.form-section h2 { font-size: 16px; font-weight: 600; line-height: 24px; margin-bottom: 14px; }
.form-section + .form-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.field, .full { min-width: 0; }
.full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; line-height: 20px; }
.optional { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.required { margin-left: 5px; color: var(--amber); font-size: 13px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #687783; border-radius: 6px; background: var(--field); color: var(--ink); font-size: 14px; outline: none; }
input::placeholder, textarea::placeholder { color: #acb8c4; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #91a0ad; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { display: block; resize: vertical; min-height: 88px; }
.extras { margin-top: 16px; }
.extras > summary { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 6px 0; cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; }
.extras > summary::-webkit-details-marker { display: none; }
.extras > summary > svg { width: 16px; height: 16px; }
.extras[open] > summary > svg { transform: rotate(180deg); }
.extra-fields { margin-top: 10px; }
.extra-fields > .field:only-child { grid-column: 1 / -1; }
.filled-count { margin-left: 12px; color: var(--amber); font-size: 12px; }
.rec { margin-top: 0; color: var(--amber); font-size: 12px; line-height: 1.8; }
.condition-field { padding: 0; margin: 0; border: 0; }
.condition-field legend { padding: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.radio-group label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 14px; cursor: pointer; white-space: nowrap; }
.radio-group input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--amber); }
.form-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 10px 24px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--ground); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; }
.primary:hover { background: #fff; border-color: #fff; }
.primary:disabled { opacity: .55; }
.tip { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 460px; }
.form-error { margin-top: 18px; padding: 12px 14px; color: var(--danger); background: #2c1d1c; border: 1px solid #885c56; border-radius: 6px; font-size: 13px; }
.receipt { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.receipt h2 { font-size: 22px; font-weight: 600; }
.receipt p { margin-top: 14px; color: var(--muted); overflow-wrap: anywhere; }
.receipt .order-number { color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt .primary { margin-top: 24px; }
.site-footer { display: flex; justify-content: space-between; padding: 20px 0 0; color: var(--muted); font-size: 12px; }
.site-footer a { white-space: nowrap; }
.section-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 10px; }
.section-top h2 { margin-bottom: 0; }
.section-top > span { font-size: 12px; color: var(--muted); }
.section-top b { font-weight: 500; color: var(--ink); }
.parts-caption, .part-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 88px 44px; gap: 12px; align-items: center; }
.parts-caption { font-size: 11px; line-height: 18px; color: var(--muted); padding-bottom: 7px; }
.parts-caption > span:nth-child(3) { text-align: right; }
.part-row { min-height: 61px; border-top: 1px solid var(--line); padding: 7px 0; }
.row-label { font-size: 13px; font-weight: 500; }
.part-choice { min-width: 0; }
.trigger { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #596b7a; border-radius: 6px; background: var(--field); color: #d8e0e6; text-align: left; }
.trigger:hover { border-color: #97a5b0; }
.trigger.done { border-color: #a28b71; color: var(--ink); }
.trigger.warn { border-color: var(--danger); }
.choice-model { min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.trigger > svg { width: 14px; height: 14px; }
.part-count { flex: none; margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.part-price { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.part-spec { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.part-spec.warning { color: var(--danger); }
.remove-part, .remove-placeholder { display: grid; place-items: center; width: 44px; height: 44px; }
.remove-part { padding: 0; border: 0; background: transparent; color: var(--muted); }
.remove-part:hover { color: var(--danger); }
.remove-part svg { width: 16px; height: 16px; }
.parts-total { display: flex; align-items: center; justify-content: flex-end; gap: 24px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; }
.parts-total strong { min-width: 100px; text-align: right; color: var(--amber); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chk-box { margin-top: 12px; font-size: 12px; line-height: 1.75; }
.chk-box.ok, .lv-OK { color: var(--success); }
.chk-box.bad, .lv-ERROR { color: var(--danger); }
.chk-box.pending, .lv-WARN { color: var(--amber); }
.ok-msg { margin-top: 20px; padding-top: 16px; border-top: 1px solid #527461; color: var(--success); font-size: 13px; line-height: 1.8; }
.load-state { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.load-state button { display: block; margin: 12px auto 0; padding: 8px 16px; border: 1px solid #657583; background: var(--field); border-radius: 6px; }
.selector-backdrop { position: fixed; z-index: 79; inset: 0; background: #03070aa6; }
.dropdown { display: none; position: fixed; z-index: 80; width: 560px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); border: 1px solid #657583; border-radius: 10px; background: var(--surface); overflow: hidden; }
.dd-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dd-head b { font-size: 15px; font-weight: 550; }
.dd-head .x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.dd-search-wrap { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.dd-search-wrap label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.dd-search-wrap input { min-height: 42px; padding: 8px 12px; font-size: 14px; }
.dd-list { max-height: min(370px, calc(100dvh - 235px)); overflow-y: auto; overscroll-behavior: contain; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 16px; text-align: left; }
.opt:hover, .opt:focus-visible { background: #24303c; outline-offset: -3px; }
.opt.sel { background: #2a251e; }
.opt.inc { opacity: .55; }
.o-left { min-width: 0; }
.o-model { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.o-spec { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.o-right { display: grid; gap: 4px; text-align: right; flex: none; }
.o-price { color: var(--amber); font-size: 14px; font-variant-numeric: tabular-nums; }
.o-stock { color: var(--muted); font-size: 11px; }
.cpt-y { color: var(--success); }.cpt-n { color: var(--danger); }.cpt-0 { color: var(--muted); }
@media (max-width: 767px) {
  .masthead { padding: 0 20px; gap: 16px; }
  .brand strong { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .brand small { font-size: 6px; }
  .header-tools { gap: 18px; }
  .home-link { display: none; }
  .page { width: calc(100% - 40px); }
  .service-nav { justify-content: space-between; gap: 18px; }
  .service-nav a { flex: 1; font-size: 13px; }
  .page-head { margin: 18px 0 16px; min-height: 36px; }
  .page-head h1 { font-size: 26px; line-height: 36px; }
  .quiet-link { font-size: 12px; gap: 5px; }
  .quiet-link svg { width: 15px; height: 15px; }
  .service-form { padding: 20px; border-radius: 8px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  input, select, textarea { font-size: 16px; }
  .form-section h2 { margin-bottom: 12px; font-size: 15px; line-height: 22px; }
  .section-top h2 { margin-bottom: 0; }
  .section-top { margin-bottom: 8px; }
  .form-actions { display: block; margin-top: 22px; }
  .primary { width: 100%; }
  .form-actions .tip { margin-top: 12px; }
  .radio-group { gap: 0 18px; }
  .radio-group label { font-size: 13px; gap: 6px; }
  .parts-caption, .part-row { grid-template-columns: 32px minmax(0, 1fr) 52px 44px; gap: 6px; }
  .parts-caption { font-size: 10px; line-height: 17px; padding-bottom: 6px; }
  .part-row { min-height: 59px; }
  .trigger { padding: 8px; gap: 5px; }
  .choice-model { font-size: 12px; }
  .row-label, .part-price { font-size: 12px; }
  .part-count { font-size: 10px; }
  .part-spec { font-size: 10px; }
  .parts-total { justify-content: space-between; gap: 12px; }
  .parts-total strong { font-size: 18px; min-width: 0; }
  .search-panel { right: -45px; }
  .receipt { padding: 22px; }
  .receipt h2 { font-size: 21px; }
}
@media (max-width: 580px) {
  .dropdown { max-height: min(80dvh, 640px); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .dd-list { max-height: min(50dvh, 440px); }
}
@media (max-width: 359px) {
  .page { width: calc(100% - 24px); }
  .masthead { padding: 0 12px; }
  .service-form { padding: 16px; }
  .header-tools { gap: 12px; }
  .radio-group { gap: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
