/* ============================================================
   邻享会员 · 设计系统
   移动优先：先写手机版，再向上加断点
   ============================================================ */

:root {
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --surface: #fffdf8;
  --ink: #1d1915;
  --ink-2: #5b5147;
  --ink-3: #8f8478;
  --line: rgba(29, 25, 21, 0.09);
  --line-2: rgba(29, 25, 21, 0.16);
  --brand: #2e6a4e;
  --brand-2: #235540;
  --brand-soft: #e7efe9;
  --accent: #b0502c;
  --accent-soft: #f7e9e0;
  --gold: #a9822f;
  --danger: #b23a32;
  --ok: #2e6a4e;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 25, 21, 0.04), 0 10px 30px -18px rgba(29, 25, 21, 0.28);
  --shadow-lift: 0 2px 6px rgba(29, 25, 21, 0.06), 0 22px 44px -24px rgba(29, 25, 21, 0.35);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tabbar-h: 62px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body::before {
  /* 极淡的纸纹，避免大面积纯色发空 */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(29, 25, 21, 0.035) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; }
.hide { display: none !important; }

/* ---------------- 应用骨架 ---------------- */

#app { position: relative; z-index: 1; }

.shell {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部栏：手机吸顶，桌面变成整条导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.brandmark {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}

.brandmark__cn {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
}

.brandmark__en {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* 桌面端导航，手机隐藏 */
.topnav { display: none; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background 0.16s;
}
.iconbtn:hover { background: rgba(29, 25, 21, 0.06); }
.iconbtn--text {
  width: auto;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  height: 34px;
}

/* ---------------- 底部 tab ---------------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--ink-3);
  position: relative;
  transition: color 0.16s;
}

.tabbar__item--on { color: var(--brand); }
.tabbar__item--on .tabbar__dot {
  position: absolute;
  top: 9px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.tabbar__label { font-size: 11px; letter-spacing: 0.4px; }
.tabbar__badge {
  position: absolute;
  top: 7px;
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-family: var(--mono);
}

/* ---------------- 通用组件 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: transform 0.14s, background 0.16s, opacity 0.16s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(29, 25, 21, 0.04); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--danger { background: transparent; border-color: rgba(178, 58, 50, 0.3); color: var(--danger); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.16s;
}
.chip:hover { border-color: var(--ink-3); }
.chip--on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.5px;
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.tag--accent { background: var(--accent-soft); color: var(--accent); }
.tag--warn { background: #fbf1dd; color: #8a6520; }
.tag--mute { background: rgba(29, 25, 21, 0.06); color: var(--ink-3); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section { margin-top: 30px; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section__title::before {
  content: "";
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: var(--brand);
}
.section__more {
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.section__more:hover { color: var(--brand); }

.rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* 空态 */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty__icon { font-size: 30px; opacity: 0.6; margin-bottom: 10px; }
.empty__title { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.empty__sub { font-size: 12.5px; line-height: 1.7; }

/* 星级 */
.stars { display: inline-flex; gap: 1px; color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.stars--lg { font-size: 22px; gap: 3px; letter-spacing: 2px; }

/* 表单 */
.field { margin-bottom: 15px; }
.field__label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.field__hint { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.input,
.select,
.textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 16px; /* 16px 以下 iOS 会自动放大页面 */
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 106, 78, 0.1);
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.input::placeholder, .textarea::placeholder { color: #b3a89c; }

.switch {
  position: relative;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: rgba(29, 25, 21, 0.16);
  transition: background 0.18s;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
}
.switch--on { background: var(--brand); }
.switch--on::after { transform: translateX(19px); }

/* 弹层 */
.mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(29, 25, 21, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.2s ease;
}
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  animation: rise 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.sheet__grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  margin: 6px auto 14px;
}
.sheet__title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sheet__sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; line-height: 1.7; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(26px); opacity: 0.6; } }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 30px);
  transform: translate(-50%, 12px);
  z-index: 120;
  max-width: 78vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(29, 25, 21, 0.92);
  color: #fff;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }

/* 登录后遮罩提示 */
.lock {
  padding: 40px 20px;
  text-align: center;
}
.lock__title { font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }

/* ---------------- 首页 ---------------- */

.hero {
  position: relative;
  padding: 16px 0 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 1px;
  font-weight: 600;
}
.hero__title em {
  font-style: normal;
  color: var(--brand);
  border-bottom: 2px solid rgba(46, 106, 78, 0.25);
}
.hero__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 30em;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  margin-top: 16px;
  padding: 0 8px 0 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 16px;
}
.searchbar input::placeholder { color: #b3a89c; }
.searchbar__btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

/* 轮播 */
.banner {
  position: relative;
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--paper-2);
  touch-action: pan-y;
}
.banner__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.banner__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: block;
}
.banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}
.banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.05) 0%, rgba(12, 10, 8, 0.18) 42%, rgba(12, 10, 8, 0.82) 100%);
}
.banner__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 22px;
  color: #fff;
}
.banner__kicker {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 6px;
}
.banner__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.34;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.banner__sub {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 5px;
}
.banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  height: 31px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.banner__dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.banner__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.25s;
  border: 0;
  padding: 0;
}
.banner__dot--on { width: 16px; border-radius: 3px; background: #fff; }

/* 类目横滑 */
.catstrip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 16px 4px;
  margin: 16px -16px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catstrip::-webkit-scrollbar { display: none; }
.catstrip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 62px;
  padding: 9px 0 7px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
  transition: all 0.16s;
}
.catstrip__item:hover { border-color: var(--brand); color: var(--brand); }
.catstrip__icon { font-size: 19px; line-height: 1; }

