/* ============ 前台 发货查询 样式（手机优先）============ */
:root {
    --peach-1: #ff9a8b;
    --peach-2: #ff6a88;
    --peach-3: #ff99ac;
    --cream:   #fff5f3;
    --ink:     #2b2b33;
    --ink-2:   #7a7a86;
    --line:    #f0e3e0;
    --ok:      #34c759;
    --card-sh: 0 8px 30px rgba(255, 106, 136, .12);
    --radius:  18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶部 ---------- */
.hero {
    background: linear-gradient(135deg, var(--peach-1) 0%, var(--peach-2) 55%, var(--peach-3) 100%);
    color: #fff;
    padding: calc(env(safe-area-inset-top) + 38px) 20px 64px;
    text-align: center;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 30px rgba(255, 106, 136, .25);
}
.hero-emoji { font-size: 46px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.hero-title { margin: 10px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.hero-tip   { margin: 0; font-size: 14px; opacity: .92; line-height: 1.6; }

/* ---------- 容器 ---------- */
.container {
    flex: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px 30px;
}

/* ---------- 搜索卡 ---------- */
.search-card {
    margin-top: -34px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-sh);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}
.field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbf3f1;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color .2s, background .2s;
}
.field:focus-within { border-color: var(--peach-2); background: #fff; }
.field-icon { font-size: 18px; }
.field input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 17px;
    padding: 14px 0;
    color: var(--ink);
    letter-spacing: 1px;
}
.btn-search {
    border: 0;
    border-radius: 12px;
    padding: 15px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--peach-1), var(--peach-2));
    box-shadow: 0 6px 16px rgba(255, 106, 136, .35);
    cursor: pointer;
    transition: transform .08s, box-shadow .2s;
}
.btn-search:active { transform: translateY(1px) scale(.99); box-shadow: 0 3px 10px rgba(255,106,136,.3); }

/* ---------- 提示 / 空状态 ---------- */
.hint, .empty { text-align: center; color: var(--ink-2); padding: 40px 16px; }
.hint p { margin: 6px 0; font-size: 15px; }
.hint-sub, .empty-sub { font-size: 13px; color: #aaa; }
.empty-emoji { font-size: 40px; }
.empty-title { font-size: 16px; color: var(--ink); font-weight: 600; margin: 12px 0 6px; }

.notice {
    margin-top: 16px; padding: 13px 15px; border-radius: 12px; font-size: 14px;
}
.notice-warn { background: #fff4e5; color: #b9690e; border: 1px solid #ffe2b8; }

.result-head { margin: 22px 4px 12px; font-size: 14px; color: var(--ink-2); }
.result-head b { color: var(--peach-2); }

/* ---------- 订单卡 ---------- */
.order-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-sh);
    padding: 18px;
    margin-bottom: 16px;
    animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-item { font-size: 16px; font-weight: 700; line-height: 1.45; }
.badge {
    flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.badge-accepted { background: #fff0e6; color: #e8810f; }
.badge-shipped  { background: #e8f9ee; color: #1f9d4d; }
.order-meta { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

/* ---------- 时间轴 ---------- */
.timeline { list-style: none; margin: 18px 0 4px; padding: 0; }
.timeline li {
    position: relative;
    padding: 0 0 22px 26px;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: 6px; top: 16px; bottom: -4px;
    width: 2px; background: var(--line);
}
.timeline li.last::before { display: none; }
.timeline .dot {
    position: absolute; left: 0; top: 3px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid #e3d5d2;
}
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px rgba(52,199,89,.14); }
.timeline li.done::before { background: var(--ok); }
.tl-title { font-size: 14px; font-weight: 600; color: #b3aeb2; }
.timeline li.done .tl-title { color: var(--ink); }
.tl-time { font-size: 12px; color: #b0aab0; margin-top: 2px; }

.express {
    margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: #faf4f2; border-radius: 10px; padding: 9px 11px;
}
.express-co { font-size: 13px; color: var(--ink); font-weight: 600; }
.express-no { font-size: 13px; color: var(--ink-2); font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3px; }
.btn-copy {
    margin-left: auto; border: 0; background: var(--peach-2); color: #fff;
    font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer;
}
.btn-copy:active { opacity: .85; }

.order-remark { margin-top: 12px; font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- 底部 ---------- */
.foot { text-align: center; padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px); color: #b6b0b6; font-size: 12px; }
.foot-wx { margin-bottom: 6px; color: var(--ink-2); }
.foot-wx b { color: var(--peach-2); }

/* ---------- 复制提示 ---------- */
.toast {
    position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px);
    background: rgba(43,43,51,.92); color: #fff; font-size: 13px; padding: 10px 18px;
    border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 桌面端微调 ---------- */
@media (min-width: 600px) {
    .hero { padding-top: 54px; }
    .hero-title { font-size: 28px; }
}
