/* ============================================================
   环润客人端 · 手机版换皮（老系统小程序风）
   浅蓝渐变底 / 白色圆角卡片 / 蓝色主按钮 / 底部固定四导航
   本文件全部规则只在 ≤767px 生效（另有 ≥768 的隐藏兜底），
   不改动 app.css 的对齐成果，不影响桌面版与管理员端。
   ============================================================ */

/* 客人端锁定浅色：阻止 iOS 深色模式把页面染黑染灰 */
:root { color-scheme: light; }

/* 桌面兜底：手机专属结构永不显示 */
@media (min-width: 768px) {
  .mp-tabbar { display: none !important; }
  .mp-only-d { display: none !important; }
  #paneHub { display: none !important; }
  .mp-back { display: none !important; }
  .mp-home-sec { display: none !important; }
  .mp-wh-modal { display: none !important; }
}

@media (max-width: 767px) {

  /* ---------- 底部四导航 ---------- */
  .mp-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid #e3ecf5;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px rgba(30, 80, 160, .06);
  }
  .mp-tabbar a {
    flex: 1; min-height: 58px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    font-size: 12px; font-weight: 500; color: #5b6b7c; text-decoration: none;
    padding: 6px 2px 4px;
  }
  .mp-tabbar a svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mp-tabbar a.active { color: #2273e6; font-weight: 700; }

  /* 小润客服浮钮/窗口避开底部导航 */
  body.mp .xr-fab { bottom: 78px !important; }
  body.mp .xr-win { bottom: 148px !important; }

  /* ============================================================
     首页 home.html（body.mp-home）
     ============================================================ */
  body.mp-home { background: linear-gradient(180deg, #b9dcf7 0, #dceefc 300px, #eef4fa 620px); background-attachment: fixed; }
  body.mp-home .topbar, body.mp-home .mainnav { display: none; }
  body.mp-home main { padding: 14px 0 30px; }
  body.mp-home footer.site-footer { padding-bottom: 84px; }
  /* 手机版首页只呈现小程序式区块，其余首页区块（桌面/旧手机版）隐藏 */
  body.mp-home #homeView > section:not(.mp-home-sec) { display: none !important; }

  .mp-home-sec { padding: 2px 2px 0; }
  /* 顶部浅蓝区：左 登录状态+创建运单，右 两张小卡 */
  .mp-hero { display: flex; gap: 12px; align-items: stretch; }
  .mp-hero-l { flex: 0 0 34%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 0 8px 6px; }
  .mp-login-state { font-size: 15px; color: #33506e; line-height: 1.55; font-weight: 600; }
  .mp-login-state a { color: #2273e6; font-weight: 700; }
  .mp-login-state .mp-bal { color: #2273e6; font-weight: 800; }
  .mp-create-btn {
    display: inline-block; align-self: flex-start; background: linear-gradient(90deg, #57b6f2, #2273e6);
    color: #fff !important; font-size: 15px; font-weight: 700; border-radius: 999px;
    padding: 10px 22px; text-decoration: none; box-shadow: 0 4px 12px rgba(34, 115, 230, .35);
  }
  .mp-hero-r { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .mp-mini-card {
    display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
    background: #fff; border: none; border-radius: 16px; padding: 16px 14px; cursor: pointer;
    box-shadow: 0 2px 10px rgba(30, 80, 160, .07); font-family: inherit;
  }
  .mp-mini-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
  .mp-mini-ic svg { width: 27px; height: 27px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mp-mini-ic.blue { background: #e3efff; } .mp-mini-ic.blue svg { stroke: #2273e6; }
  .mp-mini-ic.orange { background: #ffefe0; } .mp-mini-ic.orange svg { stroke: #f06500; }
  .mp-mini-tx { min-width: 0; }
  .mp-mini-t { display: block; font-size: 17px; font-weight: 800; color: #1c1c1e; }
  .mp-mini-t i { font-style: normal; color: #8a97a5; font-weight: 400; margin-left: 2px; }
  .mp-mini-s { display: block; font-size: 13px; color: #5b6b7c; margin-top: 3px; }

  /* 状态快捷一排 */
  .mp-status-card { display: flex; background: #fff; border-radius: 16px; margin-top: 14px; padding: 16px 4px 12px; box-shadow: 0 2px 10px rgba(30, 80, 160, .07); }
  .mp-status-card a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: #333; font-size: 13px; position: relative; padding: 0 2px; text-align: center; }
  .mp-status-ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
  .mp-status-ic svg { width: 28px; height: 28px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mp-status-ic.o { background: #fff1e6; } .mp-status-ic.o svg { stroke: #f06500; }
  .mp-status-ic.b { background: #e3efff; } .mp-status-ic.b svg { stroke: #2273e6; }
  .mp-status-ic.c { background: #e0f7f4; } .mp-status-ic.c svg { stroke: #0aa08a; }
  .mp-status-ic.g { background: #e6f7ec; } .mp-status-ic.g svg { stroke: #12a150; }
  .mp-cnt { position: absolute; top: -5px; right: calc(50% - 34px); min-width: 19px; height: 19px; border-radius: 999px; background: #f04438; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; padding: 0 5px; display: none; }

  /* 公告卡 */
  .mp-notice-card { background: #fff; border-radius: 16px; margin-top: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(30, 80, 160, .07); }
  .mp-notice-h { font-size: 16px; font-weight: 800; color: #1c1c1e; display: flex; align-items: center; gap: 8px; }
  .mp-notice-h svg { width: 22px; height: 22px; fill: none; stroke: #2273e6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mp-notice-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #4b5563; white-space: pre-wrap; }

  /* 功能格子 */
  .mp-func-card { background: #fff; border-radius: 16px; margin-top: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(30, 80, 160, .07); }
  .mp-func-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: #1c1c1e; }
  .mp-func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mp-func-grid a, .mp-func-grid button {
    display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 4px 13px;
    background: #eef5fd; border: none; border-radius: 14px; font-size: 14px; font-weight: 600;
    color: #1c1c1e; text-decoration: none; cursor: pointer; font-family: inherit;
  }
  .mp-func-grid svg { width: 30px; height: 30px; fill: none; stroke: #2273e6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mp-func-grid img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

  /* 仓库信息弹层 */
  .mp-wh-modal { position: fixed; inset: 0; z-index: 130; background: rgba(15, 35, 60, .5); display: none; align-items: flex-end; justify-content: center; }
  .mp-wh-modal.open { display: flex; }
  .mp-wh-box { background: #fff; color: #1f2d3d; width: 100%; max-height: 78dvh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .mp-wh-box h3 { margin: 0 0 4px; font-size: 17px; }
  .mp-wh-hq { background: #eef5fd; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
  .mp-wh-hq .n { font-weight: 800; font-size: 15px; color: #1f2d3d; }
  .mp-wh-item { padding: 10px 2px; border-bottom: 1px solid #f0f4f8; font-size: 14px; }
  .mp-wh-item .n { font-weight: 700; color: #1f2d3d; }
  .mp-wh-item .d, .mp-wh-hq .d { color: #5b6b7c; font-size: 13px; line-height: 1.6; margin-top: 2px; }
  .mp-wh-close { width: 100%; margin-top: 14px; background: #2273e6; color: #fff; border: none; border-radius: 999px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; }

  /* ---------- 运单查询（home 查单视图） ---------- */
  .mp-track-tabs { display: flex; gap: 26px; padding: 2px 4px 12px; }
  .mp-track-tabs span { font-size: 16px; font-weight: 700; color: #1c1c1e; padding-bottom: 6px; }
  .mp-track-tabs span.on { color: #2273e6; border-bottom: 3px solid #2273e6; border-radius: 2px; }
  body.mp-home .track-view h2 { display: none; }
  body.mp-home .back-btn { border: none; background: none; color: #2273e6; font-size: 15px; font-weight: 600; padding: 4px 2px; margin-bottom: 6px; }
  body.mp-home .track-card { border: none; border-radius: 18px; box-shadow: 0 2px 12px rgba(30, 80, 160, .08); padding: 18px 16px; }
  body.mp-home .track-form { flex-direction: column; gap: 10px; }
  body.mp-home .track-form input.code, body.mp-home .track-form input.p4 {
    flex: none; width: 100%; border: none; background: #eef4fb; border-radius: 999px; padding: 14px 20px; font-size: 16px;
  }
  body.mp-home .track-form button { background: #2273e6; border-radius: 999px; padding: 14px; font-size: 16px; }
  body.mp-home .track-found { border: none; border-radius: 18px; box-shadow: 0 2px 12px rgba(30, 80, 160, .08); padding: 18px 16px; }
  body.mp-home .track-empty { border: none; border-radius: 18px; box-shadow: 0 2px 12px rgba(30, 80, 160, .08); }
  body.mp-home .progress .dot.done { background: #2273e6; border-color: #2273e6; }
  body.mp-home .progress .dot.active { border-color: #2273e6; color: #2273e6; }
  body.mp-home .progress .bar.done { background: #2273e6; }
  body.mp-home .track-tl li:first-child .tdot { background: #2273e6; }

  /* ============================================================
     会员中心 member.html（body.mp-member）
     ============================================================ */
  body.mp-member { background: linear-gradient(180deg, #c3e0f8 0, #e2effc 260px, #eef4fa 560px); background-attachment: fixed; }
  body.mp-member .pub-head, body.mp-member .mnav { display: none; }
  body.mp-member .main { padding: 14px 12px 96px; }
  body.mp-member .pub-foot { padding-bottom: 84px; }
  body.mp-member .btn-acc { background: #2273e6; }
  body.mp-member .btn-acc:hover { background: #1a5fc4; }

  /* 登录/注册卡 */
  body.mp-member .auth-wrap { border: none; border-radius: 20px; box-shadow: 0 8px 30px rgba(30, 80, 160, .12); margin-top: 20px; }

  /* 「我的」主页（hub） */
  .mp-back { display: flex; align-items: center; gap: 2px; background: none; border: none; font-size: 16px; font-weight: 700; color: #1c1c1e; padding: 2px 0 12px; cursor: pointer; font-family: inherit; }
  .mp-profile { display: flex; align-items: center; gap: 14px; padding: 14px 4px 18px; }
  .mp-avatar { width: 62px; height: 62px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #57b6f2, #2273e6); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(34, 115, 230, .35); }
  .mp-avatar svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mp-profile .mp-pcode { font-size: 15px; color: #33506e; font-weight: 600; }
  .mp-profile .mp-pbal { font-size: 15px; color: #33506e; margin-top: 3px; }
  .mp-profile .mp-pbal b { color: #2273e6; font-size: 17px; }
  .mp-menu-card { background: #fff; border-radius: 16px; padding: 4px 16px; box-shadow: 0 2px 10px rgba(30, 80, 160, .07); margin-bottom: 14px; }
  .mp-menu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid #f0f4f8; background: none; font-size: 15px; font-weight: 600; color: #1c1c1e; cursor: pointer; text-align: left; font-family: inherit; }
  .mp-menu-row:last-child { border-bottom: none; }
  .mp-menu-row .chev { margin-left: auto; color: #8a97a5; font-size: 18px; font-weight: 400; }
  .mp-menu-row svg { width: 22px; height: 22px; fill: none; stroke: #2273e6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .mp-logout-btn { display: block; width: 100%; background: #dc2626; color: #fff; border: none; border-radius: 16px; padding: 15px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(220, 38, 38, .28); font-family: inherit; }
  .mp-logout-btn:hover { background: #b91c1c; }

  /* 各功能页卡片化 */
  body.mp-member .sec { border: none; border-radius: 16px; box-shadow: 0 2px 10px rgba(30, 80, 160, .06); }
  body.mp-member .wb-card { border: none; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); }
  body.mp-member .recip-card { border: none; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); }
  body.mp-member .wallet-card { background: linear-gradient(135deg, #2f83f0, #1c5fd0); border-radius: 16px; }
  body.mp-member .wb-side button { border: none; box-shadow: 0 1px 5px rgba(30, 80, 160, .08); border-radius: 999px; }
  body.mp-member .wb-side button.active { background: #2273e6; border-color: #2273e6; }
  body.mp-member .wb-pager .pg.active { background: #2273e6; border-color: #2273e6; }

  /* ---------- 创建运单（下单区卡片式） ---------- */
  .mp-wbno-card { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(30, 80, 160, .06); font-size: 15px; font-weight: 600; }
  .mp-wbno-card .v { color: #374151; font-weight: 500; font-family: ui-monospace, Menlo, monospace; }
  body.mp-member #paneOrder .sec { padding: 6px 16px 12px; }
  body.mp-member #paneOrder .sec h3 { font-size: 16px; margin: 12px 0 6px; display: flex; align-items: center; }
  /* orderFormWrap 子元素顺序：1 运单号卡（手机）/ 2 编辑横幅 / 3 发件人 sec / 4 收件人 sec */
  body.mp-member #orderFormWrap > .sec:nth-of-type(3) h3::before,
  body.mp-member #orderFormWrap > .sec:nth-of-type(4) h3::before {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 27px; height: 27px; border-radius: 50%; background: #2273e6; color: #fff;
    font-size: 14px; font-weight: 700; margin-right: 9px;
  }
  body.mp-member #orderFormWrap > .sec:nth-of-type(3) h3::before { content: "发"; }
  body.mp-member #orderFormWrap > .sec:nth-of-type(4) h3::before { content: "收"; }
  /* 行式表单：标签在左、输入在右（复杂控件除外） */
  body.mp-member #paneOrder .sec label.f { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; border-bottom: 1px solid #f0f4f8; padding: 10px 0; margin: 0; }
  body.mp-member #paneOrder .sec label.f .lab { margin: 0; width: 92px; flex: none; font-size: 14px; font-weight: 500; color: #374151; }
  body.mp-member #paneOrder .sec label.f > input,
  body.mp-member #paneOrder .sec label.f > select { flex: 1; min-width: 0; border: none; background: transparent; padding: 5px 0; text-align: right; font-size: 15px; }
  body.mp-member #paneOrder .sec label.f .hint { flex-basis: 100%; margin-top: 4px; }
  body.mp-member #paneOrder .sec label.f:has(textarea),
  body.mp-member #paneOrder .sec label.f:has(.pick-wrap),
  body.mp-member #paneOrder .item-card label.f { display: block; border-bottom: none; padding: 0; margin-bottom: 10px; }
  body.mp-member #paneOrder .sec label.f:has(textarea) .lab,
  body.mp-member #paneOrder .sec label.f:has(.pick-wrap) .lab,
  body.mp-member #paneOrder .item-card label.f .lab { width: auto; margin-bottom: 4px; }
  body.mp-member #paneOrder .sec label.f:has(.pick-wrap) > .pick-wrap input { text-align: left; }
  body.mp-member #paneOrder .item-card { border: none; background: #f4f8fd; border-radius: 12px; }
  body.mp-member #paneOrder .item-card input, body.mp-member #paneOrder .item-card select { background: #fff; }
  body.mp-member #paneOrder .item-card label.f > input { border: 1px solid var(--bd); border-radius: 10px; padding: 11px 12px; text-align: left; width: 100%; box-sizing: border-box; font-size: 15px; }
  body.mp-member #paneOrder .item-card label.f input { background: #fff; }
  /* 底部大蓝按钮（粘性，浮在底部导航之上） */
  body.mp-member #orderFormWrap > div:last-of-type {
    position: sticky; bottom: 72px; z-index: 6; background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px); border-radius: 16px; padding: 10px;
    box-shadow: 0 6px 20px rgba(30, 80, 160, .14); margin-top: 4px;
  }
  body.mp-member #submitOrderBtn { border-radius: 999px; }

  /* ============================================================
     计算运费 calc.html（body.mp-calc）
     ============================================================ */
  body.mp-calc { background: linear-gradient(180deg, #c3e0f8 0, #e2effc 260px, #eef4fa 560px); background-attachment: fixed; }
  body.mp-calc .topbar, body.mp-calc .mainnav { display: none; }
  body.mp-calc main { padding: 16px 0 96px; }
  body.mp-calc footer.site-footer { padding-bottom: 84px; }
  body.mp-calc .calc-card { border: none; border-radius: 18px; box-shadow: 0 4px 18px rgba(30, 80, 160, .10); }
  body.mp-calc .calc-title { font-size: 20px; }
}

/* ============================================================
   2026-10-06 模板版型（用户提供的老小程序截图为标准）
   ============================================================ */
@media (min-width: 768px) {
  #mpBar, #mpFab, .dt-mobile, #paneHome, #paneWarehouses { display: none !important; }
}
@media (max-width: 767px) {
  /* 顶部标题栏：白底（详情/表单/仓库）与蓝底（运单列表）两式 */
  #mpBar { display: flex; align-items: center; background: #fff; margin: -14px -12px 12px; padding: 12px; position: relative; z-index: 5; }
  #mpBar.mp-bar-blue { background: linear-gradient(180deg, #2f83f0, #1f66d6); margin-bottom: 0; }
  #mpBarBack { background: none; border: none; font-size: 30px; line-height: 1; color: #1c1c1e; width: 40px; flex: none; text-align: left; cursor: pointer; font-family: inherit; padding: 0; }
  #mpBar.mp-bar-blue #mpBarBack { color: #fff; }
  #mpBarTitle { flex: 1; text-align: center; font-size: 17px; font-weight: 800; color: #1c1c1e; }
  #mpBar.mp-bar-blue #mpBarTitle { color: #fff; }
  .mp-bar-sp { width: 40px; flex: none; }
  body.mp-member .mp-back { display: none !important; }

  /* 首页（模板） */
  .th-banner { background: linear-gradient(135deg, #39a0f5, #1f66d6); border-radius: 16px; color: #fff; padding: 20px 16px 22px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(34, 115, 230, .25); }
  .th-banner-t { font-size: 26px; font-weight: 900; letter-spacing: 1px; }
  .th-banner-s { margin-top: 6px; font-size: 14px; color: #ffe58a; font-weight: 700; }
  .th-toprow { display: flex; gap: 10px; margin-bottom: 12px; }
  .th-acct { flex: 1.15; background: #eef6ff; border-radius: 14px; padding: 14px; }
  .th-kv { font-size: 14px; color: #5b6b7c; margin-bottom: 7px; }
  .th-kv b { color: #1c1c1e; font-weight: 700; }
  .th-create { margin-top: 4px; background: linear-gradient(90deg, #39a0f5, #2273e6); color: #fff; border: none; border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .th-entries { flex: 1; display: flex; flex-direction: column; gap: 10px; }
  .th-entry { flex: 1; background: #fff; border: none; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); text-align: left; padding: 12px 14px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
  .th-entry-t { font-size: 16px; font-weight: 800; color: #1c1c1e; }
  .th-entry-t i { font-style: normal; color: #8a97a5; font-weight: 400; }
  .th-entry-s { font-size: 12.5px; color: #8a97a5; }
  .th-status { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); display: flex; padding: 14px 6px; margin-bottom: 12px; }
  .th-status button { flex: 1; background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: #1c1c1e; cursor: pointer; font-family: inherit; position: relative; padding: 0 2px; }
  .th-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; }
  .th-ic-o { background: #ff9f2e; } .th-ic-r { background: #ff7a45; } .th-ic-b { background: #39a0f5; } .th-ic-g { background: #2fbf71; }
  .th-badge { position: absolute; top: -6px; right: calc(50% - 27px); background: #f43f3f; color: #fff; font-style: normal; font-size: 11px; min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; font-weight: 700; }
  .th-func { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); padding: 14px; margin-bottom: 12px; }
  .th-func-t { font-size: 16.5px; font-weight: 800; margin-bottom: 12px; }
  .th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .th-grid4 { grid-template-columns: repeat(4, 1fr); }
  .th-grid button { background: #f2f7fe; border: none; border-radius: 12px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; color: #1c1c1e; cursor: pointer; font-family: inherit; }
  .th-tile-ic { width: 38px; height: 38px; border-radius: 50%; background: #dcecfd; color: #2273e6; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
  .th-card2 { display: flex; gap: 10px; margin-bottom: 12px; }
  .th-big { flex: 1; background: #fff; border: none; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); padding: 16px 14px; text-align: left; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 4px; }
  .th-big-t { font-size: 16.5px; font-weight: 800; color: #1c1c1e; }
  .th-big-s { font-size: 12.5px; color: #8a97a5; }
  .th-row { display: flex; width: 100%; background: none; border: none; border-bottom: 1px solid #f0f4f8; padding: 13px 0; font-size: 15px; font-weight: 600; color: #1c1c1e; cursor: pointer; font-family: inherit; text-align: left; }
  .th-row:last-child { border-bottom: none; }
  .th-row .chev { margin-left: auto; color: #8a97a5; font-weight: 400; }
  .th-row-danger { color: #dc2626; }
  .th-mine-head { background: linear-gradient(135deg, #39a0f5, #1f66d6); border-radius: 16px; color: #fff; display: flex; gap: 14px; align-items: center; padding: 18px 16px; margin-bottom: 12px; }
  .th-mine-head .mp-avatar { background: rgba(255, 255, 255, .25); box-shadow: none; }
  .th-mine-name { font-size: 19px; font-weight: 800; }
  .th-mine-sub { font-size: 13.5px; color: #e3efff; margin-top: 3px; }
  .th-mine-sub b { color: #fff; }
  .th-topup { background: #fff; color: #2273e6; border: none; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; margin-left: 6px; cursor: pointer; font-family: inherit; }

  /* 我的仓库（模板） */
  .wh-warn { background: #fdecec; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; margin-bottom: 12px; }
  .wh-warn-ic { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #f97316; color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
  .wh-warn p { margin: 0; color: #d92d20; font-size: 13.5px; line-height: 1.65; font-weight: 600; }
  .wh-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); padding: 14px; margin-bottom: 12px; }
  .wh-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #eef2f6; margin-bottom: 6px; }
  .wh-pin { width: 30px; height: 30px; border-radius: 8px; background: #2273e6; display: flex; align-items: center; justify-content: center; flex: none; }
  .wh-name { font-size: 16.5px; font-weight: 800; color: #1c1c1e; }
  .wh-head .wh-copy { margin-left: auto; }
  .wh-row { display: flex; align-items: center; gap: 8px; padding: 8.5px 0; font-size: 14.5px; }
  .wh-lab { width: 118px; flex: none; color: #8a97a5; }
  .wh-val { flex: 1; min-width: 0; color: #1c1c1e; font-weight: 600; word-break: break-all; }
  .wh-copy { background: none; border: none; padding: 4px; cursor: pointer; display: flex; flex: none; }

  /* 我的运单：蓝标题栏下的页签条 + 模板卡片 + 悬浮搜索 */
  body.mp-member #paneList > div:first-child { display: none !important; }
  body.mp-member .wb-layout { display: block; }
  body.mp-member .wb-side { flex-direction: row; overflow-x: auto; gap: 20px; background: linear-gradient(180deg, #1f66d6, #2273e6); margin: 0 -12px 12px; padding: 8px 14px 10px; scrollbar-width: none; position: static; width: auto; max-width: none; }
  body.mp-member .wb-side::-webkit-scrollbar { display: none; }
  body.mp-member .wb-side button { width: auto; background: transparent; box-shadow: none; color: #dbeafe; font-size: 14.5px; font-weight: 600; padding: 6px 2px; border: none; border-radius: 0; white-space: nowrap; text-align: center; min-height: 0; }
  body.mp-member .wb-side button.active { color: #fff; background: transparent; border-bottom: 3px solid #fff; }
  body.mp-member .wb-tools { display: none; }
  body.mp-member .wb-tools.open { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  body.mp-member #ownWrap .wb-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  #mpFab { position: fixed; right: 16px; bottom: 108px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; border: none; background: rgba(34, 115, 230, .94); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; box-shadow: 0 6px 18px rgba(34, 115, 230, .4); cursor: pointer; font-family: inherit; }
  .tpl-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); padding: 12px; margin-bottom: 12px; }
  .tpl-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
  .tpl-chk input { width: 17px; height: 17px; }
  .tpl-no { font-size: 16.5px; font-weight: 800; color: #1c1c1e; }
  .tpl-copy { background: none; border: none; padding: 2px; cursor: pointer; display: flex; }
  .tpl-wh { margin-left: auto; background: #e8f1fe; color: #2273e6; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
  .tpl-panel { background: #f7f8fc; border-radius: 10px; padding: 10px 12px; }
  .tpl-row { display: flex; gap: 10px; padding: 3.5px 0; font-size: 14px; align-items: baseline; }
  .tpl-lab { width: 37px; flex: none; color: #8a97a5; }
  .tpl-val { flex: 1; min-width: 0; color: #1c1c1e; }
  .tpl-blue { color: #2273e6; }
  .tpl-time { color: #2273e6; }
  .tpl-cn { margin-left: auto; color: #f59e0b; font-size: 13px; flex: none; }
  .tpl-pin { color: #2273e6; }
  .tpl-del { color: #b91c1c; font-size: 12.5px; margin-top: 8px; }
  .tpl-ops { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; flex-direction: row; }
  .tpl-ops button { border: 1px solid #2273e6; color: #2273e6; background: #fff; border-radius: 8px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; flex: none; }
  .tpl-ops button[data-act="detail"] { background: #2273e6; color: #fff; }
  .tpl-ops button.del { border-color: #f3b4b4; color: #dc2626; }

  /* 运单详情（模板）：桌面版隐藏，手机版分卡片 */
  .dt-desktop { display: none; }
  body.mp-member #detailBack { display: none; }
  .td-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); padding: 14px; margin-bottom: 12px; }
  .td-title { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; color: #1c1c1e; }
  .td-edit { margin-left: auto; background: #2273e6; color: #fff; border: none; border-radius: 7px; padding: 5px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .td-row { display: flex; gap: 6px; padding: 6.5px 0; font-size: 14.5px; }
  .td-lab { width: 86px; flex: none; color: #5b6b7c; }
  .td-val { flex: 1; min-width: 0; color: #1c1c1e; word-break: break-all; }
  .td-pic { color: #2273e6; font-size: 12.5px; border: 1px solid #bcd7fb; border-radius: 5px; padding: 1px 6px; text-decoration: none; margin-left: 4px; white-space: nowrap; }
  .td-upload { margin-top: 8px; background: #f59e0b; color: #fff; border: none; border-radius: 9px; padding: 9px 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .td-item-name { font-size: 15px; font-weight: 700; border-left: 4px solid #2273e6; padding-left: 8px; margin: 10px 0 8px; color: #1c1c1e; }
  .td-item-grid { background: #f7f8fc; border-radius: 10px; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
  .td-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
  .td-cell span { color: #8a97a5; font-size: 12px; }
  .td-cell b { font-size: 14.5px; color: #1c1c1e; }
  .td-goods-total { text-align: right; font-size: 13px; margin-top: 8px; }
  .td-tabs { display: flex; gap: 22px; border-bottom: 1px solid #eef2f6; margin-bottom: 10px; }
  .td-tabs button { background: none; border: none; font-size: 15px; font-weight: 700; color: #8a97a5; padding: 8px 2px; cursor: pointer; font-family: inherit; }
  .td-tabs button.on { color: #2273e6; border-bottom: 3px solid #2273e6; }
  .td-label-btn { display: block; width: 100%; background: #fff; border: 1px solid #2273e6; color: #2273e6; border-radius: 10px; padding: 12px; font-size: 14.5px; font-weight: 700; margin-bottom: 10px; cursor: pointer; font-family: inherit; }
  .td-actions { display: flex; gap: 10px; margin-bottom: 12px; }
  .td-act { flex: 1; background: #fff; border: 1px solid #d8dee6; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; color: #1c1c1e; }
  .td-act-danger { color: #dc2626; border-color: #f3b4b4; }

  /* 下单表单（模板）：发/收圆标 + 蓝胶囊提交 */
  body.mp-member #paneOrder .sec-send > h3::before, body.mp-member #paneOrder .sec-recv > h3::before { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: #2273e6; color: #fff; align-items: center; justify-content: center; font-size: 15px; margin-right: 8px; vertical-align: middle; }
  body.mp-member #paneOrder .sec-send > h3::before { content: '发'; }
  body.mp-member #paneOrder .sec-recv > h3::before { content: '收'; }
  body.mp-member #submitOrderBtn { border-radius: 999px !important; }
  body.mp-member #paneRecip .btn-acc { border-radius: 999px; }
}

/* 计算运费页：同款白标题栏（仅手机） */
@media (max-width: 767px) {
  body.mp-calc #mpBarCalc { display: flex !important; align-items: center; background: #fff; margin: -16px -12px 14px; padding: 12px; border-radius: 0 0 14px 14px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); }
  body.mp-calc #mpBarCalc a { color: #1c1c1e; text-decoration: none; font-size: 30px; line-height: 1; width: 40px; flex: none; }
  body.mp-calc #mpBarCalc span { flex: 1; text-align: center; font-size: 17px; font-weight: 800; color: #1c1c1e; }
  body.mp-calc #mpBarCalc .sp { width: 40px; flex: none; }
  body.mp-calc .calc-title { display: none; }
}

/* 2026-10-06 修正：模板卡按钮改横向小按钮一排（用户点名：不要竖排、不要太多线） */
@media (max-width: 767px) {
  body.mp-member .tpl-card .tpl-ops { flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 10px; }
  body.mp-member .tpl-card .tpl-ops button { flex: 0 0 auto !important; width: auto !important; min-height: 0 !important; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
  #mpFab { bottom: 178px; }
}

/* 2026-10-06 修正2：卡片按钮只留五项、强制一行排完 */
@media (max-width: 767px) {
  body.mp-member .tpl-card .tpl-ops { flex-wrap: nowrap !important; gap: 6px; }
  body.mp-member .tpl-card .tpl-ops button { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
}

/* 2026-10-06 创建运单照模板：仓库路线卡置顶、发/收折叠行、添加物品在卡头 */
@media (max-width: 767px) {
  body.mp-member #paneOrder .sec-route > h3 { display: none; }
  body.mp-member #paneOrder .sec-send > h3, body.mp-member #paneOrder .sec-recv > h3 { display: flex; align-items: center; cursor: pointer; }
  body.mp-member #paneOrder .sec-send > h3::after, body.mp-member #paneOrder .sec-recv > h3::after { content: '›'; margin-left: auto; color: #8a97a5; font-size: 24px; font-weight: 400; line-height: 1; }
  body.mp-member #paneOrder .sec-send.open > h3::after, body.mp-member #paneOrder .sec-recv.open > h3::after { transform: rotate(90deg); }
  body.mp-member #paneOrder .sec-send:not(.open) > *:not(h3), body.mp-member #paneOrder .sec-recv:not(.open) > *:not(h3) { display: none !important; }
  body.mp-member #paneOrder .sec-items { position: relative; }
  body.mp-member #paneOrder .sec-items #addItemBtn { position: absolute; top: 12px; right: 14px; border: none !important; background: transparent !important; box-shadow: none; color: #2273e6 !important; font-size: 15px; padding: 2px 0; }
}

/* 2026-10-06 物品编辑改第二页式（照模板）：整页打开、行式填写、底部双按钮 */
@media (min-width: 768px) {
  #itemEditor { display: none !important; }
}
@media (max-width: 767px) {
  body.mp-member #itemCards { display: none; }
  #itemEditor { position: fixed; inset: 0; background: #eef4fa; z-index: 80; overflow-y: auto; padding: 0 12px 28px; }
  .ie-bar { display: flex; align-items: center; background: #fff; margin: 0 -12px 12px; padding: 12px; }
  .ie-bar button { background: none; border: none; font-size: 30px; line-height: 1; width: 40px; flex: none; text-align: left; padding: 0; cursor: pointer; font-family: inherit; color: #1c1c1e; }
  .ie-bar span { flex: 1; text-align: center; font-size: 17px; font-weight: 800; color: #1c1c1e; }
  .ie-bar .sp { width: 40px; flex: none; }
  .ie-card { background: #fff; border-radius: 14px; padding: 4px 16px; box-shadow: 0 2px 8px rgba(30, 80, 160, .06); }
  .ie-row { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #f0f4f8; }
  .ie-row:last-child { border-bottom: none; }
  .ie-lab { width: 88px; flex: none; font-size: 15px; color: #1c1c1e; }
  .ie-lab i { color: #dc2626; font-style: normal; }
  .ie-row > input { flex: 1; min-width: 0; border: none; background: transparent; text-align: right; font-size: 15px; font-family: inherit; color: #1c1c1e; padding: 0; }
  .ie-row input::placeholder { color: #b6c0cb; }
  .ie-pick { position: relative; display: block; flex: 1; min-width: 0; }
  .ie-pick > input { width: 100%; border: none; background: transparent; text-align: right; font-size: 15px; font-family: inherit; color: #1c1c1e; padding: 0; box-sizing: border-box; }
  .ie-actions { display: flex; gap: 12px; margin-top: 22px; }
  .ie-cancel { flex: 1; background: #fff; border: none; border-radius: 999px; padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; color: #1c1c1e; }
  .ie-save { flex: 2; background: #2273e6; color: #fff; border: none; border-radius: 999px; padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .isum-row { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #f0f4f8; cursor: pointer; }
  .isum-row:last-child { border-bottom: none; }
  .isum-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .isum-main b { font-size: 14.5px; color: #1c1c1e; }
  .isum-main span { font-size: 12.5px; color: #8a97a5; }
  .isum-del { background: none; border: none; color: #dc2626; font-size: 13px; cursor: pointer; font-family: inherit; padding: 4px; flex: none; }
  .isum-chev { color: #8a97a5; font-size: 18px; flex: none; }
}

/* 2026-10-06 预估重量/保额改成看得见的输入框（用户点名） */
@media (max-width: 767px) {
  body.mp-member #paneOrder #weightLb, body.mp-member #paneOrder #insuranceValue { border: 1px solid #d8dee6; border-radius: 10px; background: #fff; padding: 10px 12px; text-align: left; }
  body.mp-member #paneOrder .sec-value label.f:has(#weightLb) .lab { width: auto; }
}

/* 2026-10-06 首页公告栏＋页面填满（用户点名：底部别留空） */
.hn-body { font-size: 14.5px; line-height: 1.75; color: #4a3f1d; background: #fffaf0; border: 1px solid #f3e5c3; border-radius: 10px; padding: 10px 12px; }
@media (max-width: 767px) {
  body.mp-member #paneHome, body.mp-member #paneHub, body.mp-member #paneList, body.mp-member #paneDetail,
  body.mp-member #paneOrder, body.mp-member #paneBatch, body.mp-member #paneWallet, body.mp-member #paneRecip,
  body.mp-member #paneWarehouses { min-height: calc(100dvh - 118px); }
}

/* 2026-10-06 首页照模板填满：横幅加高带图、卡片间距拉匀，不留空白带 */
@media (max-width: 767px) {
  body.mp-member .th-banner { height: 172px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: linear-gradient(180deg, rgba(31,102,214,.12), rgba(25,84,180,.48)), url('media/world-map-hero.png') center/cover no-repeat; }
  body.mp-member .th-banner-t { font-size: 31px; text-shadow: 0 2px 10px rgba(10,50,120,.45); }
  body.mp-member .th-banner-s { font-size: 15px; text-shadow: 0 1px 6px rgba(10,50,120,.4); }
  body.mp-member .th-toprow, body.mp-member .th-status, body.mp-member .th-func { margin-bottom: 14px; }
  body.mp-member .th-status { padding: 18px 6px; }
  body.mp-member .th-ic { width: 46px; height: 46px; font-size: 18px; }
  body.mp-member .th-func { padding: 16px 14px 18px; }
  body.mp-member .hn-body { min-height: 104px; box-sizing: border-box; }
}

/* 顶部入口组合：客户「登录 / 注册」＋「管理员入口」并排一组（客户点登录、管理员点入口） */
.entry-pair{ display:inline-flex; align-items:stretch; gap:0; vertical-align:middle; }
.entry-pair > a{ margin:0 !important; }
.entry-pair > a:first-child{ border-radius:8px 0 0 8px !important; }
.entry-pair > a:last-child{ border-radius:0 8px 8px 0 !important; margin-left:-1.5px !important; }
.topbar .admin-link, .pub-head .admin-link{ display:inline-flex; align-items:center; background:#fff; color:#0b5563 !important; border:1.5px solid #0b5563; padding:6px 12px; border-radius:8px; font-size:13px !important; font-weight:700; text-decoration:none !important; opacity:1; white-space:nowrap; }
