/* ============================================================
   防火云 · 商品商城 / 商品详情 · 共用样式层 SHOPCSS v1.0
   适用页面：site/shop.html、site/product.html、site/console/product.html
   依赖：css/style.css（--r / --f-num / --ease / --grad-red）、css/pro.css（--p-*）
   设计基线：亮色主题 · 白底深字 · 白卡细边 · 圆角 10-12px · 柔和阴影
   注意：白底区块禁止使用 var(--ink)（style.css 中它是近白色 #eef2fa，会隐形），
        本文件一律使用 --sp-* 显式深墨色。
   ============================================================ */

:root {
  /* —— 亮色色板 —— */
  --sp-bg: #ffffff;
  --sp-bg-soft: #f4f6fa;
  --sp-card: #ffffff;
  --sp-line: #e3e9f0;
  --sp-line-2: #e8edf5;
  --sp-ink: #1c2b3a;        /* 主文字 */
  --sp-title: #0d1a2e;      /* 标题 */
  --sp-ink-2: #44586d;      /* 次级文字 */
  --sp-ink-3: #5a6a80;      /* 弱文字 */
  --sp-red: #c1121f;        /* 品牌红 */
  --sp-red-dark: #9d0f19;
  --sp-red-bg: #fdeced;
  --sp-red-line: #f8cfd2;
  --sp-blue: #2563eb;
  --sp-blue-bg: #eaf1ff;
  --sp-blue-line: #cddffd;
  --sp-green: #0b7a44;
  --sp-green-bg: #e8f6ee;
  --sp-green-line: #c3e6d2;
  --sp-gold: #8a5a00;
  --sp-gold-bg: #fdf4e3;
  --sp-gold-line: #f0dcb4;
  --sp-grad-red: linear-gradient(135deg, #d92b3f, #ff6b3d);

  /* —— 几何与阴影 —— */
  --sp-r: 12px;
  --sp-r-sm: 10px;
  --sp-sh: 0 2px 10px rgba(16, 42, 74, .05);
  --sp-sh-md: 0 10px 30px rgba(20, 40, 80, .09);
  --sp-wrap: 1280px;
}

/* ============================================================
   一、通用容器与页面骨架
   ============================================================ */
.sp-page { background: var(--sp-bg-soft); min-height: 60vh; padding: 0 0 64px; }
.sp-wrap { width: min(var(--sp-wrap), 100% - 48px); margin: 0 auto; }
.sp-wrap-narrow { width: min(1080px, 100% - 48px); margin: 0 auto; }

/* 商城页头部横幅 */
.sp-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--sp-bg-soft) 100%);
  border-bottom: 1px solid var(--sp-line);
  padding: 40px 0 30px;
}
.sp-hero .sp-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .18em;
  color: var(--sp-red); background: var(--sp-red-bg); border: 1px solid var(--sp-red-line);
  border-radius: 4px; padding: 4px 11px;
}
.sp-hero h1 {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: var(--sp-title);
  line-height: 1.35; margin: 16px 0 10px;
}
.sp-hero p { font-size: 14.5px; line-height: 1.9; color: var(--sp-ink-2); max-width: 780px; }
.sp-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sp-hero-meta span {
  font-size: 12.5px; color: var(--sp-ink-2); background: #fff; border: 1px solid var(--sp-line);
  border-radius: 20px; padding: 5px 14px;
}

/* ============================================================
   二、筛选工具栏（分类 Tab + 搜索 + 排序）
   ============================================================ */
