/* ==========================================================
   DD 的小站 · 商城组件样式（在 css/style.css 之后加载）
   沿用 style.css 的颜色变量、贴纸描边（--edge）、投影（--drop）和字体。
   目录：1 页头导航  2 公告条  3 页面骨架  4 卡片  5 商品卡  6 表单
        7 徽章价格  8 表格  9 标签页/步骤  10 弹窗提示  11 空/加载/分页
        12 交付内容  13 页脚客服  14 小屏
   页面专属样式放 css/pages/<页面>.css，不要往这里堆。
   ========================================================== */

/* ---------- 0 全站基调 ---------- */
body.shop { background: var(--floor); min-height: 100vh; display: flex; flex-direction: column; }
body.shop main { flex: 1 0 auto; }
html.has-modal { overflow: hidden; }
a { color: inherit; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; letter-spacing: .01em; }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; }

/* ---------- 1 页头导航 ---------- */
/* 占位容器不参与布局，否则 sticky 只在它自己那一点高度里生效 */
[data-shop-header], [data-shop-footer] { display: contents; }
.snav { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; pointer-events: none; }
.snav__bar {
  pointer-events: auto;
  width: min(100% - 24px, var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; gap: clamp(8px, 1.6vw, 18px);
  padding: 6px 8px 6px 12px;
  background: var(--fluff);
  border: var(--edge) solid var(--choco);
  border-radius: 999px;
  box-shadow: var(--drop);
}
.snav__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 999px; flex: none; }
.snav__logo { width: 40px; flex: none; --dd-sw: 9px; }
.snav__name { font: 400 20px/1 var(--font-display); white-space: nowrap; }
.snav__links { display: flex; gap: 2px; margin-inline: auto; }
.snav__links a {
  padding: 6px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; line-height: 1.5; white-space: nowrap;
  transition: background-color .18s;
}
.snav__links a:hover { background: var(--ear); }
.snav__links a[aria-current="page"] { background: var(--wall); }
.snav__right { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.snav__links + .snav__right { margin-left: 0; }
.snav__icon, .snav__account {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  font: 400 15px/1 var(--font-display); text-decoration: none; white-space: nowrap;
  border: 2px solid var(--choco); border-radius: 999px;
  background: var(--fluff);
  transition: background-color .18s, transform .12s;
}
.snav__icon:hover, .snav__account:hover { background: var(--ear); }
.snav__icon[aria-current="page"], .snav__account[aria-current="page"] { background: var(--wall); }
.snav__account { background: var(--nose); max-width: 10em; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 34px; }
.snav__account.is-in { background: var(--fluff); }
.snav__badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  font: 600 12px/1 var(--font-body);
  color: var(--fluff); background: var(--choco); border-radius: 999px;
}
.snav__menu { display: none; width: 38px; height: 38px; border: 2px solid var(--choco); border-radius: 50%; flex: none; place-content: center; gap: 4px; }
.snav__menu i { display: block; width: 16px; height: 2px; background: var(--choco); border-radius: 2px; transition: transform .2s, opacity .2s; }
.snav.is-open .snav__menu i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.snav.is-open .snav__menu i:nth-child(2) { opacity: 0; }
.snav.is-open .snav__menu i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 2 公告条 ---------- */
.annbar { width: min(100% - 24px, var(--wrap)); margin: 14px auto 0; }
.annbar__in {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--fluff);
  border: 2px dashed var(--cocoa);
  border-radius: 18px;
}
.annbar__tag {
  flex: none; padding: 1px 10px;
  font: 400 14px/1.7 var(--font-display);
  background: var(--nose); border: 2px solid var(--choco); border-radius: 999px;
}
.annbar__text { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.7; }
.annbar__text b { display: block; font-weight: 600; }
.annbar__text .rich p { margin: 0; }
.annbar__x { flex: none; font-size: 13px; color: var(--ink-2); padding: 2px 8px; border-radius: 999px; }
.annbar__x:hover { background: var(--ear); }