/* 店铺卡 */
.shop-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

.shopcard {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shopcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.shopcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.shopcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.shopcard:hover .shopcard__media img { transform: scale(1.04); }
.shopcard__discount {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.shopcard__body { padding: 13px 15px 15px; }
.shopcard__top { display: flex; align-items: baseline; gap: 7px; }
.shopcard__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.shopcard__en {
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--ink-3);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shopcard__slogan {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.shopcard__meta {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 横向大卡（首页推荐） */
.shopfeature {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.shopfeature__media { position: relative; overflow: hidden; background: var(--paper-2); }
.shopfeature__media img { width: 100%; height: 100%; object-fit: cover; }
.shopfeature__body { padding: 12px 14px; min-width: 0; }
.shopfeature__name { font-family: var(--serif); font-size: 16.5px; font-weight: 600; }
.shopfeature__desc { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.shopfeature__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-3);
}

/* 商品行 / 卡片 */
.prod-card {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.16s, transform 0.16s;
}
.prod-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.prod-row {
  display: flex;
  gap: 13px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  align-items: center;
}
.prod-row__thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--paper-2);
  overflow: hidden;
}
.prod-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-row__title { font-size: 14.5px; font-weight: 500; }
.prod-row__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.price {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.price--sm { font-size: 14px; }
.price__was {
  font-size: 11px;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-left: 4px;
  font-family: var(--mono);
}
.price__unit { font-size: 10px; margin-right: 1px; }

/* ---------------- 分类页 ---------------- */

.catlayout {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}
.catnav {
  position: sticky;
  top: 62px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 4px;
  font-size: 12px;
  color: var(--ink-2);
  border-radius: 11px;
  transition: all 0.16s;
  text-align: center;
}
.catnav__item--on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.catnav__item--on::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
}
.catnav__icon { font-size: 16px; line-height: 1; }
.catnav__count { font-size: 9.5px; color: var(--ink-3); font-family: var(--mono); }

.catpanel__head { margin-bottom: 12px; }
.catpanel__title { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.catpanel__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 店铺详情 ---------------- */

.shophero {
  position: relative;
  margin: 0 -16px;
  height: 240px;
  overflow: hidden;
  background: var(--paper-2);
}
.shophero img { width: 100%; height: 100%; object-fit: cover; }
.shophero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.25) 0%, rgba(12, 10, 8, 0.02) 40%, rgba(246, 242, 234, 0) 62%);
}
.shophero__back {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.shophead {
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding: 18px 17px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.shophead__name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.3;
}
.shophead__en {
  font-size: 9.5px;
  letter-spacing: 1.6px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 3px;
}
.shophead__slogan {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 9px;
  line-height: 1.65;
  padding-left: 10px;
  border-left: 2px solid var(--brand-soft);
}
.shophead__stats {
  display: flex;
  gap: 0;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.shophead__stat { flex: 1; text-align: center; }
.shophead__stat + .shophead__stat { border-left: 1px solid var(--line); }
.shophead__stat b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}
.shophead__stat span { font-size: 10.5px; color: var(--ink-3); }

.infogrid { display: grid; gap: 10px; }
.inforow {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
}
.inforow__k { color: var(--ink-3); flex: 0 0 46px; }
.inforow__v { color: var(--ink-2); flex: 1; }

/* 会员价条 */
.memberbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, #f0f6f1 0%, #faf7ef 100%);
  border: 1px solid rgba(46, 106, 78, 0.14);
}
.memberbar__seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.memberbar__t { font-size: 13px; font-weight: 500; }
.memberbar__s { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

/* 产品详情 */
.pdhero {
  position: relative;
  margin: 0 -16px;
  padding: 42px 24px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  overflow: hidden;
}
.pdhero__emoji { font-size: 84px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.14)); }
.pdhero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.8px, transparent 0.8px);
  background-size: 5px 5px;
}

