/* ============================================================
   号卡优选商城 · 演示页样式
   配色令牌取自参考站点（91haoka 系主题）真实 CSS：
   主色 #cf4774 / 强调紫 #f45884 / 高亮橙 #ffa129 / 价格红 #e53935

   ⚠️ 下面的 :root 令牌只作文档保留：全项目的颜色/圆角/阴影都已**展开成字面值**，
      不要再改回 var()。某些国产浏览器（IE 兼容模式、旧 Chromium 内核）不支持
      CSS 自定义属性，var() 声明的 background/color 会被整条丢弃 —— 表现为
      「蓝底按钮变成白底白字、看起来整块空白」。这个坑已经踩过一次。
   ============================================================ */

:root {
  --brand: #cf4774;
  --brand-2: #ef6b97;
  --brand-deep: #a8355b;
  --purple: #f45884;
  --orange: #ffa129;
  --red: #e53935;
  --text: #222222;
  --text-2: #5d6d7e;
  --muted: #999999;
  --line: #f2f2f2;
  --line-2: #ececf0;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 10px rgba(23, 43, 77, .06);
  --shadow-lg: 0 10px 30px rgba(23, 43, 77, .14);
  --nav-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

/* 必须显式兜底：[hidden] 的 display:none 来自浏览器默认样式（UA 样式），
   而作者样式里的 display:flex/grid 优先级高于 UA 样式（与选择器权重无关），
   所以只要某个类写了 display，JS 的 el.hidden = true 就会静默失效。
   曾经因此出现「登录成功后登录框不消失」，看起来像登录失败。 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  max-width: 750px;
  margin-inline: auto;
  background: #f5f6f8;
  color: #222222;
  font-family: "微软雅黑", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 8px);
}

img { border: 0; vertical-align: middle; }
button { font: inherit; color: inherit; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app { padding: 0 10px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -10px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #cf4774 0%, #d85b85 100%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.brand { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }

.brand__logo {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.brand__name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .5px; }

.brand__badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #a8355b;
  font-size: 10px;
  font-weight: 700;
}

.search { position: relative; display: flex; align-items: center; }

.search__icon {
  position: absolute; left: 11px;
  width: 17px; height: 17px;
  color: #999999;
  stroke-width: 2;
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #222222;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.search__input::placeholder { color: #a8b0bd; }
.search__input:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.search__input::-webkit-search-cancel-button { display: none; }

.search__clear {
  position: absolute; right: 6px;
  width: 24px; height: 24px;
  border: 0; border-radius: 50%;
  background: #e8eaf0;
  color: #7b8595;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}

/* 带返回键的顶栏（下单页 / 订单查询页共用）—— 属于共享组件，不能放在页面级样式里，
   否则某个页面漏加载那支样式表时，返回箭头的 SVG 会被全局 svg{width:100%;height:100%} 撑成一大块空白。 */
.topbar--row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 12px;
}

.topbar__back {
  flex: none;
  width: 30px; height: 30px;
  padding: 5px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  text-decoration: none;
}
.topbar__back svg { width: 100%; height: 100%; stroke-width: 2.2; }

.topbar__kefu {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
}

/* ---------------- 四宫格 ---------------- */
.quicknav {
  display: grid;
  /* 按实际数量自适应：3 个就 3 等分铺满，不会像写死 repeat(4,1fr) 那样空出第 4 列导致整体偏左 */
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 4px;
  margin: 10px 0 0;
  padding: 10px 4px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23, 43, 77, .06);
}

