/* ==========================================================================
   实战科技 SHIZHAN — 外贸工具页样式
   只在这些页面加载：工具中心 / 图片转 WebP / 航运物流查询 / 装载估算
   依赖 main.css 的设计令牌（--brand / --red / --line / --ease…）
   ========================================================================== */

/* ---------- 通用骨架 ---------- */
/* [hidden] 会被下面的 display 规则覆盖，这里统一兜住。 */
[hidden] { display: none !important; }

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.tool-shell--side-first { grid-template-columns: 340px minmax(0, 1fr); }

.tool-main { min-width: 0; }

.tool-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
}
.tool-card + .tool-card { box-shadow: none; }
.tool-card h3 {
  font-size: 15.5px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.tool-card--mist { background: var(--mist); box-shadow: none; }
.tool-card--mist h3 { border-bottom-color: rgba(0, 0, 0, .06); }

.tc-lead { font-size: 13.5px; color: var(--slate); line-height: 1.8; margin-bottom: 12px; }
.tc-lead strong { color: var(--ink); }

.btn-block { width: 100%; margin-top: 4px; }

.dot-list { display: grid; gap: 9px; }
.dot-list li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.dot-list b { color: var(--ink); font-weight: 600; }
.note-band .dot-list { margin-top: 4px; }
.note-band .dot-list li { color: var(--ink); font-size: 13px; }

/* ---------- 首屏微调 ---------- */
.subhero--tool .subhero-panel dd { font-size: 13px; }
.subhero--tool h1 { max-width: 15em; }

/* ==========================================================================
   图片转 WebP
   ========================================================================== */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  padding: 36px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--brand);
  background: #eef4fa;
  outline: none;
}
.dropzone.is-over {
  border-color: var(--brand);
  background: #e6f0f9;
  transform: scale(1.004);
}
.dz-icon { width: 44px; height: 44px; color: var(--brand); opacity: .8; }
.dropzone strong { font-size: 15.5px; color: var(--ink); }
.dropzone span { font-size: 13px; color: var(--slate); }
.dropzone em {
  margin-top: 6px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(0, 84, 156, .07);
  padding: 4px 10px;
  border-radius: 999px;
}

.tool-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.tool-bar-info { font-size: 13px; color: var(--slate); }
.tool-bar-info b { color: var(--ink); font-family: var(--mono); font-size: 13.5px; }
.tool-bar-actions { display: flex; gap: 8px; }
.tool-bar-actions .btn { padding: 8px 14px; font-size: 13px; }

.save-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #0a6b3d;
  background: rgba(10, 107, 61, .1);
}
.save-badge.is-up { color: var(--red); background: rgba(216, 36, 24, .1); }

.queue { display: grid; gap: 8px; }

.q-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 62px 68px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.q-item.is-done { border-color: rgba(10, 107, 61, .28); }
.q-item.is-error { border-color: rgba(216, 36, 24, .35); background: #fdf7f6; }
.q-item.is-working { background: var(--mist); }

.q-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line-soft);
}
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }

.q-body { min-width: 0; }
.q-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--slate);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-bar {
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--line-soft);
  overflow: hidden;
}
.q-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.q-item.is-done .q-bar span { background: #1f8a55; }
.q-item.is-error .q-bar span { background: var(--red); }

.q-diff {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: #0a6b3d;
  text-align: right;
}
.q-item.is-bigger .q-diff { color: var(--red); }
.q-item.is-error .q-diff { font-family: var(--sans); font-size: 11.5px; color: var(--red); }

.q-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.q-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid rgba(0, 84, 156, .25);
}
.q-rm {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--slate);
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.q-rm:hover { border-color: var(--red); color: var(--red); }

.queue-empty,
.pack-empty {
  margin: 8px 0 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  background: #fcfdfe;
}

.tool-flash {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--brand-deep);
  background: rgba(0, 84, 156, .06);
  border-left: 2px solid var(--brand);
}
.tool-flash.is-warn {
  color: #8a2b1e;
  background: rgba(216, 36, 24, .06);
  border-left-color: var(--red);
}