/* ---------------- 购物车 / 预购 ---------------- */

.cartgroup { padding: 14px; }
.cartgroup__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.cartgroup__shop { font-family: var(--serif); font-size: 15.5px; font-weight: 600; }
.cartitem {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.cartitem:last-of-type { border-bottom: 0; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  height: 30px;
}
.qty button {
  width: 30px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 15px;
}
.qty button:active { background: rgba(29, 25, 21, 0.06); }
.qty span {
  min-width: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
}
.cartsum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.cartsum__t { font-size: 11.5px; color: var(--ink-3); }
.cartsum__v { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--accent); }

/* 预购号码牌 */
.ticket {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  top: 50%;
  margin-top: -9px;
  z-index: 2;
}
.ticket::before { left: -9px; }
.ticket::after { right: -9px; }
.ticket__body { padding: 18px 18px 16px; }
.ticket__kicker {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ticket__code {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin: 4px 0 2px;
  word-break: break-all;
}
.ticket__stub {
  border-top: 1px dashed var(--line-2);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(246, 242, 234, 0.45);
}
.ticket__shop { font-size: 12px; color: var(--ink-2); }
.ticket__amount {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

.qrbox { display: flex; justify-content: center; padding: 4px 0 10px; }
.qr {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  width: 132px;
  height: 132px;
  gap: 1px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.qr i { background: transparent; border-radius: 0.5px; }
.qr i.on { background: var(--ink); }

/* 票据/售后 */
.ticketrow {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.ticketrow:last-child { border-bottom: 0; }
.ticketrow__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--paper-2);
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.ticketrow__t { font-size: 13.5px; font-weight: 500; }
.ticketrow__s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.6; }

/* ---------------- 会员中心 ---------------- */

.mecard {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  background: radial-gradient(120% 120% at 100% 0%, #3b7d5d 0%, #2e6a4e 42%, #204b38 100%);
  color: #fff;
  box-shadow: 0 18px 40px -22px rgba(32, 75, 56, 0.9);
}
.mecard::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mecard::before {
  content: "";
  position: absolute;
  right: -10px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mecard__top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.mecard__brand { font-family: var(--serif); font-size: 13px; letter-spacing: 3px; opacity: 0.85; }
.mecard__level {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mecard__amount {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.mecard__amount small { font-size: 12px; font-weight: 400; opacity: 0.72; margin-left: 5px; font-family: var(--sans); }
.mecard__foot {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  opacity: 0.78;
}
.mecard__progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 9px;
  overflow: hidden;
}
.mecard__progress i { display: block; height: 100%; background: rgba(255, 255, 255, 0.85); border-radius: 2px; }

.menulist {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.menuitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.14s;
  min-height: 54px;
}
.menuitem:last-child { border-bottom: 0; }
.menuitem:hover { background: rgba(246, 242, 234, 0.6); }
.menuitem__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.menuitem__t { font-size: 14px; }
.menuitem__s { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.menuitem__arrow { color: var(--ink-3); font-size: 16px; }

/* ---------------- 后台 ---------------- */

.panel {
  min-height: 100vh;
  background: #f3efe6;
  padding-bottom: 40px;
}
.panel__top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 230, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.panel__topinner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}
.panel__role {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  text-transform: uppercase;
}
.panel__layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px;
  display: block;
}
.panel__side { display: none; }
.panel__tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.panel__tabs::-webkit-scrollbar { display: none; }
.panel__tab {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel__tab--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel__tab b {
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 0 4px;
}
.panel__tab--on b { background: rgba(255, 255, 255, 0.2); }

.statgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat__k { font-size: 11px; color: var(--ink-3); letter-spacing: 0.3px; }
.stat__v {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.2;
}
.stat__v small { font-size: 11px; font-family: var(--sans); font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.stat__hint { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

.dtable { width: 100%; border-collapse: collapse; }
.dtable th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0 10px 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.dtable td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  vertical-align: middle;
}
.dtable tr:hover td { background: rgba(246, 242, 234, 0.5); }

.drow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.drow:last-child { border-bottom: 0; }
.drow__thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-2);
}
.drow__emoji {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  background: var(--paper-2);
}
.drow__t { font-size: 13.5px; font-weight: 500; }
.drow__s { font-size: 11px; color: var(--ink-3); margin-top: 2px; line-height: 1.55; }

.panelcard {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}
.panelcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.panelcard__title { font-family: var(--serif); font-size: 15px; font-weight: 600; }

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

/* ---------------- 断点 ---------------- */

@media (min-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(4, 1fr); }
  .shophero { height: 300px; border-radius: 0 0 26px 26px; }
  .banner__slide { aspect-ratio: 16 / 9; }
  .banner__title { font-size: 26px; }
  .catlayout { grid-template-columns: 112px 1fr; }
  .catnav__item { font-size: 13px; }
  .hero__title { font-size: 38px; }
}

@media (min-width: 860px) {
  body { font-size: 15px; }
  .shell { padding-bottom: 0; }
  .tabbar { display: none; }
  .topbar__inner { height: 66px; gap: 22px; }
  .brandmark__cn { font-size: 25px; }
  .topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    flex: 1;
  }
  .topnav__link {
    position: relative;
    padding: 8px 13px;
    font-size: 13.5px;
    color: var(--ink-2);
    border-radius: 8px;
    transition: color 0.16s, background 0.16s;
  }
  .topnav__link:hover { background: rgba(29, 25, 21, 0.045); }
  .topnav__link--on { color: var(--ink); font-weight: 600; }
  .topnav__link--on::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
  }
  .wrap { padding: 0 28px; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .shopfeature { grid-template-columns: 150px 1fr; }
  .hero { padding-top: 26px; }
  .banner { margin-top: 22px; }
  .banner__slide { aspect-ratio: 21 / 8; }
  .banner__body { padding: 28px 30px 30px; }
  .banner__title { font-size: 30px; }
  .banner__sub { font-size: 13.5px; }
  .banner__dots { right: 26px; bottom: 26px; }
  .catstrip { margin: 20px 0 0; padding: 2px 0 4px; }
  .catlayout { grid-template-columns: 168px 1fr; gap: 22px; }
  .catnav { top: 82px; }
  .shophero { margin: 0; height: 360px; border-radius: 24px; margin-top: 20px; }
  .shophero__back { top: 18px; left: 18px; }
  .shophead { margin-top: -50px; padding: 24px 26px; }
  .shophead__name { font-size: 30px; }
  .section { margin-top: 40px; }
  .section__title { font-size: 23px; }
  .toast { bottom: 40px; }
  .sheet { border-radius: 24px; margin: auto; }
  .mask { align-items: center; }
  .panel__layout {
    display: grid;
    grid-template-columns: 196px 1fr;
    gap: 20px;
    padding: 20px 24px;
  }
  .panel__side {
    display: block;
    position: sticky;
    top: 76px;
    align-self: start;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .panel__tabs { display: none; }
  .panel__navlink {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 2px;
    transition: background 0.14s;
  }
  .panel__navlink:hover { background: var(--paper); }
  .panel__navlink--on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  .panel__navlink span.count {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10px;
    background: rgba(29, 25, 21, 0.07);
    border-radius: 4px;
    padding: 0 5px;
  }
  .panel__navlink--on span.count { background: rgba(46, 106, 78, 0.14); }
  .panelcard { margin-bottom: 16px; }
  .drow { padding: 14px 18px; }
  .panelcard__head { padding: 15px 18px; }
}

@media (min-width: 1100px) {
  .shop-grid--wide { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   页面级组件
   ============================================================ */

/* 分段控件 */
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(29, 25, 21, 0.06);
  gap: 2px;
}
.segmented__i {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all 0.16s;
}
.segmented__i.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(29, 25, 21, 0.1);
}

/* 星级选择 */
.starpick { display: inline-flex; gap: 6px; }
.starpick__b {
  font-size: 28px;
  line-height: 1;
  color: rgba(29, 25, 21, 0.16);
  transition: color 0.12s, transform 0.12s;
  padding: 4px 2px;
}
.starpick__b.on { color: var(--gold); }
.starpick__b:active { transform: scale(0.9); }

/* 底部操作条 */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .actionbar {
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 600px;
    border-radius: 999px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 8px 10px 8px 20px;
  }
}

/* 推广流卡片 */
.adfeed {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.adcard {
  display: grid;
  grid-template-columns: 116px 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.adcard__media { overflow: hidden; background: var(--paper-2); }
.adcard__media img { width: 100%; height: 100%; object-fit: cover; }
.adcard__body { padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.adcard__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.adcard__sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }

@media (min-width: 700px) {
  .adfeed { grid-template-columns: repeat(2, 1fr); }
}

/* 页脚 */
.footer {
  margin-top: 40px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__brand { font-size: 17px; letter-spacing: 3px; }
.footer__brand span { font-size: 9px; letter-spacing: 1.5px; color: var(--ink-3); margin-left: 6px; }
.footer p {
  margin: 9px auto 0;
  max-width: 30em;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--ink-3);
}
.footer__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-2);
}
.footer__stats i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: 0.6; }
.footer__links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 11.5px; }
.footer__links a { color: var(--ink-3); border-bottom: 1px solid transparent; }
.footer__links a:hover { color: var(--brand); border-color: var(--brand); }

