/* 云匠商城 · 前台基础样式（主题共享结构层） */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #e6e9ec;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.ic { flex: none; vertical-align: middle; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 20, .04), 0 18px 60px rgba(15, 23, 20, .12);
}
.app.no-tabbar { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 520px) {
  body { background: var(--bg); }
  .app { max-width: none; box-shadow: none; }
}

/* ---------- 顶部 ---------- */
.shop-top {
  position: sticky; top: 0; z-index: 30;
  padding: 14px 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 10px;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .shop-top { background: var(--bg); }
}
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 11px; object-fit: cover;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; flex: none;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.brand-row .spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
}
.searchbar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
}
.searchbar .ic { color: var(--muted); }
.searchbar form { display: contents; }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); min-width: 0; }
.searchbar input::placeholder { color: var(--muted); opacity: .85; }

/* ---------- 轮播 ---------- */
.hero { padding: 4px 16px 0; }
.hero-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 1080 / 500; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: var(--surface);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.hero-dots span { width: 5px; height: 5px; border-radius: 99px; background: var(--line); transition: .25s; }
.hero-dots span.on { width: 16px; background: var(--primary); }
.hero-empty {
  margin: 4px 16px 0; height: 132px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 22px;
}
.hero-empty strong { font-size: 20px; letter-spacing: .02em; }
.hero-empty span { opacity: .82; font-size: 12px; margin-top: 6px; }