/* ---------- 3 页面骨架 ---------- */
.page { padding-block: 22px clamp(56px, 7vw, 88px); }
.page-head { padding: clamp(18px, 3vw, 30px) 0 clamp(14px, 2vw, 20px); }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: .02em; }
.page-head p { margin-top: 6px; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { opacity: .6; }

/* 蓝墙横幅（首页、充值页等用；里面可以放坐着的 DD） */
/* 页头是 sticky 的（约 66px 高），蓝墙往上缩进页头后面，让页头像浮在墙上 */
.band { --snav-h: 66px; background: var(--wall); margin-top: calc(-1 * var(--snav-h)); padding-top: calc(var(--snav-h) + clamp(20px, 3vw, 34px)); }
.band + .floorband { margin-bottom: 0; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 18px; align-items: start; }
.layout-2 > aside { position: sticky; top: 88px; }

/* ---------- 4 卡片（贴纸） ---------- */
.card {
  background: var(--fluff);
  border: var(--edge) solid var(--choco);
  border-radius: 22px;
  box-shadow: var(--drop);
  padding: clamp(16px, 2vw, 22px);
  min-width: 0;
}
.card--flat { box-shadow: none; }
.card--soft { background: rgb(255 253 250 / .7); border-style: dashed; border-color: var(--cocoa); box-shadow: none; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card__title { font: 400 22px/1.25 var(--font-display); letter-spacing: .01em; }
.card__sub { font-size: 13px; color: var(--ink-3); }
.card + .card { margin-top: 16px; }

.section-title { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(22px, 2.6vw, 28px)/1.25 var(--font-display); margin: 26px 0 14px; }
.section-title small { font: 400 14px/1.5 var(--font-body); color: var(--ink-3); }

.notice {
  padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.65;
  background: rgb(191 213 233 / .35);
  border: 2px dashed rgb(168 134 111 / .6);
}
.notice--pink { background: rgb(242 156 174 / .18); border-color: var(--cocoa); }
.notice--ok { background: rgb(191 213 233 / .5); border-style: solid; border-color: var(--choco); }
.notice b { font-weight: 600; }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- 5 商品卡 / 分类 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  font-size: 14px; line-height: 1.6; white-space: nowrap; text-decoration: none;
  background: var(--fluff);
  border: 2px solid var(--choco); border-radius: 999px;
  transition: background-color .15s, transform .12s;
}
.chip:hover { transform: translateY(-1px); background: var(--ear); }
.chip.is-on, .chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--wall); }
.chip small { font-size: 12px; color: var(--ink-3); }

.searchbar { display: flex; gap: 8px; align-items: center; }
.searchbar .input { flex: 1 1 auto; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--fluff);
  border: var(--edge) solid var(--choco);
  border-radius: 22px;
  box-shadow: var(--drop);
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s var(--spring), box-shadow .15s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--choco); }
.pcard:focus-visible { outline-offset: 4px; }
.pcard__img {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: var(--wall);
  border-bottom: var(--edge) solid var(--choco);
  overflow: hidden;
}
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__img .pcard__face { width: 38%; --dd-sw: 6px; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1 1 auto; }
.pcard__title { font: 600 16px/1.45 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__sub { font-size: 13px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pcard__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pcard__ribbon {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 0 10px; font: 400 13px/1.8 var(--font-display);
  background: var(--fluff); border: 2px solid var(--choco); border-radius: 999px;
}
.pcard.is-soldout { filter: grayscale(.55); }
.pcard.is-soldout:hover { transform: none; box-shadow: var(--drop); }

/* ---------- 6 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.field__label small { font-weight: 400; color: var(--ink-3); }
.field__label .req { color: #C2546D; margin-left: 2px; }
.field__hint { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.field__error { font-size: 13px; line-height: 1.55; color: #B23A55; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #B23A55; box-shadow: 0 2px 0 #B23A55; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 15px; line-height: 1.55; color: var(--choco);
  background: var(--fluff);
  border: 2px solid var(--choco); border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 0 var(--choco);
  transition: box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: 0 0 0 3px rgb(191 213 233 / .9), 0 2px 0 var(--choco); }
.input::placeholder, .textarea::placeholder { color: #A9927F; opacity: 1; }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; }
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--choco) 50%), linear-gradient(135deg, var(--choco) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--choco); }

/* 单选卡片：支付方式、规格 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; min-height: 40px;
  font-size: 14px; line-height: 1.5;
  background: var(--fluff);
  border: 2px solid var(--choco); border-radius: 14px;
  transition: background-color .15s, transform .12s;
}
.choice:hover span { transform: translateY(-1px); }
.choice input:checked + span { background: var(--nose); box-shadow: 0 3px 0 var(--choco); }
.choice input:focus-visible + span { outline: 3px solid var(--choco); outline-offset: 2px; }
.choice input:disabled + span { border-style: dashed; color: #A9927F; cursor: not-allowed; transform: none; background: transparent; }
.choice small { font-size: 12px; color: var(--ink-3); }

/* 数量 */
.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--choco); border-radius: 999px; overflow: hidden; background: var(--fluff); box-shadow: 0 2px 0 var(--choco); }
.qty button { width: 36px; font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--ear); }
.qty button:disabled { opacity: .35; cursor: not-allowed; background: none; }
.qty input { width: 56px; text-align: center; border: 0; border-inline: 2px solid var(--choco); font: inherit; font-size: 15px; background: transparent; color: var(--choco); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: rgb(191 213 233 / .35); }