/* 设置项 */
.tf { margin-bottom: 18px; }
.tf:last-of-type { margin-bottom: 12px; }
.tf label, .tf-row label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.tf-row { display: flex; align-items: baseline; justify-content: space-between; }
.tf-val {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brand);
}
.tf-hint { font-size: 11.5px; line-height: 1.65; color: var(--slate); margin-top: 6px; }

.tf input[type="range"] {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: 3px;
  outline: none;
}
.tf input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(3, 32, 60, .3);
  cursor: pointer;
}
.tf input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  cursor: pointer;
}
.tf select,
.tf input[type="text"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
}
.tf select:focus,
.tf input[type="text"]:focus { border-color: var(--brand); outline: none; }

.tf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 8px;
  cursor: pointer;
}
.tf-check input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ==========================================================================
   航运物流查询
   ========================================================================== */
.trk-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.trk-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.trk-side { display: grid; gap: 16px; }

.trk-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--line-soft);
  border-radius: 5px;
  margin-bottom: 18px;
}
.trk-tab {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 13.5px;
  color: #6b7c8c;
  transition: .18s var(--ease);
}
.trk-tab:hover { color: var(--ink); }
.trk-tab.is-on {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(3, 32, 60, .12);
}

.trk-input { display: flex; gap: 8px; }
.trk-input input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
}
.trk-input input::placeholder {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: #93a2b0;
}
.trk-input input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 84, 156, .08); }
.trk-input .btn { padding: 0 26px; }

.trk-hint { margin-top: 10px; font-size: 12px; color: var(--slate); }

.trk-cand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.trk-cand-k { font-size: 11.5px; color: var(--slate); font-family: var(--mono); letter-spacing: .06em; }
.trk-cands, .trk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trk-chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--slate);
  transition: .16s var(--ease);
}
.trk-chip:hover { border-color: var(--brand); color: var(--brand); }
.trk-chip.is-on {
  border-color: var(--brand);
  background: rgba(0, 84, 156, .06);
  color: var(--brand);
  font-weight: 600;
}

/* 结果卡 */
.trk-out { margin-top: 18px; }

.trk-result {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  background: #fff;
}
.trk-r-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.trk-r-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-width: 0; }
.trk-r-no {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .04em;
  word-break: break-all;
}
.trk-r-carrier { font-size: 12px; color: var(--slate); }

.trk-badge {
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.trk-badge.is-ok { color: #0a6b3d; background: rgba(10, 107, 61, .1); }
.trk-badge.is-info { color: var(--brand); background: rgba(0, 84, 156, .08); }
.trk-badge.is-warn { color: #9c2415; background: rgba(216, 36, 24, .1); }
.trk-badge.is-muted { color: var(--slate); background: var(--mist); }

/* 时间轴 */
.trk-tl {
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
  position: relative;
}
.trk-tl::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.trk-tl li { position: relative; padding: 0 0 18px; }
.trk-tl li:last-child { padding-bottom: 0; }
.trk-tl li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
}
.trk-tl li.is-latest::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(216, 36, 24, .12);
}
.trk-tl time {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--slate);
  margin-bottom: 3px;
}
.trk-tl p { font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.trk-tl li.is-latest p { font-weight: 600; }
.trk-loc {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--slate);
  background: var(--mist);
  padding: 1px 8px;
  border-radius: 3px;
}

.trk-r-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
  color: var(--slate);
}
.trk-pending {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate);
}

.trk-facts {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 16px 0 0;
  font-size: 13px;
}
.trk-facts dt { color: var(--slate); font-size: 12.5px; }
.trk-facts dd { margin: 0; color: var(--ink); }

.trk-note {
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(216, 36, 24, .05);
  border-left: 2px solid var(--red);
  border-radius: 3px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #7c2a1e;
}

/* 按钮区 */
.trk-links { margin-top: 20px; }
.trk-links h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.trk-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.trk-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  transition: .16s var(--ease);
}
.trk-link span { color: var(--slate); font-size: 12px; }
.trk-link:hover { border-color: var(--brand); color: var(--brand); background: rgba(0, 84, 156, .03); }
.trk-link.is-primary { border-color: rgba(0, 84, 156, .35); color: var(--brand); font-weight: 600; }
.trk-link.is-primary span { color: var(--brand); }

