/* Wolfer order progress (assets/wolfer-orders.js), 2026-11-11
   沃孚尔订单进度查询：查询表单、订单概览、每一行的工序进度、物流轨迹。
   Everything is prefixed wfo- and lives inside #wf-orders; colours and radii come from the design system
   (assets/wolfer-ds.css) with fallbacks, so the page also holds up if that sheet is missing. */

.wfo { --wfo-ink: var(--wf-ink-900, #0a2334); --wfo-ink-2: var(--wf-ink-600, #506576); --wfo-blue: var(--wf-blue-600, #1565a8);
  --wfo-blue-deep: var(--wf-blue-700, #0f4c82); --wfo-blue-soft: var(--wf-blue-100, #e6f0f9); --wfo-line: var(--wf-line-200, rgba(10, 35, 52, .13));
  --wfo-surface: var(--wf-surface-50, #f4f7f9); --wfo-green: var(--wf-success-600, #16a34a); --wfo-green-soft: var(--wf-success-100, #dcfce7);
  --wfo-amber: #b45309; --wfo-amber-soft: #fef3c7; --wfo-radius: var(--wf-radius-lg, 1rem);
  position: relative; z-index: 1; max-width: 60rem; margin: 0 auto; color: var(--wfo-ink); font-size: 15px; line-height: 1.6; }
.wfo *, .wfo *::before, .wfo *::after { box-sizing: border-box; }
.wfo [hidden] { display: none !important; }
.wfo-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wfo-noscript { padding: 1.25rem 1.5rem; border: 1px solid var(--wfo-line); border-radius: var(--wfo-radius); background: #fff; }

/* ---------- cards ---------- */
.wfo-card { margin: 0 0 1.25rem; padding: 1.5rem; border: 1px solid var(--wfo-line); border-radius: var(--wfo-radius); background: #fff;
  box-shadow: var(--wf-shadow-sm, 0 1px 2px rgba(7, 28, 43, .04), 0 8px 24px rgba(7, 28, 43, .055)); }
.wfo-h2 { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--wfo-ink); }
.wfo-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wfo-ink-2); }
.wfo-help { margin: 1rem 0 0; font-size: 13.5px; color: var(--wfo-ink-2); }
.wfo-help a, .wfo-link { color: var(--wfo-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(21, 101, 168, .35); text-underline-offset: 3px; }
.wfo-help a:hover, .wfo-link:hover { color: var(--wfo-blue-deep); text-decoration-color: currentColor; }
.wfo-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wfo-out { width: 13px; height: 13px; flex: none; }
.wfo :focus-visible { outline: 2px solid var(--wfo-blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- the form ---------- */
.wfo-form-card { max-width: 40rem; margin-inline: auto; }
.wfo-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .875rem; align-items: end; }
.wfo-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wfo-field label { font-size: 13px; font-weight: 600; color: var(--wfo-ink); }
.wfo-field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--wf-line-300, rgba(10, 35, 52, .2)); border-radius: var(--wf-radius-md, .65rem);
  background: #fff; color: var(--wfo-ink); font: inherit; font-size: 16px; font-family: var(--wf-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, monospace); letter-spacing: .02em; }
.wfo-field input::placeholder { color: #8da0ae; font-family: var(--wf-font-sans, inherit); letter-spacing: 0; font-size: 14px; }
.wfo-field input:focus { outline: 2px solid var(--wfo-blue); outline-offset: 1px; border-color: var(--wfo-blue); }
.wfo-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 1.5rem; border: 0; border-radius: var(--wf-radius-md, .65rem);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background-color .16s ease; }
.wfo-btn--primary { background: var(--wfo-blue); color: #fff; }
.wfo-btn--primary:hover { background: var(--wfo-blue-deep); }
.wfo-btn[disabled] { opacity: .65; cursor: progress; }
.wfo-btn--ghost { background: #fff; color: var(--wfo-blue-deep); box-shadow: inset 0 0 0 1.5px rgba(21, 101, 168, .45); }
.wfo-btn--ghost:hover { background: var(--wfo-blue-soft); }
.wfo-btn--small { height: 36px; padding: 0 1rem; font-size: 13.5px; }
.wfo-error { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: var(--wf-radius-md, .65rem); background: var(--wf-danger-100, #fef2f2); color: #991b1b; font-size: 14px; font-weight: 600; }

/* ---------- badges, notes ---------- */
.wfo-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; }
.wfo-badge--blue { background: var(--wfo-blue-soft); color: var(--wfo-blue-deep); }
.wfo-badge--green { background: var(--wfo-green-soft); color: #166534; }
.wfo-badge--amber { background: var(--wfo-amber-soft); color: #92400e; }
.wfo-badge--muted { background: var(--wf-surface-100, #eaf0f4); color: var(--wfo-ink-2); }
.wfo-callout { margin: 1rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--wfo-blue); border-radius: 0 var(--wf-radius-md, .65rem) var(--wf-radius-md, .65rem) 0; background: var(--wf-blue-50, #f2f7fc); color: var(--wfo-ink-2); font-size: 13.5px; }
.wfo-callout--amber { border-left-color: #d97706; background: #fffbeb; color: #78350f; }
.wfo-note { margin: .75rem 0 0; font-size: 13.5px; color: var(--wfo-ink-2); }
.wfo-note--busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--wfo-blue-soft); border-top-color: var(--wfo-blue); border-radius: 50%; vertical-align: -1px; animation: wfo-spin .8s linear infinite; }
@keyframes wfo-spin { to { transform: rotate(360deg); } }

/* ---------- the order ---------- */
.wfo-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wfo-order-no { margin: 2px 0 0; font-family: var(--wf-font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em; overflow-wrap: anywhere; }
.wfo-facts { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 1.25rem 0 0; padding: 0; }
.wfo-fact { margin: 0; min-width: 0; }
.wfo-fact dt { font-size: 12px; font-weight: 600; color: var(--wfo-ink-2); }
.wfo-fact dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.wfo-progress { margin: 1.25rem 0 0; }
.wfo-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; color: var(--wfo-ink-2); }
.wfo-progress-top strong { font-size: 15px; color: var(--wfo-ink); font-family: var(--wf-font-stat, inherit); }
.wfo-bar { height: 8px; border-radius: 999px; background: var(--wf-surface-100, #eaf0f4); overflow: hidden; }
.wfo-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wf-blue-500, #3f90d6), var(--wfo-blue)); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.wfo-order-note { margin: 1rem 0 0; font-size: 14px; }

/* ---------- one line of the order and its operations ---------- */
.wfo-item { padding: 1.25rem 0 0; margin-top: 1.25rem; border-top: 1px solid var(--wfo-line); }
.wfo-h2 + .wfo-item { padding-top: 0; margin-top: 0; border-top: 0; }
.wfo-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; }
.wfo-item-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.wfo-item-title strong { font-size: 15.5px; overflow-wrap: anywhere; }
.wfo-item-line { font-size: 12px; font-weight: 700; color: var(--wfo-blue-deep); letter-spacing: .04em; }
.wfo-item-qty { font-size: 13px; color: var(--wfo-ink-2); }
.wfo-steps { display: flex; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.wfo-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; text-align: center; }
.wfo-step::before { content: ""; position: absolute; top: 12px; left: calc(-50% + 13px); right: calc(50% + 13px); height: 2px; background: var(--wf-surface-100, #dfe7ec); }
.wfo-step:first-child::before { display: none; }
.wfo-step.is-done::before, .wfo-step.is-active::before { background: var(--wfo-blue); }
.wfo-step-dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid #cfd9e0; background: #fff; color: #fff; }
.wfo-step-dot svg { width: 14px; height: 14px; }
.wfo-step.is-done .wfo-step-dot { border-color: var(--wfo-blue); background: var(--wfo-blue); }
.wfo-step.is-done.is-plan .wfo-step-dot { background: #fff; color: var(--wfo-blue); }      /* estimated, not reported: hollow */
.wfo-step.is-active .wfo-step-dot { border-color: var(--wfo-blue); box-shadow: 0 0 0 4px var(--wfo-blue-soft); }
.wfo-step.is-active .wfo-step-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wfo-blue); animation: wfo-pulse 1.8s ease-in-out infinite; }
@keyframes wfo-pulse { 50% { transform: scale(.6); opacity: .55; } }
.wfo-step-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--wfo-ink-2); overflow-wrap: anywhere; hyphens: auto; }
.wfo-step.is-done .wfo-step-name { color: var(--wfo-ink); }
.wfo-step.is-active .wfo-step-name { color: var(--wfo-blue-deep); font-weight: 700; }
.wfo-step-date { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 2.5em; font-size: 11.5px; line-height: 1.25; color: #7b8e9c; }
.wfo-step-time { font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }     /* 08:00:00 — to the second */
.wfo-step.is-active .wfo-step-date { color: var(--wfo-ink-2); }

/* ---------- shipments ---------- */
.wfo-ship { padding: 1.25rem 0 0; margin-top: 1.25rem; border-top: 1px solid var(--wfo-line); }
.wfo-h2 + .wfo-ship { padding-top: 0; margin-top: 0; border-top: 0; }
.wfo-ship-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.wfo-ship-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; }
.wfo-ship-icon { width: 20px; height: 20px; flex: none; color: var(--wfo-blue); stroke-width: 1.8; }
.wfo-waybill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: .75rem 0 0; }
.wfo-waybill-label { font-size: 12px; font-weight: 600; color: var(--wfo-ink-2); }
.wfo-waybill code { padding: 3px 10px; border-radius: 6px; background: var(--wfo-surface); font-family: var(--wf-font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 15px; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.wfo-ship-meta { margin: .5rem 0 0; font-size: 13px; color: var(--wfo-ink-2); }
.wfo-tracks { margin: 1rem 0 .5rem; padding: 0; list-style: none; }
.wfo-track { position: relative; padding: 0 0 1rem 26px; }
.wfo-track::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #c5d1d9; }
.wfo-track::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: -4px; width: 1px; background: #dbe3e8; }
.wfo-track:last-child { padding-bottom: 0; }
.wfo-track:last-child::after { display: none; }
.wfo-track.is-latest::before { left: 3px; top: 5px; width: 13px; height: 13px; background: var(--wfo-blue); box-shadow: 0 0 0 4px var(--wfo-blue-soft); }
.wfo-track time { display: block; font-family: var(--wf-font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 12px; color: #7b8e9c; }
.wfo-track p { margin: 2px 0 0; font-size: 14px; color: var(--wfo-ink-2); overflow-wrap: anywhere; }
.wfo-track.is-latest p { color: var(--wfo-ink); font-weight: 600; }
.wfo-ship-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: .75rem 0 0; font-size: 12.5px; color: #7b8e9c; }

/* ---------- under the order ---------- */
.wfo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 .25rem; }
.wfo-foot-meta { margin: 0; font-size: 12.5px; color: #7b8e9c; }
.wfo-foot-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.wfo-result > .wfo-help { margin-top: .5rem; }

/* ---------- the account: sign in, my orders ---------- */
.wfo-account--out { display: flex; align-items: center; gap: 1rem; max-width: 40rem; margin-inline: auto; padding: 1rem 1.5rem; background: var(--wfo-surface); box-shadow: none; }
.wfo-result .wfo-account--out { max-width: none; }
.wfo-account-icon { width: 26px; height: 26px; flex: none; color: var(--wfo-blue); stroke-width: 1.7; }
.wfo-account-text { flex: 1 1 auto; margin: 0; font-size: 13.5px; color: var(--wfo-ink-2); }
.wfo-account--out .wfo-btn { flex: none; height: 40px; padding: 0 1.125rem; font-size: 14px; white-space: nowrap; }
.wfo-mine-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 1rem; }
.wfo-mine-head .wfo-h2 { margin: 0; }
.wfo-mine-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 13.5px; color: var(--wfo-ink-2); }
.wfo-mine-user { width: 16px; height: 16px; margin-right: -8px; stroke-width: 1.9; }
.wfo-mine-name { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--wfo-ink); }
.wfo-mine { margin: 0; padding: 0; list-style: none; border: 1px solid var(--wfo-line); border-radius: var(--wf-radius-md, .65rem); overflow: hidden; }
.wfo-mine li + li { border-top: 1px solid var(--wfo-line); }
.wfo-mine-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) auto 18px; align-items: center; gap: 6px 16px; width: 100%; padding: .875rem 1rem; border: 0; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wfo-mine-row:hover { background: var(--wf-blue-50, #f2f7fc); }
.wfo-mine-main { display: flex; flex-direction: column; min-width: 0; }
.wfo-mine-main strong { font-family: var(--wf-font-mono, "JetBrains Mono", ui-monospace, monospace); font-size: 15px; letter-spacing: .01em; overflow-wrap: anywhere; }
.wfo-mine-po { font-size: 12.5px; color: var(--wfo-ink-2); overflow-wrap: anywhere; }
.wfo-mine-state { min-width: 0; }
.wfo-mine-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--wfo-ink-2); white-space: nowrap; }
.wfo-mine-percent { font-size: 15px; font-weight: 700; color: var(--wfo-ink); font-variant-numeric: tabular-nums; }
.wfo-mine-go { width: 18px; height: 18px; color: #9db0bd; }
.wfo-mine-row:hover .wfo-mine-go { color: var(--wfo-blue); }
.wfo-back { margin: 0 0 .75rem; }
.wfo-back-icon { width: 15px; height: 15px; }
.wfo-kept { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #166534; }
.wfo-kept-icon { width: 15px; height: 15px; stroke-width: 2.8; }
.wfo-kept .wfo-link { margin-left: 6px; font-weight: 500; }
.wfo-foot-actions { align-items: center; }
.wfo-error--inline { margin: 0; }

/* ---------- phones: the operations run down the page ---------- */
@media (max-width: 720px) {
  .wfo-account--out { flex-wrap: wrap; padding: 1rem 1.25rem; }
  .wfo-account--out .wfo-btn { width: 100%; }
  .wfo-account-text { flex-basis: calc(100% - 26px - 1rem); }
  .wfo-mine-row { grid-template-columns: minmax(0, 1fr) auto 18px; padding: .875rem; }
  .wfo-mine-state { grid-column: 1 / 3; grid-row: 2; }
  .wfo-mine-go { grid-row: 1 / 3; grid-column: 3; }
  .wfo-card { padding: 1.125rem; }
  .wfo-form { grid-template-columns: 1fr; }
  .wfo-btn { width: 100%; }
  .wfo-order-no { font-size: 1.25rem; }
  .wfo-facts { gap: .75rem 1.5rem; }
  .wfo-steps { flex-direction: column; gap: 0; }
  .wfo-step { flex: none; flex-direction: row; align-items: center; gap: 12px; padding: 0 0 16px; text-align: left; }
  .wfo-step:last-child { padding-bottom: 0; }
  .wfo-step::before { top: -16px; left: 12px; right: auto; width: 2px; height: 16px; }
  .wfo-step:first-child::before { display: none; }
  .wfo-step-name { flex: 1 1 auto; font-size: 14px; }
  .wfo-step-date { flex: none; flex-direction: row; align-items: baseline; gap: 6px; min-height: 0; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wfo-step.is-active .wfo-step-dot::after, .wfo-note--busy::before { animation: none; }
  .wfo-bar span { transition: none; }
}
@media print {
  .wfo-form-card, .wfo-foot-actions, .wfo-waybill .wfo-link { display: none !important; }
  .wfo-card { box-shadow: none; break-inside: avoid; }
}
