/* 宠物托运 用户端 H5 — 移动端样式 */
:root {
  --pri: #ff6b4a;
  --pri-2: #ff5c7a;
  --grad: linear-gradient(135deg, #ff8a5c, #ff5c7a);
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1f2430;
  --sub: #8a93a6;
  --line: #eef0f5;
  --green: #12b76a;
  --blue: #3b82f6;
  --orange: #ff7a45;
  --purple: #8b5cf6;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(31, 36, 48, 0.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.app-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
.page { padding: 0 16px 96px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── 顶部 ── */
.hero {
  background: var(--grad);
  color: #fff;
  padding: 20px 20px 70px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -40px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 16px; }
.hero-phone { font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 4px; }
.hero-sub { margin-top: 6px; font-size: 12.5px; opacity: .88; }

/* ── 轮播 ── */
.banner {
  margin: -54px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: #fff;
}
.banner-track { display: flex; transition: transform .45s ease; }
.banner-slide { min-width: 100%; display: block; }
.banner-slide img { width: 100%; display: block; aspect-ratio: 750 / 320; object-fit: cover; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: all .25s; }
.banner-dots i.on { width: 15px; background: #fff; }

/* ── 公告 ── */
.notice {
  margin: 12px 16px 0; display: flex; align-items: center; gap: 8px;
  background: #fff8ef; color: #b9741d; font-size: 12.5px;
  padding: 9px 12px; border-radius: 10px;
  overflow: hidden; white-space: nowrap;
}
.notice .tag { background: #ffedd8; color: #d97706; font-weight: 600; padding: 1px 7px; border-radius: 6px; flex: 0 0 auto; }

/* ── 服务入口 ── */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.entry {
  background: var(--card); border-radius: 14px; padding: 14px 6px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow); cursor: pointer; border: none; font-size: 12px; color: var(--text);
  transition: transform .15s;
}
.entry:active { transform: scale(.96); }
.entry .ico { font-size: 22px; }
.entry.hl { background: var(--grad); color: #fff; }

/* ── 区块标题 ── */
.sec { margin-top: 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-title { font-size: 16.5px; font-weight: 700; }
.sec-title small { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 6px; }
.sec-more { font-size: 12.5px; color: var(--sub); }

/* ── 卡片 ── */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stat { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat b { font-size: 21px; color: var(--pri); }
.stat span { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }

.feature-list { display: grid; gap: 10px; }
.feature { display: flex; gap: 10px; align-items: flex-start; }
.feature .fi { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #fff1e9; display: grid; place-items: center; font-size: 17px; }
.feature b { font-size: 13.5px; display: block; }
.feature p { margin: 2px 0 0; font-size: 12px; color: var(--sub); }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px; padding: 11px 18px; font-size: 14.5px; font-weight: 600;
  background: var(--grad); color: #fff; cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost-danger { background: #fff; color: #e5484d; border: 1px solid #fde3e4; }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn.plain { background: #fff1e9; color: var(--pri); }

/* ── 表单 ── */
.form-section { margin-bottom: 14px; }
.form-title { font-size: 15px; font-weight: 700; margin: 18px 2px 10px; display: flex; align-items: center; gap: 6px; }
.form-title .num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 12px; display: grid; place-items: center; font-weight: 600;
}
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12.5px; color: var(--sub); margin: 0 2px 6px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: #fafbfd; border-radius: 11px;
  padding: 11px 13px; font-size: 14px; color: var(--text); outline: none; font-family: inherit;
  transition: border .15s, background .15s;
}
.input:focus { border-color: #ffb59d; background: #fff; }
textarea.input { resize: vertical; min-height: 64px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 11.5px; color: var(--sub); margin: 6px 2px 0; }

/* 分段控件 */
.seg { display: flex; background: #f1f3f8; border-radius: 11px; padding: 3px; }
.seg button {
  flex: 1; border: none; background: transparent; padding: 8px 0; border-radius: 9px;
  font-size: 13px; color: var(--sub); cursor: pointer; font-weight: 500;
}
.seg button.on { background: #fff; color: var(--pri); font-weight: 700; box-shadow: 0 2px 8px rgba(31,36,48,.08); }

/* 选项卡（运输方式/增值服务） */
.opt-list { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 13px; padding: 12px 13px; cursor: pointer; transition: all .15s;
}
.opt.on { border-color: var(--pri); background: #fff8f5; box-shadow: 0 4px 14px rgba(255,107,74,.10); }
.opt .emoji { font-size: 21px; }
.opt .t { flex: 1; }
.opt .t b { font-size: 13.5px; display: block; }
.opt .t span { font-size: 11.5px; color: var(--sub); }
.opt .check { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #d5d9e2; display: grid; place-items: center; font-size: 11px; color: #fff; }
.opt.on .check { background: var(--pri); border-color: var(--pri); }
.opt .price { font-size: 12.5px; color: var(--pri); font-weight: 600; }

/* ── 报价面板 ── */
.quote-panel {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 34px rgba(31,36,48,.12); padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
}
.quote-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quote-sum .lbl { font-size: 12px; color: var(--sub); }
.quote-sum .amt { font-size: 24px; font-weight: 800; color: var(--pri); }
.quote-sum .amt small { font-size: 12px; font-weight: 400; color: var(--sub); margin-left: 4px; }
.quote-toggle { font-size: 12px; color: var(--sub); background: none; border: none; cursor: pointer; padding: 4px; }
.quote-break { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; display: none; }
.quote-break.open { display: block; }
.quote-break .row { display: flex; justify-content: space-between; font-size: 12.5px; color: #5b6373; padding: 3px 0; }
.quote-break .row.total { color: var(--text); font-weight: 700; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 7px; }

/* ── 订单卡片 ── */
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.ftab {
  flex: 0 0 auto; border: none; background: #fff; color: var(--sub); border-radius: 20px;
  padding: 7px 14px; font-size: 12.5px; cursor: pointer;
}
.ftab.on { background: var(--grad); color: #fff; font-weight: 600; }
.order-card { background: #fff; border-radius: var(--radius); padding: 14px 15px; box-shadow: var(--shadow); margin-bottom: 11px; cursor: pointer; }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.order-card .no { font-size: 11.5px; color: var(--sub); }
.order-card .route { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.order-card .route .arrow { color: var(--pri); font-weight: 400; }
.order-card .meta { font-size: 12px; color: var(--sub); margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; }
.order-card .oc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.order-card .price { font-weight: 800; color: var(--text); }
.order-card .price small { font-weight: 400; color: var(--sub); font-size: 11px; }
.order-card .ops { display: flex; gap: 8px; }

/* 状态标签 */
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.st-pending_pay { background: #fff1e8; color: #f4711f; }
.st-paid, .st-accepted, .st-picked { background: #eaf2fe; color: #2f6fed; }
.st-in_transit, .st-delivering { background: #e9f8f5; color: #0e9384; }
.st-delivered { background: #eefbf3; color: #0f9d58; }
.st-completed { background: #e7f7ef; color: #12b76a; }
.st-refunding { background: #f3edff; color: #7c4dff; }
.st-refunded, .st-cancelled { background: #f1f3f8; color: #8a93a6; }

/* ── 订单详情 ── */
.page-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: rgba(245,246,250,.92); backdrop-filter: blur(8px);
}
.page-header .back {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center; font-size: 16px; cursor: pointer;
}
.page-header .ttl { font-size: 16px; font-weight: 700; }
.status-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 24px rgba(255, 92, 122, .25); }
.status-card .st-big { font-size: 21px; font-weight: 800; }
.status-card .st-desc { font-size: 12.5px; opacity: .92; margin-top: 5px; }
.status-card .st-no { font-size: 11.5px; opacity: .8; margin-top: 10px; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 2px; }
.tl-item::before {
  content: ""; position: absolute; left: -21.5px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: #d5d9e2; border: 2.5px solid #fff;
}
.tl-item.first::before { background: var(--pri); box-shadow: 0 0 0 3px rgba(255,107,74,.15); }
.tl-item .t1 { font-size: 13.5px; font-weight: 600; }
.tl-item .t2 { font-size: 12px; color: var(--sub); margin-top: 2px; }
.tl-item .t3 { font-size: 11.5px; color: #b3bac9; margin-top: 2px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.kv .k { color: var(--sub); flex: 0 0 auto; }
.kv .v { text-align: right; word-break: break-all; }
.kv + .kv { border-top: 1px dashed #f4f5f9; }

.action-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; box-shadow: 0 -8px 26px rgba(31,36,48,.08); border-radius: 18px 18px 0 0; z-index: 55; }
.action-bar .btn { flex: 1; }

/* ── 我的 ── */
.profile-card { background: var(--grad); border-radius: var(--radius); padding: 20px; color: #fff; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 24px rgba(255, 92, 122, .22); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 25px; }
.profile-card .info b { font-size: 17px; }
.profile-card .info p { margin: 3px 0 0; font-size: 12px; opacity: .9; }
.menu-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 14px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; font-size: 14px; }
.menu-item + .menu-item { border-top: 1px solid #f7f8fb; }
.menu-item .mi { font-size: 18px; width: 24px; text-align: center; }
.menu-item .arr { margin-left: auto; color: #c4cad6; }

/* ── 弹层 ── */
.mask { position: fixed; inset: 0; background: rgba(15,18,26,.45); z-index: 90; display: grid; place-items: end center; animation: fadeIn .15s; }
.mask.center { place-items: center; padding: 24px; }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: slideUp .22s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 6px; font-size: 17px; }
.sheet .sub { font-size: 12.5px; color: var(--sub); margin-bottom: 14px; }
.dialog { width: 100%; max-width: 320px; background: #fff; border-radius: 16px; padding: 18px; animation: slideUp .18s ease; }
.dialog h3 { margin: 0 0 10px; font-size: 16px; }
.dialog .btns { display: flex; gap: 10px; margin-top: 14px; }
.dialog .btns .btn { flex: 1; }
.pay-big { text-align: center; padding: 8px 0 4px; }
.pay-big .amt { font-size: 34px; font-weight: 800; color: var(--text); }
.pay-big .pay-way { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--sub); }
.toast {
  position: fixed; left: 50%; top: 44%; transform: translateX(-50%);
  background: rgba(15,18,26,.82); color: #fff; padding: 10px 18px; border-radius: 12px;
  font-size: 13.5px; z-index: 120; animation: fadeIn .15s; max-width: 80%; text-align: center;
}

/* ── 空态 ── */
.empty { text-align: center; padding: 46px 0; color: var(--sub); }
.empty .e { font-size: 42px; margin-bottom: 8px; }
.empty p { font-size: 13px; margin: 0 0 14px; }

/* ── 底栏 ── */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 22px rgba(31,36,48,.07); z-index: 50;
}
.tabbar button {
  flex: 1; border: none; background: none; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 0; font-size: 10.5px; color: #9aa2b1; cursor: pointer;
}
.tabbar button.on { color: var(--pri); font-weight: 700; }
.tabbar .ti { font-size: 19px; line-height: 1.1; }
.tabbar button.plus .ti {
  width: 42px; height: 42px; margin-top: -18px; border-radius: 50%; background: var(--grad);
  color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 16px rgba(255,92,122,.4);
}

/* 骨架/加载 */
.loading { text-align: center; color: var(--sub); padding: 40px 0; font-size: 13px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #e5e8ef; border-top-color: var(--pri); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 城市快选 */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 12px; color: #5b6373; cursor: pointer; }
.chips button:active { border-color: var(--pri); color: var(--pri); }

.inline-link { color: var(--pri); cursor: pointer; font-size: 12.5px; }