.trk-notice-box { margin-top: 18px; }
.trk-notice {
  padding: 14px 16px;
  border: 1px solid rgba(0, 84, 156, .18);
  background: rgba(0, 84, 156, .04);
  border-radius: 4px;
}
.trk-notice b { display: block; font-size: 13.5px; color: var(--brand-deep); margin-bottom: 4px; }
.trk-notice p { font-size: 12.5px; line-height: 1.75; color: var(--slate); }
.trk-notice--soft {
  border-color: var(--line);
  background: var(--mist);
}
.trk-notice--soft b { color: var(--ink); }

.trk-err {
  margin-top: 16px;
  padding: 11px 14px;
  border-left: 2px solid var(--red);
  background: rgba(216, 36, 24, .06);
  border-radius: 3px;
  font-size: 12.5px;
  color: #8a2b1e;
}

/* 覆盖范围 */
.cov-block { }
.cov-title {
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cov-title span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: .06em;
}
.cov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.cov-item {
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}
.cov-item b { font-size: 13px; color: var(--ink); font-weight: 600; }
.cov-item span { font-size: 11.5px; color: var(--slate); line-height: 1.5; }

/* ==========================================================================
   装载估算
   ========================================================================== */
.pack-form { }
.pf-block { margin-bottom: 16px; }
.pf-k {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.pf-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-row3 label,
.pf-row2 label {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  color: var(--slate);
}
.pack-form input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
}
.pack-form input[type="number"]:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 84, 156, .08);
}

.pf-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pf-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate);
  cursor: pointer;
  transition: .16s var(--ease);
}
.pf-checks label:hover { border-color: var(--brand); }
.pf-checks input { accent-color: var(--brand); width: 14px; height: 14px; }
.pf-checks label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(0, 84, 156, .05);
  color: var(--brand);
  font-weight: 500;
}

.pack-out { display: grid; gap: 18px; }
.pack-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 14px 18px;
  background: var(--mist);
  border-radius: 5px;
  border: 1px solid var(--line-soft);
}
.ps-k { font-size: 12px; color: var(--slate); }
.pack-summary b {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  margin-right: 6px;
}
.ps-dot { color: var(--line); }

.pack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.pack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 18px 16px;
}
.pack-card.is-best {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(0, 84, 156, .12);
}
.pack-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.pack-card header b {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: .04em;
}
.pack-card header span { font-size: 11.5px; color: var(--slate); }
.pack-card header em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
  padding: 2px 7px;
  border-radius: 3px;
}
.pc-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 14px 0 12px;
}
.pc-main b {
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pc-main span { font-size: 12px; color: var(--slate); }

.pc-facts {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0 0 12px;
  font-size: 12.5px;
}
.pc-facts dt { color: var(--slate); font-size: 12px; }
.pc-facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-facts dd b { font-family: var(--mono); }

.pc-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line-soft);
  overflow: hidden;
}
.pc-bar span { display: block; height: 100%; background: var(--brand); border-radius: 2px; }

.pc-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--slate);
}
.pc-note b { color: var(--ink); }

.pc-empty { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--slate); }
.pack-card.is-full { border-style: dashed; }

.pack-foot { font-size: 12px; line-height: 1.8; color: var(--slate); }
.pack-foot p + p { margin-top: 4px; }

/* ==========================================================================
   工具中心
   ========================================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.tg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(6, 43, 78, .05), 0 18px 40px rgba(6, 43, 78, .1);
  border-color: rgba(0, 84, 156, .25);
}
.tg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.tg-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--brand);
}
.tg-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.tg-badges .chip { font-size: 10.5px; padding: 2px 7px; }
.tg-card h2 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.tg-lead { font-size: 13.5px; line-height: 1.7; color: var(--ink); margin-bottom: 10px; }
.tg-summary { font-size: 13px; line-height: 1.8; color: var(--slate); margin-bottom: 16px; }
.tg-card .dot-list { margin-bottom: 16px; }
.tg-card .dot-list li { font-size: 12.5px; }
.tg-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--slate);
}
.tg-cta { margin-top: 16px; align-self: flex-start; }

/* ==========================================================================
   表单控件统一（报价值 / 运费 / 装载 三个表单）
   ========================================================================== */
