/* ═══════════════════════════════════════════════════════════════
   组件：按钮 · 表单 · 标签 · 分类 · 页头 · 手机客服栏 · 提示
   ───────────────────────────────────────────────────────────────
   按钮分三级：
     primary  渐变发光 —— 每一屏只有一个（首屏「选购商品」、弹层底部主操作）
     ink      浅色实底 —— 商品卡「购买」、客服卡「Telegram 私聊」
     ghost    发丝线描边 —— 次要操作
   反馈统一：按下 90ms 收缩到 .97，松开以轻微回弹复位；
   悬停效果只在能悬停的设备上出现，避免手机上「粘住」的悬停态
   ═══════════════════════════════════════════════════════════════ */

/* ── 按钮 ── */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition:
    transform var(--d-4) var(--ease-spring),
    filter var(--d-3) var(--ease-out),
    background-color var(--d-3) var(--ease-out),
    border-color var(--d-3) var(--ease-out),
    color var(--d-3) var(--ease-out),
    box-shadow var(--d-3) var(--ease-out),
    opacity var(--d-3) var(--ease-out);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--d-4) var(--ease-out); }
/* 按下：缩小 3.5% + 亮度降低 8%。单靠缩放接近人眼对尺寸变化的分辨阈值，叠加亮度变化后更容易被察觉 */
.btn:is(:active, .is-pressed):not(:disabled):not(.is-loading) {
  transform: scale(.965);
  transition-duration: var(--d-1);
  transition-timing-function: var(--ease-out);
}
.btn--primary:is(:active, .is-pressed):not(:disabled), .btn--ink:is(:active, .is-pressed):not(:disabled) { filter: brightness(.92); }
@media (hover: hover) {
  .btn:hover .i--go { transform: translateX(3px); }
}
/* 触屏没有悬停：箭头在按下的同时前移，「去下一步」的暗示由按压本身给出 */
.btn.is-pressed:not(:disabled) .i--go { transform: translateX(3px); transition-duration: var(--d-1); }

/* 主按钮：渐变 + 发光；悬停时提亮，并有一道光从左到右扫过一次 */
.btn--primary {
  color: var(--on-light);
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .12), var(--glow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #BDF2FF 0%, #C6CCFF 50%, #F4C2F6 100%);
  opacity: 0;
  transition: opacity var(--d-3) var(--ease-out);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-110%);
}
/* 触屏：主按钮出现时扫过一道光（只一次，见 feel.js）—— 桌面上这道光在悬停时出现 */
.btn--primary.is-sheen::after { animation: btn-sheen 1100ms var(--ease-out) both; }
.btn--primary.is-sheen::before { animation: btn-glint 1100ms var(--ease-out) both; }
@keyframes btn-sheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes btn-glint { 0%, 100% { opacity: 0; } 35% { opacity: .85; } }
@media (hover: hover) {
  .btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 38px -12px rgba(170, 160, 255, .9); }
  .btn--primary:hover::before { opacity: 1; }
  .btn--primary:hover::after { transform: translateX(110%); transition: transform 900ms var(--ease-out); }
}

/* 浅色实底：干净、高对比，不抢主按钮的光 */
.btn--ink {
  color: var(--on-light);
  background-color: #E9EBFF;
  box-shadow: inset 0 -1px 0 rgba(11, 11, 40, .12), 0 6px 20px -10px rgba(170, 175, 255, .6);
}
@media (hover: hover) {
  .btn--ink:hover { background-color: #FFFFFF; box-shadow: inset 0 -1px 0 rgba(11, 11, 40, .1), 0 10px 26px -10px rgba(190, 195, 255, .8); }
}

/* 描边：次要操作 */
.btn--ghost {
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line-2);
}
@media (hover: hover) {
  .btn--ghost:hover { background-color: var(--surface-2); border-color: var(--line-3); }
}
.btn--ghost:is(:active, .is-pressed):not(:disabled) { background-color: var(--surface-3); }

.btn--text {
  --h: 40px;
  padding: 0 10px;
  color: var(--ink-2);
  font-weight: 500;
}
@media (hover: hover) { .btn--text:hover { color: var(--ink); } }