/* ---------- 公告 ---------- */
.notice {
  margin: 12px 16px 0; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.notice .ic { color: var(--primary); }
.notice-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 分类宫格 ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px;
  padding: 18px 12px 6px;
}
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text); }
.cat-icon {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--primary);
}
.cat-item:nth-child(3n+2) .cat-icon { color: var(--accent); }
.cat-item span { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 区块标题 ---------- */
.section { padding: 18px 16px 4px; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.section-head small { color: var(--muted); font-size: 11px; }
.section-head a { margin-left: auto; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 2px; }

/* ---------- 商品卡 ---------- */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.p-cover { position: relative; aspect-ratio: 1 / 1; background: var(--bg); overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-card:active .p-cover img { transform: scale(1.02); }
.p-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  background: var(--primary); color: #fff; font-size: 10px; line-height: 1;
  padding: 4px 6px; border-radius: 6px; letter-spacing: .02em;
}
.p-badge--alt { background: var(--accent); color: #2b1d00; }
.p-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.p-title {
  font-size: 13px; line-height: 1.42; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.84em;
}
.p-sub { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.p-price { color: var(--primary); font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1; }
.p-price .yen { font-size: 11px; font-weight: 600; margin-right: 1px; }
.p-price small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.p-sales { font-size: 10px; color: var(--muted); }
.p-market { font-size: 10px; color: var(--muted); text-decoration: line-through; }
.p-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cols-3 .p-title { font-size: 12px; }
.cols-3 .p-price { font-size: 15px; }
.cols-3 .p-body { padding: 7px 8px 9px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .tabbar { background: var(--surface); }
}
.tabbar-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--muted); padding: 2px 0;
}
.tabbar-item.is-active { color: var(--primary); }
.tabbar-item.is-active .ic { stroke-width: 2; }
.tabbar-badge {
  position: absolute; top: -2px; left: calc(50% + 5px); min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 99px; background: #e5484d; color: #fff;
  font-size: 9px; line-height: 15px; text-align: center; font-weight: 600;
}
@media (min-width: 521px) {
  .tabbar { border-radius: 0 0 18px 18px; }
}

/* ---------- 内页导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  height: 52px; padding: 0 10px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .navbar { background: var(--bg); }
}
.navbar h1 { flex: 1; font-size: 16px; font-weight: 650; text-align: center; letter-spacing: .01em; }
.nav-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); flex: none;
}
.nav-right { width: 34px; display: flex; justify-content: flex-end; }

/* ---------- 通用块 ---------- */
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.pad { padding: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform .12s, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--soft { background: var(--surface); color: var(--primary); border-color: var(--line); }
.btn--small { height: 34px; font-size: 12px; padding: 0 14px; }
.btn--dark { background: var(--text); color: var(--surface); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 11px;
}
.chip--on { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-art {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 26px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.empty p { color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.empty span { font-size: 12px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.form-grid { display: flex; flex-direction: column; gap: 12px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12px; color: var(--muted); cursor: pointer;
}
.radio-pill input { display: none; }
.radio-pill:has(input:checked) { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

/* ---------- 商品详情 ---------- */
.gallery { position: relative; background: var(--surface); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; aspect-ratio: 1/1; object-fit: cover; scroll-snap-align: center; }
.gallery-count {
  position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; letter-spacing: .04em;
}
.price-block { padding: 16px; background: var(--surface); }
.price-line { display: flex; align-items: baseline; gap: 8px; }
.price-now { color: var(--primary); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.price-now .yen { font-size: 15px; margin-right: 1px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.price-tag { margin-left: auto; font-size: 11px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); padding: 4px 8px; border-radius: 6px; }
.detail-title { font-size: 17px; font-weight: 650; line-height: 1.45; margin-top: 8px; }
.detail-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.meta-row { display: flex; gap: 16px; padding: 12px 16px; font-size: 11px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.meta-row b { color: var(--text); font-weight: 600; }
.option-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; }
.option-row .label { color: var(--muted); width: 44px; flex: none; font-size: 12px; }
.option-row .value { flex: 1; }
.detail-body { padding: 16px; background: var(--surface); margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--text); }
.detail-body img { border-radius: 10px; margin: 10px 0; }
.detail-body h3 { font-size: 15px; margin: 4px 0 8px; }
.detail-body ul { padding-left: 18px; list-style: disc; color: var(--muted); margin: 8px 0; }
.detail-body li { margin: 4px 0; }
.buybar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.buybar .mini { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); width: 46px; }
.buybar .btn { flex: 1; height: 42px; font-size: 14px; }
.buybar .btn--soft { flex: 0 0 108px; }
.app.has-buybar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---------- 规格面板 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(12, 18, 15, .45);
  opacity: 0; pointer-events: none; transition: opacity .22s;
  backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 51; left: 50%; bottom: 0; transform: translate(-50%, 102%);
  width: 100%; max-width: 480px; background: var(--surface);
  border-radius: 20px 20px 0 0; transition: transform .28s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom);
  max-height: 82dvh; overflow-y: auto;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-head { display: flex; gap: 12px; padding: 18px 18px 10px; }
.sheet-head img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.sheet-head .price { color: var(--primary); font-size: 22px; font-weight: 700; }
.sheet-body { padding: 6px 18px 4px; }
.sheet-group { padding: 10px 0; }
.sheet-group .label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sheet-foot { padding: 12px 18px 18px; }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }

/* ---------- 分类页 ---------- */
.cat-layout { display: grid; grid-template-columns: 96px 1fr; min-height: calc(100dvh - 52px); }
.cat-side { background: var(--surface); border-right: 1px solid var(--line); padding: 8px 0 80px; }
.cat-side a {
  display: block; padding: 14px 8px; text-align: center; font-size: 12px; color: var(--muted);
  border-left: 2px solid transparent; line-height: 1.3;
}
.cat-side a.on { color: var(--primary); border-left-color: var(--primary); font-weight: 600; background: var(--bg); }
.cat-main { padding: 14px 12px 90px; }
.cat-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.cat-banner img { width: 100%; aspect-ratio: 2.4/1; object-fit: cover; }
.list-item {
  display: flex; gap: 12px; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px;
}
.list-item img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; }
.list-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-item .title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item .sub { font-size: 11px; color: var(--muted); }
.list-item .bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.list-item .price { color: var(--primary); font-weight: 700; font-size: 16px; }
.list-item .price .yen { font-size: 10px; }

/* ---------- 购物车 ---------- */
.cart-list { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: flex; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checkbox {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; flex: none; margin-top: 34px; color: transparent; background: var(--surface);
}
.checkbox.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cart-item img { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; flex: none; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-spec { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 2px 7px; align-self: flex-start; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 28px; height: 26px; display: grid; place-items: center; color: var(--muted); }
.stepper span { min-width: 30px; text-align: center; font-size: 12px; font-weight: 600; }
.cart-foot {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 40;
  width: 100%; max-width: 480px; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.cart-total { flex: 1; font-size: 12px; color: var(--muted); }
.cart-total b { display: block; color: var(--primary); font-size: 20px; font-weight: 700; line-height: 1.2; }
.cart-total b .yen { font-size: 12px; }
.cart-empty { padding-top: 70px; }
.app.has-tabbar .cart-foot { bottom: calc(58px + env(safe-area-inset-bottom)); }
.app.has-tabbar .cart-list { padding-bottom: 78px; }
.app.has-tabbar .cart-empty + div { padding-bottom: 70px; }

/* ---------- 我的 ---------- */
.profile {
  margin: 12px 16px 0; padding: 20px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; position: relative; overflow: hidden;
}
.profile::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  right: -50px; top: -80px; background: rgba(255, 255, 255, .14);
}
.profile-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.profile img { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); object-fit: cover; }
.profile .name { font-size: 17px; font-weight: 650; }
.profile .sub { font-size: 11px; opacity: .78; margin-top: 3px; }
.profile-stats { display: flex; gap: 22px; margin-top: 16px; position: relative; z-index: 1; }
.profile-stats div { display: flex; flex-direction: column; gap: 2px; }
.profile-stats b { font-size: 18px; }
.profile-stats span { font-size: 10px; opacity: .78; }
.order-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 8px; }
.order-strip a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); position: relative; }
.order-strip .ic { color: var(--text); }
.order-strip .dot { position: absolute; top: -2px; right: 16px; min-width: 14px; height: 14px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 9px; line-height: 14px; text-align: center; }
.menu-list { margin: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .ic { color: var(--muted); }
.menu-item .arrow { margin-left: auto; color: var(--muted); }

/* ---------- 登录 ---------- */
.login-wrap { padding: 36px 24px; }
.login-logo { width: 66px; height: 66px; border-radius: 20px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.login-title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.login-sub { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.7; }
.login-card { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.wechat-btn { background: #07c160; }

/* ---------- 结算 / 订单 ---------- */
.addr-card { margin: 12px 16px 0; padding: 16px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.addr-card .ic { color: var(--primary); margin-top: 2px; }
.addr-card .name { font-size: 14px; font-weight: 650; }
.addr-card .detail { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.goods-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goods-line:last-child { border-bottom: 0; }
.goods-line img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; }
.goods-line .t { font-size: 12px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-line .s { font-size: 11px; color: var(--muted); margin-top: 3px; }
.sum-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12px; color: var(--muted); }
.sum-line.total { color: var(--text); font-size: 14px; padding-top: 10px; }
.sum-line.total b { color: var(--primary); font-size: 20px; }
.order-card { margin: 12px 14px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.order-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.order-head b { color: var(--primary); font-weight: 600; }
.order-goods { display: flex; gap: 10px; }
.order-goods img { width: 66px; height: 66px; border-radius: 8px; object-fit: cover; }
.order-goods .t { font-size: 12px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-goods .s { font-size: 11px; color: var(--muted); margin-top: 4px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.order-foot .amount b { color: var(--text); font-size: 16px; }
.order-actions { display: flex; gap: 8px; }
.pay-amount { text-align: center; padding: 34px 0 20px; }
.pay-amount span { font-size: 12px; color: var(--muted); }
.pay-amount strong { display: block; font-size: 40px; letter-spacing: -.02em; margin-top: 8px; font-weight: 700; }
.pay-amount strong small { font-size: 18px; font-weight: 500; margin-right: 4px; }
.pay-method { margin: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pay-method .m { display: flex; align-items: center; gap: 12px; padding: 16px; font-size: 13px; }
.pay-method .m .wechat { width: 32px; height: 32px; border-radius: 9px; background: #07c160; color: #fff; display: grid; place-items: center; }
.pay-note { margin: 14px 16px; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  background: rgba(17, 22, 19, .88); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; max-width: 76vw; text-align: center;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.skeleton { background: linear-gradient(90deg, var(--line), transparent, var(--line)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.footer-note { text-align: center; color: var(--muted); font-size: 10px; padding: 26px 0 18px; letter-spacing: .04em; }
.safe-bottom { height: env(safe-area-inset-bottom); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
