/* ============ 吴山贡鹅 H5 · 全局样式 ============ */
:root {
  --brand: #7bc043;
  --brand-2: #a3d860;
  --brand-dark: #5aa62f;
  --brand-deep: #2f6b18;
  --brand-soft: #eef8e6;
  --orange: #ff8a00;
  --ink: #1f2b1c;
  --ink-2: #4b5a44;
  --muted: #8a9686;
  --line: #edf1ec;
  --bg: #f4f7f2;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(47, 107, 24, 0.08);
  --nav-h: calc(64px + env(safe-area-inset-bottom));
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + 10px); min-height: 100vh;
}
body.no-nav { padding-bottom: 20px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--ink); border: 0; outline: none; background: none; width: 100%; }
ul { list-style: none; }
.app { max-width: 560px; margin: 0 auto; position: relative; background: var(--bg); min-height: 100vh; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.price { color: #e8501c; font-weight: 700; }
.price small { font-size: 12px; font-weight: 600; }
.section { margin: 12px 12px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 10px; font-weight: 700; font-size: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }

/* ---------- 顶部品牌区 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #6fb93a 0%, #86c94a 45%, #addf74 100%);
  padding: 18px 18px 84px; color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.35), transparent 60%),
              radial-gradient(90% 60% at 0% 100%, rgba(255,255,255,.22), transparent 70%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 2px; }
.brand-sub { font-size: 11px; opacity: .9; letter-spacing: 1px; }
.status-pill {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; gap: 4px;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #d8ff9e; box-shadow: 0 0 6px #d8ff9e; }
.hero-banner { position: relative; z-index: 2; padding: 18px 4px 6px; display: flex; align-items: flex-end; justify-content: space-between; }
.hero-slogan { font-size: 30px; font-weight: 900; letter-spacing: 3px; text-shadow: 0 6px 18px rgba(24,64,8,.25); }
.hero-slogan span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 4px; opacity: .92; margin-top: 6px; }
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 2; }
.hero-tags span { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28); }

/* ---------- 添加到桌面 3D 按钮 ---------- */
.install-wrap { margin: -66px 12px 0; position: relative; z-index: 5; }
.install-3d {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(145deg, #fffdf2 0%, #ffe9b8 55%, #ffd27a 100%);
  border: 1px solid #ffd98f;
  box-shadow: 0 6px 0 #e6a83c, 0 14px 28px rgba(224, 152, 32, .35), inset 0 2px 0 rgba(255,255,255,.9);
  transform: perspective(900px) rotateX(0deg);
  animation: installGlow 1.8s ease-in-out infinite;
}
.install-3d::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg); animation: shineSweep 2.6s ease-in-out infinite;
}
.install-3d:active { transform: translateY(3px) scale(.985); box-shadow: 0 3px 0 #e6a83c, 0 8px 16px rgba(224,152,32,.32); }
.install-ico {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #7bc043, #4f9a22); font-size: 24px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 6px 12px rgba(79,154,34,.35);
  animation: floatY 2.6s ease-in-out infinite;
}
.install-txt { flex: 1; text-align: left; }
.install-txt b { display: block; font-size: 17px; color: #6a4400; letter-spacing: .5px; }
.install-txt span { font-size: 12px; color: #96660f; }
.install-go {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #ff9f26, #ef7400);
  box-shadow: 0 4px 0 #c05800, 0 8px 14px rgba(239,116,0,.35);
  animation: breathe 1.2s ease-in-out infinite;
}
@keyframes installGlow {
  0%,100% { box-shadow: 0 6px 0 #e6a83c, 0 14px 28px rgba(224,152,32,.35), 0 0 0 rgba(255,190,60,0), inset 0 2px 0 rgba(255,255,255,.9); }
  50% { box-shadow: 0 6px 0 #e6a83c, 0 18px 38px rgba(255,170,30,.55), 0 0 26px rgba(255,205,110,.85), inset 0 2px 0 rgba(255,255,255,.9); }
}
@keyframes shineSweep { 0% { left: -60%; } 55%,100% { left: 130%; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- 首访引导（3D） ---------- */
.guide-mask {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 100%, rgba(34,74,16,.92), rgba(12,28,6,.9));
  backdrop-filter: blur(3px); animation: fadeIn .35s ease both;
}
.guide-card {
  width: min(86vw, 360px); text-align: center; color: #fff;
  transform-style: preserve-3d; animation: guidePop .55s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes guidePop { from { opacity: 0; transform: perspective(1000px) rotateX(28deg) scale(.82) translateY(40px); } to { opacity: 1; transform: none; } }
.guide-phone {
  position: relative; width: 176px; height: 300px; margin: 0 auto 18px; border-radius: 26px;
  background: linear-gradient(160deg, #9ad562, #6db63a);
  border: 6px solid #fff; box-shadow: 0 26px 50px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.18);
  animation: phoneFloat 3.4s ease-in-out infinite; transform-style: preserve-3d;
}
@keyframes phoneFloat { 0%,100% { transform: rotateY(-14deg) rotateX(6deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-10px); } }
.guide-phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 62px; height: 12px; background: rgba(0,0,0,.25); border-radius: 999px; }
.guide-app-icon {
  position: absolute; left: 50%; top: 96px; transform: translateX(-50%);
  width: 74px; height: 74px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 22px rgba(0,0,0,.28);
  animation: iconPulse 1.6s ease-in-out infinite;
}
.guide-app-icon img { width: 100%; height: 100%; }
@keyframes iconPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.1); } }
.guide-app-icon::after {
  content: "＋"; position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: #ff8a00; color: #fff; font-size: 16px; line-height: 24px; text-align: center;
  box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(255,138,0,.8);
}
.guide-label { position: absolute; left: 50%; transform: translateX(-50%); bottom: 42px; width: 80%; font-size: 12px; color: #1e3d0d; font-weight: 700; background: rgba(255,255,255,.92); padding: 6px; border-radius: 8px; }
.guide-arrow { position: absolute; right: -26px; top: 150px; font-size: 30px; animation: arrowBounce 1.4s infinite; }
@keyframes arrowBounce { 0%,100% { transform: translateY(0) rotate(-16deg); } 50% { transform: translateY(-10px) rotate(-16deg); } }
.guide-title { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.guide-desc { font-size: 13px; opacity: .85; margin-top: 8px; line-height: 1.7; }
.guide-steps { text-align: left; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 14px; margin: 16px 0 18px; font-size: 12.5px; line-height: 1.9; }
.guide-steps b { color: #ffe08a; }
.guide-btn {
  display: block; width: 100%; padding: 14px; border-radius: 999px; font-weight: 800; font-size: 16px; color: #4a3000;
  background: linear-gradient(145deg, #ffe28a, #ffb92e);
  box-shadow: 0 6px 0 #d98d00, 0 14px 26px rgba(255,180,40,.45);
  animation: breathe 1.6s ease-in-out infinite;
}
.guide-skip { display: block; margin: 14px auto 0; color: rgba(255,255,255,.72); font-size: 13px; text-decoration: underline; }

/* ---------- 登录卡 ---------- */
.login-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.avatar-ring { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, #eaf7dc, #cdeab2); display: grid; place-items: center; font-size: 24px; flex: 0 0 48px; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.login-card .txt b { font-size: 15px; }
.login-card .txt p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.login-btn { padding: 8px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 4px 12px rgba(123,192,67,.4); }

/* ---------- 三种下单方式 ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 6px 8px; }
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.way-item { padding: 14px 10px; text-align: center; position: relative; }
.way-item.wide { grid-column: span 2; border-bottom: 1px solid var(--line); padding: 18px 10px; }
.way-item:nth-child(2) { border-left: 1px solid var(--line); }
.way-ico { font-size: 30px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(47,107,24,.12)); }
.way-title { font-size: 18px; font-weight: 800; margin-top: 6px; color: var(--brand-dark); }
.way-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.way-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; color: #fff; background: var(--orange); padding: 2px 6px; border-radius: 999px; }

/* ---------- 服务入口 ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 8px; }
.service { text-align: center; padding: 6px 0; }
.service .ico { font-size: 26px; }
.service .t { font-size: 12px; margin-top: 4px; color: var(--ink-2); }

/* ---------- 推广横幅 ---------- */
.poster {
  margin: 12px; border-radius: 18px; overflow: hidden; position: relative; color: #fff;
  background: linear-gradient(120deg, #2f6b18, #58a02d 55%, #7bc043);
  padding: 18px; display: flex; align-items: center; justify-content: space-between;
}
.poster::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.poster b { font-size: 18px; letter-spacing: 1px; }
.poster p { font-size: 12px; opacity: .85; margin-top: 6px; }
.poster .go { background: #fff; color: var(--brand-dark); font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 999px; position: relative; z-index: 2; }

/* ---------- 菜品 ---------- */
.goods-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px 12px; scrollbar-width: none; }
.goods-scroll::-webkit-scrollbar { display: none; }
.goods-mini { flex: 0 0 128px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.goods-mini .pic { height: 92px; background: linear-gradient(135deg, #f0f7e7, #dceccf); }
.goods-mini .pic img { width: 100%; height: 100%; object-fit: cover; }
.goods-mini .info { padding: 8px 10px 10px; }
.goods-mini .n { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-mini .p { margin-top: 4px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px;
  height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,.05); display: flex; z-index: 60;
  box-shadow: 0 -6px 20px rgba(30,60,20,.06);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: #93a08d; position: relative; }
.tabbar a .ti { font-size: 20px; line-height: 1; filter: grayscale(1) opacity(.65); transition: .2s; }
.tabbar a.active { color: var(--brand-dark); font-weight: 700; }
.tabbar a.active .ti { filter: none; transform: translateY(-1px); }
.tabbar a.cart-tab .ti { position: relative; }
.tabbar .badge {
  position: absolute; top: 8px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #ff5b33; color: #fff; font-size: 10px; line-height: 16px; text-align: center; border-radius: 999px;
}

/* ---------- 页面通用 header ---------- */
.page-head {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: linear-gradient(120deg, #79c043, #9cd35f); color: #fff;
  box-shadow: 0 4px 14px rgba(47,107,24,.12);
}
.page-head .back { width: 32px; height: 32px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; background: rgba(255,255,255,.18); }
.page-head h1 { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.page-head .right { margin-left: auto; font-size: 13px; opacity: .92; }

/* ---------- 菜单页 ---------- */
.menu-wrap { display: flex; height: calc(100vh - 56px - var(--nav-h)); overflow: hidden; }
.cats { width: 92px; flex: 0 0 92px; background: #f0f4ee; overflow-y: auto; padding: 6px 0 80px; }
.cat { padding: 14px 8px; text-align: center; font-size: 12.5px; color: var(--ink-2); position: relative; line-height: 1.4; }
.cat.active { background: #fff; font-weight: 700; color: var(--brand-deep); }
.cat.active::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.cat .ci { display: block; font-size: 18px; margin-bottom: 2px; }
.goods-area { flex: 1; overflow-y: auto; padding: 6px 12px calc(var(--nav-h) + 80px); background: #fff; }
.cat-title { font-size: 13px; color: var(--muted); padding: 10px 2px 6px; }
.goods { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.goods:last-child { border-bottom: 0; }
.goods .thumb { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex: 0 0 92px; background: linear-gradient(135deg, #f1f7ea, #dfeed3); position: relative; }
.goods .thumb img { width: 100%; height: 100%; object-fit: cover; }
.goods .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.goods .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goods .n { font-size: 15px; font-weight: 700; }
.goods .n .tag { font-size: 10px; color: #fff; background: var(--orange); padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.goods .d { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods .bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.goods .bottom .price { font-size: 17px; }
.goods .bottom .price del { color: #b9c2b3; font-size: 11px; font-weight: 400; margin-left: 4px; }
.add-btn {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700;
  background: linear-gradient(145deg, #8fd05a, #67b233); color: #fff; box-shadow: 0 4px 10px rgba(103,178,51,.35);
}
.add-btn:active { transform: scale(.92); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.stepper .minus { border: 1px solid var(--brand); color: var(--brand-dark); }
.stepper .plus { background: var(--brand); color: #fff; }
.stepper .qty { min-width: 18px; text-align: center; font-weight: 700; }

.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 8px); width: calc(100% - 24px); max-width: 536px;
  background: #24331f; color: #fff; border-radius: 999px; display: flex; align-items: center; padding: 8px 8px 8px 16px;
  z-index: 55; box-shadow: 0 12px 28px rgba(24,52,8,.3); gap: 10px;
}
.cart-bar .cart-ico { position: relative; font-size: 22px; }
.cart-bar .cart-ico .badge { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; background: #ff5b33; color: #fff; font-size: 10px; line-height: 16px; text-align: center; border-radius: 999px; padding: 0 4px; }
.cart-bar .sum { font-size: 18px; font-weight: 800; }
.cart-bar .sum small { font-size: 11px; font-weight: 400; opacity: .7; margin-left: 4px; }
.cart-bar .checkout { margin-left: auto; background: linear-gradient(145deg, #9bd35a, #6fba37); padding: 10px 22px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.cart-bar .checkout.disabled { background: #4a5a44; color: #8fa08a; }

/* ---------- 弹层 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 800; background: rgba(16,32,8,.5); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease both; }
.modal-mask.center { align-items: center; }
.sheet {
  width: 100%; max-width: 560px; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto; animation: slideUp .28s cubic-bezier(.2,.8,.3,1) both;
}
.modal-box { width: min(88vw, 380px); background: #fff; border-radius: 18px; padding: 20px; animation: popIn .25s ease both; }
@keyframes slideUp { from { transform: translateY(30%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(.92); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet h3 { font-size: 17px; margin-bottom: 4px; }
.sheet .sub { font-size: 12px; color: var(--muted); }
.spec-group { margin-top: 16px; }
.spec-group .sg-name { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-opt { padding: 8px 14px; border-radius: 999px; background: #f2f5f0; font-size: 13px; border: 1px solid transparent; }
.spec-opt.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); font-weight: 700; }
.sheet-foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.sheet-foot .price { font-size: 22px; }
.sheet-foot .submit {
  margin-left: auto; padding: 12px 26px; border-radius: 999px; font-weight: 800;
  background: linear-gradient(145deg, #8bcc51, #63b02e); color: #fff; box-shadow: 0 6px 16px rgba(99,176,46,.4);
}

/* ---------- 表单 / 列表 ---------- */
.form-item { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.form-item:last-child { border-bottom: 0; }
.form-item .label { width: 74px; flex: 0 0 74px; font-size: 13px; color: var(--ink-2); }
.form-item input, .form-item textarea { flex: 1; }
.form-item textarea { resize: none; min-height: 44px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .ico { width: 30px; text-align: center; font-size: 19px; }
.list-item .arrow { color: #c3ccbd; font-size: 16px; margin-left: auto; }
.btn-primary { display: block; width: 100%; padding: 14px; border-radius: 999px; text-align: center; font-weight: 800; color: #fff; background: linear-gradient(145deg, #8bcc51, #63b02e); box-shadow: 0 8px 18px rgba(99,176,46,.35); }
.btn-primary:disabled { background: #cfd8c9; box-shadow: none; }
.btn-ghost { display: block; width: 100%; padding: 13px; border-radius: 999px; text-align: center; font-weight: 700; border: 1px solid var(--brand); color: var(--brand-dark); }

/* ---------- 订单 ---------- */
.tabs { display: flex; gap: 4px; padding: 10px 12px; background: #fff; position: sticky; top: 56px; z-index: 30; }
.tabs .tab { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; color: var(--ink-2); border-radius: 999px; }
.tabs .tab.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.order-card { margin: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.order-card .oh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.order-card .oh .st { color: var(--brand-dark); font-weight: 700; }
.order-card .oh .st.warn { color: #e8501c; }
.order-card .oi { padding: 10px 0; font-size: 13px; }
.order-card .oi .line { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ink-2); }
.order-card .of { display: flex; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); gap: 8px; }
.order-card .of .price { font-size: 17px; }
.order-card .of .acts { margin-left: auto; display: flex; gap: 8px; }
.mini-btn { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); color: var(--ink-2); }
.mini-btn.primary { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .e { font-size: 54px; opacity: .5; }

/* 时间轴 */
.timeline { padding: 6px 0 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -4px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #d8e1d2; flex: 0 0 11px; margin-top: 3px; }
.tl-item.on .tl-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(123,192,67,.2); }
.tl-txt b { font-size: 13px; }
.tl-txt p { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 我的 ---------- */
.mine-hero { background: linear-gradient(150deg, #6fb93a, #a3d860); padding: 26px 18px 44px; color: #fff; position: relative; overflow: hidden; }
.mine-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -60px; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 65%); }
.mine-user { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.mine-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 30px; border: 2px solid rgba(255,255,255,.5); overflow: hidden; }
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-user .info b { font-size: 18px; }
.mine-user .info p { font-size: 12px; opacity: .9; margin-top: 3px; }
.mine-assets { margin: -28px 12px 0; position: relative; z-index: 5; background: #fff; border-radius: 16px; box-shadow: var(--shadow); display: flex; }
.mine-assets .a { flex: 1; text-align: center; padding: 16px 4px; }
.mine-assets .a b { display: block; font-size: 19px; color: var(--brand-deep); }
.mine-assets .a span { font-size: 11.5px; color: var(--muted); }
.mine-assets .a + .a { border-left: 1px solid var(--line); }
.rider-switch { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); z-index: 3; animation: spinHint 6s linear infinite; }
@keyframes spinHint { 0%,80% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* ---------- 骑手端 ---------- */
.rider-head { background: linear-gradient(150deg, #2b5c14, #5e9e2c); color: #fff; padding: 18px; }
.rider-stat { display: flex; gap: 10px; margin-top: 14px; }
.rider-stat .s { flex: 1; background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px; text-align: center; }
.rider-stat .s b { display: block; font-size: 20px; }
.rider-stat .s span { font-size: 11px; opacity: .85; }
.route-card { margin: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.route-stops { margin-top: 10px; }
.route-stop { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.route-stop:last-child { border-bottom: 0; }
.route-idx { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; flex: 0 0 22px; font-weight: 700; }
.route-stop .info { flex: 1; font-size: 12.5px; }
.route-stop .info b { font-size: 13px; }
.route-stop .nav { align-self: center; font-size: 12px; color: var(--brand-dark); border: 1px solid var(--brand); padding: 5px 10px; border-radius: 999px; }
.hall-card { margin: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); position: relative; }
.hall-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.hall-card .money { font-size: 20px; color: #e8501c; font-weight: 800; margin-top: 6px; }
.hall-card .addr { font-size: 13px; margin-top: 8px; color: var(--ink-2); }
.hall-card .grab { position: absolute; right: 14px; bottom: 14px; padding: 9px 18px; border-radius: 999px; background: linear-gradient(145deg, #8fd05a, #63b02e); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 6px 14px rgba(99,176,46,.35); }
.switch-online { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sw { width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.25); position: relative; transition: .2s; }
.sw::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.sw.on { background: #b8f07a; }
.sw.on::after { left: 23px; }

/* ---------- 推广 ---------- */
.promo-card { margin: 12px; background: linear-gradient(150deg, #2f6b18, #6fb33a); border-radius: 18px; padding: 18px; color: #fff; position: relative; overflow: hidden; }
.promo-card::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; bottom: -90px; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); }
.promo-code { font-size: 30px; font-weight: 900; letter-spacing: 4px; margin: 10px 0 4px; text-shadow: 0 4px 12px rgba(0,0,0,.2); }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; align-items: center; margin: 12px auto 0; width: 210px; }
.qr-box canvas, .qr-box img { width: 180px; height: 180px; }
.qr-box p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.earn-grid { display: flex; gap: 10px; margin-top: 14px; }
.earn-grid .e { flex: 1; background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px; text-align: center; }
.earn-grid .e b { display: block; font-size: 19px; }
.earn-grid .e span { font-size: 11px; opacity: .85; }

/* ---------- 底部信息 ---------- */
.site-foot { margin: 18px 12px 24px; text-align: center; font-size: 11.5px; color: #9aa694; line-height: 2; }
.site-foot a { color: #7f8c79; text-decoration: underline; }
.site-foot .lic { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: rgba(24,40,16,.9); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; max-width: 80vw; text-align: center; animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- 登录页 ---------- */
.login-hero { text-align: center; padding: 46px 20px 18px; }
.login-hero img { width: 84px; height: 84px; margin: 0 auto; border-radius: 22px; box-shadow: 0 14px 30px rgba(47,107,24,.22); }
.login-hero h2 { font-size: 22px; margin-top: 16px; letter-spacing: 1px; }
.login-hero p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.login-form { margin: 20px 18px; background: #fff; border-radius: 18px; padding: 6px 18px 20px; box-shadow: var(--shadow); }
.code-btn { color: var(--brand-dark); font-weight: 700; font-size: 13px; white-space: nowrap; padding-left: 10px; }
.login-tip { text-align: center; font-size: 11.5px; color: var(--muted); margin: 14px 24px; }
.dev-code { text-align: center; font-size: 12px; color: var(--orange); margin-top: 8px; }

/* ---------- 协议 ---------- */
.doc { margin: 12px; background: #fff; border-radius: 16px; padding: 18px; line-height: 1.9; font-size: 13.5px; color: #3c4a37; white-space: pre-wrap; word-break: break-word; }
.doc h2 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }

/* ---------- 图片证件 ---------- */
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.lic-grid figure { background: #f7f9f5; border: 1px dashed #cfdcc7; border-radius: 12px; padding: 8px; text-align: center; }
.lic-grid img { width: 100%; border-radius: 8px; }
.lic-grid figcaption { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- 骨架屏 ---------- */
.skeleton { background: linear-gradient(90deg, #eef2ec 25%, #f6f9f4 37%, #eef2ec 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 公告条 ---------- */
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.notice-bar .ico { font-size: 17px; flex: 0 0 auto; }
.notice-bar .track { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-bar .track span { display: inline-block; padding-left: 100%; animation: marquee 16s linear infinite; font-size: 12.5px; color: var(--ink-2); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- 引导补充 ---------- */
.guide-steps.light { background: #f5f9f2; border-color: #e0ecda; color: #41523b; }
.guide-steps.light b { color: #5aa62f; }
.guide-once { font-size: 11px; opacity: .55; margin-top: 10px; }
.guide-steps { font-size: 12.5px; }

/* ---------- 结算 ---------- */
.checkout-type { display: flex; gap: 6px; padding: 4px; background: #f2f5f0; border-radius: 999px; }
.checkout-type button { flex: 1; padding: 9px 0; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.checkout-type button.on { background: #fff; color: var(--brand-deep); font-weight: 700; box-shadow: 0 2px 10px rgba(47,107,24,.12); }
.addr-card { display: flex; align-items: flex-start; gap: 10px; }
.addr-card .ico { font-size: 22px; }
.addr-card .detail { font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.addr-card .contact { font-size: 12px; color: var(--muted); margin-top: 4px; }
.co-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.co-item:last-child { border-bottom: 0; }
.co-item .thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: 0 0 46px; background: linear-gradient(135deg,#f1f7ea,#dfeed3); position: relative; }
.co-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.co-item .meta { flex: 1; min-width: 0; }
.co-item .meta b { font-size: 13.5px; }
.co-item .meta p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.bill-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.bill-row.total { font-size: 16px; color: var(--ink); font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pay-opt:last-child { border-bottom: 0; }
.pay-opt .ico { width: 26px; text-align: center; font-size: 18px; }
.pay-opt .r { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.coupon-line { display: flex; align-items: center; gap: 8px; padding: 13px 0; font-size: 13.5px; }
.coupon-line .v { margin-left: auto; color: #e8501c; font-weight: 700; }
.sticky-submit { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; z-index: 50; }
.sticky-submit .price { font-size: 20px; }
.sticky-submit .btn-primary { width: auto; flex: 1; padding: 13px; }
body.checkout-page { padding-bottom: 84px; }

/* ---------- 优惠券 ---------- */
.ticket { display: flex; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.ticket .amt { width: 104px; flex: 0 0 104px; background: linear-gradient(160deg,#7bc043,#5aa62f); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 4px; }
.ticket .amt b { font-size: 24px; line-height: 1; }
.ticket .amt b small { font-size: 12px; }
.ticket .amt span { font-size: 10.5px; opacity: .9; margin-top: 4px; }
.ticket .info { flex: 1; padding: 12px 14px; min-width: 0; }
.ticket .info b { font-size: 14px; }
.ticket .info p { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ticket .act { align-self: center; padding-right: 12px; }
.ticket.used { opacity: .55; }
.ticket.used .amt { background: #b9c2b3; }
.coupon-tabs { display: flex; gap: 8px; margin: 12px; }
.coupon-tabs button { flex: 1; padding: 10px 0; border-radius: 999px; background: #fff; font-size: 13px; box-shadow: var(--shadow); }
.coupon-tabs button.on { background: var(--brand); color: #fff; font-weight: 700; }

/* ---------- 地址 ---------- */
.addr-item { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.addr-item .ico { width: 30px; font-size: 20px; text-align: center; }
.addr-item .grow b { font-size: 14.5px; }
.addr-item .grow p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.addr-item .ops { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 订单详情 ---------- */
.status-hero { background: linear-gradient(150deg,#6fb93a,#9bd35f); color: #fff; padding: 24px 18px 26px; position: relative; overflow: hidden; }
.status-hero::after { content:""; position:absolute; width:200px; height:200px; right:-60px; top:-70px; background: radial-gradient(circle,rgba(255,255,255,.3),transparent 65%); }
.status-hero .st { font-size: 26px; font-weight: 900; letter-spacing: 1px; position: relative; z-index: 2; }
.status-hero .eta { font-size: 12.5px; opacity: .9; margin-top: 8px; position: relative; z-index: 2; }
.status-hero .code { position: relative; z-index: 2; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.32); font-size: 13px; }
.status-hero .code b { font-size: 20px; letter-spacing: 2px; }
.order-head { background: #fff; padding: 4px 16px; }
.order-sec { margin: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.order-sec h3 { font-size: 14px; margin-bottom: 6px; }
.rider-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rider-row .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; }

/* ---------- 我的菜单 ---------- */
.mine-menu { margin: 12px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff5b33; color: #fff; font-size: 10px; line-height: 18px; text-align: center; margin-left: auto; }
.ver-line { text-align: center; font-size: 11.5px; color: var(--muted); margin: 18px 0 6px; }

/* ---------- 骑手 ---------- */
.rider-tabs { display: flex; gap: 8px; padding: 12px; position: sticky; top: 0; background: var(--bg); z-index: 30; }
.rider-tabs button { flex: 1; padding: 10px 0; border-radius: 999px; background: #fff; font-size: 13px; box-shadow: var(--shadow); }
.rider-tabs button.on { background: var(--brand); color: #fff; font-weight: 700; }
.rider-order .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rider-order .acts .mini-btn { flex: 1; text-align: center; }
.route-meta { display: flex; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.route-meta span { background: #f3f7ef; border-radius: 8px; padding: 4px 8px; }

/* ---------- 推广 ---------- */
.qr-box canvas { width: 100% !important; height: auto !important; image-rendering: pixelated; }
.qr-actions { display: flex; gap: 10px; margin-top: 12px; }
.qr-actions .btn-ghost, .qr-actions .btn-primary { flex: 1; width: auto; padding: 11px; font-size: 13px; }
.promo-link { background: #fff; border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 12px; color: var(--ink-2); word-break: break-all; border: 1px dashed #d7e5cf; }
.record-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.record-row:last-child { border-bottom: 0; }
.record-row .st { font-size: 11px; color: var(--brand-dark); }

/* ---------- 文档页 ---------- */
.doc-title { text-align: center; font-size: 18px; font-weight: 800; margin: 16px 0 4px; }
.doc-date { text-align: center; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }

/* ---------- 通用小工具 ---------- */
.flex-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-chip { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }
.hint-line { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.center { text-align: center; }

@media (max-width: 360px) {
  .hero-slogan { font-size: 25px; }
  .goods .thumb { width: 78px; height: 78px; flex-basis: 78px; }
  .cats { width: 82px; flex-basis: 82px; }
  .ticket .amt { width: 88px; flex-basis: 88px; }
}