.sp-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: var(--sp-r);
  box-shadow: var(--sp-sh); padding: 14px 18px; margin: 26px 0 22px;
}
.sp-tabs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.sp-tab {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  font-size: 13.5px; color: var(--sp-ink-2); background: #fff;
  border: 1px solid var(--sp-line-2); border-radius: 18px; cursor: pointer;
  transition: all .22s var(--ease); white-space: nowrap; user-select: none;
}
.sp-tab:hover { color: var(--sp-red); border-color: rgba(193, 18, 31, .45); background: var(--sp-red-bg); }
.sp-tab.on {
  color: #fff; background: var(--sp-grad-red); border-color: transparent;
  font-weight: 700; box-shadow: 0 4px 14px rgba(217, 43, 63, .22);
}
.sp-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sp-search {
  position: relative; display: flex; align-items: center;
}
.sp-search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--sp-ink-3); pointer-events: none; }
.sp-search input {
  width: 240px; height: 34px; padding: 0 12px 0 33px; font-size: 13.5px; color: var(--sp-ink);
  background: #fff; border: 1px solid var(--sp-line-2); border-radius: 18px; outline: none;
  font-family: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sp-search input::placeholder { color: var(--sp-ink-3); }
.sp-search input:focus { border-color: var(--sp-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.sp-sort {
  height: 34px; padding: 0 10px; font-size: 13.5px; color: var(--sp-ink);
  background: #fff; border: 1px solid var(--sp-line-2); border-radius: 8px;
  outline: none; font-family: inherit; cursor: pointer;
}
.sp-sort:focus { border-color: var(--sp-blue); }

/* 结果计数行 */
.sp-count { font-size: 13px; color: var(--sp-ink-3); margin: 0 0 16px; }
.sp-count b { color: var(--sp-red); font-family: var(--f-num); }

/* ============================================================
   三、商品网格与卡片
   ============================================================ */
.sp-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sp-card {
  display: flex; flex-direction: column; background: var(--sp-card);
  border: 1px solid var(--sp-line); border-radius: var(--sp-r);
  overflow: hidden; box-shadow: var(--sp-sh);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  cursor: pointer;
}
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--sp-sh-md); border-color: #cfdae8; }
.sp-card-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; background: #ffffff;
  overflow: hidden; border-bottom: 1px solid var(--sp-line);
}
.sp-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); }
.sp-card:hover .sp-card-img img { transform: scale(1.05); }
.sp-badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px; letter-spacing: .02em;
}
.sp-badge.virtual { color: #0b5fa5; background: var(--sp-blue-bg); border: 1px solid var(--sp-blue-line); }
.sp-badge.physical { color: var(--sp-green); background: var(--sp-green-bg); border: 1px solid var(--sp-green-line); }
.sp-badge.cat { left: auto; right: 10px; color: var(--sp-gold); background: var(--sp-gold-bg); border: 1px solid var(--sp-gold-line); }
.sp-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.sp-card-name {
  font-size: 14.5px; font-weight: 700; color: var(--sp-title); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px;
}
.sp-card-spec {
  font-size: 12px; color: var(--sp-ink-3); line-height: 1.6; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-card-intro {
  font-size: 12.5px; color: var(--sp-ink-2); line-height: 1.7; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-card-price { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-price {
  font-family: var(--f-num); font-size: 20px; font-weight: 800; color: var(--sp-red); line-height: 1.2;
}
.sp-price small { font-size: 12px; font-weight: 600; }
.sp-price-old { font-size: 12.5px; color: var(--sp-ink-3); text-decoration: line-through; font-family: var(--f-num); }
.sp-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; font-size: 12px; color: var(--sp-ink-3);
}
.sp-sales { font-family: var(--f-num); }
.sp-card-btn {
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--sp-grad-red);
  border-radius: 16px; padding: 5px 13px; transition: filter .2s var(--ease);
}
.sp-card:hover .sp-card-btn { filter: brightness(1.07); }

/* ============================================================
   四、加载中 / 空态 / 错误
   ============================================================ */
.sp-skel-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-skel {
  height: 320px; border-radius: var(--sp-r); border: 1px solid var(--sp-line); background: #fff;
  background-image: linear-gradient(100deg, rgba(238, 243, 250, 0) 20%, rgba(238, 243, 250, .9) 50%, rgba(238, 243, 250, 0) 80%);
  background-size: 220% 100%; animation: spShine 1.25s linear infinite;
}
@keyframes spShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.sp-empty {
  background: var(--sp-card); border: 1px dashed var(--sp-line-2); border-radius: var(--sp-r);
  padding: 64px 24px; text-align: center; box-shadow: var(--sp-sh);
}
.sp-empty .ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--sp-bg-soft); border: 1px solid var(--sp-line);
  display: flex; align-items: center; justify-content: center; color: var(--sp-ink-3);
}
.sp-empty h4 { font-size: 16px; color: var(--sp-title); font-weight: 700; }
.sp-empty p { font-size: 13.5px; color: var(--sp-ink-3); margin-top: 8px; line-height: 1.8; }
.sp-empty .sp-btn { margin-top: 18px; }