.btn--block { width: 100%; }
.btn--sm { --h: 38px; padding: 0 15px; font-size: 14px; }
.btn--lg { --h: 54px; font-size: 16px; }
.btn:disabled, .btn.is-disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn--primary:disabled { filter: saturate(.4); }

/* 等待：先立即轻微变暗确认「收到了」；200ms 内完成就不出现转圈（避免一闪而过）；更久才淡入转圈 */
.btn.is-loading { cursor: progress; filter: brightness(.94) saturate(.9); }
.btn.is-loading > * { animation: loading-hide 160ms var(--ease-out) 200ms forwards; }
@keyframes loading-hide { to { opacity: 0; } }
@keyframes loading-show { to { opacity: 1; } }
.btn.is-loading::before { display: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  background: none;
  transform: none;
  opacity: 0;
  animation: spin 700ms linear infinite, loading-show 160ms var(--ease-out) 200ms forwards;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), transform var(--d-4) var(--ease-spring), opacity var(--d-3) var(--ease-out);
}
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); color: var(--ink); } }
.icon-btn:is(:active, .is-pressed) { transform: scale(.92); background: var(--surface-3); transition-duration: var(--d-1); }

/* ── 表单 ── */
.field { display: grid; gap: 8px; }
.field__label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); letter-spacing: .03em; }
.field__label small { font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.field__hint { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(8, 9, 32, .5);
  color: var(--ink);
  font-size: 16px;                         /* ≥16px：iOS 聚焦时不会自动放大页面 */
  transition: border-color var(--d-2) var(--ease-out), box-shadow var(--d-3) var(--ease-out), background-color var(--d-2);
}
.input::placeholder { color: var(--ink-3); }   /* 占位文字对比度 ≥ 4.5:1 */
@media (hover: hover) { .input:hover { border-color: var(--line-3); } }
.input:focus { border-color: rgba(139, 233, 255, .7); box-shadow: 0 0 0 4px rgba(139, 233, 255, .1); background: rgba(8, 9, 32, .7); }
.input:focus-visible { outline: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink-3); font-size: 13px; -webkit-user-select: none; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 36px; height: 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  transition: background-color var(--d-3) var(--ease-out), border-color var(--d-3) var(--ease-out);
}
.switch__track i {
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: transform var(--d-4) var(--ease-spring), background-color var(--d-3) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--violet); border-color: var(--violet); }
.switch input:checked + .switch__track i { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* 数量 */
.qty {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(8, 9, 32, .4);
  overflow: hidden;
}
.qty button {
  width: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  -webkit-user-select: none;
  user-select: none;
  transition: background-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out);
}
.qty button .i { width: 18px; height: 18px; transition: transform var(--d-4) var(--ease-spring); }
@media (hover: hover) { .qty button:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); } }
.qty button:is(:active, .is-pressed):not(:disabled) { background: var(--surface-3); }
.qty button:is(:active, .is-pressed):not(:disabled) .i { transform: scale(.82); transition-duration: var(--d-1); }
.qty button:disabled { opacity: .28; cursor: not-allowed; }
.qty input {
  width: 46px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-latin);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input:focus-visible { outline: none; background: var(--surface-2); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 价格：货币符号与小数缩小，整数是视觉重心 */
.price {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-latin);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.price__cur { font-size: .6em; margin-right: .14em; font-weight: 500; opacity: .85; }
.price__dec { font-size: .62em; }
.price__unit { font-size: .55em; margin-left: .35em; font-weight: 500; color: var(--ink-2); letter-spacing: .04em; }
.price__was { margin-left: 8px; font-family: var(--font-latin); font-size: 13px; font-weight: 400; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(128, 134, 188, .7); }

/* 订单状态 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .status { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
}
.status--pending { color: var(--warn); }
.status--submitted { color: var(--cyan); }
.status--done { color: var(--ok); }
.status--expired { color: var(--ink-3); }

/* 小标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: .02em;
}
.tag .i { width: 14px; height: 14px; color: var(--ink-2); }
.tag--warn, .tag--warn .i { color: var(--warn); }

/* ── 分类：分段控件，选中块在标签之间滑动 ── */
.tabs-wrap { margin-bottom: 22px; }
.tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}
.tab {
  position: relative;
  z-index: 1;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 14px;
  letter-spacing: .03em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: color var(--d-3) var(--ease-out);
}
@media (hover: hover) { .tab:hover { color: var(--ink); } }
.tab[aria-pressed="true"] { color: var(--on-light); font-weight: 600; }
.tabs__ind {
  position: absolute;
  z-index: 0;
  top: 4px; left: 0;
  height: 36px;
  width: 0;
  border-radius: var(--r-pill);
  background: #E9EBFF;
  box-shadow: 0 4px 16px -6px rgba(170, 175, 255, .7);
  transition: transform var(--d-4) var(--ease-out), width var(--d-4) var(--ease-out);
}
.tabs.no-anim .tabs__ind { transition: none; }
@media (max-width: 599px) {
  .tabs-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .tabs-wrap::-webkit-scrollbar { display: none; }
}

