/* ============================================================
   skin-orbix.css —— 「Orbix 渐变 + 3D 玻璃」皮肤（前台 + 后台）
   ------------------------------------------------------------
   2026-11-20 第二版：把主色从靛紫改为产品色
     · 青（绿松石）  #29B6C8 / 深 #0F8FB0
     · 黄（瑞水黄）  #FFC61E
   并把 8 张产品实拍图接进 UI（hero 主图 + 入口卡缩略图）。

   开关：默认开启。关闭方式二选一
     · localStorage.setItem('yg.skin','off') 后刷新
     · 临时对比：node tools/shot.mjs <名> "<路由>" --noskin=1

   作用域：html.skin-orbix（theme-boot.js 首屏前挂上）
   素材：public/img/products/*.webp（由 tools/product-images.py 从原图转出）
   ============================================================ */

html.skin-orbix {
  /* 画布与表面 */
  --bg: #eef4f6;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .5);
  --card: rgba(255, 255, 255, .78);
  --card-hover: rgba(255, 255, 255, .92);

  /* 文字 */
  --ink: #07222a;
  --ink-2: #33555f;
  --ink-3: #6b8790;

  /* 线 */
  --line: rgba(255, 255, 255, .75);
  --line-2: rgba(12, 60, 72, .1);

  /* 品牌色：青主 + 黄强调 */
  --tz: #29b6c8;
  --tz-deep: #0f8fb0;
  --tz-ink: #06343d;
  --ye: #ffc61e;

  --gold: #ffc61e;
  --gold-soft: rgba(255, 198, 30, .18);
  /* 2026-11-20：用户要求「其它的绿色都改成这个亮色」。
     统一到产品青 #29b6c8；唯一例外是纯文字链接，见文件末尾 .btn--link。 */
  --green-600: #29b6c8;
  --green-500: #29b6c8;
  /* --green-700 在 app.css 里是深绿 #0b7a5a，既被当色块（胶囊选中）也被当文字色用。
     这里调成偏深的青：色块够亮，当文字时对比度也还在。 */
  --green-700: #12889b;

  /* 形状与景深 */
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 12px 32px rgba(9, 54, 66, .12), 0 2px 6px rgba(9, 54, 66, .06);
}

/* ---------- 背景：青黄网格光斑，玻璃才有东西可透 ---------- */
html.skin-orbix body {
  background:
    radial-gradient(55% 38% at 8% -2%, rgba(41, 182, 200, .30), transparent 62%),
    radial-gradient(48% 34% at 96% 4%, rgba(255, 198, 30, .26), transparent 64%),
    radial-gradient(60% 45% at 50% 108%, rgba(15, 143, 176, .16), transparent 68%),
    #eef4f6;
  background-attachment: fixed;
}

/* ---------- 首页主卡：青→深青渐变 + 黄色轮廓光 ---------- */
html.skin-orbix .hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 120% at 104% -12%, rgba(255, 198, 30, .70) 0%, rgba(255, 198, 30, 0) 46%),
    radial-gradient(120% 130% at -6% -10%, #35c6d8 0%, rgba(53, 198, 216, 0) 58%),
    linear-gradient(158deg, #0d5163 0%, #072a33 100%);
  border-radius: 28px;
  /* 2026-11-20 第二次反馈：加了亮边仍觉得「像黑线」。
     结论是这条边本身不该存在 —— 去掉 border 与外环，让渐变直接过渡到浅色页面，
     靠外投影做分离，不再有 1px 的硬边可看。 */
  border: none;
  box-shadow:
    0 24px 52px rgba(6, 44, 54, .30),
    0 2px 10px rgba(6, 44, 54, .16),
    inset 0 24px 48px rgba(255, 255, 255, .06);
  color: #ffffff;
}

/* 玻璃高光：左上到右下的斜向反光 */
html.skin-orbix .hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(80% 60% at 50% -20%, rgba(255, 255, 255, .28), transparent 70%);
  pointer-events: none;
}

/* 主卡上的文字：深底必须转白 */
html.skin-orbix .hero-model,
html.skin-orbix .hero-spec b {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
html.skin-orbix .hero-name {
  color: rgba(255, 255, 255, .80);
}
html.skin-orbix .hero-spec {
  color: rgba(255, 255, 255, .66);
}

html.skin-orbix .hero-kicker {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #eafcff;
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---------- 产品实拍图：主卡右侧玻璃展台 ---------- */
html.skin-orbix .hero-art {
  width: 136px;
  height: 136px; /* 旧内核无 aspect-ratio 时兜底，否则高度为 0 */
  right: 2px;
  bottom: 4px;
  opacity: 1;
  aspect-ratio: 1 / 1;
  /* 原图本身就是透明抠图（RGBA，透明像素 31%–60%），不需要白色托盘；
     用 contain 保证整机完整落在框内，不裁切。 */
  /* 2026-11-24 用户：图要与产品后台上传的一致 —— 由 pages.js 用产品 images[0] 内联给，
     这里只保留定位/尺寸当兜底，不再写死某一张图。 */
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 14px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .38));
  z-index: 1;
  pointer-events: none;
}
html.skin-orbix .hero-art svg {
  display: none;
}