/* ============================================================
   五、按钮
   ============================================================ */
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 20px; font-size: 14px; font-weight: 700; font-family: inherit;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: all .22s var(--ease); white-space: nowrap;
}
.sp-btn:hover { filter: brightness(1.06); }
.sp-btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.sp-btn.red { color: #fff; background: var(--sp-grad-red); box-shadow: 0 4px 14px rgba(217, 43, 63, .22); }
.sp-btn.outline-red { color: var(--sp-red); background: var(--sp-red-bg); border-color: var(--sp-red-line); }
.sp-btn.outline-red:hover { background: #fbdee1; border-color: var(--sp-red); }
.sp-btn.blue { color: #fff; background: linear-gradient(135deg, #2563eb, #38bdf8); }
.sp-btn.line { color: var(--sp-ink-2); background: #fff; border-color: var(--sp-line-2); box-shadow: none; }
.sp-btn.line:hover { color: var(--sp-red); border-color: var(--sp-red); background: var(--sp-red-bg); }
.sp-btn.sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.sp-btn.block { width: 100%; }

/* ============================================================
   六、面包屑
   ============================================================ */
.sp-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--sp-ink-3); padding: 18px 0 14px;
}
.sp-crumb a { color: var(--sp-ink-2); transition: color .2s; }
.sp-crumb a:hover { color: var(--sp-red); }
/* 对比度修复（2026-09-21）：原 #b9c5d4 在 #f4f6fa 底上对比度仅 1.62 */
.sp-crumb .sep { color: #536577; }
.sp-crumb .cur { color: var(--sp-ink-2); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   七、商品详情主区（左图集 / 右信息）
   ============================================================ */
.sp-detail {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 34px; align-items: start;
  background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: var(--sp-r);
  box-shadow: var(--sp-sh); padding: 26px;
}

/* —— 左：主图 + 缩略图 —— */
.sp-gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.sp-main-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--sp-r-sm);
  border: 1px solid var(--sp-line); background: var(--sp-bg-soft); overflow: hidden;
}
.sp-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.sp-main-img .ptype-flag {
  position: absolute; left: 12px; top: 12px; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
}
.ptype-flag.virtual { color: #0b5fa5; background: var(--sp-blue-bg); border: 1px solid var(--sp-blue-line); }
.ptype-flag.physical { color: var(--sp-green); background: var(--sp-green-bg); border: 1px solid var(--sp-green-line); }
.sp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-thumb {
  width: 72px; height: 72px; border-radius: 8px; border: 1px solid var(--sp-line-2);
  background: #fff; overflow: hidden; cursor: pointer; padding: 0; flex: 0 0 auto;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb:hover { border-color: #a9bcd4; }
.sp-thumb.on { border-color: var(--sp-red); box-shadow: 0 0 0 2px rgba(193, 18, 31, .16); }

/* —— 右：信息区 —— */
.sp-info { min-width: 0; }
.sp-title {
  font-size: clamp(19px, 2vw, 25px); font-weight: 800; color: var(--sp-title);
  line-height: 1.45; margin: 0 0 10px;
}
.sp-sub { font-size: 13.5px; color: var(--sp-ink-2); line-height: 1.85; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.sp-tag {
  font-size: 11.5px; padding: 3px 10px; border-radius: 4px; color: var(--sp-ink-2);
  background: var(--sp-bg-soft); border: 1px solid var(--sp-line);
}
.sp-tag.red { color: var(--sp-red); background: var(--sp-red-bg); border-color: var(--sp-red-line); font-weight: 600; }
.sp-tag.blue { color: var(--sp-blue); background: var(--sp-blue-bg); border-color: var(--sp-blue-line); font-weight: 600; }
.sp-tag.green { color: var(--sp-green); background: var(--sp-green-bg); border-color: var(--sp-green-line); font-weight: 600; }
.sp-tag.gold { color: var(--sp-gold); background: var(--sp-gold-bg); border-color: var(--sp-gold-line); font-weight: 600; }

/* 价格区 */
.sp-pricebox {
  margin: 18px 0 0; padding: 16px 18px; border-radius: var(--sp-r-sm);
  background: linear-gradient(135deg, #fff5f5 0%, #fffaf6 100%);
  border: 1px solid var(--sp-red-line);
}
.sp-pricebox .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.sp-pricebox .lbl { font-size: 12.5px; color: var(--sp-ink-3); width: 52px; flex: 0 0 auto; }
.sp-p-now { font-family: var(--f-num); font-size: 30px; font-weight: 800; color: var(--sp-red); line-height: 1.15; }
.sp-p-now small { font-size: 13px; font-weight: 700; }
.sp-p-old { font-family: var(--f-num); font-size: 14px; color: var(--sp-ink-3); text-decoration: line-through; }
.sp-p-mem {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700;
  color: var(--sp-gold); background: var(--sp-gold-bg); border: 1px solid var(--sp-gold-line);
  border-radius: 4px; padding: 3px 9px;
}
.sp-p-mem b { font-family: var(--f-num); font-size: 14px; }
.sp-pricebox .row2 { margin-top: 8px; }
.sp-p-save { font-size: 12.5px; color: var(--sp-ink-2); }
.sp-p-save b { color: var(--sp-red); font-family: var(--f-num); }

/* 区块通用小标题 */
.sp-sec { margin-top: 22px; }
.sp-sec-t { font-size: 13px; font-weight: 700; color: var(--sp-ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sp-sec-t::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--sp-grad-red); }

/* 规格型号选择 */
.sp-specs { display: flex; flex-wrap: wrap; gap: 9px; }
.sp-spec {
  position: relative; padding: 8px 14px; font-size: 13px; color: var(--sp-ink);
  background: #fff; border: 1px solid var(--sp-line-2); border-radius: 8px; cursor: pointer;
  transition: all .2s var(--ease); text-align: left; font-family: inherit; line-height: 1.5;
}
.sp-spec .sn { display: block; font-weight: 700; }
.sp-spec .sm { display: block; font-size: 11.5px; color: var(--sp-ink-3); margin-top: 2px; }
.sp-spec .sp2 { display: block; font-family: var(--f-num); font-size: 13px; color: var(--sp-red); font-weight: 700; margin-top: 3px; }
.sp-spec:hover { border-color: var(--sp-red); background: var(--sp-red-bg); }
.sp-spec.on { border-color: var(--sp-red); background: var(--sp-red-bg); box-shadow: inset 0 0 0 1px var(--sp-red); }
.sp-spec.off { opacity: .45; cursor: not-allowed; }

/* 库存 / 销量信息行 */
.sp-meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--sp-ink-2); }
.sp-meta-row b { font-family: var(--f-num); color: var(--sp-ink); }
.sp-stock-ok { color: var(--sp-green); font-weight: 700; }
.sp-stock-low { color: var(--sp-gold); font-weight: 700; }
.sp-stock-no { color: var(--sp-red); font-weight: 700; }

/* 数量步进器 */
.sp-qty { display: flex; align-items: center; gap: 0; }
.sp-qty button {
  width: 36px; height: 38px; font-size: 17px; line-height: 1; color: var(--sp-ink-2);
  background: #fff; border: 1px solid var(--sp-line-2); cursor: pointer;
  font-family: inherit; transition: all .18s var(--ease);
}
.sp-qty button:first-child { border-radius: 8px 0 0 8px; }
.sp-qty button:last-child { border-radius: 0 8px 8px 0; }
.sp-qty button:hover:not(:disabled) { color: var(--sp-red); border-color: var(--sp-red); background: var(--sp-red-bg); }
.sp-qty button:disabled { opacity: .4; cursor: not-allowed; }
.sp-qty input {
  width: 62px; height: 38px; text-align: center; font-size: 14.5px; font-weight: 700;
  font-family: var(--f-num); color: var(--sp-ink); border: 1px solid var(--sp-line-2);
  border-left: none; border-right: none; outline: none; background: #fff;
}
.sp-qty-hint { font-size: 12.5px; color: var(--sp-ink-3); margin-left: 12px; }

/* 购买按钮组 */
.sp-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sp-buy .sp-btn { min-width: 148px; height: 46px; font-size: 15px; }

/* 服务承诺 */
.sp-promise {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--sp-r-sm);
  background: var(--sp-bg-soft); border: 1px solid var(--sp-line);
}
.sp-promise ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.sp-promise li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--sp-ink-2); line-height: 1.7; }
.sp-promise li i { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--sp-green-bg); border: 1px solid var(--sp-green-line); color: var(--sp-green); font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* 未登录提示条 */
.sp-login-tip {
  margin-top: 16px; padding: 11px 14px; border-radius: 8px; font-size: 13px;
  color: var(--sp-gold); background: var(--sp-gold-bg); border: 1px solid var(--sp-gold-line);
}
.sp-login-tip a { color: var(--sp-red); font-weight: 700; text-decoration: underline; }

/* ============================================================
   八、下方 Tab 区（商品详情 / 规格参数 / 包装清单）
   ============================================================ */
.sp-tabs2 {
  display: flex; gap: 4px; margin-top: 26px; background: var(--sp-card);
  border: 1px solid var(--sp-line); border-radius: var(--sp-r) var(--sp-r) 0 0;
  border-bottom: none; padding: 0 14px; overflow-x: auto;
}
.sp-t2 {
  padding: 14px 18px; font-size: 14.5px; font-weight: 700; color: var(--sp-ink-2);
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: all .2s var(--ease);
}
.sp-t2:hover { color: var(--sp-red); }
.sp-t2.on { color: var(--sp-red); border-bottom-color: var(--sp-red); }
.sp-panel {
  background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 0 0 var(--sp-r) var(--sp-r);
  box-shadow: var(--sp-sh); padding: 26px; margin-bottom: 30px;
}
.sp-panel[hidden] { display: none; }

/* 商品详情富文本 */
.sp-rich { font-size: 14px; line-height: 1.95; color: var(--sp-ink-2); }
.sp-rich h2, .sp-rich h3 { color: var(--sp-title); margin: 18px 0 10px; line-height: 1.5; }
.sp-rich h2 { font-size: 18px; } .sp-rich h3 { font-size: 15.5px; }
.sp-rich p { margin: 0 0 12px; }
.sp-rich ul { padding-left: 20px; list-style: disc; margin: 0 0 12px; }
.sp-rich li { margin-bottom: 6px; }
.sp-rich img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.sp-rich strong { color: var(--sp-title); }
.sp-rich table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.sp-rich th, .sp-rich td { border: 1px solid var(--sp-line); padding: 8px 12px; text-align: left; }
.sp-rich th { background: var(--sp-bg-soft); color: var(--sp-title); font-weight: 700; }

/* 规格参数表 */
.sp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sp-table th, .sp-table td { border: 1px solid var(--sp-line); padding: 11px 14px; text-align: left; vertical-align: top; }
.sp-table th { width: 168px; background: var(--sp-bg-soft); color: var(--sp-ink-2); font-weight: 700; }
.sp-table td { color: var(--sp-ink); }
.sp-table tr:nth-child(even) th { background: #fafcfe; }

/* 包装清单 */
.sp-pack { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sp-pack-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--sp-bg-soft); border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm);
  font-size: 13.5px; color: var(--sp-ink);
}
.sp-pack-item .n { font-family: var(--f-num); font-weight: 800; color: var(--sp-red); }
.sp-pack-note { font-size: 13px; color: var(--sp-ink-3); margin-top: 12px; line-height: 1.8; }