.tool-card input[type="number"],
.tool-card input[type="search"],
.tool-card select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  transition: border-color .16s var(--ease);
}
.tool-card input[type="number"]:focus,
.tool-card input[type="search"]:focus,
.tool-card select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 84, 156, .08); }
.tool-card select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }

/* ==========================================================================
   HS 编码速查
   ========================================================================== */
.hs-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hs-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--mist);
}
.hs-input { position: relative; flex: 1; min-width: 0; display: block; }
.hs-input svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.hs-input input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.hs-input input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 84, 156, .08); }
.hs-count { font-family: var(--mono); font-size: 12px; color: var(--slate); white-space: nowrap; }

.hs-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.hs-chips::-webkit-scrollbar { height: 4px; }
.hs-chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.hs-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  color: var(--slate);
  cursor: pointer;
  white-space: nowrap;
  transition: .16s var(--ease);
}
.hs-chip span { font-family: var(--mono); font-size: 10.5px; opacity: .6; }
.hs-chip:hover { border-color: var(--brand); color: var(--brand); }
.hs-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.hs-chip.is-on span { opacity: .8; }

.hs-list { max-height: 640px; overflow-y: auto; }
.hs-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: start;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.hs-item:last-child { border-bottom: 0; }
.hs-item:hover { background: #fafcfe; }

.hs-code { display: grid; gap: 6px; }
.hs-code b {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--brand);
  font-weight: 600;
}
.hs-copy {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-size: 10.5px;
  color: var(--slate);
  cursor: pointer;
  transition: .16s var(--ease);
}
.hs-copy:hover { border-color: var(--brand); color: var(--brand); }
.hs-copy.is-done { border-color: #1f8a55; color: #1f8a55; background: rgba(31, 138, 85, .06); }

.hs-body h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; line-height: 1.5; }
.hs-en { font-size: 11.5px; color: var(--slate); line-height: 1.6; margin: 0 0 6px; }
.hs-tip {
  font-size: 11.5px;
  line-height: 1.7;
  color: #8a6d3b;
  background: rgba(245, 233, 205, .5);
  border-left: 2px solid #d9b25e;
  padding: 5px 8px;
  border-radius: 0 3px 3px 0;
}
.hs-ch {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--slate);
  text-align: right;
  padding-top: 2px;
  opacity: .7;
}
.hs-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.8;
}

.hs-steps { display: grid; gap: 14px; counter-reset: hs; }
.hs-steps li { position: relative; padding-left: 26px; counter-increment: hs; }
.hs-steps li::before {
  content: counter(hs);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 84, 156, .08);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 18px;
  text-align: center;
}
.hs-steps b { display: block; font-size: 13px; margin-bottom: 3px; }
.hs-steps span { font-size: 11.5px; line-height: 1.7; color: var(--slate); }

.hs-links { display: grid; gap: 8px; }
.hs-links a {
  display: block;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: .16s var(--ease);
}
.hs-links a:hover { border-color: var(--brand); }
.hs-links b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }
.hs-links span { font-size: 10.5px; color: var(--slate); line-height: 1.5; display: block; }

/* ==========================================================================
   报价换算
   ========================================================================== */
.quote-out { display: grid; gap: 18px; }

.q-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  font-size: 12px;
  color: var(--slate);
}
.q-top b { font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin-left: 4px; }

.qprice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qprice {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.qprice.is-mid { background: #fbfdff; }
.qprice.is-best {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(0, 84, 156, .1);
}
.qprice.is-best::after {
  content: "常用报价";
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 3px 8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  border-radius: 0 var(--radius) 0 6px;
  letter-spacing: .04em;
}
.qp-k { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--slate); margin-bottom: 10px; }
.qprice b { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--brand-deep); letter-spacing: -.02em; }
.qprice em { font-style: normal; font-size: 12px; color: var(--slate); margin-left: 4px; }
.qprice p { font-size: 11.5px; line-height: 1.7; color: var(--slate); margin: 10px 0 8px; }
.qp-sub { font-family: var(--mono); font-size: 11px; color: var(--ink); padding-top: 8px; border-top: 1px dashed var(--line-soft); }