/* ---------- 入口卡：3D 玻璃 + 产品缩略图 ---------- */
html.skin-orbix .entry {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .78);
  background: linear-gradient(158deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .58) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 12px 30px rgba(9, 54, 66, .12),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(9, 54, 66, .05);
}

html.skin-orbix .entry-ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .9);
  background-color: rgba(255, 255, 255, .62);
  background-repeat: no-repeat;
  background-position: center;
  /* contain + 内缩：保证整机完整显示在框内，不裁掉履带两头。
     框从 56 放到 64、内边距 5→3，是为了让整机在框里够大而不裁切。 */
  background-size: contain;
  background-origin: content-box;
  padding: 3px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(9, 54, 66, .12);
  overflow: hidden;
}
html.skin-orbix .entry-ico svg {
  display: none;
}
html.skin-orbix .entry:nth-child(1) .entry-ico {
  background-image: url("/img/products/ja-4.webp");
}
html.skin-orbix .entry:nth-child(2) .entry-ico {
  background-image: url("/img/products/fanxuan-16.webp");
}
html.skin-orbix .entry:nth-child(3) .entry-ico {
  background-image: url("/img/products/sibanggan.webp");
}

/* ---------- 按钮：黄色实心（主）+ 玻璃（次） ---------- */
html.skin-orbix .btn--orange,
html.skin-orbix .btn--primary {
  background: linear-gradient(180deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  color: #241c00;
  font-weight: 700;
  box-shadow:
    0 8px 18px rgba(255, 198, 30, .38),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 0 rgba(160, 116, 0, .25);
}
html.skin-orbix .btn--orange:active,
html.skin-orbix .btn--primary:active {
  filter: brightness(.96);
  transform: translateY(1px);
}

html.skin-orbix .btn--ghost-light {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #ffffff;
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* 普通按钮也做成浅玻璃 */
html.skin-orbix .btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72));
  border-color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(9, 54, 66, .10);
}

/* ---------- 数据条：玻璃条 + 青色数字 ---------- */
html.skin-orbix .stats {
  border-top: 1px solid rgba(12, 60, 72, .1);
  padding-top: 14px;
}
html.skin-orbix .stat-num {
  color: var(--tz-ink);
}
html.skin-orbix .stat-num small {
  color: var(--tz-deep);
}

/* ============================================================
   后台（body.is-admin）：同一套产品色 + 玻璃
   ============================================================ */
html.skin-orbix body.is-admin {
  --ad-bg: #eef4f6;
  --ad-line: rgba(12, 60, 72, .12);
  --ad-line-2: rgba(12, 60, 72, .07);
  --ad-ink: #07222a;
  --ad-ink-2: #33555f;
  --ad-dim: #6b8790;
  --ad-accent: #d9455a;

  --brand-teal: #29b6c8;
  --brand-teal-deep: #0f8fb0;
  --brand-yellow: #ffc61e;
}

html.skin-orbix .a-side,
html.skin-orbix .a-pane,
html.skin-orbix .a-preview {
  border-radius: 20px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 14px 34px rgba(9, 54, 66, .12),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

html.skin-orbix .a-hero {
  border-radius: 22px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62));
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 12px 30px rgba(9, 54, 66, .10),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