/* ============================================================
   九、底部推荐商品
   ============================================================ */
.sp-rec { margin-top: 8px; }
.sp-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sp-rec-head h3 { font-size: 17px; font-weight: 800; color: var(--sp-title); }
.sp-rec-head a { font-size: 13px; color: var(--sp-ink-2); }
.sp-rec-head a:hover { color: var(--sp-red); }
.sp-rec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sp-rec-note { font-size: 13px; color: var(--sp-ink-2); line-height: 1.7; margin: -4px 0 16px; }

/* ============================================================
   十、轻量 Toast
   ============================================================ */
.sp-toast {
  position: fixed; left: 50%; top: 84px; transform: translate(-50%, -14px);
  z-index: 9999; max-width: min(86vw, 460px);
  padding: 11px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: #fff; background: rgba(19, 32, 48, .94);
  box-shadow: 0 12px 34px rgba(12, 24, 40, .28);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  text-align: center; line-height: 1.6;
}
.sp-toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sp-toast.ok { background: rgba(11, 122, 68, .95); }
.sp-toast.err { background: rgba(193, 18, 31, .95); }

/* ============================================================
   十一、会员中心版详情页外壳（console/product.html）
   ============================================================ */
.spc-top {
  position: sticky; top: 0; z-index: 60; padding: 11px 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--sp-line); box-shadow: 0 1px 3px rgba(16, 42, 74, .04);
}
.spc-top .sp-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spc-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.spc-brand img { height: 34px; width: auto; }
.spc-brand em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--sp-title); letter-spacing: .06em; padding-left: 10px; border-left: 1px solid var(--sp-line-2); }
.spc-navlinks { display: flex; gap: 16px; flex: 1 1 auto; flex-wrap: wrap; }
.spc-navlinks a { font-size: 13px; color: var(--sp-ink-2); transition: color .2s; }
.spc-navlinks a:hover { color: var(--sp-red); }
.spc-user { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }
.spc-user .who { font-size: 13px; color: var(--sp-ink-2); }
.spc-user .who b { color: var(--sp-title); }
.spc-user .bal { font-size: 12.5px; font-weight: 700; color: var(--sp-gold); background: var(--sp-gold-bg); border: 1px solid var(--sp-gold-line); border-radius: 14px; padding: 3px 11px; font-family: var(--f-num); }

