:root{color-scheme:light;--ink:#10233d;--muted:#5b6d84;--line:#dce5ee;--surface:#fff;--canvas:#f4f7fa;--blue:#1255a6;--blue-dark:#0d407f;--blue-pale:#eaf2fc;--good:#137a62;--error:#b52b35}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;line-height:1.55}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
a{color:var(--blue)}
:focus-visible{outline:3px solid #f4a340;outline-offset:3px}
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner,.shell{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:750;letter-spacing:.02em}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:var(--blue);color:#fff;border-radius:10px;font-size:17px}
.header-note{color:var(--muted);font-size:13px}
.shell{padding:42px 0 70px}
.intro{max-width:680px;margin-bottom:25px}
.eyebrow{margin:0 0 10px;color:var(--blue);font-size:12px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
h1{font-size:clamp(29px,4vw,42px);line-height:1.2;letter-spacing:-.03em;margin:0 0 12px}
.intro p:last-child{color:var(--muted);font-size:16px;margin:0}
.lookup-card,.result-panel,.howto{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 28px rgba(24,49,80,.04)}
.lookup-card{max-width:860px;padding:28px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-heading h2{margin:0;font-size:19px}
.section-heading span{font-size:13px;color:var(--muted)}
.query-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.field{display:grid;gap:7px;min-width:0}
.field label{font-size:13px;font-weight:700;color:#344a63}
.field input{height:48px;width:100%;padding:0 14px;color:var(--ink);background:#fff;border:1px solid #bfccda;border-radius:9px;outline:none}
.field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #d9e8fa}
.field input::placeholder{color:#8492a3}
.primary-button{height:48px;padding:0 24px;border:1px solid var(--blue);border-radius:9px;background:var(--blue);color:#fff;font-weight:700;white-space:nowrap;transition:background .18s,border-color .18s}
.primary-button:hover:not(:disabled){background:var(--blue-dark);border-color:var(--blue-dark)}
.button-link{display:inline-flex;align-items:center;text-decoration:none;margin-top:12px}
.not-found-card{max-width:580px}
.form-foot{margin:14px 0 0;color:var(--muted);font-size:13px}
.howto{max-width:860px;padding:21px 26px;margin-top:18px;background:#f8fbff}
.howto h2{font-size:15px;margin:0 0 8px}
.howto ol{display:flex;flex-wrap:wrap;gap:8px 38px;padding-left:22px;margin:0;color:var(--muted);font-size:13px}
.floating-logo{position:fixed;z-index:20;top:50%;right:max(12px,calc((100vw - 1360px)/2));transform:translateY(-50%);display:grid;justify-items:center;gap:4px;width:92px;padding:7px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(21,53,89,.2);text-decoration:none;transition:box-shadow .18s}
.floating-logo:hover{box-shadow:0 16px 36px rgba(21,53,89,.3)}
.floating-logo-label{color:var(--muted);font-size:10px;line-height:1}
.floating-logo img{display:block;width:76px;height:76px;border-radius:9px;object-fit:cover;background:#f2f6fa}
.feedback{min-height:0;margin:20px 0 0}
.feedback:not(:empty){padding:13px 16px;border-radius:9px;border:1px solid var(--line);background:#fff}
.feedback[data-tone="error"]{color:var(--error);background:#fff5f4;border-color:#f3c6c7}
.feedback[data-tone="success"]{color:var(--good);background:#effaf6;border-color:#bfe4d5}
.feedback[data-tone="loading"]{color:var(--blue);background:var(--blue-pale);border-color:#c8ddf4}
.results{margin-top:28px}
.results-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}
.results-head h2{font-size:20px;margin:0}
.results-head p{margin:0;color:var(--muted);font-size:13px}
.result-layout{display:grid;grid-template-columns:minmax(255px,320px) minmax(0,1fr);gap:18px;align-items:start}
.result-panel{overflow:hidden}
.panel-title{margin:0;padding:18px 20px;border-bottom:1px solid var(--line);font-size:15px}
.waybill-list{display:grid;max-height:650px;overflow:auto}
.waybill-button{display:grid;width:100%;gap:3px;text-align:left;padding:15px 20px;background:#fff;border:0;border-bottom:1px solid var(--line);border-left:4px solid transparent;color:var(--ink)}
.waybill-button:hover{background:#f6f9fc}
.waybill-button[aria-pressed="true"]{background:#edf5ff;border-left-color:var(--blue)}
.waybill-button strong{font-size:14px;overflow-wrap:anywhere}
.waybill-button span{font-size:12px;color:var(--muted)}
.detail-body{padding:24px}
.detail-top{display:flex;justify-content:space-between;align-items:start;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.detail-top h3{font-size:22px;margin:3px 0 0;overflow-wrap:anywhere}
.detail-top .company{margin:0;color:var(--muted);font-size:13px}
.status-pill{display:inline-flex;align-items:center;max-width:230px;padding:7px 11px;border-radius:999px;background:#e8f7f1;color:#0b6953;font-weight:700;font-size:12px;text-align:center}
.order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 26px;margin:22px 0 28px}
.order-grid div{min-width:0}
.order-grid dt{font-size:12px;color:var(--muted)}
.order-grid dd{margin:3px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.timeline-title{font-size:16px;margin:0 0 17px}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{position:relative;padding:0 0 21px 27px;border-left:1px solid #bdd2ea;margin-left:7px}
.timeline li:last-child{border-left-color:transparent;padding-bottom:0}
.timeline li:before{content:"";position:absolute;left:-5px;top:4px;width:9px;height:9px;background:#b0c7e2;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #b0c7e2}
.timeline li:first-child:before{background:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.timeline time{display:block;color:var(--muted);font-size:12px}
.timeline p{margin:4px 0 0;font-size:14px;overflow-wrap:anywhere}
.empty-trace{padding:18px;background:#f7f9fb;border-radius:8px;color:var(--muted);font-size:14px}
.site-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:54px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
[hidden]{display:none!important}
@media(min-width:761px){.shell{padding-right:110px}}
@media(max-width:760px){
  .header-inner,.shell{width:min(100% - 28px,1160px)}
  .header-inner{min-height:54px}
  .brand{gap:9px;font-size:14px}
  .brand-mark{width:32px;height:32px;border-radius:8px;font-size:15px}
  .header-note{display:none}
  .shell{padding:12px 0 34px}
  .intro{margin-bottom:10px}
  .intro .eyebrow,.intro p:last-child{display:none}
  .intro h1{font-size:18px;line-height:1.25;margin:0}
  .lookup-card{padding:16px;border-radius:12px}
  .section-heading{margin-bottom:12px}
  .section-heading h2{font-size:17px}
  .section-heading span{font-size:11px}
  .query-form{grid-template-columns:1fr;gap:10px}
  .field label{font-size:12px}
  .field input,.primary-button{height:44px}
  .primary-button{width:100%}
  .form-foot,.howto{display:none}
  .feedback{margin-top:10px}
  .feedback:not(:empty){padding:9px 12px;font-size:13px}
  .results{margin-top:12px;scroll-margin-top:10px}
  .results-head{margin-bottom:9px}
  .result-layout{grid-template-columns:1fr}
  .waybill-list{max-height:120px}
  .order-grid{gap:14px}
  .detail-body{display:flex;flex-direction:column;padding:16px}
  .detail-top{padding-bottom:14px}
  .detail-top h3{font-size:18px}
  .timeline-title{order:1;margin:16px 0 12px}
  .timeline,.empty-trace{order:2}
  .order-grid{order:3;grid-template-columns:1fr 1fr;margin:22px 0 0;padding-top:16px;border-top:1px solid var(--line)}
  .site-footer{align-items:flex-start;flex-direction:column}
  .floating-logo{top:50%;right:8px;bottom:auto;transform:translateY(-50%);width:60px;padding:4px;border-radius:10px}
  .floating-logo img{width:50px;height:50px;border-radius:7px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.primary-button,.floating-logo{transition:none}}