.btn.is-loading { cursor: progress; position: relative; }
.btn.is-loading::after {
  content: ""; width: 12px; height: 12px; margin-left: 8px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: rch-spin .7s linear infinite;
}
.btn--block { width: 100%; }
.btn--ghost { background: transparent; box-shadow: none; border-style: dashed; }
.btn--ghost:hover { box-shadow: none; background: var(--ear); }
.btn--danger { background: #F6C7D1; }
.linkbtn { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.linkbtn:hover { color: var(--choco); }

/* ---------- 7 徽章 / 价格 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 9px;
  font-size: 12px; line-height: 1.75; white-space: nowrap;
  border: 1.5px solid var(--choco); border-radius: 999px;
  background: var(--fluff);
}
.badge--ok { background: var(--wall); }
.badge--wait { background: var(--ear); }
.badge--bad { background: var(--nose); }
.badge--mute { border-style: dashed; color: var(--cocoa); background: none; }
.badge--dark { background: var(--choco); color: var(--fluff); }

.price { font: 400 24px/1.1 var(--font-display); white-space: nowrap; }
.price small { font-size: .6em; margin-right: 1px; }
.price--big { font-size: clamp(30px, 3.4vw, 38px); }
.price__old { margin-left: 6px; font-size: 13px; color: var(--ink-3); text-decoration: line-through; white-space: nowrap; }

/* ---------- 8 表格 ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--choco); border-radius: 16px; background: var(--fluff); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1.5px dashed rgb(168 134 111 / .35); }
.table th { font-weight: 600; font-size: 13px; color: var(--ink-2); background: rgb(191 213 233 / .25); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgb(252 228 233 / .35); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 9 标签页 / 步骤 / 汇总 ---------- */
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--fluff); border: 2px solid var(--choco); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a {
  flex: 1 0 auto; padding: 4px 16px; font-size: 14px; line-height: 1.7; border-radius: 999px; color: var(--cocoa);
  text-decoration: none; text-align: center; white-space: nowrap;
}
.tabs button[aria-selected="true"], .tabs a[aria-current="page"], .tabs .is-on { background: var(--wall); color: var(--choco); }

.steps { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.steps li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border-radius: 999px; }
.steps li span { display: grid; place-items: center; width: 20px; height: 20px; font-size: 11px; border: 1.5px solid currentColor; border-radius: 50%; }
.steps li.is-on { background: var(--ear); color: var(--choco); }
.steps li.is-done { color: var(--choco); }
.steps li.is-done span { background: var(--choco); color: var(--fluff); border-color: var(--choco); }

.summary { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 10px; }
.summary__row span:last-child { font-variant-numeric: tabular-nums; }
.summary__row--minus span:last-child { color: #B23A55; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; margin-top: 2px; border-top: 2px dashed var(--line); }
.summary__total b { font: 400 16px/1.4 var(--font-display); }

/* ---------- 10 弹窗 / 提示 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 16px;
  background: rgb(74 55 45 / .38);
  animation: fade-in .18s ease-out;
}
.modal__box {
  width: min(100%, 440px); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--fluff);
  border: var(--edge) solid var(--choco); border-radius: 24px;
  box-shadow: 0 6px 0 var(--choco);
  padding: 18px 20px 20px;
  animation: pop-in .26s var(--spring);
}
.modal__box--wide { width: min(100%, 720px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal__title { font: 400 22px/1.3 var(--font-display); }
.modal__x { width: 34px; height: 34px; font-size: 22px; line-height: 1; border-radius: 50%; }
.modal__x:hover { background: var(--ear); }
.modal__body { display: flex; flex-direction: column; gap: 12px; }
.modal__text { font-size: 15px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.shop-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 9px 20px;
  font-size: 15px; text-align: center;
  background: var(--choco); color: var(--fluff);
  border-radius: 999px;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  transition: transform .35s var(--spring), visibility 0s .35s;
  pointer-events: none;
}
.shop-toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--spring), visibility 0s; }
.shop-toast[data-tone="bad"] { background: #8E3348; }

/* ---------- 11 空 / 加载 / 分页 ---------- */
.empty { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; text-align: center; }
.empty__face { width: 96px; --dd-sw: 6px; margin-bottom: 6px; }
.empty__title { font: 400 20px/1.3 var(--font-display); }
.empty__text { font-size: 14px; color: var(--ink-3); max-width: 28em; }
.empty .btn { margin-top: 10px; }

.loading { display: flex; justify-content: center; gap: 8px; padding: 34px 0; }
.loading__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cocoa); animation: hop .9s ease-in-out infinite; }
.loading__dot:nth-child(2) { animation-delay: .15s; }
.loading__dot:nth-child(3) { animation-delay: .3s; }
.skeleton { background: linear-gradient(90deg, rgb(232 224 214 / .6), rgb(255 253 250 / .9), rgb(232 224 214 / .6)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 12px; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pager__btn { min-width: 38px; height: 38px; padding: 0 12px; font-size: 14px; border: 2px solid var(--choco); border-radius: 999px; background: var(--fluff); }
.pager__btn:hover:not(:disabled) { background: var(--ear); }
.pager__btn.is-on { background: var(--wall); }
.pager__btn:disabled:not(.is-on) { opacity: .4; cursor: not-allowed; }

/* ---------- 12 交付内容 ---------- */
.delivery { display: flex; flex-direction: column; gap: 6px; }
.delivery__line {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: var(--ear);
  border: 1.5px dashed var(--cocoa); border-radius: 10px;
}
.delivery__line code { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.delivery__copy { flex: none; font-size: 13px; padding: 2px 10px; border: 1.5px solid var(--choco); border-radius: 999px; background: var(--fluff); }
.delivery__copy:hover { background: var(--wall); }

/* ---------- 13 页脚 / 客服 ---------- */
.sfoot { position: relative; margin-top: auto; padding-block: 32px 36px; background: var(--choco); color: var(--fluff); }
.sfoot__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; align-items: start; }
.sfoot__name { font: 400 22px/1.3 var(--font-display); }
.sfoot__line { font-size: 14px; opacity: .8; margin-top: 4px; max-width: 36em; }
.sfoot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.sfoot__links a, .sfoot__link { color: var(--fluff); opacity: .88; text-underline-offset: 4px; font-size: 14px; }
.sfoot__links a:hover, .sfoot__link:hover { opacity: 1; text-decoration: underline; }
.sfoot__copy { grid-column: 1 / -1; font-size: 13px; opacity: .6; }
.sfoot :focus-visible { outline-color: var(--fluff); }
.sfoot__tail {
  position: absolute; right: clamp(28px, 13vw, 190px); bottom: calc(100% - 16px);
  width: clamp(48px, 5vw, 66px);
  transform-origin: 50% 100%;
  animation: sway 2.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.support-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px 5px 6px;
  background: var(--fluff);
  border: var(--edge) solid var(--choco); border-radius: 999px;
  box-shadow: var(--drop);
  font: 400 15px/1 var(--font-display);
  transition: transform .15s var(--spring);
}
.support-fab:hover { transform: translateY(-2px) rotate(-2deg); }
.support-fab__face { width: 38px; --dd-sw: 8px; }
.support__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--choco); border-radius: 14px; text-decoration: none; font-size: 14px; }
.support__row b { font-weight: 600; flex: none; }
.support__row span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
a.support__row:hover { background: var(--ear); }
.support__qr { width: min(220px, 100%); align-self: center; border: 2px solid var(--choco); border-radius: 14px; }