/* ═════════ 网址核对提示 ═════════ */
.domain-warn {
  position: relative;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(246, 200, 120, .1);
  border-bottom: 1px solid rgba(246, 200, 120, .28);
  color: var(--warn);
  font-size: 13px;
}
.domain-warn .i { width: 16px; height: 16px; }

/* ═════════ 页头 ═════════ */
.hdr {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--hdr-h);
}
/* 吸顶后的底色用伪元素淡入，避免直接过渡 backdrop-filter 造成的闪烁 */
.hdr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 38, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--d-3) var(--ease-out);
}
.hdr.is-stuck::before { opacity: 1; }
.hdr__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(calc(var(--gutter) - 4px), env(safe-area-inset-right, 0px));
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: 8px; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
.brand__word { height: 19px; }
.brand__word svg { height: 100%; width: auto; }

.nav { display: none; }
/* 手机 / 平板没有顶部导航：页头在品牌旁显示当前版块「01 商品」，与桌面导航的当前项高亮对应 */
.hdr__sec { display: none; }
@media (max-width: 1023px) {
  .hdr__sec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding-left: 14px;
    height: 18px;
    border-left: 1px solid var(--line-2);
    font-size: 13px;
    letter-spacing: .16em;
    color: var(--ink-2);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--d-3) var(--ease-out);
  }
  .hdr__sec.is-on { opacity: 1; }
  .hdr__sec b { font-family: var(--font-latin); font-weight: 600; letter-spacing: .04em; color: var(--cyan); }
  .hdr__sec.is-in > * { animation: sec-in var(--d-4) var(--ease-out) backwards; }
  .hdr__sec.is-in > * + * { animation-delay: 40ms; }
}
@keyframes sec-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@media (max-width: 339px) { .hdr__sec { display: none; } }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
}
.nav a {
  position: relative;
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--ink-2);
  transition: color var(--d-2) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 14px; height: 2px;
  margin-left: -7px;
  border-radius: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform var(--d-4) var(--ease-out);
}
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: none; }

.hdr__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1024px) { .hdr__tools { margin-left: 12px; } }
.hdr__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--d-2) var(--ease-out), background-color var(--d-2) var(--ease-out), transform var(--d-4) var(--ease-spring);
}
.hdr__btn .i { width: 17px; height: 17px; }
@media (hover: hover) { .hdr__btn:hover { color: var(--ink); background: var(--surface-2); } }
.hdr__btn:is(:active, .is-pressed) { transform: scale(.95); transition-duration: var(--d-1); }
@media (max-width: 767px) {
  .hdr__btn { width: 40px; padding: 0; justify-content: center; border: 1px solid var(--line); background: var(--surface); }
  .hdr__btn span { display: none; }
  .hdr__btn .i { width: 19px; height: 19px; }
}

/* 页头双客服：两颗同等分量的按钮，青色 = 售后、粉色 = 咨询 */
.svc-group {
  display: none;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
@media (min-width: 768px) { .svc-group { display: inline-flex; } }
.svc-group button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px 0 10px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background-color var(--d-2) var(--ease-out), transform var(--d-4) var(--ease-spring);
}
.svc-group .i { width: 16px; height: 16px; color: var(--cyan); }
.svc-group button + button .i { color: var(--pink); }
@media (hover: hover) { .svc-group button:hover { background: var(--surface-3); } }
.svc-group button:is(:active, .is-pressed) { transform: scale(.95); transition-duration: var(--d-1); }

