
/* ---- inline style block ---- */

/* ==================================================================
   Figma 移动版 · 首页样式
   变量与 front/assets/css/stitch-themes.css 的 t-* 主题同口径，
   便于其它页面（主题外壳 _shell.php）共用同一套颜色。
   ================================================================== */
:root{
  --fm-bg:#F5F6F8;
  --fm-card:#FFFFFF;
  --fm-ink:#292929;
  --fm-ink-2:#6B7280;
  --fm-ink-3:#9CA3AF;
  --fm-line:#EDEFF3;
  --fm-brand:#3B6EF6;
  --fm-brand-deep:#2557D6;
  --fm-brand-soft:#EAF0FE;
  --fm-danger:#E5484D;
  --fm-radius:12px;
  --fm-shadow:0 5px 16px rgba(32,61,104,.08), 0 1px 2px rgba(32,61,104,.05);
  /* 底导几何：与 Figma 参考 .bottom-nav 一致（height 70 / radius 38 / padding 6） */
  --fm-nav-h:70px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* ── 点击响应：消除移动端 300ms 双击缩放等待 ──────────────────────
   viewport 没禁双击缩放时，浏览器 touchend 后要等约 300ms 才派发 click，
   表现就是"点了没反应、慢半拍"。给所有可点元素声明 manipulation 即可立即响应。
   （参考工程 .bottom-nav button 本来就带这行，重写导航时漏了） */
a,button,input,textarea,summary,.c,.slide,.all,.kf,.wordmark,[data-dot],[data-arrow]{
  touch-action:manipulation}
html,body{margin:0}
body{
  background:var(--fm-bg);color:var(--fm-ink);
  font:16px/24px Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  padding-top:env(safe-area-inset-top);
  /* Figma 参考 .app-shell 的底部留白：calc(108px + safe-area) */
  padding-bottom:calc(108px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{display:block}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 画布：与 Figma 参考一致的最大宽度 393px，宽屏居中 */
.shell{max-width:393px;margin:0 auto;padding:0 8px calc(108px + env(safe-area-inset-bottom, 0px))}

/* 品牌行（对齐参考 .home-glass .store-brand-row：玻璃胶囊 + 18px 圆角 + space-between） */
.brand{display:flex;align-items:center;justify-content:space-between;padding:12px 10px;margin:0 4px 12px;
  border:1px solid #FFFFFFD9;border-radius:18px;
  background:linear-gradient(130deg,#FFFFFFA6,#FFFFFF40);
  box-shadow:inset 0 1px 0 #fff, 0 3px 12px rgba(64,87,125,.024);
  -webkit-backdrop-filter:blur(18px) saturate(135%);backdrop-filter:blur(18px) saturate(135%);
  transform:translateZ(0);will-change:transform;contain:paint}
/* 不再 flex:1 —— 参考里 h1/p 是收缩到文字宽度（computed width 60px），
   靠父级 space-between 把客服按钮推到右侧。min-width:0 保证超长站名能省略。 */
/* 品牌标按钮复位（参考是 <button class="store-wordmark">：清掉按钮默认样式） */
.brand .wordmark{display:flex;align-items:center;gap:10px;min-width:0;padding:0;border:0;
  background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:14px}
.brand .wordmark > div{min-width:0}
.brand .wordmark > div > *{max-width:100%}
/* 按压回弹（参考点它会重播骨架动画，动画本身在页尾脚本里） */
.brand .wordmark:active{transform:scale(.97)}
.brand .wordmark:focus-visible{outline:2px solid #3979DF;outline-offset:4px}
/* 方标（对齐参考 .home-glass .store-mark：42px / 14px 圆角 / 玻璃质感） */
.brand .mark{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;
  border:1px solid #FFFFFFD9;color:#527AAF;
  background:linear-gradient(145deg,#FFFFFFED,#D9E6FBB3);
  box-shadow:inset 0 1px 1px #fff, inset 0 -1px 1px rgba(154,179,214,.25), 0 3px 8px rgba(72,107,156,.07)}
.brand .mark svg{width:22px;height:22px;display:block}
/* 站名（对齐参考 .store-wordmark h1：23px / 800 / 字距 1px / #263b58） */
.brand h1{margin:0;font-size:23px;font-weight:800;letter-spacing:1px;line-height:1.2;color:#304867;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 副标（对齐参考 .store-wordmark p：10px / 字距 2px / #8793a3 / margin-top 4px） */
.brand .sub{display:block;margin:4px 0 0;font-size:10px;font-weight:400;letter-spacing:2px;color:#8297B1;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand .kf{margin-left:auto;width:36px;height:36px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--fm-shadow);color:var(--fm-ink-2)}
.brand .kf svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ── 首页加载特效：骨架屏微光 → 内容渐显 ────────────────────────
   完全对齐参考 .entry-loading / .entry-ready：
     · 加载中：横幅图隐藏、卡片与分组标题的文字隐占位、查看更多变透明，
       并用 ::before/::after 画微光骨架（105deg 渐变 + background-position 位移）
     · 就绪后：横幅与卡片做 150ms opacity 渐显
     · 尊重 prefers-reduced-motion：减少动效时不播放
   时序由页尾脚本控制：等图片 decode，最长 2.2s 兜底。 */
@keyframes fm-skeleton-shimmer{from{background-position:160% 0}to{background-position:-60% 0}}
@keyframes fm-content-reveal{from{opacity:0}to{opacity:1}}
.entry-loading .banner,.entry-loading .c,.entry-loading .grp-h .gt,.entry-loading .grp-h .all{position:relative}
.entry-loading .banner img{opacity:0}
/* 参考还额外隐藏了横幅内的文案与控制条，并把幻灯片底色换成浅灰占位
   （.entry-loading .banner-copy{visibility:hidden} / .banner-controls{visibility:hidden}）。
   这里用 .entry-loading .banner .slide 提高特异性，盖住 .slide.t-dark 等色调背景。 */
.entry-loading .banner .copy,.entry-loading .banner-controls{visibility:hidden}
.entry-loading .banner .slide{background:#E5EAF2}
.entry-loading .c > *,.entry-loading .grp-h .gt > *{visibility:hidden}
.entry-loading .grp-h .all{color:transparent;pointer-events:none}
.entry-loading .c::before,.entry-loading .c::after,.entry-loading .banner::after,
.entry-loading .grp-h .gt::after,.entry-loading .grp-h .all::after{
  content:"";position:absolute;pointer-events:none;border-radius:6px;
  background:linear-gradient(105deg,#e9ebee 30%,#f8f9fa 48%,#e9ebee 66%);
  background-size:250% 100%;animation:fm-skeleton-shimmer 1.2s ease-in-out infinite}
.entry-loading .banner::after{inset:0;border-radius:12px;z-index:5}
.entry-loading .c::before{width:30px;height:30px;left:6px;top:calc(50% - 15px);border-radius:9px}
.entry-loading .c::after{left:43px;right:6px;height:18px;top:calc(50% - 9px)}
.entry-loading .grp-h .gt::after{inset:5px 0}
.entry-loading .grp-h .all::after{left:0;right:0;height:8px;top:calc(50% - 4px)}
@media (prefers-reduced-motion: no-preference){
  .entry-ready .banner{animation:fm-content-reveal .15s ease-out}
  .entry-ready .c{animation:fm-content-reveal .15s ease-out}
}
@media (prefers-reduced-motion: reduce){
  .entry-loading .c::before,.entry-loading .c::after,.entry-loading .banner::after,
  .entry-loading .grp-h .gt::after,.entry-loading .grp-h .all::after{animation:none}
}
/* 键盘可见焦点环（参考全局 button/input/summary:focus-visible，无障碍必需） */
.figma-mobile a:focus-visible,.figma-mobile button:focus-visible,
.figma-mobile input:focus-visible,.figma-mobile textarea:focus-visible{
  outline:2px solid #3979DF;outline-offset:4px;border-radius:6px}

/* ── 横幅轮播：对齐参考的「侧翼露出」三张叠放 ────────────────────
   参考 .banner-slide{position:absolute;top:0;left:6%;width:88%;padding:3px 0;
     border-radius:12px;border:1px solid #ffffffa6;box-shadow:0 5px 13px #253f6415}
    .banner-slide-center{z-index:3;left:6%;opacity:1}
    .banner-slide-left {z-index:1;top:6px;left:0;width:76%}
    .banner-slide-right{z-index:1;top:6px;left:24%;width:76%}
   控制条在**横幅下方**（不是叠在图上）：箭头 + 圆点，整体 opacity .3 */
.banner{position:relative;margin:0 4px;overflow:visible}
.banner-stage{position:relative;width:100%;aspect-ratio:3.6;margin-top:6px;touch-action:pan-y}
.slide{position:absolute;top:0;left:6%;width:88%;padding:3px 0;border:1px solid rgba(255,255,255,.9);
  border-radius:12px;overflow:hidden;box-shadow:0 5px 15px rgba(45,76,116,.1), 0 0 0 1px rgba(201,216,237,.4);
  display:block;cursor:pointer;text-align:left;font:inherit;color:#fff;margin:0;
  will-change:left,top,width,opacity;backface-visibility:hidden;
  transition:left .46s cubic-bezier(.22,1,.36,1),top .46s cubic-bezier(.22,1,.36,1),
             width .46s cubic-bezier(.22,1,.36,1),opacity .35s ease}
/* 图片走普通流（与参考 .branch-image-banner img{display:block;width:100%;height:auto} 一致）：
   由它把幻灯片撑出高度。之前用 position:absolute+height:100% 没有高度来源，整条会塌成一条线。 */
.slide img{display:block;width:100%;height:auto;object-fit:contain}
.slide .copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;
  justify-content:center;padding:8px 12px;text-align:left}
.slide .kick{display:block;font-size:9px;line-height:1.3;color:#D5E4FB;letter-spacing:.5px}
.slide .head{display:block;margin:5px 0 7px;font-size:clamp(12px,4vw,16px);line-height:1.35;
  font-weight:700;letter-spacing:-.4px}
.slide .cta{display:inline-flex;align-items:center;gap:7px;margin:0;padding:4px 9px;
  border-radius:14px;background:#fff;font-size:9px;line-height:1.3;font-weight:600}
.slide .cta svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.slide{color:#292929}
.slide .copy{color:#fff}
.slide.t-dark{background:#152C54;color:#fff}
.slide.t-dark .kick{color:#D5E4FB}
.slide.t-dark .cta{color:#2C527F}
.slide.t-green{background:#DCECE8;color:#173E36}
.slide.t-green .kick{color:#3F6B5E}
.slide.t-green .cta{color:#173E36}
.slide.t-sand{background:#F0E8DF;color:#4A3A28}
.slide.t-sand .kick{color:#8A6B4A}
.slide.t-sand .cta{color:#4A3A28}
/* 三张的叠放位置（参考 .banner-slide-center / -left / -right） */
.slide.pos-center{z-index:3;top:0;left:6%;width:88%;opacity:1}
.slide.pos-left{z-index:1;top:6px;left:0;width:76%;opacity:.95}
.slide.pos-right{z-index:1;top:6px;left:24%;width:76%;opacity:.95}
/* 控制条：箭头 + 圆点，位于横幅下方 */
.banner-controls{display:flex;align-items:center;justify-content:center;gap:4px;opacity:.3;margin-top:0}
.banner-arrow{display:grid;place-items:center;width:34px;height:32px;padding:0;
  border:1px solid #FFFFFF;border-radius:50%;color:#5A769B;cursor:pointer;
  background:linear-gradient(145deg,rgba(255,255,255,.85),rgba(232,239,250,.5));
  box-shadow:inset 0 1px 0 #fff, 0 2px 5px rgba(73,106,150,.07)}
.banner-arrow svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.banner-arrow:active{color:#456FA6;background:#E5ECF7}
.banner-dots{display:flex;align-items:center}
.banner-dots button{display:grid;place-items:center;width:22px;height:32px;padding:0;border:0;
  background:transparent;cursor:pointer}
.banner-dots span{width:5px;height:5px;border-radius:50%;background:#D0D6DF;
  transition:width .35s cubic-bezier(.22,1,.36,1),background-color .25s ease}
.banner-dots button[aria-pressed="true"] span{width:15px;border-radius:5px;background:#778ABC}

/* ── 搜索（首页与分类页共用） ───────────────────────────── */
.search{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;margin:0 0 14px;
  background:#fff;border:1px solid var(--fm-line);border-radius:14px;box-shadow:var(--fm-shadow)}
.search svg{width:17px;height:17px;flex:none;stroke:var(--fm-ink-3);fill:none;stroke-width:1.9;stroke-linecap:round}
.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--fm-ink)}
.search input::placeholder{color:var(--fm-ink-3)}
.search .clear{border:0;background:transparent;color:var(--fm-brand);font-size:12.5px;font-weight:600;cursor:pointer;padding:6px}

/* ── 分组容器（对齐参考 .store-content .platform-section）
     参考里每个分组是**一张带渐变背景的圆角卡片**，不是一个裸标题 + 网格 ── */
.grp{margin:0 0 12px;padding:8px 8px 10px;border:1px solid rgba(255,255,255,.86);border-radius:16px;
  background:
    radial-gradient(at 4% 0%, rgba(255,255,255,.93), transparent 58%),
    radial-gradient(at 100% 100%, rgba(220,233,251,.55), transparent 64%),
    linear-gradient(135deg, rgba(242,246,252,.9), rgba(232,238,248,.85));
  box-shadow:inset 0 1px 1px #fff, inset 0 -1px 1px rgba(200,214,234,.35),
    0 5px 18px rgba(65,92,134,.063), 0 0 0 1px rgba(219,227,239,.4);overflow:hidden}
/* 分组头（对齐参考 .section-heading：height 32 / padding 0 4px） */
.grp-h{display:flex;align-items:flex-start;justify-content:space-between;height:32px;padding:0 4px}
/* 分组头左侧整体（参考 .section-title：图标 + 标题成组，这样 space-between 才是"左标题右查看更多"） */
.grp-h .st{display:flex;align-items:center;gap:8px;min-width:0}
.grp-h .gi{width:24px;height:auto;flex:none;object-fit:contain}
.grp-h .gt{min-width:0}
/* 标题（对齐参考 .section-title h2：14px / 700 / 22px / 字距 .5px / #34465f） */
.grp-h h2{margin:0;font-size:14px;font-weight:700;line-height:24px;letter-spacing:.5px;color:#34465F;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grp-h .blurb{margin:1px 0 0;font-size:11px;color:var(--fm-ink-3);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
/* 查看更多（对齐参考 .view-more：13px / 22px / #a5a5a5） */
.grp-h .all{flex:none;display:block;font-size:11px;line-height:24px;color:#8997AA;white-space:nowrap}
.grp-h .all svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* 3 列宫格（Figma .platform-grid：repeat(3,minmax(0,1fr))，gap 7px 5px） */
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 5px}
/* 平台卡（对齐参考 .store-content .platform-card 的玻璃质感：
   白到淡蓝的三段渐变 + 半透明白边 + 内外双层阴影，而不是实色白卡） */
.c{display:flex;align-items:center;gap:5px;height:62px;padding:0 5px;border-radius:11px;
  border:1px solid rgba(255,255,255,.87);
  background:linear-gradient(145deg,rgba(255,255,255,.85),rgba(255,255,255,.45) 65%,rgba(234,241,252,.5));
  box-shadow:inset 0 1px 0 #fff, inset 0 -1px 1px rgba(199,213,231,.18), 0 2px 5px rgba(70,97,135,.043);
  transition:background .16s ease,border-color .16s ease}
/* 悬停/按压（对齐参考 .store-content :is(.common,.hot) .platform-card 的最终渐变值） */
@media (hover:hover){
  .c:hover{border-color:#fff;
    background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(237,245,255,.7));
    box-shadow:inset 0 1px 0 #fff, 0 3px 9px rgba(66,106,157,.094)}
}
/* 按压：底色/边框**立即**生效（不给过渡），只有缩放做 0.1s，反馈跟手 */
.c:active{border-color:#D6E3F6;
  background:linear-gradient(145deg,rgba(227,237,251,.8),rgba(255,255,255,.7));
  box-shadow:inset 0 1px 3px rgba(89,119,162,.1);
  transform:scale(.985);transition:transform .1s ease;
  will-change:transform}
.c{contain:layout style}

/* ── 首页全部分组与平台卡：轻阴影 + 微反光（2026-10-18 视觉增量）
   映射：设计稿 .store-content .platform-section:is(.common,.hot) → 本站首页全部分组 .grp
        设计稿 .store-content :is(.common,.hot) .platform-card → .grp .c
   作用于**所有**分组（含以后新增的分类分组），不做逐分类挂类。
   仅覆盖 background / border / box-shadow，其余（尺寸、布局、字号、跳转、hover/active）保持原样 ── */
.grp{
  box-shadow:
    inset 0 1px 1px #fff,
    inset 0 -1px 1px #c8d6ea59,
    0 5px 14px #415c8614,
    0 0 0 1px #dbe3ef66}
.grp .c{
  border:1px solid #ffffffde;
  background:linear-gradient(135deg,#fffffff2 0%,#ffffffb8 38%,#ffffff66 65%,#eaf1fc8c 100%);
  box-shadow:
    inset 0 1px 2px #fff,
    inset 1px 0 0 #ffffffa6,
    inset 0 -1px 1px #c7d5e72e,
    0 3px 8px #46618714}
/* 同值重新声明 hover / active 反馈：上面的规则优先级更高，不重声明会把原有悬停/按压变化盖掉 */
@media (hover:hover){
  .grp .c:hover{border-color:#fff;
    background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(237,245,255,.7));
    box-shadow:inset 0 1px 0 #fff,0 3px 9px rgba(66,106,157,.094)}
}
.grp .c:active{border-color:#D6E3F6;
  background:linear-gradient(145deg,rgba(227,237,251,.8),rgba(255,255,255,.7));
  box-shadow:inset 0 1px 3px rgba(89,119,162,.1)}
/* 平台图标（Figma .platform-icon：38px；≤374px 降到 30px） */
.c .pi{width:38px;height:38px;flex:0 0 38px;border-radius:9px;object-fit:contain;background:#F7F8FA}
.c .pi-text{display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;
  color:var(--fm-brand);background:var(--fm-brand-soft)}
.c .txt{min-width:0;display:flex;flex-direction:column;gap:2px}
/* 名称 11px/15px（参考 .platform-copy h3：单行省略 / margin 0 0 5px / color #34465f / 500） */
.c .txt b{display:block;margin:0 0 5px;font-size:11px;font-weight:500;line-height:15px;color:#34465F;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 副文案（参考 .platform-copy p：#8997aa） */
.c .buy{font-size:9px;line-height:13px;color:#8997AA;white-space:nowrap}

/* ── 商品目录页（对齐参考 .catalog-* 全套设计）──────────────────── */
.catalog-page{padding:0 2px 16px;color:#292D34}
/* 顶栏：返回 + 平台下拉 + 客服 */
.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:58px;border-bottom:1px solid #E5E5E7}
.catalog-heading>a{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  color:#252A30;background:#EDEDEE;flex:none}
.catalog-heading svg,.catalog-view-switch svg{width:21px;height:21px;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.catalog-heading .catalog-return-icon{width:22px;height:22px;stroke:#4B6382;stroke-width:1.9;
  transition:transform 150ms ease}
.catalog-heading a:active>.catalog-return-icon{transform:translateX(-2px)}
.catalog-heading select{max-width:calc(100% - 96px);min-width:0;min-height:44px;padding:0 4px;
  border:none;color:#20242A;background:transparent;font-size:14px;font-weight:600;text-align:center;
  text-overflow:ellipsis;font-family:inherit}
/* 搜索行 + 视图切换 */
.catalog-search-row{display:flex;align-items:center;gap:8px;padding:10px 0}
.catalog-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;
  background:#fff;border:1px solid #DCDDE0;border-radius:24px;
  box-shadow:inset 0 0 0 1px #EFEFF0;color:#97A6BD}
.catalog-search svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;
  stroke-width:1.9;stroke-linecap:round}
.catalog-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:12px;
  color:#34425B;font-family:inherit}
.catalog-search input::placeholder{color:#A8A9AB}
.catalog-search button{padding:4px 7px;border:0;background:transparent;color:#397CE1;font-size:9px;
  font-family:inherit;cursor:pointer;touch-action:manipulation}
.catalog-view-switch{display:flex;gap:7px}
.catalog-view-switch button{display:grid;place-items:center;width:34px;min-height:38px;padding:0;
  border:1px solid #E4E4E6;border-radius:9px;background:#fff;color:#8A929E;cursor:pointer;
  touch-action:manipulation}
.catalog-view-switch button[aria-pressed="true"]{background:#EAF1FC;border-color:#CBDBF2;color:#397CE1}
/* 商品卡 */
.catalog-items{display:flex;flex-direction:column;gap:10px}
.catalog-item{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:104px;
  padding:11px 10px;border:1px solid #F1F1F2;border-radius:13px;background:#fff;
  box-shadow:0 4px 11px rgba(32,36,42,.016);text-align:left;color:inherit;text-decoration:none}
.catalog-item-image{width:76px;height:76px;object-fit:contain;flex:none}
.catalog-image-text{display:grid;place-items:center;border-radius:11px;background:#F5F7FA;
  color:#3B6EF6;font-size:26px;font-weight:800}
.catalog-item-info{display:flex;flex:1;flex-direction:column;justify-content:space-between;
  min-width:0;min-height:66px;padding:4px 0}
.catalog-item-info h2{margin:0;color:#292D32;font-size:12px;line-height:1.6;font-weight:600;
  overflow-wrap:anywhere}
.catalog-starter-tags{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:5px 0}
.catalog-starter-tags>span{display:inline-flex;align-items:center;min-height:18px;padding:1px 6px;
  border:1px solid #E8ECF1;border-radius:5px;background:#F5F7FA;color:#8A98AA;font-size:8px;
  line-height:1.5;white-space:nowrap}
.catalog-starter-tags>.catalog-starter-tag-primary{border-color:#DCE9FA;
  background:linear-gradient(135deg,#F0F6FF,#E8F1FD);color:#5C88C4;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
/* 首件商品：推荐角标 + 浅蓝渐变底 */
.catalog-item-featured{padding:18px 12px 12px;border-color:#E2E9F4;
  background:linear-gradient(135deg,#fff 65%,#F9FBFF);box-shadow:0 3px 10px rgba(51,75,107,.031)}
.catalog-rank-badge{position:absolute;top:-1px;left:-1px;z-index:1;display:inline-flex;
  align-items:center;gap:4px;padding:4px 8px;border:1px solid #F4B17F;border-radius:13px 0 9px 0;
  background:linear-gradient(115deg,#F59253,#EFB166);color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 5px rgba(188,121,72,.1);
  font-size:9px;font-weight:600;line-height:1.2;letter-spacing:.5px;pointer-events:none}
.catalog-rank-badge small{font-size:7px;font-weight:400;letter-spacing:0;opacity:.85}
.catalog-item-featured .catalog-rank-badge{top:-10px;left:8px;padding:3px 8px 3px 6px;gap:5px;
  border-radius:7px;border-color:#F1DDC5;background:#FCF1E3;color:#AC7C43;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 2px 4px rgba(167,123,66,.063);font-size:10px}
.catalog-item-featured .catalog-rank-badge small{font-size:9px}
.catalog-item-featured .catalog-item-image{border-radius:11px;background:#F8FAFD;
  outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}
.catalog-item-featured .catalog-item-info{justify-content:center;min-height:60px;padding:0}
.catalog-item-featured .catalog-item-info h2{display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:1.5;color:#34445B}
.catalog-item-featured .catalog-starter-tags{margin:6px 0 0;gap:5px}
.catalog-item-featured .catalog-starter-tags>span{font-size:10px;padding:1px 6px}
.catalog-item-action{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
  gap:10px;flex-shrink:0}
.catalog-price{display:inline-flex;align-items:baseline;gap:1px;color:#F26368;font-size:18px;
  font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums}
.catalog-price small{font-size:11px;font-weight:500}
.catalog-price-suffix{font-style:normal;font-size:9px;color:#A0AAB7;margin-left:2px}
.catalog-buy{display:inline-flex;align-items:center;justify-content:center;min-height:28px;
  padding:0 12px;border-radius:20px;background:linear-gradient(110deg,#388AF0,#5AA8FA);
  box-shadow:0 3px 7px rgba(60,146,237,.145);color:#fff;font-size:11px;white-space:nowrap}
.catalog-item:active{background:#F6FAFF;border-color:#DCEAFB}
.catalog-item-featured .catalog-item-action{flex-direction:column;align-items:flex-end;
  justify-content:center;gap:9px;padding:0;border:0}
.catalog-item-featured .catalog-price{font-size:19px;color:#ED7762}
.catalog-item-featured .catalog-buy{min-height:32px;min-width:76px;padding:0 11px;
  border:1px solid #458DEB;border-radius:18px;background:linear-gradient(110deg,#3E89ED,#62A5F6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 3px 7px rgba(74,145,236,.125);
  font-size:11px;font-weight:500}
/* 网格视图 */
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.catalog-grid .catalog-item{flex-direction:column;align-items:stretch;gap:9px}
.catalog-grid .catalog-item-image{align-self:center;width:80px;height:80px}
.catalog-grid .catalog-item-info{min-height:72px}
.catalog-grid .catalog-item-action{flex-direction:row;justify-content:space-between;
  align-items:center;gap:4px}
.catalog-grid .catalog-price{font-size:16px}
.catalog-grid .catalog-buy{padding:0 7px;font-size:10px}
.catalog-count{color:#A1A7B1;text-align:center;font-size:10px;margin:18px 0 0}
@media (prefers-reduced-motion: reduce){
  .catalog-heading .catalog-return-icon{transition:none}
  .catalog-heading a:active>.catalog-return-icon{transform:none}
}
@media (max-width:350px){
  .catalog-item{padding:10px 8px;gap:7px}
  .catalog-item-image{width:58px;height:66px}
  .catalog-price{font-size:16px}
  .catalog-buy{padding:0 9px;font-size:10px}
  .catalog-heading select{font-size:12px}
  .catalog-item-featured{padding-inline:9px;gap:8px}
  .catalog-item-featured .catalog-item-image{width:64px;height:64px}
  .catalog-item-featured .catalog-item-info h2{font-size:12px}
}
.catalog-item:focus-visible,.catalog-heading a:focus-visible,.catalog-view-switch button:focus-visible{
  outline:3px solid #9BB6FF;outline-offset:3px}

/* ── 分类页（对齐参考 .inner-page / .page-heading / .directory-list）──── */
.inner-page{min-height:65vh;padding:14px 8px}
.page-heading{margin-bottom:22px}
.page-heading .eyebrow{display:block;font-size:9px;letter-spacing:1.8px;color:#7F9BC3}
.page-heading h1{font-size:26px;margin:8px 0;color:#344561;font-weight:700}
.page-heading p{font-size:12px;color:#98A3B3;margin:0}
/* 搜索（参考 .platform-search：43px 高、11px 圆角、右侧蓝色"清除"按钮） */
.platform-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #EAF0F8;
  border-radius:11px;height:43px;padding:5px 5px 5px 11px;
  box-shadow:0 3px 10px rgba(79,107,152,.063);color:#97A6BD}
.platform-search svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;
  stroke-width:1.9;stroke-linecap:round}
.platform-search input{width:100%;min-width:0;border:0;outline:none;color:#34425B;
  font-size:11px;background:transparent;font-family:inherit}
.platform-search button{background:#397CE1;color:#fff;border:0;border-radius:8px;font-size:11px;
  padding:8px 14px;white-space:nowrap;font-family:inherit;cursor:pointer;touch-action:manipulation}
/* 筛选 tab（参考 .filter-tabs / .selected） */
.filter-tabs{display:flex;gap:7px;align-items:center;margin:20px 0 14px}
.filter-tabs button{border:0;background:transparent;border-radius:7px;padding:7px 15px;font-size:11px;
  color:#8F9AAB;font-family:inherit;cursor:pointer;touch-action:manipulation;
  transition:color .15s,background .15s}
.filter-tabs button.selected{color:#397CE1;background:#E9F0FC;box-shadow:inset 0 0 0 1px #DCE7F8}
.filter-tabs>span{margin-left:auto;font-size:10px;color:#A5AEBC}
.filter-tabs>span b{color:#397CE1;font-weight:700}
/* 平台目录（参考 .directory-list：每行 39px 图标 + 名称 + 浏览平台商品 + 箭头） */
.directory-list{display:flex;flex-direction:column;gap:7px}
.directory-list>button{display:flex;align-items:center;gap:13px;background:#fff;border:0;border-radius:12px;
  padding:12px;text-align:left;width:100%;font-family:inherit;cursor:pointer;
  transition:background .15s,transform .12s;touch-action:manipulation}
.directory-list>button:active{background:#F4F8FF;transform:scale(.99)}
.directory-list img{width:39px;height:39px;flex:none;object-fit:contain}
.d-img-text{width:39px;height:39px;flex:none;border-radius:9px;background:#F5F7FA;
  display:grid;place-items:center;font-size:15px;font-weight:800;color:#3B6EF6}
.directory-list>button>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.directory-list strong{font-size:13px;font-weight:500;color:#292929;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.directory-list small{font-size:10px;color:#A2AAB7}
.directory-list svg{margin-left:auto;width:16px;height:16px;flex:none;color:#B4BFCD;
  stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* 空状态（参考 .empty-panel / .primary-button） */
.empty-panel{padding:50px 15px;text-align:center;background:#fff;border-radius:17px;color:#9AADC7}
.empty-panel svg{width:40px;height:40px;margin:0 auto;stroke:currentColor;fill:none;
  stroke-width:1.5;stroke-linecap:round}
.empty-panel h2{font-size:17px;color:#4B5A71;font-weight:600;margin:15px 0 10px}
.empty-panel p{font-size:11px;line-height:2;color:#9AA5B5;margin:0 0 25px}
.primary-button{display:inline-flex;justify-content:center;align-items:center;gap:15px;color:#fff;
  background:#397CE1;border:0;border-radius:10px;padding:12px 22px;font-size:12px;
  font-family:inherit;cursor:pointer;touch-action:manipulation}

/* ── 商品列表（?cid=） ────────────────────────────────── */
.pnav{display:flex;align-items:center;gap:10px;padding:10px 2px 12px}
.pnav .back{width:34px;height:34px;flex:none;border-radius:50%;background:#fff;box-shadow:var(--fm-shadow);
  display:flex;align-items:center;justify-content:center}
.pnav .back svg{width:18px;height:18px;stroke:var(--fm-ink);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pnav .tt{min-width:0}
.pnav .tt b{display:block;font-size:16px;font-weight:800;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pnav .tt span{font-size:11.5px;color:var(--fm-ink-3)}
.pnav .kf{margin-left:auto;width:34px;height:34px;flex:none;border-radius:50%;background:#fff;box-shadow:var(--fm-shadow);
  display:flex;align-items:center;justify-content:center;color:var(--fm-ink-2)}
.pnav .kf svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.list{display:flex;flex-direction:column;gap:9px}
.row{display:flex;align-items:center;gap:10px;padding:11px;background:#fff;border-radius:14px;box-shadow:var(--fm-shadow)}
.row .gimg{width:46px;height:46px;flex:none;border-radius:11px;object-fit:contain;background:#F7F8FA}
.row .gimg-text{display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;
  color:var(--fm-brand);background:var(--fm-brand-soft)}
.row .t{min-width:0;flex:1}
.row .t b{display:block;font-size:13.5px;font-weight:700;line-height:1.3;word-break:break-all;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.row .t .sub{margin-top:2px;font-size:11px;color:var(--fm-ink-3)}
.row .r{flex:none;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.row .pr{font-size:15px;font-weight:800;color:var(--fm-danger)}
.row .pr small{font-size:10px;font-weight:600}
.row .buy{display:inline-flex;align-items:center;height:26px;padding:0 11px;border-radius:999px;
  background:var(--fm-brand);color:#fff;font-size:11.5px;font-weight:700}

.empty{padding:26px 16px;text-align:center;font-size:13px;color:var(--fm-ink-3);
  background:#fff;border-radius:14px;box-shadow:var(--fm-shadow)}

/* ── 底部五项导航
     几何取 Figma .bottom-nav：bottom 12+safe / width min(100%-32px,361px) /
     height 70 / radius 38 / padding 6 / 按钮 radius 30、gap 4、min-height 44。
     列数用 5（任务单要求首页五项：首页/分类/订单|查单/客服/我的），
     参考工程 CSS 里残留的 repeat(4) 是它早期四项版本的值，不采用。 ── */
/* 底导（对齐参考 .bottom-nav 的计算值）：
   361×70、6px 内边距、38px 圆角、三块玻璃（渐变底 + blur24 saturate180 + 内阴影） */
/* translateZ(0)：把固定底导提升为独立合成层，避免每次点击/滚动重绘整页 */
.tabbar{position:fixed;left:50%;transform:translateX(-50%) translateZ(0);bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  width:min(calc(100% - 32px),361px);height:70px;z-index:10;isolation:isolate;border-radius:38px;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px;
  background:#F8FBFFF5;border:1px solid rgba(255,255,255,.94);
  box-shadow:inset 0 1px 1px #fff, inset 0 -1px 0 rgba(255,255,255,.5), 0 8px 30px rgba(59,85,124,.14)}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .tabbar{background:linear-gradient(135deg,rgba(255,255,255,.65),rgba(237,244,255,.5));
    -webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%)}
}
/* 滑动指示器（参考 .nav-indicator）：宽度 = 一列 = calc(20% - 2.4px)，
   靠 --active-index 做 translateX(100%) 的整数倍位移；z-index:-1 压在图标下 */
.tabbar .ind{position:absolute;top:6px;bottom:6px;left:6px;width:calc(20% - 2.4px);
  border-radius:30px;background:linear-gradient(150deg,rgba(255,255,255,.92),rgba(220,234,255,.72));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 1px 2px #fff, 0 2px 7px rgba(87,124,172,.08);
  transform:translateX(calc(var(--active-index, 0) * 100%));
  transition:transform 320ms cubic-bezier(.22,1,.36,1);pointer-events:none;z-index:-1;will-change:transform}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-width:0;min-height:44px;height:56px;border-radius:30px;padding:4px;
  font-size:16px;font-weight:400;line-height:24px;color:#737F90;
  /* 参考 .bottom-nav button 的过渡原值：color 180ms / transform 150ms / background-color 150ms */
  transition:color 180ms ease,transform 150ms ease,background-color 150ms ease}
/* 参考 .bottom-nav button svg 实测 22×20 */
.tabbar a svg{width:22px;height:20px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
/* 选中态（参考 .bottom-nav .active：颜色 + 600，不加底色，底色由 .ind 承担） */
.tabbar a.on{color:#2F70CF;font-weight:600}
.tabbar a.on svg{stroke-width:2}
/* ── 按压/悬停：严格照参考原值 ────────────────────────────────────
   参考 .bottom-nav button:active{transform:scale(.92);background:#397ce11a}
   注意：#397ce11a 只有 10% 透明度，缩放也只到 .92 —— 设计上是**很克制**的反馈。
   之前我误把 prefers-reduced-motion 里的 transform:none 当成了最终值（导致没特效），
   之后又矫枉过正成 scale(.88)+22% 蓝底（过头了）。这里按原值复原。 */
.tabbar a:active{transform:scale(.92);background:#397CE11A}
@media (hover:hover){
  .tabbar a:hover{background:#FFFFFF66;color:#397CE1}
}
/* 减少动效：只在用户开启该偏好时去掉缩放（与参考同一处理） */
@media (prefers-reduced-motion: reduce){
  .tabbar a:active{transform:none}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
/* 窄屏降级：与 Figma 参考同一断点（374px）与同一组值 */
@media (max-width:374px){
  .grid{column-gap:4px}
  .c{gap:4px;padding:0 4px}
  .c .pi{width:30px;height:30px;flex-basis:30px}
  .c .txt b{font-size:10px}
}