/* 富文本（Shop.ui.richText 的输出） */
.rich { font-size: 15px; line-height: 1.8; }
.rich > * + * { margin-top: .8em; }
.rich h3 { font: 400 20px/1.35 var(--font-display); margin-top: 1.2em; }
.rich ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rich li { position: relative; padding-left: 18px; }
.rich li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--nose); border: 1.5px solid var(--choco); }
.rich a { color: var(--choco); text-underline-offset: 3px; overflow-wrap: anywhere; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes hop { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 14 小屏 ---------- */
@media (max-width: 980px) {
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .layout-2 > aside { position: static; }
}
@media (max-width: 860px) {
  .snav__menu { display: grid; }
  .snav__links {
    display: none;
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; gap: 2px;
    padding: 8px;
    background: var(--fluff);
    border: var(--edge) solid var(--choco); border-radius: 22px;
    box-shadow: var(--drop);
    pointer-events: auto;
  }
  .snav { position: sticky; }
  .snav__bar { position: relative; }
  .snav.is-open .snav__links { display: flex; }
  .snav__links a { padding: 10px 14px; font-size: 16px; }
  .sfoot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .snav__name { display: none; }
  .snav__icon-text { font-size: 14px; }
  .snav__icon, .snav__account { padding: 0 11px; height: 36px; }
  .snav__account { line-height: 32px; max-width: 7em; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard__body { padding: 10px 11px 12px; }
  .pcard__title { font-size: 14.5px; }
  .pcard__sub { display: none; }
  .price { font-size: 20px; }
  .support-fab__text { display: none; }
  .support-fab { padding: 5px; }
  .table th, .table td { padding: 8px 10px; }
  .modal__box { padding: 16px; }
}
