/* 蟹墩墩网页版。配色取自设计稿：橙红 #E8541E、金 #C89B54、米白底 #FDF6EE
   字阶 13/15/17/20/25/31，间距 4px 栅格，圆角 8/16 两档，阴影两级 */
:root {
  color-scheme: light;
  --brand: #E8541E;
  --brand-deep: #C2410F;
  --brand-soft: #FDEBE1;
  --gold: #C89B54;
  --gold-deep: #9A7232;
  --gold-soft: #F7EEDC;
  --bg: #FDF6EE;
  --card: #FFFDFA;
  --line: #EFE4D6;
  --text: #2B1D14;
  --text-sub: #75655A;
  --text-mute: #A39385;
  --ok: #2F7D4F;
  --r-sm: 8px;
  --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(120, 72, 30, .06);
  --sh-2: 0 8px 24px rgba(120, 72, 30, .10);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --tab-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
svg.i { width: var(--s, 20px); height: var(--s, 20px); flex: none; stroke-width: 1.75; }
[hidden] { display: none !important; }

.view {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px);
}
.view.no-tab { padding-bottom: calc(96px + var(--safe-b)); }

/* ---------- 底部 tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: rgba(255, 253, 250, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar-inner { display: flex; width: 100%; max-width: 480px; height: var(--tab-h); }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--text-mute); position: relative;
}
.tab svg.i { --s: 22px; }
.tab.on { color: var(--brand); }
.tab-badge {
  position: absolute; top: 4px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}

/* ---------- 通用 ---------- */
.pad { padding: 0 16px; }
.sec { margin-top: 24px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-title { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: .5px; }
.more { font-size: 13px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 2px; }
.more svg.i { --s: 14px; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1), 0 0 0 1px rgba(200, 155, 84, .08); }
.price { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: .7em; margin-right: 1px; }
.muted { color: var(--text-sub); }
.tiny { font-size: 13px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; height: 48px; padding: 0 8px;
  background: rgba(253, 246, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; margin: 0; padding-right: 40px; }
.back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 20px; }
.back svg.i { --s: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 22px;
  font-size: 15px; font-weight: 600; transition: transform .15s ease-out, filter .15s ease-out;
}
.btn:active { transform: scale(.98); filter: brightness(.95); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 16px; }
.btn[disabled] { background: #E6DCD0; color: #9C8E82; box-shadow: none; pointer-events: none; }

/* 状态页：空 / 加载 / 出错 */
.state { padding: 64px 32px; text-align: center; color: var(--text-sub); }
.state img { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; mix-blend-mode: multiply; }
.state svg.i { --s: 40px; color: var(--gold); margin: 0 auto 12px; display: block; }
.state p { margin: 0 0 4px; }
.state .btn { margin-top: 20px; }
.skel { background: linear-gradient(90deg, #F3E9DC 25%, #F9F1E7 50%, #F3E9DC 75%); background-size: 200% 100%; animation: skel 1.2s infinite linear; border-radius: var(--r-sm); }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- 首页 ---------- */
.brand-bar { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.brand-bar img { width: 56px; height: 56px; }
.brand-name { font-family: var(--serif); font-size: 25px; font-weight: 900; line-height: 1.1; letter-spacing: 2px; }
.brand-slogan { font-size: 13px; color: var(--text-sub); letter-spacing: 4px; margin-top: 4px; }
.banner { margin: 0 16px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 872 / 340; background: var(--gold-soft); box-shadow: var(--sh-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 16px 0; }
.cta {
  height: 56px; border-radius: var(--r-lg); color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden;
}
.cta::after { /* 浅浅一道水纹，呼应设计稿按钮底纹 */
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none;
}
.cta-brand { background: linear-gradient(180deg, #EE6A33, var(--brand)); box-shadow: 0 6px 16px rgba(232, 84, 30, .28); }
.cta-gold { background: linear-gradient(180deg, #D6AE6C, var(--gold)); box-shadow: 0 6px 16px rgba(200, 155, 84, .28); }
.cta .dot { width: 22px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .9); display: grid; place-items: center; }
.cta-brand .dot { color: var(--brand); }
.cta-gold .dot { color: var(--gold-deep); }
.cta .dot svg.i { --s: 14px; stroke-width: 2.5; }

.nav-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 16px 0; padding: 12px 4px; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.nav-item img { width: 52px; height: 52px; mix-blend-mode: multiply; }

.goods-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.goods { overflow: hidden; display: flex; flex-direction: column; }
.goods-media { position: relative; aspect-ratio: 271 / 158; background: var(--gold-soft); }
.goods-media img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 0; top: 0; padding: 0 6px; height: 20px; line-height: 20px;
  font-size: 11px; color: #fff; background: var(--brand); border-radius: var(--r-sm) 0 var(--r-sm) 0;
}
.tag.t-gold { background: var(--gold); }
.goods-body { padding: 8px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.goods-name { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.goods-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.goods-foot .price { font-size: 17px; }
.add-mini { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--brand); color: #fff; display: grid; place-items: center; }
.add-mini svg.i { --s: 16px; }
.add-mini[disabled] { background: #E6DCD0; color: #9C8E82; }
.sold { font-size: 11px; color: var(--text-mute); }

.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.point { padding: 12px 4px; text-align: center; }
.point img { width: 44px; height: 44px; margin: 0 auto 4px; mix-blend-mode: multiply; }
.point b { display: block; font-size: 13px; }
.point span { display: block; font-size: 11px; color: var(--text-sub); line-height: 1.5; }

.story { position: relative; margin: 24px 16px 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 872 / 300; background: var(--gold-soft); }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.story-text {
  position: absolute; inset: 0; padding: 16px; width: 72%;
  background: linear-gradient(90deg, rgba(253, 246, 238, .97) 55%, rgba(253, 246, 238, 0));
  display: flex; flex-direction: column; justify-content: center;
}
.story-text h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 4px; }
.story-text p { font-size: 11px; line-height: 1.6; color: var(--text-sub); margin: 0 0 8px; }
.story-text .btn-sm { align-self: flex-start; height: 26px; padding: 0 12px; font-size: 11px; background: var(--gold); color: #fff; }

.foot-note { text-align: center; color: var(--text-mute); font-size: 13px; padding: 32px 0 8px; letter-spacing: 2px; }

/* ---------- 分类 ---------- */
.search { display: flex; gap: 8px; padding: 12px 16px 0; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.search-box svg.i { --s: 18px; color: var(--text-mute); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search-box .clear { color: var(--text-mute); display: grid; place-items: center; width: 24px; height: 24px; }
.chips { display: flex; gap: 8px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-sub); }
.chip.on { background: var(--brand); color: #fff; box-shadow: none; font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 0; }
.row-item { display: flex; gap: 12px; padding: 12px; }
.row-img { width: 112px; flex: none; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--gold-soft); position: relative; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-img .mask { position: absolute; inset: 0; background: rgba(43, 29, 20, .45); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 15px; font-weight: 600; line-height: 1.4; }
.row-spec { font-size: 13px; color: var(--text-sub); margin-top: 2px; }
.badges { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; color: var(--brand-deep); background: var(--brand-soft); }
.badge.plain { color: var(--gold-deep); background: var(--gold-soft); }
.row-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.row-foot .price { font-size: 20px; }

/* ---------- 详情 ---------- */
.hero-img { aspect-ratio: 271 / 170; background: var(--gold-soft); position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.float-back { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 18px; background: rgba(255, 253, 250, .9); display: grid; place-items: center; box-shadow: var(--sh-1); }
.info { margin: -24px 16px 0; padding: 16px; position: relative; }
.info-top { display: flex; align-items: baseline; gap: 8px; }
.info-top .price { font-size: 31px; line-height: 1.1; }
.info-stock { margin-left: auto; font-size: 13px; color: var(--text-sub); }
.info-stock.out { color: var(--brand-deep); }
.info h2 { font-family: var(--serif); font-size: 20px; margin: 8px 0 2px; }
.guards { margin: 12px 16px 0; padding: 4px 16px; }
.guard { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.guard + .guard { border-top: 1px solid var(--line); }
.guard img { width: 40px; height: 40px; mix-blend-mode: multiply; }
.guard b { display: block; font-size: 15px; }
.guard span { font-size: 13px; color: var(--text-sub); }
.prose { padding: 16px; margin: 12px 16px 0; }
.prose h3 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; }
.prose p { margin: 0; color: var(--text-sub); line-height: 1.75; }
.prose img { margin-top: 12px; border-radius: var(--r-sm); }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 253, 250, .97); border-top: 1px solid var(--line);
  padding: 8px 16px calc(8px + var(--safe-b));
}
.bar-inner { max-width: 448px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.bar-icon { width: 44px; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-sub); position: relative; }
.bar-icon .tab-badge { top: -4px; left: 26px; }
.bar .btn { flex: 1; white-space: nowrap; padding: 0 12px; }
.bar-sum { flex: 1; text-align: right; font-size: 13px; color: var(--text-sub); }
.bar-sum .price { font-size: 20px; margin-left: 4px; }
.bar .btn.fit { flex: none; min-width: 120px; }

/* ---------- 购物车 ---------- */
.check { width: 22px; height: 22px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px #D3C4B5; display: grid; place-items: center; color: transparent; flex: none; }
.check svg.i { --s: 14px; stroke-width: 3; }
.check.on { background: var(--brand); box-shadow: none; color: #fff; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 12px; }
.cart-item .row-img { width: 88px; }
.stepper { display: flex; align-items: center; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-sub); }
.stepper button svg.i { --s: 16px; }
.stepper span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.link-del { font-size: 13px; color: var(--text-mute); padding: 4px; }
.cart-tools { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 0; font-size: 13px; color: var(--text-sub); }

/* ---------- 表单 ---------- */
.form { padding: 4px 16px; }
.field { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.field + .field { border-top: 1px solid var(--line); }
.field > label, .field > .label { width: 72px; flex: none; font-size: 15px; color: var(--text); }
.field input, .field textarea, .field select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; padding: 8px 0;
}
.field textarea { resize: none; min-height: 72px; line-height: 1.6; }
.field.top { align-items: flex-start; }
.field.top > label { padding-top: 8px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field select { appearance: none; -webkit-appearance: none; color: var(--text); }
.field select:invalid { color: var(--text-mute); }
.region { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.region select { padding: 8px 6px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; text-overflow: ellipsis; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: #E2D6C9; transition: background .2s ease-out; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: var(--sh-1); transition: transform .2s ease-out; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-actions { padding: 20px 16px 0; }
.err { color: var(--brand-deep); font-size: 13px; padding: 8px 16px 0; min-height: 1.6em; }

/* ---------- 蟹卡 ---------- */
.card-hero { margin: 16px 16px 0; padding: 20px; border-radius: var(--r-lg); color: #fff; display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, #D9B276, var(--gold) 55%, #A77C3B); box-shadow: var(--sh-2); }
.card-hero img { width: 64px; height: 64px; flex: none; }
.card-hero h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 4px; letter-spacing: 1px; }
.card-hero p { margin: 0; font-size: 13px; opacity: .92; }
.addr-pick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.addr-pick > svg.i { color: var(--brand); --s: 22px; }
.addr-pick .grow { flex: 1; min-width: 0; }
.addr-pick b { font-size: 15px; margin-right: 8px; }
.addr-pick .line2 { font-size: 13px; color: var(--text-sub); margin-top: 2px; word-break: break-all; }
.addr-pick .chev { color: var(--text-mute); }
.notes { padding: 16px; }
.notes h3 { font-size: 15px; margin: 0 0 8px; }
.notes li { font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.notes ul { margin: 0; padding-left: 18px; }
.mycard { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.mycard + .mycard { border-top: 1px solid var(--line); }
.mycard svg.i { color: var(--gold); }
.mycard .grow { flex: 1; min-width: 0; }
.mycard .no { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-sub); }

/* ---------- 我的 ---------- */
.profile { display: flex; align-items: center; gap: 16px; padding: 24px 16px 8px; }
.profile img { width: 64px; height: 64px; border-radius: 32px; background: #fff; box-shadow: var(--sh-1); }
.profile .grow { flex: 1; min-width: 0; }
.nick { width: 100%; border: 0; outline: 0; background: none; font-family: var(--serif); font-size: 20px; font-weight: 700; padding: 2px 0; border-bottom: 1px dashed transparent; }
.nick:focus { border-bottom-color: var(--gold); }
.nick::placeholder { color: var(--text-sub); font-weight: 400; }
.ostates { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 0 12px; }
.ostate { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; position: relative; padding-top: 8px; }
.ostate svg.i { --s: 26px; color: var(--brand); }
.ostate .tab-badge { top: 2px; left: calc(50% + 8px); }
.menu { padding: 0 16px; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; height: 52px; width: 100%; text-align: left; }
.menu a + a, .menu a + button, .menu button + a { border-top: 1px solid var(--line); }
.menu svg.i:first-child { color: var(--gold-deep); }
.menu .grow { flex: 1; }
.menu .chev { color: var(--text-mute); --s: 18px; }
.hint { margin: 16px 16px 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-soft); color: var(--gold-deep); font-size: 13px; line-height: 1.6; display: flex; gap: 8px; }
.hint svg.i { --s: 18px; margin-top: 2px; }

/* ---------- 订单 ---------- */
.otabs { position: sticky; top: 48px; z-index: 9; display: flex; background: var(--bg); padding: 0 8px; border-bottom: 1px solid var(--line); }
.otab { flex: 1; height: 44px; font-size: 15px; color: var(--text-sub); position: relative; }
.otab.on { color: var(--text); font-weight: 600; }
.otab.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--brand); }
.order { padding: 12px 16px; }
.order-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-sub); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.order-head b { color: var(--brand-deep); font-weight: 600; }
.order-head b.done { color: var(--text-sub); }
.oline { display: flex; gap: 12px; padding: 12px 0 0; }
.oline .row-img { width: 64px; }
.oline .grow { flex: 1; min-width: 0; font-size: 15px; }
.oline .qty { font-size: 13px; color: var(--text-sub); text-align: right; }
.order-sum { text-align: right; font-size: 13px; color: var(--text-sub); padding-top: 8px; }
.order-sum .price { font-size: 17px; }
.order-acts { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.pill { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--gold-soft); color: var(--gold-deep); margin-left: 6px; vertical-align: 1px; }
.kv { padding: 4px 16px; }
.kv div { display: flex; gap: 12px; padding: 10px 0; font-size: 15px; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { width: 72px; flex: none; color: var(--text-sub); }
.kv dd { margin: 0; flex: 1; min-width: 0; word-break: break-all; }
.status-hero { padding: 20px 16px 8px; }
.status-hero h2 { font-family: var(--serif); font-size: 25px; margin: 0; }
.status-hero p { margin: 4px 0 0; color: var(--text-sub); font-size: 13px; }

/* ---------- 地址 ---------- */
.addr { padding: 14px 16px; }
.addr-top { display: flex; align-items: center; gap: 8px; }
.addr-top b { font-size: 17px; }
.addr-top span { color: var(--text-sub); font-variant-numeric: tabular-nums; }
.addr p { margin: 4px 0 0; font-size: 13px; color: var(--text-sub); word-break: break-all; }
.addr-ops { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-sub); }
.addr-ops .def { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.addr-ops .def .check { width: 18px; height: 18px; }
.addr-ops .def .check svg.i { --s: 12px; }
.addr.picked { box-shadow: 0 0 0 2px var(--brand); }

/* ---------- 内容页（溯源/团购/关于/客服） ---------- */
.page-hero { padding: 24px 16px 8px; }
.page-hero h1 { font-family: var(--serif); font-size: 31px; line-height: 1.2; margin: 0; letter-spacing: 1px; }
.page-hero p { margin: 8px 0 0; color: var(--text-sub); max-width: 34em; }
/* 这张图左半边自带标题字，页面上已经有标题，只露右半边的湖景 */
.wide-img { margin: 16px 16px 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2.4; background: var(--gold-soft); }
.wide-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.steps { padding: 8px 16px 16px; }
.step { display: flex; gap: 12px; position: relative; padding-top: 16px; }
.step-dot { width: 28px; height: 28px; border-radius: 14px; flex: none; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: 13px; display: grid; place-items: center; position: relative; z-index: 1; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 44px; bottom: -16px; width: 1px; background: var(--line); }
.step b { display: block; font-size: 15px; }
.step span { font-size: 13px; color: var(--text-sub); }
.promise { margin: 12px 16px 0; padding: 20px 16px; text-align: center; background: var(--gold-soft); border-radius: var(--r-lg); }
.promise b { font-family: var(--serif); font-size: 17px; display: block; letter-spacing: 1px; }
.promise span { font-size: 13px; color: var(--gold-deep); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row > svg.i { color: var(--brand); --s: 22px; }
.contact-row .grow { flex: 1; min-width: 0; }
.contact-row .val { font-size: 13px; color: var(--text-sub); }
.contact-row .val.todo { color: var(--text-mute); }
.brand-block { text-align: center; padding: 32px 16px 8px; }
.brand-block img { width: 96px; height: 96px; margin: 0 auto 12px; }
.brand-block h1 { font-family: var(--serif); font-size: 31px; margin: 0; letter-spacing: 4px; }
.brand-block p { margin: 4px 0 0; color: var(--text-sub); letter-spacing: 4px; font-size: 13px; }

/* ---------- 浮层 ---------- */
.toast {
  position: fixed; left: 50%; top: 40%; z-index: 100; transform: translate(-50%, -50%);
  max-width: min(320px, 80vw); padding: 12px 20px; border-radius: var(--r-sm);
  background: rgba(43, 29, 20, .9); color: #fff; font-size: 15px; text-align: center; line-height: 1.5;
  animation: fade .18s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.mask { position: fixed; inset: 0; z-index: 50; background: rgba(43, 29, 20, .45); animation: fade .18s ease-out; display: flex; align-items: center; justify-content: center; padding: 32px; }
.dialog { width: 100%; max-width: 320px; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.dialog-body { padding: 24px 20px 20px; text-align: center; }
.dialog-body h3 { margin: 0 0 8px; font-size: 17px; }
.dialog-body p { margin: 0; color: var(--text-sub); font-size: 15px; white-space: pre-line; }
.dialog-acts { display: flex; border-top: 1px solid var(--line); }
.dialog-acts button { flex: 1; height: 50px; font-size: 17px; }
.dialog-acts button + button { border-left: 1px solid var(--line); }
.dialog-acts .ok { color: var(--brand); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 481px) {
  body { background: #F3EADF; }
  .view { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
}
