/* Compact two-column controls for the site's mobile query and booking pages. */
@media (max-width:700px) {
  .airport-panel.tax-panel{margin-left:0;margin-right:0;padding:18px}
  .n-form,
  .rq-form,
  #pane-order > .booking-grid,
  .tax-route-fields,
  .tax-step .estimate-grid,
  .tax-budget-input .estimate-grid,
  #pane-remote .row,
  #pane-time .home-time-search,
  .time-search,
  .airport-panel form.form {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }

  .n-form > div,
  .rq-form > .field,
  #pane-order > .booking-grid > .field,
  .tax-route-fields > label,
  .tax-step .estimate-grid > label,
  .airport-panel form.form > * {
    min-width:0!important;
    max-width:100%;
    box-sizing:border-box;
  }

  #pane-remote .row > .field,
  #pane-time .home-time-search > .field{min-width:0!important;width:100%;box-sizing:border-box}
  #pane-remote .row input,#pane-remote .row select,
  #pane-time .home-time-search input,#pane-time .home-time-search select{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
  #pane-remote .row > .go,#pane-time .home-time-reset{grid-column:1 / -1;width:100%}
  .time-search > label{grid-column:auto!important;min-width:0}
  .time-search input,.time-search select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
  .time-search > button{grid-column:1 / -1;width:100%}

  .n-form input,.n-form select,
  .rq-form input,.rq-form select,
  #pane-order .booking-grid input,#pane-order .booking-grid select,
  .tax-route-fields input,.tax-route-fields select,
  .tax-step .estimate-grid input,.tax-step .estimate-grid select,
  .airport-panel form.form input,.airport-panel form.form select {
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  .n-form .n-wide,.rq-form .rq-wide{grid-column:auto!important}
  #pane-order > .booking-grid > .field{grid-column:auto!important}
  #pane-order > .booking-grid > .booking-address,
  #pane-order > .booking-grid > .booking-remark,
  #pane-order > .booking-grid > .booking-recognize,
  #pane-order > .booking-grid > .go{grid-column:1 / -1!important}
  #pane-order > .booking-grid textarea{width:100%;min-width:0;box-sizing:border-box}

  .tax-route-fields > label:has(#productName){white-space:normal!important}
  .tax-budget-layout,.tax-budget-input,.tax-budget-result{min-width:0!important}
  .tax-budget-input .estimate-grid > label{min-width:0!important;overflow:visible}
  .tax-budget-input .estimate-grid input[type=number]{appearance:textfield;-moz-appearance:textfield}
  .tax-budget-input .estimate-grid input[type=number]::-webkit-inner-spin-button,
  .tax-budget-input .estimate-grid input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
  .tax-budget-input .estimate-grid > .tax-inline-submit{grid-column:1 / -1;width:100%;min-width:0}

  .airport-panel form.form > button{grid-column:1 / -1;width:100%!important}
  .airport-panel form.form > datalist{display:none}
  .airport-panel form.form > label{width:100%!important;max-width:none!important}
}

/* Booking only: keep compact fields paired, with the important long fields full width. */
@media (max-width:700px) {
  #pane-order > .booking-grid {
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    align-items:start!important;
    gap:10px!important;      /* 12→10：11 道间隙共让出 22px 给内容 */
  }
  /* 行1 地址自动识别（整行，置顶）  行2 姓名|电话  行3 微信|寄送物品
     其后 取件地址/寄件类型/备注/提交 各占整行。
     微信 6→5、寄送物品 6→7：把一列宽度让给寄送物品，好放下它那句较长的提示文字。 */
  #pane-order > .booking-grid > .booking-name {order:1;grid-column:span 6!important}
  #pane-order > .booking-grid > .booking-phone {order:2;grid-column:span 6!important}
  #pane-order > .booking-grid > .booking-wechat {order:3;grid-column:span 5!important}
  #pane-order > .booking-grid > .booking-goods {order:4;grid-column:span 7!important}
  #pane-order > .booking-grid > .booking-recognize {order:0;grid-column:1 / -1!important}
  #pane-order > .booking-grid > .booking-address {order:6;grid-column:1 / -1!important}
  #pane-order > .booking-grid > .booking-type {order:7;grid-column:1 / -1!important}
  #pane-order > .booking-grid > .booking-remark {order:8;grid-column:1 / -1!important}
  #pane-order > .booking-grid > .go {order:9;grid-column:1 / -1!important}
  /* 高度与姓名输入框一致（.field input{height:50px}）。
     提示文字 22 个全角字：≥390px 排 1 行；320–375px 折 2 行，
     2 × 13px × 1.25 + 上下 7px = 46.5px，仍在 50px 内，所以任何常见机型都能显示完整。
     聚焦时放大到 140px，方便粘贴多行地址后看全。 */
  #pane-order > .booking-grid #booking-recognize {
    min-height:50px;
    height:50px;
    padding:7px 12px;
    line-height:1.25;
    font-size:.8125rem;
    overflow-wrap:anywhere;
  }
  #pane-order > .booking-grid #booking-recognize:focus {height:140px}
  #pane-order > .booking-grid .booking-wechat label {white-space:nowrap;font-size:.75rem}
  /* 微信让出一列后变窄，只把“提示文字”缩到 10px，用户输入的内容仍是 13px。 */
  #pane-order > .booking-grid .booking-wechat input {font-size:.8125rem;padding-left:6px;padding-right:6px}
  #pane-order > .booking-grid .booking-wechat input::placeholder {font-size:.625rem;letter-spacing:-0.2px}
  /* 寄送物品：输入内容保持 13px 可读，只把提示文字缩到 9px 才放得下
     「如 衣服、文件、液体、粉末、食品」（15 个全角字 + 1 空格）。 */
  #pane-order > .booking-grid #booking-goods {font-size:.8125rem;padding-left:6px;padding-right:6px}
  #pane-order > .booking-grid #booking-goods::placeholder {font-size:.5625rem;letter-spacing:-0.2px}
  /* 寄件类型：整行宽度下 13px 足够显示完「国际快递 (DHL/FedEx/UPS)」，
     右内边距从 28px 收到 24px，再留一点余量给下拉箭头。 */
  #pane-order > .booking-grid #booking-shippingType {font-size:.8125rem;padding-left:12px;padding-right:24px;text-overflow:ellipsis}
  #pane-order > .booking-grid > .booking-goods label{white-space:nowrap;font-size:.75rem}
}