.q-h {
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.qbar, .q-price-bar {
  display: flex;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line-soft);
}
.qbar span, .q-price-bar span { display: block; height: 100%; }
.qlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.qlegend li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--slate); }
.qlegend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.qlegend b { font-family: var(--mono); font-size: 11.5px; color: var(--ink); font-weight: 500; }

.qs1, .fs1 { background: #00549c; }
.qs2, .fs2 { background: #4b83b5; }
.qs3, .fs3 { background: #8fb0cc; }
.qs4, .fs4 { background: #d82418; }
.fs5 { background: #c3ced9; }

.q-ladder td, .fr-table td { font-family: var(--mono); font-size: 12.5px; }
.q-ladder td:first-child, .fr-table td:first-child { font-family: var(--sans); }
.q-ladder tr.is-neg td { color: var(--red); }
.q-ladder tr.is-sum td { font-weight: 600; background: rgba(0, 84, 156, .035); }
.q-ladder tr.is-total td { font-weight: 700; background: rgba(0, 84, 156, .08); color: var(--brand-deep); }
.q-hint { display: block; font-size: 10.5px; color: var(--slate); font-family: var(--sans); margin-top: 2px; }

.q-note {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--slate);
  padding: 12px 14px;
  background: var(--mist);
  border-radius: 4px;
  margin: 0;
}
.q-note b { color: var(--ink); font-family: var(--mono); }

.qrev {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fbfdff;
}
.qrev h4 { font-size: 13px; margin: 0 0 10px; }
.qrev-lead { font-size: 13px; line-height: 1.8; color: var(--slate); margin-bottom: 12px; }
.qrev-lead b { color: var(--ink); }
.qrev-lead .mono { color: var(--brand-deep); font-size: 15px; }
.qrev-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 12px; margin: 0 0 12px; }
.qrev-facts dt { color: var(--slate); }
.qrev-facts dd { font-family: var(--mono); color: var(--ink); margin: 0; }
.qrev-facts .is-ok { color: #1f8a55; }
.qrev-facts .is-bad { color: var(--red); }
.qrev-note { font-size: 12px; line-height: 1.8; color: var(--slate); margin: 0; }
.qrev-bad { font-size: 12.5px; color: var(--red); line-height: 1.8; margin: 0; }

/* ==========================================================================
   运费估算
   ========================================================================== */
.fr-out { display: grid; gap: 16px; }

.fr-warn {
  font-size: 11.5px;
  line-height: 1.75;
  color: #8a6d3b;
  background: #fdf8ec;
  border: 1px solid #ecd9a8;
  border-radius: 4px;
  padding: 10px 13px;
  margin: 0;
}
.fr-warn b { color: #6f5520; }

.fr-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.fr-head b { display: block; font-size: 15px; margin-bottom: 3px; }
.fr-head span { font-size: 12px; color: var(--slate); }
.fr-head em { font-style: normal; font-size: 11.5px; color: var(--slate); font-family: var(--mono); white-space: nowrap; }

.fr-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fr-total span { font-size: 12px; color: var(--slate); }
.fr-total b { font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--brand-deep); letter-spacing: -.02em; }
.fr-total em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--slate); }

.fr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.fr-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.fr-stat span { display: block; font-size: 11px; color: var(--slate); margin-bottom: 5px; }
.fr-stat b { display: block; font-family: var(--mono); font-size: 17px; color: var(--ink); }
.fr-stat em { font-style: normal; display: block; font-size: 10.5px; color: var(--slate); margin-top: 3px; }

.fr-cmp tr.is-best td { background: rgba(0, 84, 156, .05); }
.fr-cmp tr.is-best td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.fr-cmp .chip { font-size: 9.5px; padding: 1px 6px; margin-left: 4px; }

/* ==========================================================================
   装载估算 · 多箱型与打托
   ========================================================================== */
.pi-list { display: grid; gap: 14px; margin-bottom: 12px; }
.pi-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fcfdfe;
}
.pi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.pi-head b { font-size: 11.5px; font-family: var(--mono); letter-spacing: .06em; color: var(--brand); }
.pi-del {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-size: 10.5px;
  color: var(--slate);
  cursor: pointer;
}
.pi-del:hover { border-color: var(--red); color: var(--red); }
.pi-add { width: 100%; justify-content: center; }

.pack-pallet {
  font-size: 11.5px;
  color: var(--slate);
  padding: 10px 14px;
  background: var(--mist);
  border-radius: 4px;
  line-height: 1.7;
}
.pack-pallet b { color: var(--ink); }
.pack-pallet .pp-note {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--slate);
  opacity: .75;
}
.pack-pallet-list {
  display: grid;
  gap: 5px;
  font-size: 11.5px;
  color: var(--slate);
  padding-left: 0;
}
.pack-pallet-list li { padding-left: 14px; position: relative; line-height: 1.7; }
.pack-pallet-list li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); }
.pack-pallet-list b { color: var(--ink); font-family: var(--mono); }
.pack-pallet-list em { font-style: normal; color: var(--red); }

