/* 设计令牌取自 iOS 版 Theme.swift。iOS 版固定浅色（preferredColorScheme = .light），这里同样只做浅色。 */
:root {
  --bg: #F4F4F4;
  --card: #FFFFFF;
  --ink: #111111;
  --ink2: #2A2A2A;
  --ink3: #3A3A3A;
  --text2: #6B6B6B;
  --text3: #9A9A9A;
  --onDark2: #A8A8A8;
  --chip: #F0F1F0;
  --line: #E4E4E4;
  --rust: #8A3214;
  --rust-bg: #FBECE7;
  --gutter: 16px;
  --r-card: 22px;
  --r-hero: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; overflow-x: hidden;
  padding-bottom: calc(env(safe-area-inset-bottom) + 110px);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:disabled { cursor: default; opacity: 0.6; }
input, textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none; }
input:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.04em; }
.small { font-size: 13px; }
.muted { color: var(--text2); }
.rust { color: var(--rust); }
.sub-dark { color: var(--onDark2); }
.block { display: block; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt10 { padding-top: 10px; }
.pad { padding: 16px; }
[hidden] { display: none !important; }

/* 卡片 */
.card { background: var(--card); border-radius: var(--r-card); margin-top: 12px; display: block; width: 100%; }
.card.dark { background: var(--ink); color: #fff; border-radius: var(--r-hero); }
.card.list { padding: 4px 16px; }
.card.static { cursor: default; }

/* 按钮 */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 16px; font-weight: 700; margin-top: 12px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.dark { background: var(--ink3); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.danger { background: var(--rust-bg); color: var(--rust); margin-top: 24px; }
.btn.big { height: 54px; margin: 16px 0 8px; }
.btn:active, .card:active, .check-btn:active, .circle-btn:active { opacity: 0.7; }
.link-strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.link-danger { font-size: 14px; color: var(--text2); padding: 10px; }

/* 标签与图标块 */
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--chip); color: var(--ink); white-space: nowrap; }
.tag.dark { background: var(--ink); color: #fff; }
.tag.white { background: #fff; color: var(--ink); }
.tag.onDark { background: var(--ink3); color: #fff; }
.tag.rust { background: var(--rust-bg); color: var(--rust); }
.ico-tile { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--chip); color: var(--ink); font-weight: 800; font-size: 16px; }
.ico-tile.dark-tile { background: var(--ink3); color: #fff; }
.ico-tile.num { font-size: 16px; }
.ico-tile.mark { width: 38px; height: 38px; background: var(--ink); color: #fff; font-size: 15px; }
.ico-tile.small-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.avatar.big-avatar { width: 48px; height: 48px; font-size: 20px; }
.title-sm { font-size: 17px; font-weight: 800; }
.title-md { font-size: 17px; font-weight: 800; }
.big-lead { font-size: 22px; font-weight: 800; }
.chev { color: var(--text2); font-size: 20px; }
.circle-btn { width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 24px; line-height: 40px; text-align: center; color: var(--ink); }
.icon-btn { color: var(--text2); font-size: 15px; padding: 4px 6px; }
.x-btn { color: var(--onDark2); font-size: 18px; padding: 4px 8px; }

/* 引导页 */
.onboard { min-height: 100vh; min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) 16px; display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; }
.tickets { position: relative; height: 320px; margin-top: 20px; }
.ticket { position: absolute; width: 250px; height: 160px; border-radius: 24px; background: #fff; padding: 18px 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 10px; }
.ticket.dark { background: var(--ink); color: #fff; }
.ticket .t-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text2); }
.ticket.dark .t-top { color: var(--onDark2); }
.ticket .t-code { font-size: 30px; }
.ticket .t-meta { font-size: 12px; color: var(--text2); }
.ticket.dark .t-meta { color: var(--onDark2); }
.ticket.t1 { left: 36px; top: 18px; transform: rotate(-8deg); }
.ticket.t2 { left: 82px; top: 62px; transform: rotate(5deg); }
.ticket.t3 { left: 54px; top: 138px; }
.onboard-copy h2 { font-size: 32px; font-weight: 900; line-height: 1.2; margin: 8px 0 12px; }
.onboard-copy p { color: var(--text2); font-size: 14px; line-height: 1.6; margin: 0; }
.onboard-copy .tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.onboard .btn.big { margin-top: auto; }

/* 底部标签 + 添加按钮 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; display: flex; gap: 10px; padding: 0 var(--gutter) calc(env(safe-area-inset-bottom) + 6px); align-items: center; pointer-events: none; z-index: 5; }
.tab-capsule { pointer-events: auto; flex: 1; display: flex; background: #fff; border-radius: 999px; padding: 6px; height: 64px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 999px; color: var(--text2); gap: 2px; }
.tab-item.on { background: var(--ink); color: #fff; }
.tab-ico { font-size: 18px; line-height: 1; }
.tab-label { font-size: 11px; }
.tab-item.on .tab-label { font-weight: 700; }
.fab { pointer-events: auto; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 30px; line-height: 1; box-shadow: 0 6px 12px rgba(0,0,0,0.18); }

/* 页面骨架 */
.page { padding: 0 var(--gutter); }
.sub { padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) 40px; }
.back-row { display: flex; }
.page-title { font-size: 30px; font-weight: 900; margin: 16px 4px 6px; }
.page-title.inline { margin: 0; }
.page-head { margin: 16px 4px 6px; }
.section-label { font-size: 15px; font-weight: 800; padding: 8px 4px 0; margin-top: 4px; }
.home-head { padding-top: calc(env(safe-area-inset-top) + 16px); padding-left: 4px; }
.home-head .small { font-size: 13px; }
.home-title { font-size: 26px; font-weight: 900; margin-top: 2px; }

/* 包裹页 */
.promo { padding: 14px 16px; margin-top: 12px; }
.promo .row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; color: #fff; }
.promo b { display: block; font-size: 15px; font-weight: 900; }
.promo .sub-dark { font-size: 12px; display: block; margin-top: 2px; }
.empty-hero { text-align: center; padding: 28px 16px; }
.empty-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--ink); color: #fff; font-size: 32px; margin: 0 auto; }
.empty-hero h3 { font-size: 20px; font-weight: 900; margin: 14px 0 6px; }
.empty-hero p { margin: 0; }
.way { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; width: 100%; }
.way.static { cursor: default; }
.way b { display: block; font-size: 16px; font-weight: 800; }
.way.dark b { color: #fff; }
.way-small { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; margin-top: 12px; text-align: left; }
.way-small b { font-size: 16px; font-weight: 800; margin-top: 8px; }
.way-small.static { cursor: default; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat-big { margin-top: 0; padding: 18px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.big-num b { font-size: 56px; font-weight: 900; line-height: 1; }
.big-num .sub-dark { font-size: 15px; }
.stat-col { display: flex; flex-direction: column; gap: 10px; }
.mini { margin-top: 0; padding: 12px 15px; min-height: 75px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.mini.warn { background: var(--rust-bg); }
.mini-num { display: flex; align-items: baseline; gap: 6px; }
.mini-num b { font-size: 24px; font-weight: 900; }
.station { padding: 14px 16px; margin-top: 12px; }
.station-head .pin { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip); font-size: 12px; }
.station-head b { font-size: 15px; }
.parcel-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.parcel-row:first-of-type { border-top: 0; }
.parcel-row .row-main { flex: 1; min-width: 0; text-align: left; }
.code-row { display: flex; align-items: center; gap: 8px; }
.code { font-size: 30px; letter-spacing: 1px; }
.check-btn { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--chip); font-size: 18px; font-weight: 700; text-align: center; line-height: 48px; }
.row-main { display: block; }

/* 详情 / 代取 */
.hero { padding: 20px 22px 22px; margin-top: 2px; }
.hero .row { justify-content: space-between; }
.hero-code { display: block; font-size: 54px; line-height: 1.1; letter-spacing: 2px; margin: 16px 0; color: #fff; word-break: break-all; text-align: left; }
.hero-item { font-size: 34px; font-weight: 900; margin: 16px 0; }
.station-bar { display: flex; align-items: center; gap: 10px; background: var(--ink2); border-radius: 22px; padding: 12px 16px; margin: 4px 0 0; }
.station-bar > span { font-size: 18px; }
.two .btn, .btn + .btn { margin-top: 14px; }
.two .btn { margin-top: 14px; }
.raw-box { white-space: pre-wrap; word-break: break-all; color: var(--text2); font-size: 14px; line-height: 1.6; background: var(--chip); border-radius: 18px; padding: 14px; margin-top: 10px; }
.big-code { font-size: 40px; letter-spacing: 1px; }
.msg-box { white-space: pre-wrap; font-size: 15px; line-height: 1.6; background: var(--chip); border-radius: 18px; padding: 14px; margin: 10px 0; word-break: break-all; }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.member { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 108px; background: #fff; border-radius: var(--r-card); font-size: 14px; font-weight: 700; border: 2px solid transparent; }
.member.on { border-color: var(--ink); }
.member.add { border: 1.5px dashed #C8C8C8; background: transparent; color: var(--ink); font-weight: 400; }
.member .plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); font-size: 20px; }

/* 添加页 */
.input { margin-top: 10px; }
.card .btn.primary { margin-top: 10px; }
.card textarea.input { min-height: 70px; }
.form label, .field { display: block; font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.form .input, .field .input { display: block; margin-top: 6px; color: var(--ink); }
.auth-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--rust-bg); color: var(--rust); font-size: 14px; line-height: 1.5; }
.form .two { margin-top: 12px; }

/* 出行 */
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: var(--ink3); flex: 0 0 auto; }
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.15); transition: left 0.2s; }
.switch.on { background: #fff; }
.switch.on span { left: 23px; background: var(--ink); }
.trip-name { display: block; font-size: 28px; font-weight: 900; margin: 16px 0 6px; color: #fff; text-align: left; }
.trip-name.faded, .faded { opacity: 0.45; }
.pencil { font-size: 14px; color: var(--onDark2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mini-stat { background: var(--ink2); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; }
.mini-stat b { font-size: 22px; font-weight: 900; }
.mini-stat span { font-size: 12px; color: var(--onDark2); }
.mini-stat.warn { background: var(--rust-bg); }
.mini-stat.warn b, .mini-stat.warn span { color: var(--rust); }
.trip-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; }
.trip-row:first-child { border-top: 0; }
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 52px; border-radius: 14px; background: var(--chip); flex: 0 0 auto; }
.date-tile small { font-size: 10px; }
.date-tile b { font-size: 18px; font-weight: 900; }
.date-tile.rust-tile { background: var(--rust-bg); color: var(--rust); }
.date-tile.dark-tile-sq { background: var(--ink); color: #fff; }
.sub-list { display: flex; flex-direction: column; gap: 10px; }
.sub-list .btn { margin-top: 0; }

/* 我的 */
.me-head { margin: 16px 4px 4px; }
.me-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 50px; font-size: 15px; border-top: 1px solid var(--line); }
.me-row:first-child { border-top: 0; }
.me-row.static { cursor: default; }
.chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.chips-grid span { background: var(--ink2); border-radius: 14px; padding: 10px 12px; font-size: 14px; }

/* 在路上 */
.transit { padding: 18px 16px 16px; margin-top: 12px; text-align: left; }
.transit.dark { background: var(--ink); color: #fff; }
.transit .title-md { font-size: 17px; }
.segs { display: flex; gap: 4px; margin: 14px 0; }
.seg { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.seg.on { background: var(--ink); }
.transit.dark .seg { background: #4A4A4A; }
.transit.dark .seg.on { background: #fff; }
.transit .row.between b { font-size: 14px; }

/* 历史 */
.stat-block { margin-top: 12px; padding: 14px 16px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-block.dark { background: var(--ink); }
.big-num-sm { font-size: 28px; font-weight: 900; }
.search { margin-top: 12px; border-radius: 999px; height: 44px; padding: 0 16px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; }
.chip.on { background: var(--ink); color: #fff; }
.group-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 0; font-size: 15px; font-weight: 800; }
.hist-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; }
.hist-row:first-child { border-top: 0; }

/* 自动导入 */
.guide-progress { margin: 10px 4px; }
.guide-progress .bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.guide-progress .bar span { display: block; height: 100%; background: var(--ink); }
.guide { padding: 16px; }
.guide .row { align-items: flex-start; }
.guide .step-dot { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); font-weight: 800; font-size: 13px; }
.guide .step-dot.on { background: var(--ink); color: #fff; }
.guide.done { opacity: 0.6; }
.guide-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.guide-actions .btn { margin-top: 0; }
.tappath { font-size: 13px; color: var(--text2); line-height: 1.7; background: var(--chip); border-radius: 14px; padding: 10px 12px; }
.done-line { text-align: center; font-weight: 800; padding: 16px 0 0; }
.token-note { font-size: 13px; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 480px; margin: 0 auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px var(--gutter) calc(env(safe-area-inset-bottom) + 20px); max-height: 88vh; overflow-y: auto; }
.sheet-head { font-size: 18px; font-weight: 800; margin-bottom: 10px; }

/* 提示 */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 20; max-width: calc(100% - 40px); white-space: nowrap; }
.toast[hidden] { display: none; }

/* 卡片里横排（.card 默认是块级，这里要恢复成 flex） */
.card.row { display: flex; align-items: center; gap: 10px; }
.card.row.between { justify-content: space-between; }

/* ======================================================================
   iOS 毛玻璃：半透明白 + 背景模糊 + 细白描边。
   背景必须有层次，模糊才看得出来，所以给页面加两团很淡的光斑。
   ====================================================================== */
:root {
  --bg: #EEF0F3;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-dark: rgba(17, 17, 17, 0.86);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 24px rgba(17, 17, 17, 0.06);
  --blur: saturate(180%) blur(22px);
  --chip: rgba(17, 17, 17, 0.06);
}
html { background: var(--bg); }
body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(186, 204, 230, 0.55), transparent 70%),
    radial-gradient(55% 40% at 100% 30%, rgba(236, 214, 200, 0.5), transparent 70%),
    radial-gradient(70% 45% at 30% 100%, rgba(208, 222, 214, 0.5), transparent 70%),
    var(--bg);
}

.card, .tab-capsule, .circle-btn, .chip, .search, .member, .btn.light, .btn:not(.primary):not(.dark):not(.danger),
input, textarea, .sheet, .ticket:not(.dark) {
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.card { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.card.dark, .transit.dark, .stat-block.dark {
  background: var(--glass-dark); border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(17, 17, 17, 0.18);
}
.mini.warn { background: rgba(251, 236, 231, 0.72); border-color: rgba(255, 255, 255, 0.6); }
.tab-capsule { background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), 0 10px 30px rgba(17, 17, 17, 0.1); }
.fab { display: grid; place-items: center; box-shadow: 0 10px 24px rgba(17, 17, 17, 0.25); }
.circle-btn { display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.chip { background: var(--glass); border: 1px solid var(--glass-edge); }
.chip.on { background: var(--ink); border-color: var(--ink); }
input, textarea { background: rgba(255, 255, 255, 0.7); border-color: rgba(17, 17, 17, 0.08); }
.btn.light { background: var(--glass-strong); }
.btn:not(.primary):not(.dark):not(.danger):not(.light) { background: var(--glass); }
.member { background: var(--glass); border: 2px solid var(--glass-edge); }
.member.on { border-color: var(--ink); }
.member.add { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ticket:not(.dark) { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--glass-edge); }
.sheet { background: rgba(246, 247, 249, 0.82); border-top: 1px solid var(--glass-edge); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); }
.mask { background: rgba(17, 17, 17, 0.22); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.toast { background: rgba(17, 17, 17, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.station-bar { background: rgba(255, 255, 255, 0.08); }
.mini-stat { background: rgba(255, 255, 255, 0.08); }
.raw-box, .msg-box, .tappath { background: rgba(17, 17, 17, 0.05); }

/* 子页面的返回按钮吸顶，滚动时浮在内容上 */
.back-row { position: sticky; top: calc(env(safe-area-inset-top) + 6px); z-index: 4; }

/* 图标 */
.i { display: block; flex: 0 0 auto; }
.tab-ico { display: grid; place-items: center; height: 20px; }
.ico-tile .i, .pin .i, .step-dot .i { margin: auto; }
.check-btn { display: grid; place-items: center; }
.x-btn, .icon-btn, .chev, .pencil { display: inline-flex; align-items: center; }
.chev { color: var(--text3); }
.pencil { vertical-align: middle; margin-left: 4px; }
.brand-mark, .empty-ico { display: inline-grid; place-items: center; }
.sb-ico { display: flex; }
.done-line { display: flex; align-items: center; justify-content: center; gap: 6px; }
.search-wrap { position: relative; display: block; margin-top: 12px; }
.search-wrap .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text2); pointer-events: none; z-index: 1; }
.search-wrap .search { margin-top: 0; padding-left: 42px; }
.member .plus { display: grid; place-items: center; }

/* 不支持模糊的浏览器、或用户开了「降低透明度」：换成实色，保证可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.94); --glass-strong: rgba(255, 255, 255, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #fff; --glass-strong: #fff; --glass-dark: #111; }
  .sheet { background: #F6F7F9; }
}

/* 细节修正 */
.hero { margin-top: 12px; }
.station-head + .parcel-row, .pt10 + .parcel-row { border-top: 0; }
.card.dark .btn.light { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.card.dark .btn.dark { background: rgba(255, 255, 255, 0.14); }

/* ---------- 首页：粘贴识别 ---------- */
.paste-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.paste-card b { display: block; font-size: 16px; font-weight: 800; }
.paste-pill { flex: 0 0 auto; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; }

/* ---------- 自动化图文引导（示意图） ---------- */
.gd { display: flex; flex-direction: column; }
.dark-x { color: var(--text2); }
.gd-mock { margin-top: 10px; display: flex; justify-content: center; }
.gd-title { font-size: 20px; font-weight: 900; margin: 16px 0 6px; }
.gd-desc { font-size: 14px; line-height: 1.6; color: var(--text2); margin: 0; min-height: 44px; }
.gd-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 2px; }
.gd-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(17, 17, 17, 0.15); transition: width 0.2s; }
.gd-dots span.on { width: 18px; background: var(--ink); }
.gd .two .btn { margin-top: 12px; }
.gd > .btn { margin-top: 10px; }

.m-screen, .m-sheet {
  width: 240px; height: 250px; border-radius: 26px; background: #F2F2F7; border: 6px solid #1C1C1E;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; font-size: 12px; color: #111;
}
.m-sheet { background: #fff; justify-content: center; align-items: stretch; }
.m-center { text-align: center; font-size: 15px; }
.m-q { text-align: center; color: #6B6B6B; font-size: 11px; line-height: 1.5; }
.m-input { background: #F2F2F7; border-radius: 10px; padding: 9px 10px; color: #9A9A9A; font-size: 11px; }
.m-btn { background: #111; color: #fff; text-align: center; border-radius: 12px; padding: 9px; font-weight: 700; }
.m-big { font-size: 20px; font-weight: 900; }
.m-big.sm { font-size: 15px; }
.m-blank { flex: 1; }
.m-head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; color: #007AFF; font-weight: 600; }
.m-head .hl { display: inline-grid; place-items: center; padding: 3px 6px; }
.m-tabbar { display: flex; justify-content: space-around; background: rgba(255, 255, 255, 0.9); border-radius: 14px; padding: 8px 4px; font-size: 11px; color: #8E8E93; }
.m-tabbar .hl { color: #007AFF; font-weight: 700; padding: 2px 6px; }
.m-list { background: #fff; border-radius: 12px; overflow: hidden; }
.m-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-top: 1px solid #ECECEC; }
.m-row:first-child { border-top: 0; }
.m-row.muted { color: #9A9A9A; }
.m-val { color: #8E8E93; }
.m-val.ink { color: #111; font-weight: 700; }
.m-sec { font-size: 11px; color: #8E8E93; padding: 4px 4px 0; }
.m-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #C7C7CC; }
.m-radio.on { border: 4px solid #007AFF; }
.m-notice { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.95); border-radius: 14px; padding: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.m-app { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #111; color: #fff; flex: 0 0 auto; }

/* 示意图里要点的位置：黑色描边 + 一个闪动的「手指」圆点 */
.hl { position: relative; box-shadow: 0 0 0 2px #111; border-radius: 10px; }
.hl::after {
  content: ""; position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(17, 17, 17, 0.4); border: 2px solid #fff; animation: tap 1.4s ease-in-out infinite;
}
@keyframes tap { 0%, 100% { transform: scale(0.8); opacity: 0.9; } 50% { transform: scale(1.15); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .hl::after { animation: none; } }

/* 首页只剩「待取件」一张统计卡时占满一行，不用撑那么高 */
.stat-wide { margin-top: 12px; min-height: 0; gap: 22px; }

/* 自动导入：收起的步骤整行可点，点开回去重做；「上一步」是不抢眼的文字按钮 */
.guide-head { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; color: inherit; }
.guide-head .chev { align-self: center; color: var(--text3); }
.btn.ghost, .btn.ghost:not(.primary):not(.dark):not(.danger) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0;
  height: 40px; font-size: 15px; font-weight: 600; color: var(--text2);
}