html.skin-orbix body.is-admin .btn--primary {
  background: linear-gradient(180deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  color: #241c00;
  box-shadow: 0 6px 16px rgba(255, 198, 30, .34), inset 0 1px 0 rgba(255, 255, 255, .85);
}

html.skin-orbix body.is-admin .a-side .is-on,
html.skin-orbix body.is-admin .a-side .is-active {
  color: var(--tz-deep);
}

/* ============================================================
   关掉装饰性跑马灯（2026-11-20 用户要求「把边框的跑马灯删掉」）
   ------------------------------------------------------------
   app.css 里有两处：
     · .app::before / .app::after  —— 页面外框的彩边流光 + 常亮描边（5s 一圈）
     · .a-gate-card::after         —— 登录卡的边框高光（4.6s 一圈）
   两者都是纯装饰、不承载信息，皮肤下直接不显示。
   ============================================================ */
html.skin-orbix .app::before,
html.skin-orbix .app::after,
html.skin-orbix .a-gate-card::after {
  display: none !important;
  animation: none !important;
}

/* ---------- 筛选胶囊：用产品本身的亮青，不用深青 ---------- */
/* 2026-11-20 用户反馈「绿松石太深，不像产品本身的颜色亮」。
   深青 #0f8fb0 是给文字用的对比色；胶囊是色块，改用产品青 #29b6c8，
   文字随之转深墨色以保证对比度（青底白字只有约 2.2:1，不够）。 */
html.skin-orbix .chip.is-on,
html.skin-orbix .chips .chip.is-on {
  background: #29b6c8;
  border-color: #1ba6b8;
  color: #04222a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(41, 182, 200, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
}
/* 分段控件：按苹果 UISegmentedControl 来（2026-11-20）
   原来这里是整块品牌青填充，后台产品筛选看着像"一排老式按钮"。
   苹果的做法是：淡灰底槽 + 选中的白滑块 + 深色字，品牌色只留给主按钮。 */
html.skin-orbix .seg {
  background: rgba(120, 120, 128, .12);
  border: 0;
  border-radius: 10px;
  padding: 2px;
}
html.skin-orbix .seg-i {
  /* 未选中用中性灰（苹果 #3c3c43 60%），不要带品牌青，否则整排看着发绿 */
  color: rgba(60, 60, 67, .62);
}
html.skin-orbix .seg-i.is-on {
  background: #fff;
  border-color: transparent;
  color: #1d1d1f;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, .13), 0 0 0 .5px rgba(0, 0, 0, .05);
}

/* ============================================================
   覆盖修正（2026-11-20）
   ------------------------------------------------------------
   两个坑都出在 app.css 的历史规则上，skin 必须用更高优先级压回来：
   1) app.css:805 `.page--home .hero .btn--orange`（3 个类）把首页主 CTA
      钉成 --cta-blue 亮蓝 —— 用户现在要产品黄，需 4 个类才压得住。
   2) app.css:810 `.btn--ghost-light` 把幽灵按钮改成深字；
      而本文件后面的 `.btn` 浅玻璃规则会把它的底刷白 → 白底白字看不见。
      这里显式给它深色玻璃 + 白字。
   ============================================================ */
html.skin-orbix .btn--ghost-light {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .46);
  color: #ffffff;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

html.skin-orbix .page--home .hero .btn--orange,
/* 首页 hero 主按钮：黄色渐变（与我擅自改的亮蓝无关，此处恢复原样） */
html.skin-orbix .page--home .hero .btn--primary {
  background: linear-gradient(180deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  color: #241c00;
  font-weight: 700;
  box-shadow:
    0 10px 22px rgba(255, 198, 30, .42),
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -2px 0 rgba(160, 116, 0, .22);
}
html.skin-orbix .page--home .hero .btn--orange {
  background: linear-gradient(180deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  color: #241c00;
  font-weight: 700;
  box-shadow:
    0 10px 22px rgba(255, 198, 30, .42),
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -2px 0 rgba(160, 116, 0, .22);
}

/* 唯一保留深色的例外：纯文字链接。
   亮青 #29b6c8 当文字放在浅底上对比度只有约 2.2:1，低于可读下限；
   这里退回深青 #0d7f92（约 4.6:1）。色块仍然都是亮青。 */
html.skin-orbix .btn--link,
html.skin-orbix a.btn--link {
  color: #0d7f92;
}

/* ============================================================
   三岔入口卡重设计（2026-11-20 用户：留白太多）
   ------------------------------------------------------------
   原状：卡片被 flex:1 1 0 拉满高度，但卡里只有 64px 图标 + 两行字，
   右侧一条箭头，中间大片空 —— 空得没有理由。
   改法：① 图标放大到 76px、标题/描述提字级，让内容本身占住空间；
        ② 右侧加一张淡产品图（opacity .16）当底纹，把空填满但不抢字。
   注意：保留 flex 拉伸（否则空白会跑到页面底部，只是换个地方空）。
   ============================================================ */
html.skin-orbix .page--hub .entries {
  gap: 10px;
}

html.skin-orbix .page--hub .entries .entry {
  position: relative;
  overflow: hidden;
  padding-right: 52px;
}

html.skin-orbix .page--hub .entries .entry::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 0;
  bottom: 0;
  width: 150px;
  background: center / contain no-repeat;
  opacity: .22;
  pointer-events: none;
  /* 向右渐隐，避免图与文字区出现硬边 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}

html.skin-orbix .page--hub .entries .entry:nth-child(1)::after {
  background-image: url("/img/products/sibanggan.webp");
}
html.skin-orbix .page--hub .entries .entry:nth-child(2)::after {
  background-image: url("/img/products/ja-12.webp");
}
html.skin-orbix .page--hub .entries .entry:nth-child(3)::after {
  background-image: url("/img/products/xuangengba.webp");
}

html.skin-orbix .page--hub .entry-ico {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

html.skin-orbix .page--hub .entry-t {
  font-size: 18px;
}

html.skin-orbix .page--hub .entry-s {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 4px;
}

/* ============================================================
   四入口版（2026-11-20：删掉「会销活动」，保留「附近经销商网点」）
   ------------------------------------------------------------
   4 张卡在 700px 可用高度里每张约 155px，比三入口略紧、比五入口宽松，
   所以图标取 72px、字号取中间档。
   ============================================================ */
html.skin-orbix .page--hub .entries.entries--4 {
  gap: 10px;
}

html.skin-orbix .page--hub .entries.entries--4 .entry {
  padding: 10px 48px 10px 12px;
  min-height: 0;
}

html.skin-orbix .page--hub .entries.entries--4 .entry-ico {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 5px;
}

html.skin-orbix .page--hub .entries.entries--4 .entry-t {
  font-size: 16.5px;
}

html.skin-orbix .page--hub .entries.entries--4 .entry-s {
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 3px;
}

html.skin-orbix .page--hub .entries.entries--4 .entry::after {
  width: 124px;
  opacity: .18;
}

html.skin-orbix .page--hub .entries.entries--4 .entry:nth-child(4)::after {
  background-image: url("/img/products/shuidao-tie.webp");
}

/* 第 4 张同样用产品图做图标（测试期统一口径：所有入口都挂产品图，不做例外）。
   前 3 张的图在文件前部的 nth-child(1..3) 规则里。 */
html.skin-orbix .page--hub .entries.entries--4 .entry:nth-child(4) .entry-ico {
  background-image: url("/img/products/xuangengba.webp");
  background-color: rgba(255, 255, 255, .62);
  color: #0f8fb0;
  display: block;
}

html.skin-orbix .page--hub .entries.entries--4 .entry:nth-child(4) .entry-ico svg {
  display: none;
}

/* ============================================================
   悬浮「+」按钮：玻璃质感（2026-11-20 用户要求）
   ------------------------------------------------------------
   原来是纯色青块（app.css .fab 的 background: var(--green-600) + 重阴影）。
   玻璃做法：半透明白→青渐变 + backdrop-filter 模糊背景 + 亮边 + 顶部高光，
   另加一层柔光保证在浅色页面上仍然"浮得起来"。
   ============================================================ */
html.skin-orbix .fab {
  background:
    linear-gradient(155deg,
      rgba(255, 255, 255, .58) 0%,
      rgba(41, 182, 200, .46) 30%,
      rgba(41, 182, 200, .66) 68%,
      rgba(15, 143, 176, .76) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 17px;
  color: #063a46;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 14px 30px rgba(9, 54, 66, .26),
    0 3px 8px rgba(9, 54, 66, .16),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -10px 20px rgba(41, 182, 200, .22);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .18s ease;
}

/* 顶部斜向高光，做出玻璃厚度 */
html.skin-orbix .fab::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

html.skin-orbix .fab svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6));
}

html.skin-orbix .fab:active {
  transform: scale(.94);
  box-shadow:
    0 6px 14px rgba(9, 54, 66, .24),
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -6px 14px rgba(41, 182, 200, .3);
}

/* ---------- 「我的记录」：details 折叠行 ---------- */
/* 询价/订单一组三行，点开就地展开，不跳页。summary 默认是 list-item，
   必须显式 flex，否则 .cell 的图标/标签/箭头排版会散。 */
html.skin-orbix .rec-row > summary.cell {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
html.skin-orbix .rec-row > summary.cell::-webkit-details-marker {
  display: none;
}
html.skin-orbix .rec-row[open] > summary .cell-arrow svg {
  transform: rotate(90deg);
  transition: transform .18s ease;
}
html.skin-orbix .rec-body {
  padding: 0 12px 8px;
}
html.skin-orbix .rec-body .list-row {
  padding: 6px 0;
}

/* ============================================================
   弹层：玻璃质感，但不能透到看不清
   ------------------------------------------------------------
   皮肤的 --surface 是 rgba(255,255,255,.72)，弹层沿用会透出后面的字
   （2026-11-20 实测：「编辑资料」弹层里能看见"分销中心""会销开单台"）。
   弹层要接近实底，只留一点模糊；遮罩加深一档，避免内容串味。
   ============================================================ */
html.skin-orbix .modal {
  background: rgba(255, 255, 255, .985);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 -18px 48px rgba(9, 54, 66, .22);
}

html.skin-orbix .modal-mask {
  background: rgba(10, 28, 34, .52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ============================================================
   Liquid Glass：顶栏 / 底部导航（2026-11-20）
   ------------------------------------------------------------
   苹果 Liquid Glass 的观感由四层叠出来，缺一层就变成「半透明色块」：
     ① 折射：backdrop-filter 大半径模糊 + 高饱和 + 轻微提亮
     ② 本体：极淡的底色渐变（上亮下暗），不是纯白半透明
     ③ 内描边：顶部一道 1px 高光，底部一道极淡暗线，模拟玻璃厚度
     ④ 高光：一道斜向白色反光，随边缘渐隐
   ============================================================ */
html.skin-orbix .topbar,
html.skin-orbix .tabbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .52));
  backdrop-filter: blur(26px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.06);
  border-color: rgba(255, 255, 255, .58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(255, 255, 255, .34),
    0 6px 24px rgba(12, 52, 62, .10);
  overflow: hidden;
}
/* 注意：底栏是 position:fixed（app.css 里定的），这里绝不能改成 sticky，否则底栏会跑到页面流里 */

/* 底部导航向上投影，顶栏向下 */
html.skin-orbix .topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 1px 0 rgba(18, 58, 68, .06),
    0 8px 22px rgba(12, 52, 62, .08);
}

/* ④ 斜向高光：用伪元素铺一层，pointer-events 关掉不影响点击 */
html.skin-orbix .topbar::before,
html.skin-orbix .tabbar::before {
  content: '';
  position: absolute; top:0;right:0;bottom:0;left:0;
  pointer-events: none;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, .55) 0%,
    rgba(255, 255, 255, .12) 26%,
    rgba(255, 255, 255, 0) 48%,
    rgba(255, 255, 255, .10) 78%,
    rgba(255, 255, 255, .30) 100%);
  opacity: .9;
}