/* ═════════ 手机客服栏：两个同等分量的入口，常驻底部 ═════════ */
.mdock {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  height: var(--mdock-h);
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(16, 17, 48, .84);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-2), var(--lit);
  transition: transform var(--d-5) var(--ease-out), opacity var(--d-3) var(--ease-out);
}
.mdock::before {
  content: "";
  position: absolute;
  left: 22%; right: 22%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 234, 255, .8), rgba(236, 168, 239, .8), transparent);
}
@media (min-width: 768px) { .mdock { display: none; } }
.has-ov .mdock {
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--d-3) var(--ease-in), opacity var(--d-3) var(--ease-in);
}
.mdock__btn {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform var(--d-4) var(--ease-spring), background-color var(--d-2) var(--ease-out);
}
.mdock__btn .i { width: 19px; height: 19px; color: var(--cyan); }
.mdock__btn + .mdock__btn .i { color: var(--pink); }
.mdock__btn:is(:active, .is-pressed) { transform: scale(.96); background: var(--surface-3); transition-duration: var(--d-1); }
.mdock__btn .i { transition: transform var(--d-4) var(--ease-spring); }
.mdock__btn:is(:active, .is-pressed) .i { transform: scale(.88); transition-duration: var(--d-1); }

/* ═════════ 提示 ═════════ */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + var(--mdock-h) + 12px);
  z-index: 120;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(calc(100vw - 32px), 440px);
  transform: translateX(-50%);
  pointer-events: none;
}
.has-ov .toasts { bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 96px); }
@media (min-width: 768px) { .toasts { bottom: 28px; } .has-ov .toasts { bottom: 12px; } }
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 16px 8px 13px;
  border-radius: var(--r-pill);
  background: rgba(30, 31, 72, .96);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2), var(--lit);
  font-size: 14px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in var(--d-5) var(--ease-out) both;
}
.toast .i { width: 18px; height: 18px; color: var(--cyan); }
.toast--warn .i { color: var(--warn); }
.toast.is-out { animation: toast-out var(--d-3) var(--ease-in) forwards; }
.toast__act {
  flex: none;
  height: 30px;
  margin: -2px -8px -2px 4px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--d-2), transform var(--d-4) var(--ease-spring);
}
@media (hover: hover) { .toast__act:hover { background: rgba(160, 168, 255, .2); } }
.toast__act:is(:active, .is-pressed) { transform: scale(.94); transition-duration: var(--d-1); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ═════════ 触摸设备：所有可点目标 ≥ 44×44 CSS px ═════════
   WCAG 2.2 SC 2.5.5（AAA）；Parhi et al. (2006)：单手拇指操作时，离散目标约 9.2mm（≈ 手机上 56 CSS px）误差最低。
   主操作（底部主按钮、客服栏、商品卡）做到 ≥ 52px；次要操作 ≥ 44px；不改变鼠标设备上的视觉密度 */
@media (pointer: coarse) {
  .btn--sm { --h: 44px; }
  .btn--text { --h: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .hdr__btn { height: 44px; min-width: 44px; }
  .tab { height: 44px; padding: 0 18px; }
  .tabs__ind { height: 44px; }
  .qty { height: 48px; }
  .qty button { width: 48px; }
  :root .copy-btn { height: 44px; }
  .switch { min-height: 44px; }
  .brand { padding-block: 7px; }
  .toast__act { position: relative; }
  .toast__act::after { content: ""; position: absolute; inset: -8px -6px; }
  :root { --mdock-h: 62px; }
}

/* 组件预览标记（仅开发阶段） */
.preview-flag {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: 20px;
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(30, 20, 50, .82);
  border: 1px solid rgba(243, 162, 222, .4);
  color: var(--pink);
  font-size: 12px;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.preview-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
@media (max-width: 767px) {
  .preview-flag { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + var(--hdr-h) + 6px); left: auto; right: max(16px, env(safe-area-inset-right, 0px)); height: 24px; padding: 0 10px; font-size: 12px; opacity: .9; }
}
.has-ov .preview-flag { opacity: 0; }