/* 会员中心页返回条 */
.spc-back { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 0; }
.spc-back .left { font-size: 13px; color: var(--sp-ink-3); }
.spc-back a { color: var(--sp-ink-2); }
.spc-back a:hover { color: var(--sp-red); }

/* ============================================================
   十二、响应式断点：1920 / 1440 / 1024 / 768 / 375
   ============================================================ */
/* 超大屏：限制内容宽度，避免卡片过宽 */
@media (min-width: 1680px) {
  :root { --sp-wrap: 1360px; }
}

/* ≤1440：四列卡片收紧间距 */
@media (max-width: 1440px) {
  .sp-grid, .sp-skel-grid, .sp-rec-grid { gap: 16px; }
  .sp-detail { gap: 28px; }
}

/* ≤1024：详情两栏比例调整，推荐位改 3 列 */
@media (max-width: 1024px) {
  .sp-wrap, .sp-wrap-narrow { width: min(100% - 40px, 100%); }
  .sp-grid, .sp-skel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-rec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-detail { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); padding: 20px; }
  .sp-search input { width: 200px; }
}

/* ≤768：图集与信息区上下堆叠，卡片 2 列 */
@media (max-width: 768px) {
  .sp-wrap, .sp-wrap-narrow { width: calc(100% - 32px); }
  .sp-page { padding-bottom: 44px; }
  .sp-hero { padding: 28px 0 22px; }
  .sp-bar { padding: 12px 14px; margin: 18px 0 16px; }
  .sp-tabs { order: 2; width: 100%; }
  .sp-tools { order: 1; width: 100%; }
  .sp-search { flex: 1 1 auto; }
  .sp-search input { width: 100%; }
  .sp-grid, .sp-skel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sp-rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  /* 详情：上下堆叠 */
  .sp-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
  .sp-main-img { aspect-ratio: 1 / 1; }
  .sp-thumb { width: 62px; height: 62px; }
  .sp-title { font-size: 19px; }
  .sp-p-now { font-size: 26px; }
  .sp-buy .sp-btn { flex: 1 1 160px; min-width: 0; }
  .sp-panel { padding: 18px 16px; }
  .sp-tabs2 { padding: 0 6px; }
  .sp-t2 { padding: 12px 13px; font-size: 13.5px; }
  .sp-table th { width: 116px; }
  .sp-promise ul { grid-template-columns: minmax(0, 1fr); }
  .spc-navlinks { display: none; }
  .spc-top .sp-wrap { gap: 10px; }
}