/* ───────────────────────────────────────────────────────────────────────────
   工具页表单：手机上把框内文字尽量显示完整（布局不变，只缩字号）

   · <select> 关着时显示的是“已选中的那一项”，是用户要读的数据 → 缩控件本身字号
   · <input> 的 placeholder 只是提示，上方 label 已说明用途 → 只缩 placeholder，
     用户真正输入的内容仍保持 13px 可读

   字号下限 10px。按 360px 视口实测推算：内容宽 = 视口 − 76（.wrap 20×2 + 面板 18×2），
   两列栅格间隙 12px，input 左右内边距各 14px，select 另留 24px 给下拉箭头；
   文字宽度按全角 1em、半角 0.55em 估算。
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width:700px) {
  /* select：缩控件本身 */
  #clearance,
  #postalCategory,
  #qDirection,
  #qKind,
  #rCourier,
  #tariffCoverage {font-size:10px!important}
  #qUS {font-size:11.5px!important}
  #dutyBasis {font-size:12.2px!important}

  /* input：只缩提示文字 */
  #airCargoSearch::placeholder,
  #country::placeholder,
  #dangerSearch::placeholder,
  #duty::placeholder,
  #homeTimeSearch::placeholder,
  #keyword::placeholder,
  #midAddress::placeholder,
  #midCheck::placeholder,
  #midName::placeholder,
  #nKeyword::placeholder,
  #oceanCargoSearch::placeholder,
  #origin::placeholder,
  #portCountry::placeholder,
  #portSearch::placeholder,
  #productName::placeholder,
  #qCountry::placeholder,
  #rCountryInput::placeholder,
  #regSearch::placeholder,
  #rmbAmount::placeholder,
  #search::placeholder,
  #tariffSearch::placeholder,
  #toolSearch::placeholder {font-size:10px}
  #countrySearch::placeholder,
  #nCountry::placeholder {font-size:10.1px}
  #trackingMobile::placeholder {font-size:10.4px}
  #nCity::placeholder {font-size:10.8px}
  #tn::placeholder {font-size:11.7px}
  /* 压到 10.5px 及以下时收一点字距，再挤出一两个字 */
  #airCargoSearch::placeholder,
  #country::placeholder,
  #countrySearch::placeholder,
  #dangerSearch::placeholder,
  #duty::placeholder,
  #homeTimeSearch::placeholder,
  #keyword::placeholder,
  #midAddress::placeholder,
  #midCheck::placeholder,
  #midName::placeholder,
  #nCountry::placeholder,
  #nKeyword::placeholder,
  #oceanCargoSearch::placeholder,
  #origin::placeholder,
  #portCountry::placeholder,
  #portSearch::placeholder,
  #productName::placeholder,
  #qCountry::placeholder,
  #rCountryInput::placeholder,
  #regSearch::placeholder,
  #rmbAmount::placeholder,
  #search::placeholder,
  #tariffSearch::placeholder,
  #toolSearch::placeholder,
  #trackingMobile::placeholder {letter-spacing:-0.2px}
}

/* ─────────────────────────────────────────────────────────────
   2026-11-16 用户指定：手机端以下字段各自独占一行，其余布局不动。
   桌面端完全不受影响（仅 ≤700px 生效）。
   · 网点查询：快递公司 #nCarrier、国家/地区 #nCountry
   · 运费估价：运输方向 #qDirection、目的地国家/地区 #qCountry
   · 偏远查询（首页）：快递公司 #homeRemoteCarrier（目的地国家已是整行）
   · 税费估算：寄递方向 #direction、目的国家/地区 #countrySearch
   · 快递时效（首页）：目的国家/地区 #homeTimeSearch（全站目的地国家统一整行）
   2026-11-16 b 补充：
   · 税费估算：起运国家 #origin、产品名字/海关编码 #productName 也整行（4 字段全整行）
   · 首页海关编码面板：手机端隐藏「本站工具」区块（桌面端保留）
   ───────────────────────────────────────────────────────────── */
@media (max-width:700px) {
  .n-form > div:has(> #nCarrier),
  .n-form > div:has(#nCountry),
  .rq-form > .field:has(> #qDirection),
  .rq-form > .field:has(> #qCountry),
  .tax-route-fields > label:has(> #direction),
  .tax-route-fields > label:has(> #countrySearch),
  .tax-route-fields > label:has(> #origin),
  .tax-route-fields > label:has(> #productName),
  #homeRemoteV2 .hr-fields > label:has(> #homeRemoteCarrier),
  .home-time-search > .field:has(> #homeTimeSearch) {
    grid-column: 1 / -1 !important;
  }
  #pane-hs .hs-local-tools { display: none; }
}
