:root {
  color-scheme: light;
  --page: #f3f5fb;
  --paper: #fff;
  --ink: #151e35;
  --muted: #52607b;
  --line: #dbe3f3;
  --blue: #234acb;
  --blue-dark: #183ab1;
  --tint: #eaf0ff;
  --radius: 19px;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.58; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5272e5; outline-offset: 3px; }
a { color: var(--blue-dark); }
.wrap { width: min(1190px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 5; top: 8px; left: 10px; transform: translateY(-150%); padding: 11px 19px; border-radius: 9px; background: white; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #e1e6f1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 10px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--ink); font-size: 21px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 36px; height: 36px; padding-bottom: 10px; border-radius: 11px; color: white; background: var(--blue); }
.brand-mark i { width: 4px; height: 9px; border-radius: 2px; background: currentColor; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.25; font-weight: 700; text-align: center; transition: background-color 160ms, border-color 160ms, transform 160ms; }
.button.primary { background: var(--blue); color: white; }
.button.secondary { background: var(--tint); border-color: #d4dff9; color: var(--blue-dark); }
.button.quiet { background: transparent; border-color: #d4dff9; color: var(--blue-dark); }
.button:disabled { opacity: .64; }
@media (hover:hover) {
  .button.primary:enabled:hover { background: var(--blue-dark); transform: translateY(-2px); }
  .button.secondary:enabled:hover, .button.quiet:enabled:hover { background: #e0eaff; border-color: #afc1f0; transform: translateY(-2px); }
}
.button:enabled:active { transform: translateY(1px); }
.intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); align-items: center; gap: clamp(25px, 5vw, 70px); padding-block: 36px 28px; }
.intro[data-enter] { animation: enter 420ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: 14px; font-weight: 800; }
.eyebrow::before { width: 16px; height: 3px; border-radius: 5px; background: var(--blue); content: ""; }
h1 { margin-block: 9px 10px; font-size: clamp(39px, 4.6vw, 69px); font-weight: 800; line-height: 1.1; letter-spacing: -.08em; }
h1 em { color: var(--blue); font-style: normal; }
.intro-copy { color: var(--muted); font-size: 16px; }
.quote-overview { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; min-height: 136px; overflow: hidden; padding: 15px 23px; border-radius: var(--radius); background: #2145c0; color: #fff; box-shadow: 0 10px 23px #1f3e9c20; }
.quote-overview::before { position: absolute; z-index: -1; width: 240px; height: 240px; right: -65px; top: -112px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 11px, #b4c7fc42 12px 13px, transparent 14px 23px); mask-image: linear-gradient(140deg, transparent 17%, #000 85%); content: ""; }
.quote-overview div + div { padding-left: 19px; border-left: 1px solid #d5e0ff5e; }
.overview-label { font-size: 14px; color: #e6edff; font-weight: 700; }
.quote-overview p { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.quote-overview strong { font: 750 45px/1.1 "Bahnschrift", "Segoe UI", sans-serif; }
.overview-rule { position: absolute; inset: auto 0 0; height: 4px; background: #7a9bff; }
.view-nav { display: flex; gap: 8px; margin-bottom: 13px; }
.view-nav button { min-height: 44px; padding: 7px 16px; border: 1px solid transparent; border-radius: 9px; background: #e9edf8; color: #3d4d71; font-size: 14px; font-weight: 800; }
.view-nav button[aria-pressed="true"] { border-color: #cdd9f6; background: white; color: var(--blue-dark); }
.view-nav button:hover { border-color: #9fb2e7; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 2.38fr) minmax(245px, 1fr); align-items: start; gap: 14px; }
.main-panel, .side-panel { min-width: 0; }
.side-panel { display: grid; gap: 13px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 19px 20px 13px; }
.panel-header h2 { font-size: 23px; letter-spacing: -.04em; font-weight: 800; }
.panel-header p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.status-chip { flex: 0 0 auto; padding: 4px 9px; border: 1px solid #d6e1fd; border-radius: 30px; background: var(--tint); color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.messages { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-height: 165px; max-height: 440px; padding: 12px 20px 16px; overflow-y: auto; overscroll-behavior: contain; }
.message { align-self: flex-start; max-width: 91%; padding: 9px 12px 11px; border: 1px solid #e0e8f9; border-radius: 12px; background: #f4f7fd; font-size: 15px; overflow-wrap: anywhere; }
.message.user { align-self: flex-end; background: #eaf0ff; border-color: #d8e3ff; }
.message-who { display: block; margin-bottom: 2px; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.message p { white-space: pre-wrap; }
.message .button { margin-top: 8px; }
.composer { padding: 14px 20px 17px; border-top: 1px solid var(--line); background: #fbfcff; border-radius: 0 0 var(--radius) var(--radius); }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #cbd7ee; border-radius: 9px; color: var(--ink); background: white; }
input::placeholder, textarea::placeholder { color: #637088; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #bc5553; }
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; padding-right: 27px; background-image: linear-gradient(45deg, transparent 50%, #526785 50%), linear-gradient(135deg, #526785 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 14px) 53%, calc(100% - 9px) 53%; background-repeat: no-repeat; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 9px; }
.composer-actions span { color: var(--muted); font-size: 13px; }
.composer-actions .button { flex: 0 0 auto; min-width: 75px; }
.preferences, .batch-panel { padding: 15px 16px; }
.preferences h2, .batch-panel h2 { margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.preferences label { display: block; margin-top: 10px; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.preferences input, .preferences select { font-size: 14px; }
.field-help { margin-top: 5px; color: var(--muted); font-size: 13px; }
.batch-panel ul { display: grid; gap: 6px; max-height: 230px; overflow: auto; list-style: none; margin-bottom: 9px; padding: 0; }
.batch-panel li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #eef1f7; overflow-wrap: anywhere; font-size: 14px; }
.batch-panel li span { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.batch-panel .button { width: 100%; }
.inline-status { margin: 0 20px 10px; padding: 7px 10px; border-radius: 8px; color: #763f20; background: #fff0dc; font-size: 14px; }
.quote-forms { display: grid; gap: 10px; padding: 0 20px 12px; }
.quote-form { min-width: 0; padding: 12px 13px; border: 1px solid #dce4f4; border-radius: 12px; background: #fbfcff; }
.quote-form legend { max-width: 100%; padding-inline: 3px; font-size: 16px; font-weight: 800; }
.quote-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: -3px 0 9px; }
.quote-origin { font-size: 13px; color: var(--blue-dark); }
.text-button { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--blue-dark); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-row, .part-grid { display: grid; gap: 7px 9px; }
.form-row { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.part-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .72fr); }
.quote-form label { display: grid; align-content: start; min-width: 0; gap: 4px; font-size: 14px; font-weight: 700; }
.quote-form input, .quote-form select { font-weight: 400; }
.parts { display: grid; gap: 8px; }
.part { display: grid; gap: 5px; padding-top: 7px; border-top: 1px solid var(--line); }
.part-title { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; }
.part-title .text-button { min-width: 44px; }
.shipping { padding: 7px 10px; background: var(--tint); border-radius: 9px; }
.shipping-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 10px; }
.shipping-row span, .quote-missing { color: var(--muted); font-size: 13px; }
.quote-evidence { margin-top: 7px; padding: 5px 8px; border-radius: 8px; background: #f0f4fc; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.quote-evidence summary { min-height: 38px; display: list-item; align-content: center; color: var(--blue-dark); cursor: pointer; }
.quote-evidence p { padding: 0 5px 6px; white-space: pre-wrap; }
.panel-footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 11px 20px; }
.result-summary { display: grid; gap: 7px; margin: 0 20px 12px; padding: 12px 14px; border: 1px solid #d6e2ff; border-radius: 12px; background: var(--tint); }
.result-summary h3 { color: var(--blue-dark); font-size: 16px; }
.result-summary p { font-size: 14px; overflow-wrap: anywhere; }
.result-empty { margin: 0 20px 16px; padding: 10px 12px; border-radius: 8px; background: #f3f6fb; font-size: 15px; }
.table-wrap { margin: 0 20px 17px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; min-width: 610px; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 9px 10px; vertical-align: top; border-bottom: 1px solid #e9edf7; }
thead th { background: #f3f6fb; color: var(--muted); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody th { max-width: 210px; min-width: 110px; overflow-wrap: anywhere; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money small { display: block; color: var(--muted); font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 16px 0 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 52px); }
  .workspace-grid { grid-template-columns: minmax(0, 2fr) minmax(206px, 1fr); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 57px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; padding-bottom: 8px; }
  .header-inner .button { padding-inline: 10px; }
  .intro { grid-template-columns: 1fr; gap: 12px; padding-block: 19px 15px; }
  h1 { font-size: clamp(35px, 9.8vw, 52px); }
  .intro-copy { font-size: 15px; }
  .quote-overview { min-height: 75px; padding: 8px 14px; border-radius: 12px; }
  .quote-overview strong { font-size: 32px; }
  .overview-label { font-size: 13px; }
  .view-nav { gap: 5px; margin-bottom: 9px; }
  .view-nav button { flex: 1 1 0; padding-inline: 5px; white-space: nowrap; }
  .workspace-grid { grid-template-columns: 1fr; gap: 10px; }
  .panel { border-radius: 14px; }
  .panel-header { padding: 12px 11px 9px; }
  .panel-header h2 { font-size: 19px; }
  .panel-header p, .status-chip { font-size: 13px; }
  .panel-header .button { padding-inline: 9px; }
  .messages { padding: 7px 11px 10px; min-height: 109px; max-height: 330px; }
  .composer, .panel-footer { padding-inline: 11px; }
  .composer { padding-block: 9px 11px; }
  .composer-actions span { font-size: 12px; }
  .quote-forms { padding-inline: 10px; }
  .quote-form { padding: 7px 8px; }
  .part-grid, .form-row { gap: 5px; }
  .quote-form label { font-size: 13px; }
  .result-summary, .result-empty, .table-wrap, .inline-status { margin-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