/* ≤480 / 375：极窄屏收紧 */
@media (max-width: 480px) {
  .sp-wrap, .sp-wrap-narrow { width: calc(100% - 24px); }
  .sp-grid, .sp-skel-grid, .sp-rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-card-body { padding: 11px 12px 13px; }
  .sp-card-name { font-size: 13.5px; min-height: 40px; }
  .sp-price { font-size: 17px; }
  .sp-detail { padding: 12px; }
  .sp-thumb { width: 54px; height: 54px; }
  .sp-crumb { font-size: 12px; }
  .sp-crumb .cur { max-width: 180px; }
  .sp-buy { gap: 8px; }
  .sp-buy .sp-btn { flex: 1 1 100%; height: 44px; font-size: 14.5px; }
  .sp-panel { padding: 14px 12px; }
  .sp-table th, .sp-table td { padding: 9px 10px; font-size: 12.5px; }
  .sp-table th { width: 96px; }
  .sp-empty { padding: 44px 16px; }
  .sp-qty-hint { margin-left: 8px; }
}

@media (max-width: 375px) {
  .sp-wrap, .sp-wrap-narrow { width: calc(100% - 20px); }
  .sp-grid, .sp-skel-grid, .sp-rec-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-hero h1 { font-size: 24px; }
}

/* ============ 租赁商品：押金与租金双入口（product.html） ============ */
.sp-deposit-box {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sp-dep-item {
  flex: 1 1 160px;
  background: #f8fafc;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5a6a80;
}
.sp-dep-item b {
  font-size: 20px;
  color: #c1121f;
  margin: 0 2px;
}
.sp-dep-item small { color: #8593a6; }

/* ---------- 价格门禁：未登录不展示商品金额 ---------- */
.sp-locked-box {
  background: linear-gradient(180deg, #fffaf0, #fff);
  border: 1px dashed #f0cf8a;
}
.sp-lock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.sp-lock-row .lbl { width: 42px; color: #8593a6; flex-shrink: 0; }
.sp-lock-tag {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #b06e00;
  background: #fff7e6;
  border: 1px solid #ffe3a3;
  border-radius: 8px;
  padding: 4px 12px;
  letter-spacing: .5px;
}
.sp-lock-note {
  font-size: 13px;
  line-height: 1.8;
  color: #5a6a80;
  background: #fff7e6;
  border: 1px dashed #f0cf8a;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.sp-price.lock {
  font-size: 13px;
  font-weight: 600;
  color: #b06e00;
  letter-spacing: .3px;
}

/* ============================================================
   十一、产品中心目录页（无参数 product.html 兜底，2026-09-21）
   ============================================================ */
.sp-cat { margin-top: 4px; }
.sp-cat-head { padding: 26px 4px 18px; }
.sp-cat-head h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--sp-ink, #12263c); letter-spacing: .5px; }
.sp-cat-head p { margin: 0 0 6px; font-size: 14px; color: #5a6a80; }
.sp-cat-note { font-size: 12.5px; color: #8494a8; }
.sp-cat-note a { color: #c1121f; font-weight: 600; text-decoration: none; }

/* ============================================================
   虚拟系统产品 · 结构化详情（2026-09-23 重设计 sys-*）
   ============================================================ */
.sys-d { max-width: 960px; }
.sys-sec { margin: 0 0 26px; }
.sys-h { font-size: 17px; color: var(--sp-title); margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--sp-red); line-height: 1.4; }
.sys-lead p { margin: 0; font-size: 14.5px; color: var(--sp-ink-2); background: var(--sp-bg-soft); border-radius: var(--sp-r-sm); padding: 14px 16px; line-height: 1.95; }
.sys-ul { padding: 0; list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.sys-ul li { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; line-height: 1.8; margin: 0; }
.sys-ul li b { color: var(--sp-title); }
.sys-shots-tip { color: var(--sp-ink-3); font-size: 12.5px; margin: -6px 0 10px; }
.sys-shots { display: flex; flex-direction: column; gap: 14px; }
.sys-shot { margin: 0; }
.sys-shot a { display: block; }
.sys-shot img { width: 100%; display: block; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: #fff; }
.sys-notice { background: var(--sp-bg-soft); border-radius: var(--sp-r-sm); padding: 14px 16px; }
.sys-notice p { margin: 0; }
/* 分层架构图 + 关键数字高亮（2026-09-24，替代原架构配图） */
.sys-stack { display: flex; flex-direction: column; margin: 2px 0 4px; }
.sys-layer { display: flex; gap: 12px; align-items: flex-start; position: relative; background: var(--sp-card); border: 1px solid var(--sp-line); border-left: 4px solid var(--sp-red); border-radius: 8px; padding: 11px 14px; }
.sys-layer + .sys-layer { margin-top: 22px; }
.sys-layer + .sys-layer::before { content: ''; position: absolute; left: 27px; top: -16px; width: 2px; height: 12px; background: var(--sp-line); }
.sys-layer + .sys-layer::after { content: ''; position: absolute; left: 22px; top: -6px; width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--sp-red-line); }
.sys-layer-n { flex: 0 0 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--sp-grad-red); color: #fff; font-size: 12px; font-weight: 700; }
.sys-layer-bd { flex: 1; min-width: 0; }
.sys-layer-bd b { display: block; color: var(--sp-title); font-size: 14.5px; margin-bottom: 3px; }
.sys-layer-bd p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--sp-ink-2); }
.sys-num { color: var(--sp-red); font-weight: 700; }
@media (max-width: 760px) { .sys-ul { grid-template-columns: 1fr; } .sys-layer-n { flex-basis: 24px; height: 24px; line-height: 24px; } }

/* ---------- 实物产品详情页结构化渲染 dt-*（2026-09-24） ----------
   detail_html 是带结构的纯文本，此前整体注入导致换行塌陷；
   dt-* 还原为 章节 / 参数表 / 亮点卡 / 步骤条 / 要点 / 图集。 */
.dt-sec { margin: 0 0 30px; }
.dt-h2 { font-size: 18px; color: var(--sp-title); margin: 0 0 14px; line-height: 1.4; }
.dt-h2-n { display: inline-block; padding-left: 11px; border-left: 4px solid var(--sp-red); }
.dt-h3 { font-size: 15px; color: var(--sp-title); margin: 20px 0 10px; padding-left: 9px; border-left: 3px solid var(--sp-red-line); line-height: 1.4; }
.dt-lead-name { font-size: 18px; font-weight: 700; margin: -4px 0 12px; padding-left: 11px; border-left-color: var(--sp-red); }
.dt-p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.95; color: var(--sp-ink-2); }
.dt-tip { color: var(--sp-ink-3); font-size: 12.5px; margin: -6px 0 12px; }
.dt-lead { background: var(--sp-bg-soft); border-radius: var(--sp-r-sm); padding: 16px 18px; }
.dt-lead .dt-p { margin-bottom: 8px; }
.dt-lead .dt-p:last-child { margin-bottom: 0; }
/* 卖点短语条 */
.dt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.dt-tag { background: #fff; border: 1px solid var(--sp-line); color: var(--sp-ink-2); border-radius: 20px; padding: 4px 13px; font-size: 13px; line-height: 1.6; }
/* 参数表 */
.dt-tw { overflow-x: auto; margin: 0 0 6px; -webkit-overflow-scrolling: touch; }
.dt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.dt-table th, .dt-table td { border: 1px solid var(--sp-line); padding: 9px 12px; text-align: left; vertical-align: top; line-height: 1.75; }
.dt-table th { background: var(--sp-bg-soft); color: var(--sp-title); font-weight: 600; white-space: nowrap; }
.dt-table tbody tr:nth-child(even) { background: #fafbfd; }
.dt-table td:first-child { color: var(--sp-ink-2); }
/* 亮点卡 */
.dt-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dt-card { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 8px; padding: 12px 14px; }
.dt-card-ic { font-size: 20px; line-height: 1; margin-bottom: 6px; }
.dt-card-t { font-size: 14px; font-weight: 600; color: var(--sp-title); margin-bottom: 4px; }
.dt-card-d { font-size: 13px; line-height: 1.8; color: var(--sp-ink-2); }
/* 步骤条 */
.dt-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.dt-step { flex: 1 1 180px; display: flex; gap: 10px; align-items: flex-start; background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 8px; padding: 11px 13px; }
.dt-step-n { flex: 0 0 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--sp-grad-red); color: #fff; font-size: 12px; font-weight: 700; }
.dt-step-bd { flex: 1; min-width: 0; }
.dt-step-bd b { display: block; font-size: 13.5px; color: var(--sp-title); font-weight: 600; }
.dt-step-bd span { font-size: 12.5px; color: var(--sp-ink-3); line-height: 1.7; }
/* 要点列表 */
.dt-ul { padding: 0; margin: 0 0 6px; list-style: none; display: grid; grid-template-columns: 1fr; gap: 6px; }
.dt-ul li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.9; color: var(--sp-ink-2); }
.dt-ul li::before { content: ''; position: absolute; left: 3px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--sp-red); }
/* 注意事项 */
.dt-warn { background: #fff8e6; border: 1px solid #f2dfa8; border-left: 4px solid #e0a800; border-radius: 8px; padding: 11px 14px; }
.dt-warn-t { font-size: 14px; font-weight: 600; color: #8a6100; }
.dt-warn-ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 5px; }
.dt-warn-ul li { position: relative; padding-left: 15px; font-size: 13.5px; line-height: 1.85; color: #6b5200; }
.dt-warn-ul li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #e0a800; }
/* ⚠ 列表「两个点」优先级修复（2026-09-24）
   本文件前面有 `.sp-rich ul { list-style: disc }`（优先级 0,1,1），
   高于 `.dt-ul / .dt-warn-ul / .sys-ul { list-style: none }`（0,1,0），
   于是 <li> 计算样式落下 list-style-type:disc —— 浏览器原生灰点与自定义 ::before 圆点同时出现。
   用 `.sp-rich ul.xxx`（0,2,1）抬升优先级才能覆盖；同时把被 `.sp-rich ul` 抢走的 padding-left:20px 归零，
   使要点与章节标题左对齐。 */
.sp-rich ul.dt-ul, .sp-rich ul.dt-warn-ul, .sp-rich ul.sys-ul { list-style: none; padding-left: 0; }
/* 产品图集 */
.dt-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; grid-auto-flow: row dense; align-items: start; }
.dt-shot { margin: 0; }
/* 横长条（营销页/说明书整页截图）与极小源图独占整行：半宽格子里小字会被压到不可读（2026-09-24） */
.dt-shot.wide { grid-column: 1 / -1; }
.dt-shot a { display: block; }
/* 2026-09-24：改为 width:auto + max-width:100%，源图小于格子时按原始分辨率显示，
   绝不被拉伸放大（原先 width:100% 会把 520~560px 的图放大到 606px 而发虚）；
   height:auto 保留原始宽高比。JS 的 richFitShots() 只负责给横长图补 .wide。 */
.dt-shot img { width: auto; max-width: 100%; height: auto; display: block; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: #fff; transition: box-shadow .18s; margin: 0 auto; }
.dt-shot a:hover img { box-shadow: 0 4px 14px rgba(18, 38, 60, .14); }
@media (max-width: 760px) {
  .dt-cards { grid-template-columns: 1fr; }
  .dt-shots { grid-template-columns: 1fr; }
  .dt-step { flex-basis: 100%; }
}