.quicknav__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 2px;
  border-radius: 9px;
  color: #222222;
  text-decoration: none;
  transition: background .16s;
}
.quicknav__item:hover { background: #fcf6f8; }
.quicknav__item:active { background: #faeef2; }

.quicknav__ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 9px;
  border-radius: 12px;
  color: #fff;
}
.quicknav__ico svg { stroke-width: 1.9; }
.quicknav__ico--blue   { background: linear-gradient(140deg, #e04f80, #f27ba3); }
.quicknav__ico--green  { background: linear-gradient(140deg, #2fb37a, #56cf9c); }
.quicknav__ico--orange { background: linear-gradient(140deg, #f5942a, #ffb757); }
.quicknav__ico--purple { background: linear-gradient(140deg, #f45884, #ff89aa); }

.quicknav__txt { font-size: 12.5px; color: #3d4757; }

/* ---------------- 公告 ---------------- */
.notice {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #fff7e8;
  border: 1px solid #ffe6bd;
  color: #8a5a10;
  font-size: 13px;
}

.notice__ico { flex: none; width: 16px; height: 16px; color: #ffa129; }
.notice__viewport { flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.notice__track { margin: 0; padding: 0; list-style: none; transition: transform .45s ease; }
.notice__track li { height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Banner ---------------- */
.banner {
  position: relative;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(23, 43, 77, .06);
  touch-action: pan-y;
}

.banner__track { display: flex; transition: transform .4s cubic-bezier(.4, 0, .2, 1); will-change: transform; }

.banner__slide {
  flex: 0 0 100%;
  min-height: 108px;
  padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  color: #fff;
  background-image: linear-gradient(160deg, #cf4774 20%, #ef6b97 60%);
}
.banner__slide h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.banner__slide p { margin: 0; font-size: 12.5px; opacity: .9; }
.banner__slide span.tag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-size: 11.5px;
}

.banner__dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px;
}
.banner__dots button {
  width: 6px; height: 6px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .22s, background .22s;
}
.banner__dots button[aria-selected="true"] { width: 16px; background: #fff; }

/* ---------------- 标语 ---------------- */
.slogan {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px;
  padding: 9px;
  border-radius: 9px;
  background: linear-gradient(90deg, #fdeef3, #fff7fa 50%, #fdeef3);
  color: #a8355b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}
.slogan i { color: #e4b7c6; font-style: normal; }

/* ---------------- Tab ---------------- */
.tabwrap {
  position: sticky;
  top: 88px;
  z-index: 30;
  margin: 12px -10px 0;
  padding: 0 10px;
  background: rgba(245, 246, 248, .94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #ececf0;
}
.tabwrap.is-stuck { box-shadow: 0 6px 12px -8px rgba(23, 43, 77, .28); }

.tabs { position: relative; display: flex; padding-right: 62px; background: transparent; }

/* 真正的 tablist：只装 5 个运营商，筛选按钮是它的兄弟节点 */
.tabs__inner { position: relative; display: flex; flex: 1; }

.tabs__btn {
  flex: 1;
  padding: 11px 0;
  border: 0;
  background: transparent;
  color: #5b6472;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s;
}
.tabs__btn[aria-selected="true"] { color: #f45884; }

.tabs__btn--filter {
  position: absolute;
  top: 0; right: 0;
  width: 62px;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.tabs__btn--filter svg { width: 14px; height: 14px; stroke-width: 2; }
.tabs__btn--filter.is-on { color: #f45884; }

.tabs__line {
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 2.5px;
  border-radius: 2px;
  background: #f45884;
  transition: transform .26s cubic-bezier(.4, 0, .2, 1), width .26s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------- 已选条件 ---------------- */
.filterbar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #f7e6ec;
}
.filterbar__chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fdeef3;
  color: #a8355b;
  font-size: 12px;
}
.chip b { font-weight: 700; }
.filterbar__reset {
  flex: none;
  padding: 4px 10px;
  border: 1px solid #f1dfe5;
  border-radius: 999px;
  background: #fff;
  color: #5d6d7e;
  font-size: 12px;
  cursor: pointer;
}
.filterbar__reset:hover { border-color: #cf4774; color: #cf4774; }

/* ---------------- 商品卡 ---------------- */
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.card {
  position: relative;
  display: flex;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(23, 43, 77, .06);
  animation: cardIn .28s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card__thumb {
  position: relative;
  flex: none;
  width: 104px;
  /* 用 margin 而不是父级 flex gap：不支持 flex-gap 的旧浏览器同样有间距 */
  margin-right: 11px;
  border-radius: 9px;
  overflow: hidden;
  background: #f6eef1;
  align-self: flex-start;
}
.card__thumb img { display: block; width: 100%; height: auto; }

.card__rec {
  position: absolute; top: 0; left: 0;
  padding: 2px 7px;
  border-bottom-right-radius: 8px;
  background: linear-gradient(120deg, #f0413c, #ff7a45);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

.card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.card__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.32;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card__sub {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: #5d6d7e;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 卡片标签区 (.card__tags / .tag--gray|orange|red|blue) 已随手一起清掉：
   它的内容来自后台的「产品标签」「发货范围文案」，两个字段已按需求删除。
   .tag 保留——首页展示图的角标还在用。 */
.tag {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.5;
}

.card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin-top: 9px;
  /* 窄屏（320px 一类）放不下时换行，否则「办理」按钮会被挤出卡片、看起来像空白 */
  flex-wrap: wrap;
}

.card__price { display: flex; align-items: baseline; gap: 3px; color: #e53935; flex: none; }
.card__price b { font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.card__price i { font-style: normal; font-size: 12.5px; font-weight: 700; }
.card__price em { font-style: normal; font-size: 11.5px; color: #999999; margin-left: 3px; }

.card__acts { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }

.btn-share {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px;
  border: 1px solid #f2e3e8;
  border-radius: 999px;
  background: #fff;
  color: #5d6d7e;
  font-size: 12px;
  cursor: pointer;
}
.btn-share svg { width: 13px; height: 13px; }
.btn-share:hover { border-color: #cf4774; color: #cf4774; }

.btn-apply {
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: #cf4774;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(207, 71, 116, .28);
  transition: background .16s, transform .1s;
}
.btn-apply:hover { background: #a8355b; }
.btn-apply:active { transform: scale(.96); }

/* ---------------- 空状态 & 计数 ---------------- */
.empty { padding: 48px 20px; text-align: center; color: #999999; }
.empty svg { width: 42px; height: 42px; color: #c8cfdb; stroke-width: 1.6; }
.empty__title { margin: 12px 0 4px; color: #55606f; font-size: 15px; font-weight: 700; }
.empty__desc { margin: 0 0 16px; font-size: 13px; }
.empty__btn {
  padding: 8px 18px;
  border: 1px solid #cf4774;
  border-radius: 999px;
  background: #fff;
  color: #cf4774;
  font-size: 13px;
  cursor: pointer;
}

.resultcount { margin: 14px 2px 0; color: #999999; font-size: 12px; text-align: center; }

/* ---------------- 页脚 ---------------- */
.foot { margin: 18px 0 6px; padding: 14px 12px; border-top: 1px solid #ececf0; text-align: center; }
.foot__demo { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: #8b94a3; text-align: left; }
.foot__demo strong { color: #c9700a; }
.foot__demo b { color: #6b7688; }
.foot__links { margin: 0 0 4px; font-size: 12px; color: #999999; }
.foot__copy { margin: 0; font-size: 11.5px; color: #b6bcc7; }

/* ---------------- 底部导航 ---------------- */
.bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  margin-inline: auto;
  max-width: 750px;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  /* 同上：底部导航也按实际数量等分居中 */
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #eceef3;
  box-shadow: 0 -4px 14px rgba(23, 43, 77, .06);
}

.bottomnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: transparent;
  color: #8b94a3;
  font-size: 11.5px;
  cursor: pointer;
}
.bottomnav__item svg { width: 21px; height: 21px; stroke-width: 1.7; }
.bottomnav__item.is-active { color: #f45884; font-weight: 700; }

/* ---------------- 回到顶部 ---------------- */
.totop {
  position: fixed;
  right: max(12px, calc(50% - 363px));
  bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 45;
  width: 38px; height: 38px;
  padding: 9px;
  border: 1px solid #f2e6ea;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #cf4774;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(23, 43, 77, .06);
}

/* 加载态（下单提交中 / 查询物流共用） */
.sheet__panel--center { padding-top: 26px; padding-bottom: 26px; text-align: center; }

.spinner {
  display: block;          /* 必须显式声明：用 <span> 时行内元素会忽略宽高，只剩一条细边 */
  width: 34px; height: 34px;
  margin: 6px auto 0;
  border: 3px solid #f6e6eb;
  border-top-color: #cf4774;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.submitting__text { margin: 14px 0 0; color: #5d6d7e; font-size: 14px; }

/* ---------------- 弹层 ---------------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
/* 弹层也要能关：注意 [hidden] 的兜底规则在文件顶部，这条是页面级意图说明 */
.sheet[hidden] { display: none; }

.sheet__mask { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 750px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #fff;
  animation: sheetUp .26s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

.sheet__title { margin: 0 0 14px; font-size: 16px; font-weight: 700; text-align: center; }

.sheet__close {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: 0;
  border-radius: 999px;
  background: #f9f3f5;
  color: #4a5464;
  font-size: 14px;
  cursor: pointer;
}

.sheet__actions { display: flex; gap: 10px; margin-top: 18px; }
.btn {
  flex: 1;
  padding: 12px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  /* 允许 <a class="btn"> 当按钮用（如「查看订单」跳转查询页） */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn--ghost { background: #f9f3f5; color: #4a5464; }
.btn--primary { background: #cf4774; color: #fff; box-shadow: 0 4px 12px rgba(207, 71, 116, .3); }

/* 分享 */
.shareqr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 4px; }
.shareqr__code { width: 150px; height: 150px; padding: 8px; border: 1px solid #eceef3; border-radius: 12px; background: #fff; overflow: hidden; box-sizing: border-box; }
/* 类选择器优先级高于全局 svg{fill:none;stroke:currentColor}，
   保证各处二维码色块正常填充（不能只写 #shareQr，客服二维码同样需要） */
.shareqr__code svg { fill: #111827; stroke: none; }
.shareqr__text { margin: 0; color: #999999; font-size: 12.5px; }

.sharelist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.sharelist__item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px;
  border: 1px solid #f6eef1;
  border-radius: 12px;
  background: #fefbfc;
  font-size: 12.5px;
  cursor: pointer;
}
.sharelist__item:hover { border-color: #f2d7e0; background: #fef5f8; }
.sharelist__dot {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #cf4774;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* 筛选 */
.filters { display: flex; flex-direction: column; gap: 16px; }
.fgroup { min-width: 0; }   /* 列向 flex 子项，避免长文案撑破弹层 */
.fgroup__name { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: #3d4757; }
.fgroup__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fopt {
  padding: 7px 14px;
  border: 1px solid #f2e6ea;
  border-radius: 999px;
  background: #fefbfc;
  color: #55606f;
  font-size: 13px;
  cursor: pointer;
  transition: all .16s;
}
.fopt:hover { border-color: #ecc6d3; }
.fopt[aria-pressed="true"] {
  border-color: #cf4774;
  background: #fdeef3;
  color: #a8355b;
  font-weight: 700;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 26px);
  z-index: 90;
  max-width: 78vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(24, 30, 42, .9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 商品信息行与常见问题（下单页 / 商品详情页共用） ---------------- */
.prow { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f6eef1; font-size: 13.5px; }
.prow:last-of-type { border-bottom: 0; }
.prow__k { flex: none; width: 78px; color: #999999; }
.prow__v { flex: 1; min-width: 0; color: #222222; word-break: break-all; }

.panel__note {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #fcf7f9;
  color: #5d6d7e;
  font-size: 12.5px;
  line-height: 1.7;
}

.panel__sub { margin: 16px 0 8px; font-size: 14px; font-weight: 700; }

.panel__list { margin: 0; padding-left: 18px; color: #5d6d7e; font-size: 13px; line-height: 1.9; }

.faq { border-bottom: 1px solid #f2f2f2; }
.faq:last-child { border-bottom: 0; }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 2px;
  color: #3d4757;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  flex: none;
  width: 7px; height: 7px;
  border-right: 2px solid #9aa6b8;
  border-bottom: 2px solid #9aa6b8;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.faq[open] .faq__q::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq__a { margin: 0 0 12px; padding: 0 2px; color: #5d6d7e; font-size: 13px; line-height: 1.85; }

/* ---------------- 分享 / 查名下卡（下单页 / 商品详情页共用） ---------------- */
.quickacts {
  display: grid;
  /* 按实际数量自适应：只剩 1 个时铺满整行（居中），2 个时左右等分 */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.quickacts__item {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px;
  border: 1px solid #f2e3e8;
  border-radius: 10px;
  background: #fff;
  color: #5d6d7e;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.quickacts__item svg { width: 15px; height: 15px; }
.quickacts__item:hover { border-color: #cf4774; color: #cf4774; }

/* ---------------- 详情三 Tab（下单页 / 商品详情页共用） ---------------- */
.detail {
  margin-top: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23, 43, 77, .06);
  overflow: hidden;
}

.detail__tabs { position: relative; display: flex; border-bottom: 1px solid #ececf0; }

.detail__tab {
  flex: 1;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #5b6472;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s;
}
.detail__tab[aria-selected="true"] { color: #f45884; }

.detail__panel { padding: 12px 14px 16px; }

/* ---------------- 吸底操作栏（下单页 / 商品详情页共用） ---------------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  margin-inline: auto;
  max-width: 750px;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #eceef3;
  box-shadow: 0 -4px 14px rgba(23, 43, 77, .06);
}

.actionbar__item {
  flex: none;
  width: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0;
  background: transparent;
  color: #8b94a3;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
.actionbar__item svg { width: 20px; height: 20px; stroke-width: 1.7; }
.actionbar__item:hover { color: #cf4774; }

.actionbar__cta {
  flex: 1;
  height: 44px;
  margin-left: 6px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #cf4774, #ef6b97);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(207, 71, 116, .28);
}
.actionbar__cta:active { transform: scale(.985); }

/* 后台可上传展示图：铺满并压暗一层，保证文字可读 */
.banner__slide--img { background-size: cover; background-position: center; }

/* ---------------- 客服二维码（后台可换成自己上传的） ---------------- */
/* 后台上传的客服二维码：撑满容器内容区并居中，避免比容器大而溢出压住下面的说明文字 */
.siteqr { display: block; width: 100%; height: 100%; margin: 0 auto; object-fit: contain; }

.sitecontact { margin-top: 12px; text-align: center; }
.sitecontact__line { margin: 4px 0; color: #4a5568; font-size: 13px; line-height: 1.7; word-break: break-all; }
.sitecontact__line--muted { color: #8b94a3; font-size: 12.5px; }

/* ---------------- 系统公告弹窗（右上角小圆圈 ×） ---------------- */
.npop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.npop__mask { position: absolute; inset: 0; background: rgba(17, 24, 39, .5); animation: fade .2s ease both; }
.npop__box {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 76vh;
  overflow-y: auto;
  padding: 20px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 43, 77, .22);
  animation: npopIn .24s cubic-bezier(.4, 0, .2, 1) both;
  text-align: center;
}
@keyframes npopIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* 右上角的小圆圈 ×：点它就关闭 */
.npop__x {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #8b94a3;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(23, 43, 77, .25);
}
.npop__x:hover { background: #e53935; }

.npop__t { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.5; color: #24314a; }
.npop__img { display: block; width: 100%; margin: 0 0 10px; border-radius: 10px; }
.npop__body { margin: 0; color: #4a5568; font-size: 13.5px; line-height: 1.8; text-align: left; word-break: break-word; }
.npop__ok {
  width: 100%;
  margin-top: 16px;
  padding: 11px 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #cf4774, #ef6b97);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.npop__ok:hover { filter: brightness(1.05); }

/* ---------------- 焦点可达性 ---------------- */
:focus-visible { outline: 2px solid #cf4774; outline-offset: 2px; }
.tabs__btn:focus-visible, .fopt:focus-visible { outline-offset: -2px; }

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

/* ---------------- 宽屏微调 ---------------- */
@media (min-width: 560px) {
  .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .banner__slide { min-height: 124px; }
}