/* 顶栏与底部导航内的元素要压在玻璃高光之上 */
html.skin-orbix .topbar > *,
html.skin-orbix .tabbar > * { position: relative; z-index: 1; }

/* 底栏玻璃化后，选中/点击态 = 黄河渐变胶囊（用户 2026-11-20 明确要求） */
html.skin-orbix .tabbar .tab { border-radius: 12px; margin: 4px 3px; }

/* 点击瞬间先给一层淡黄，松手后由 .is-on 接住实色渐变，避免闪回白色 */
html.skin-orbix .tabbar .tab:active {
  background: linear-gradient(165deg, rgba(255, 212, 90, .55) 0%, rgba(255, 198, 30, .55) 100%);
}

html.skin-orbix .tabbar .tab.is-on {
  background: linear-gradient(165deg, #ffd45a 0%, #ffc61e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 4px 12px rgba(255, 198, 30, .38);
}
html.skin-orbix .tabbar .tab.is-on,
html.skin-orbix .tabbar .tab.is-on svg,
html.skin-orbix .tabbar .tab.is-on .tab-label { color: #3a2a00; }
html.skin-orbix .tabbar .tab.is-on .tab-label { font-weight: 700; }
/* 选中时原本有一条青色小横条，压在黄胶囊上会脏 —— 改成深金 */
html.skin-orbix .tabbar .tab.is-on::before { background: rgba(58, 42, 0, .45); }

/* 不支持 backdrop-filter 的老浏览器：退回磨砂白，别变成「看不清」 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.skin-orbix .topbar,
  html.skin-orbix .tabbar { background: rgba(255, 255, 255, .94); }
}

/* ==================== 2026-11-21 入口卡留白收紧（用户：每一项留白太多了）====================
   实测：每张卡 110px，而图标 72×72 撑起内容、文字只占 47-66px → 每张多出约 35px 空白，四张共 140px。
   苹果列表行图标 44-56px、行高 72-80px。这里：图标 56、内边距 8、副标题单行。 */
html.skin-orbix .page--hub .entries.entries--4 .entry {
  padding: 8px 44px 8px 11px;
  gap: 11px;
}
html.skin-orbix .page--hub .entries.entries--4 .entry-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  padding: 4px;
}
html.skin-orbix .page--hub .entries.entries--4 .entry-t {
  font-size: 15.5px;
}
html.skin-orbix .page--hub .entries.entries--4 .entry-s {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

/* 2026-11-21 卡片最小高度 104px 是当初为右侧背景图留的，现在图标 56、文字单行只剩 72px 高 → 收到 74px */
html.skin-orbix .page--hub .entries .entry { min-height: 74px; }

/* 2026-11-21 根因：.entries 是 column 方向，而 .entry 带 flex:1 1 0 → 四张卡「平分容器高度」，
   所以调 padding / 图标 / min-height 都不改变卡片高度（一直是 109.5px）。
   改成不伸展（flex:0 0 auto），卡片高度回到由内容决定。 */
html.skin-orbix .page--hub .entries .entry { flex: 0 0 auto; }
html.skin-orbix .page--hub .entries { height: auto; flex: 0 0 auto; }

/* ==================== 2026-11-21 下单页「刚好铺满」+ 下拉去分组标题 ====================
   实测：视口 844、顶栏 72、底栏 56 → 可用 716px；四张卡只占 326px（46%），下方空一大块。
   用户要求「刚好可以铺满手机屏幕，不多也不少」→ 页面撑满可用高度，四张卡平分剩余空间。 */
html.skin-orbix .page--hub {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: calc(100vh - 72px - 56px - env(safe-area-inset-bottom, 0px));
  min-height: calc(100dvh - 72px - 56px - env(safe-area-inset-bottom, 0px));
  padding-bottom: 14px;
}
html.skin-orbix .page--hub .hub-tip { flex: 0 0 auto; }
html.skin-orbix .page--hub .entries {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}
html.skin-orbix .page--hub .entries .entry {
  flex: 1 1 0;
  min-height: 64px;
  max-height: 132px;
}
/* 卡片变高后图标跟着长大，否则又会显得空 */
@media (min-height: 700px) {
  html.skin-orbix .page--hub .entries.entries--4 .entry-ico {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
}

/* 148px 才填得满，132 的 max-height 会把底部再留一截空 */
html.skin-orbix .page--hub .entries .entry { max-height: none; }

/* 2026-11-21 首页新增第 4 个入口「农机动态」：前 3 个入口的缩略图是 nth-child 写死的，
   第 4 个没配 → 图标 svg 又被全局隐藏（.entry-ico svg{display:none}）所以显示空白。这里补一张。 */
html.skin-orbix .page--home .entry:nth-child(4) .entry-ico {
  background-image: url("/img/products/shuidao-tie.webp");
}
html.skin-orbix .page--home .entry:nth-child(4)::after {
  background-image: url("/img/products/shuidao-tie.webp");
}

/* 2026-11-21 下单页第 5 个入口「积分商城」：补缩略图（图标 svg 被全局隐藏，缺图就是空白方块） */
html.skin-orbix .page--hub .entries .entry:nth-child(5) .entry-ico {
  background-image: url("/img/products/dafengji-16.webp");
}
html.skin-orbix .page--hub .entries .entry:nth-child(5)::after {
  background-image: url("/img/products/dafengji-16.webp");
}

/* ==================== 2026-11-21 悬浮按钮改产品黄（用户：颜色改产品黄）====================
   注意：本文件前面的 html.skin-orbix .fab 是青色玻璃（特异性 0,2,0），
   app.css 里的 .fab 覆盖不了它 —— 必须在这里用同等特异性再写一遍。 */
html.skin-orbix .fab {
  background:
    linear-gradient(155deg,
      rgba(255, 255, 255, .62) 0%,
      rgba(255, 214, 96, .58) 28%,
      rgba(255, 198, 30, .74) 66%,
      rgba(224, 164, 0, .84) 100%);
  border: 1px solid rgba(255, 255, 255, .88);
  color: #3a2a00;
  box-shadow:
    0 10px 24px rgba(224, 164, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(150, 105, 0, .12);
}
html.skin-orbix .fab svg { color: #3a2a00; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); }
html.skin-orbix .fab:active { box-shadow: 0 6px 14px rgba(160, 116, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .8); }

/* 2026-11-21 hero 机器图跟着收紧（皮肤层写了 136px，必须在同层覆盖） */
html.skin-orbix .hero-art { width: 108px; right: 4px; bottom: 2px; }

/* ==================== 2026-11-21 选中胶囊改产品黄液态玻璃（用户：这类的都可以改成产品的黄色，但要像苹果一样的玻璃液态效果）====================
   原来皮肤层把 .chip.is-on 写成青色实心 #29b6c8。
   苹果 Liquid Glass 的要点不是"半透明"，而是四件事一起：
   ① 半透明色彩渐变（底层颜色能透上来）② 1px 白色内描边（边缘高光）
   ③ 内底一道暗边（玻璃有厚度）④ 柔和外投影（浮在内容上）。 */
html.skin-orbix .chip.is-on,
html.skin-orbix .chips .chip.is-on {
  background:
    linear-gradient(165deg,
      rgba(255, 226, 138, .94) 0%,
      rgba(255, 208, 64, .90) 46%,
      rgba(255, 196, 20, .92) 100%);
  backdrop-filter: blur(10px) saturate(1.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, .92);
  color: #3a2a00;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(180, 130, 0, .20),
    0 2px 6px rgba(160, 116, 0, .16),
    0 8px 20px rgba(255, 198, 30, .30);
}
/* 深色底（深色卡片、hero）里同一颗胶囊：白色高光减弱、字色提亮，避免发脏 */
html.skin-orbix .hero .chip.is-on,
html.skin-orbix .dark .chip.is-on {
  border-color: rgba(255, 255, 255, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 6px 18px rgba(255, 198, 30, .38);
}

/* ==================== 2026-11-24 手机旧 WebView 适配（用户实机截图：入口卡片塌成一条） ====================
   症状：公网新版在手机上，首页/下单页的「入口卡」每张只剩一条（约 30px），缩略图互相压住、文字被裁。
   根因：skin-orbix.css 末尾 `.page--hub .entries .entry { flex: 1 1 0; min-height: 64px; }`
        —— 现代 Chrome 靠 flex-grow 把卡片拉到 ~104px，min-height 兜底；但旧版 WebView（Chrome <72）
        对 column flex 子项的 min-height 支持有 bug，会塌到 padding 高度，卡片内容溢出。
   修法：不再依赖 min-height 分配高度 —— 卡片改为 flex: 0 0 auto，由内容（图标+两行字+内边距）撑高；
        老 WebView 不支持 flex gap，用 margin 兜底（现代浏览器走 @supports 清掉 margin，避免双倍间距）。 */
html.skin-orbix .page--hub .entries,
html.skin-orbix .page--home .entries {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
}
html.skin-orbix .page--hub .entries .entry,
html.skin-orbix .page--home .entries .entry {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden; /* 兜底：万一缩略图比卡片高，裁掉而不是压到下一张 */
}

/* 间距兜底：旧 WebView 无 flex gap */
.entries > .entry + .entry { margin-top: 9px; }
@supports (gap: 1rem) {
  .entries > .entry + .entry { margin-top: 0; }
}

/* 同一类「gap 缺失会导致元素贴死」的容器，补一份 margin 兜底（现代浏览器自动清掉） */
.chips { row-gap: 0; }
.chips > .chip + .chip { margin-left: 8px; }
@supports (gap: 1rem) {
  .chips > .chip + .chip { margin-left: 0; }
}

/* 卡片内的缩略图在旧 WebView 上别溢出卡片 */
html.skin-orbix .page--hub .entries .entry-ico,
html.skin-orbix .page--home .entries .entry-ico {
  flex: none;
  height: 64px;
}

/* ==================== 2026-11-24 用户实机四条反馈（第二批） ====================
   图二：首页 hero 留白多、字与机器图太近 → 收紧内边距/间距，图缩小并右移
   图三：入口卡图标与文字太近、卡与卡上下太紧 → 图标右侧留白（不依赖 flex gap）、卡间距 12px
   图一/四：选型 iframe 高度改由 JS 计算（见 app.js），这里给兜底最小高度 */
html.skin-orbix .hero {
  padding: 12px 12px 10px;
}
html.skin-orbix .hero-specs {
  margin: 10px 0 12px;
}
/* 2026-11-24 修：上一条把 width 改成 100 却留着 height:136 的兜底 → 盒子 100×136 长方形，
   background-size:contain 只能缩到 100 宽，机器图看着缩在一角。这里强制正方形。 */
/* 2026-11-24 用户第二轮：图可以放大、字直接压在图上；「主推机型」挪右上角；按钮回原位。
   —— 所以图不再需要让位，文字也不再缩，靠 z-index 让文字浮在图上面。 */
html.skin-orbix .hero-art {
  width: 136px;
  height: 136px;
  right: 2px;
  bottom: 4px;
  z-index: 0;
  padding: 0;
  background-position: right bottom;
  background-size: contain;
  background-origin: border-box;
}
/* 文字与机器图之间留白：给正文右侧留出图宽 + 间隙 */
/* 文字压在图上：给文字加层级，避免被后渲染的图盖住 */
html.skin-orbix .hero-model,
html.skin-orbix .hero-name,
html.skin-orbix .hero-specs,
html.skin-orbix .hero-actions {
  position: relative;
  z-index: 2;
}
html.skin-orbix .hero-model,
html.skin-orbix .hero-name {
  padding-right: 0;
}
/* 「主推机型」挪到右上角（原来的黄玻璃样式保留） */
html.skin-orbix .hero-kicker {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  margin-right: 0;
}
html.skin-orbix .hero-actions {
  padding-right: 0;
}

/* 入口卡：图标与文字间距（旧内核没有 flex gap，用 margin 兜底，现代浏览器清零） */
.entry > .entry-ico { margin-right: 12px; }
.entry > .entry-text { margin-right: 8px; }
@supports (gap: 1rem) {
  .entry > .entry-ico { margin-right: 0; }
  .entry > .entry-text { margin-right: 0; }
}

/* 卡片之间的上下间距：9px → 12px（两种内核一致） */
.entries { gap: 12px; }
.entries > .entry + .entry { margin-top: 12px; }
@supports (gap: 1rem) {
  .entries > .entry + .entry { margin-top: 0; }
}

/* 2026-11-24 用户：hero 再缩短一些。逐块量过：kicker 22 / model 32 / name 21 / specs 46 / actions 44，
   内容 165 + 间距 34 + 内边距 22 = 223。压内边距与三处间距，字号微调，目标 ~205px。 */
html.skin-orbix .hero {
  padding: 10px 12px 8px;
}
html.skin-orbix .hero-kicker {
  padding: 1px 7px;
  font-size: 10px;
}
html.skin-orbix .hero-model {
  margin-top: 6px;
  margin-bottom: 2px;
}
html.skin-orbix .hero-specs {
  margin: 8px 0 10px;
}
html.skin-orbix .hero-spec b {
  font-size: 16px;
}
/* 2026-11-24 修卡顿（真凶）：skin 层给 .topbar 加了 backdrop-filter blur(26px)，
   里面 .tn-track 每帧 translateX → 每帧重算整块背景模糊，旧 WebView 必卡。
   移动端去掉模糊改不透明底；桌面保留玻璃感。 */
@media (max-width: 700px) {
  html.skin-orbix .topbar {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* 2026-11-24 用户：把「主推机型」挪到按钮行里，去掉顶部那一行，卡片自然变短。
   做法：模板里把 .hero-kicker 移进 .hero-actions，这里让它靠左、按钮靠右。 */
html.skin-orbix .hero-actions {
  align-items: center;
}
html.skin-orbix .hero-actions .hero-kicker {
  margin-right: auto;
}
html.skin-orbix .hero-model {
  margin-top: 0;
}
/* ==================== 2026-11-24 用户三点（hero 精修） ====================
   ① 「主推机型」徽章改产品黄 + 苹果液态玻璃（与 .chip.is-on 同一套语言）
   ② 机器图上移，避免被「立即询价」按钮压住
   ③ 「立即询价」主按钮加一点透明度（原为不透明黄） */
html.skin-orbix .hero-actions .hero-kicker {
  background:
    linear-gradient(165deg,
      rgba(255, 226, 138, .94) 0%,
      rgba(255, 208, 64, .90) 46%,
      rgba(255, 196, 20, .92) 100%);
  border: 1px solid rgba(255, 255, 255, .92);
  color: #3a2a00;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow:
    0 6px 16px rgba(224, 164, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .90),
    inset 0 -1px 0 rgba(150, 105, 0, .16);
  backdrop-filter: blur(10px) saturate(1.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.35);
}
html.skin-orbix .hero-art {
  bottom: 20px;
}
html.skin-orbix .hero-actions .btn--orange {
  /* 用户：这个按钮加一点透明度 —— 用半透明渐变让后面的机器图透出来，字保持不透明 */
  background: linear-gradient(180deg, rgba(255, 212, 90, .90) 0%, rgba(255, 198, 30, .86) 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #241c00;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: 0 6px 18px rgba(224, 164, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .70);
}
/* ==================== 2026-11-24 用户：hero 字号不协调，重排字阶 ====================
   量出来的旧值：型号 29/700 · 副标题 13.5/400 · 规格标签 12.5/400 · 规格值 16/600 · 徽章 10/400
   问题：① 型号与副标题 2.15 倍，跳太陡；② 规格标签 12.5 几乎等于副标题 13.5，层级糊；
        ③ 徽章 10px 太细，黄底上更糊。
   新字阶（约 1.9 / 1.2 / 1.5 倍关系，视觉层次清楚）：
        型号 26/800 · 副标题 13/450(.86 白) · 规格标签 11/500(.62 白) · 规格值 16.5/700 · 徽章 10.5/700 */
html.skin-orbix .hero-model {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.12;
}
html.skin-orbix .hero-name {
  font-size: 13px;
  font-weight: 450;
  color: rgba(255, 255, 255, .86);
  margin-top: 3px;
}
html.skin-orbix .hero-specs {
  gap: 20px;
}
html.skin-orbix .hero-spec {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
}
html.skin-orbix .hero-spec b {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
}
html.skin-orbix .hero-kicker {
  font-size: 10.5px;
  font-weight: 700;
}
html.skin-orbix .hero-actions .btn {
  font-weight: 650;
}