/* 评价 */
.reviewitem { padding: 13px 0; border-bottom: 1px solid var(--line); }
.reviewitem:last-child { border-bottom: 0; }
.reviewitem__text {
  font-size: 13px;
  line-height: 1.78;
  color: var(--ink-2);
  margin-top: 6px;
}
.reviewitem__shop {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  color: var(--brand);
}

.reviewcard {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.reviewcard__text { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin-top: 9px; }
.reviewcard__reply {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.reviewcard__reply span {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--brand);
  margin-right: 6px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
  flex-shrink: 0;
}

/* 会员中心四宫格 */
.quickgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.quick {
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.16s;
}
.quick:hover { border-color: var(--line-2); }
.quick b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.quick span { font-size: 10.5px; color: var(--ink-3); }

/* 权益卡 */
.benegrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.benecard {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.benecard__i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.benecard__t { font-size: 13px; font-weight: 500; }
.benecard__d { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }

/* 上传框 */
.uploadbox {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-2);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 12.5px;
  cursor: pointer;
  overflow: hidden;
  padding: 8px;
}
.uploadbox--filled { border-style: solid; border-color: var(--line); padding: 6px; }

/* 图片选择缩略 */
.thumbpick {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2) center/cover no-repeat;
  cursor: pointer;
  border: 1px solid var(--line);
}
.thumbpick--wide { width: 132px; height: 80px; }
.thumbpick span {
  width: 100%;
  padding: 5px 0;
  text-align: center;
  font-size: 11px;
  color: #fff;
  background: rgba(20, 16, 12, 0.55);
}

/* 演示账号行 */
.demorow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  transition: border-color 0.14s, background 0.14s;
}
.demorow:hover { border-color: var(--brand); background: var(--brand-soft); }

/* 步骤说明 */
.howto {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
}
.howto__t { font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.howto__list { display: flex; flex-direction: column; gap: 8px; }
.howto__list li {
  display: flex;
  gap: 9px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.howto__list b {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brand);
  padding-top: 2px;
  flex-shrink: 0;
}

@media (min-width: 700px) {
  .benegrid { grid-template-columns: repeat(2, 1fr); }
  .quickgrid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* 项目页封面角标 */
.pdhero__cap {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(29, 25, 21, 0.55);
}
.pdhero__cap i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* 会员折扣印章字号 */
.memberbar__seal { font-size: 11px; letter-spacing: 0; }

/* 顶栏购物篮角标 */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-family: var(--mono);
}

/* 进度条在金额很小时也要看得见 */
.mecard__progress { height: 4px; }
.mecard__progress i { min-width: 6px; }