.pc-detail { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.pc-detail h5 { font-size: 11px; font-family: var(--mono); letter-spacing: .06em; color: var(--slate); margin-bottom: 7px; }
.pc-detail ul { display: grid; gap: 4px; }
.pc-detail li { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; line-height: 1.6; }
.pc-detail li span { color: var(--slate); min-width: 0; }
.pc-detail li i { font-style: normal; opacity: .65; font-size: 10.5px; }
.pc-detail li b { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.pc-sub { font-size: 10.5px; color: var(--slate); margin-top: 6px; }
.pc-stack { color: var(--slate); opacity: .85; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .tool-shell,
  .tool-shell--side-first,
  .trk-shell { grid-template-columns: 1fr; }
  .tool-side { position: static; }
  .tool-grid { grid-template-columns: 1fr; }
  .pack-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .hs-list { max-height: none; }
}

@media (max-width: 720px) {
  .tool-bar { align-items: stretch; }
  .tool-bar-actions { width: 100%; }
  .tool-bar-actions .btn { flex: 1; }
  .q-item { grid-template-columns: 44px minmax(0, 1fr) 54px; gap: 10px; }
  .q-thumb { width: 44px; height: 44px; }
  .q-act { grid-column: 2 / -1; justify-content: flex-start; margin-top: 2px; }
  .q-diff { text-align: right; }
  .trk-input { flex-direction: column; }
  .trk-input .btn { padding: 13px; }
  .trk-r-head { flex-direction: column; align-items: flex-start; }
  .trk-facts { grid-template-columns: 82px minmax(0, 1fr); }
  .trk-links-grid { grid-template-columns: 1fr; }
  .pack-cards { grid-template-columns: 1fr; }
  .pf-row3 { grid-template-columns: 1fr 1fr 1fr; }
  .pc-main b { font-size: 26px; }
  .dropzone { min-height: 200px; padding: 28px 18px; }

  /* 新工具 */
  .hs-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .hs-count { text-align: right; }
  .hs-chips { padding: 12px 16px; }
  .hs-item { grid-template-columns: 96px minmax(0, 1fr); padding: 14px 16px; }
  .hs-ch { display: none; }
  .qprice-grid { grid-template-columns: 1fr; }
  .qprice b { font-size: 26px; }
  .fr-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fr-total b { font-size: 28px; }
  .fr-grid { grid-template-columns: 1fr 1fr; }
  .qrev-facts { grid-template-columns: 92px minmax(0, 1fr); }
  .q-ladder td:nth-child(4),
  .fr-table td:nth-child(4) { display: none; }
}

@media (max-width: 460px) {
  .pf-checks { grid-template-columns: 1fr; }
  .pf-row3 { grid-template-columns: 1fr; }
  .pf-row2 { grid-template-columns: 1fr; }
  .hs-item { grid-template-columns: minmax(0, 1fr); }
  .hs-code { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
  .fr-grid { grid-template-columns: 1fr; }
  .q-top { gap: 6px 12px; font-size: 11.5px; }
}
