/* ============================================================
   t01 京式综合商城 · j- 类名体系（纯手写，无外部依赖）
   主色 #e1251b · 标准断点 1024 / 768 / 480
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --j-red: #e1251b;
  --j-red-d: #c81623;
  --j-red-l: #ffeded;
  --j-ink: #262626;
  --j-gray: #666;
  --j-line: #ececec;
  --j-bg: #f4f4f5;
  --j-radius: 8px;
}
.j-body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--j-bg); color: var(--j-ink); font-size: 14px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.j-box { max-width: 1200px; margin: 0 auto; padding: 0 12px; width: 100%; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---------- 商品图标准框（1:1 统一模板，全图位通用） ---------- */
.j-imgframe {
  display: block; position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: #f5f5f5; border-radius: 6px; overflow: hidden;
}
.j-imgframe > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9%;
}
/* 统一 SVG 角标：热卖 / 新品（仅按真实数据条件输出） */
.j-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 4px 9px 4px 6px; border-bottom-right-radius: 8px;
}
.j-badge svg { width: 12px; height: 12px; }
.j-badge-hot { background: var(--j-red); }
.j-badge-new { background: #1677ff; }
/* 缺货态商品图 */
.j-imgframe.j-is-oos img { opacity: .35; }
.j-oos-flag {
  position: absolute; inset: 0; z-index: 3; display: flex;
  align-items: center; justify-content: center;
  color: #888; font-size: 13px; font-weight: 700;
}

/* ---------- 顶部工具条 ---------- */
.j-top { background: #e3e4e5; border-bottom: 1px solid #d8d9db; font-size: 12px; color: var(--j-gray); }
.j-top .j-box { display: flex; justify-content: space-between; height: 32px; align-items: center; }
.j-top-links { display: flex; align-items: center; }
.j-top a { color: var(--j-gray); margin-left: 14px; white-space: nowrap; }
.j-top a:hover { color: var(--j-red); }
.j-top a.j-hot { color: var(--j-red); }

/* ---------- 头部 ---------- */
.j-head { background: #fff; }
.j-head-in { display: flex; align-items: center; gap: 28px; padding: 18px 12px; }
.j-logo {
  font-size: 28px; font-weight: 800; color: var(--j-red); font-style: italic;
  letter-spacing: 1px; white-space: nowrap;
}
.j-logo small {
  display: block; font-size: 11px; font-style: normal; font-weight: 400;
  color: #999; letter-spacing: 2px; margin-top: 2px;
}
.j-search-box { flex: 1; max-width: 580px; }
.j-search {
  display: flex; align-items: center; border: 2px solid var(--j-red);
  border-radius: var(--j-radius); overflow: hidden; background: #fff;
}
.j-search-ic { color: var(--j-red); margin-left: 12px; flex-shrink: 0; }
.j-search input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 10px 10px; font-size: 14px;
}
.j-search button {
  background: var(--j-red); color: #fff; border: none; padding: 0 28px;
  font-size: 15px; font-weight: 600; cursor: pointer; height: 40px;
}
.j-hotwords { margin-top: 6px; font-size: 12px; }
.j-hotwords a { color: #999; margin-right: 12px; }
.j-hotwords a:hover { color: var(--j-red); }
.j-cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e0e0e0; background: #fff; color: var(--j-red);
  padding: 10px 18px; border-radius: var(--j-radius); font-size: 13px; position: relative;
}
.j-cart-btn:hover { border-color: var(--j-red); }
.j-cart-n {
  background: var(--j-red); color: #fff; border-radius: 10px; font-size: 11px;
  padding: 1px 7px; min-width: 18px; text-align: center;
}

/* ---------- 红色主导航 ---------- */
.j-nav { background: var(--j-red); }
.j-nav-in { display: flex; align-items: center; height: 42px; }
.j-allcat {
  width: 200px; background: var(--j-red-d); color: #fff; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; flex-shrink: 0;
}
.j-nav-links { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.j-nav-links::-webkit-scrollbar { display: none; }
.j-nav-links a {
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 0 13px; line-height: 42px; display: inline-block;
}
.j-nav-links a:hover { background: var(--j-red-d); }
.j-nav-more {
  flex-shrink: 0; position: relative; color: #fff; font-size: 14px; font-weight: 600;
  padding: 0 14px 0 20px; line-height: 42px; background: var(--j-red-d);
  display: inline-flex; align-items: center; gap: 2px;
}
.j-nav-more::before {
  content: ''; position: absolute; left: -16px; top: 0; width: 16px; height: 100%;
  background: linear-gradient(90deg, rgba(213, 23, 26, 0), var(--j-red-d));
}
.j-nav-more-ar { font-size: 16px; line-height: 1; }
.j-nav-more:hover { background: #b31316; }

/* ---------- 首页 hero ---------- */
.j-hero {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px;
  gap: 10px; margin-top: 10px; align-items: start;
}
.j-side {
  background: #fff; padding: 6px 0;
  height: 340px; overflow-y: auto; scrollbar-width: thin;
}
.j-side::-webkit-scrollbar { width: 6px; }
.j-side::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 3px; }
.j-side-row {
  display: flex; align-items: center; padding: 6px 14px; min-height: 34px;
  position: relative; cursor: pointer;
}
.j-side-row:hover { background: #f7f7f7; }
.j-side-p { font-weight: 600; color: var(--j-ink); font-size: 14px; white-space: nowrap; }
.j-side-row:hover .j-side-p { color: var(--j-red); }
.j-side-subs { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.j-side-subs a { color: #999; font-size: 12px; margin-right: 8px; }
.j-side-subs a:hover { color: var(--j-red); }
.j-side-arrow { color: #bbb; margin-left: 4px; }
.j-fly { display: none !important; }
.j-fly-fixed {
  position: fixed; z-index: 1000; width: 640px; max-height: 86vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--j-line);
  box-shadow: 4px 4px 16px rgba(0,0,0,.12);
  padding: 16px 22px;
}
.j-fly-hd { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 6px; }
.j-fly-hd a { font-size: 15px; font-weight: 700; }
.j-fly-hd span { font-size: 12px; color: #999; }
.j-fly-grp { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #f2f2f2; align-items: flex-start; }
.j-fly-grp:last-child { border-bottom: none; }
.j-fly-t { flex: 0 0 108px; font-size: 13px; font-weight: 700; padding-top: 2px; text-align: right; }
.j-fly-t:hover { color: var(--j-red); }
.j-fly-items { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; }
.j-fly-items a { font-size: 12.5px; color: var(--j-gray); padding: 2px 10px 2px 0; margin-right: 10px; border-right: 1px solid #f0f0f0; }
.j-fly-items a:hover { color: var(--j-red); }

.j-banner { position: relative; overflow: hidden; background: #ddd; height: 340px; border-radius: 4px; }
.j-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 1; transition: opacity .5s ease, visibility 0s linear .5s; }
.j-slide.on { opacity: 1; visibility: visible; z-index: 2; transition: opacity .5s ease, visibility 0s; }
.j-slide img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.j-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.j-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.j-dots i.on { background: var(--j-red); }

.j-userpanel { background: #fff; padding: 12px; display: flex; flex-direction: column; }
.j-up-user { text-align: center; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.j-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--j-red);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 6px;
}
.j-up-user p { font-size: 12px; color: var(--j-gray); }
.j-up-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; text-align: center; }
.j-up-links a { font-size: 12px; color: #555; }
.j-up-links a b { display: block; font-size: 18px; margin-bottom: 2px; }
.j-up-links a:hover { color: var(--j-red); }
.j-up-notice { margin-top: 12px; font-size: 12px; color: #888; border-top: 1px solid #f0f0f0; padding-top: 10px; line-height: 1.8; }
.j-up-notice b { color: var(--j-red); }

/* ---------- 秒杀 ---------- */
.j-seckill { background: #fff; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.j-sk-hd { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f3f3f3; }
.j-sk-t { color: var(--j-red); font-size: 20px; font-weight: 800; font-style: italic; margin-right: 14px; }
.j-sk-cd { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--j-gray); }
.j-sk-cd b { background: #2f3430; color: #fff; border-radius: 3px; padding: 2px 6px; font-size: 13px; }
.j-sk-bd { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.j-sk-item { min-width: 0; padding: 14px; text-align: center; border-right: 1px solid #f3f3f3; }
.j-sk-item:last-child { border-right: none; }
.j-sk-item .j-imgframe { margin-bottom: 8px; }
.j-sk-nm { font-size: 12px; color: #555; margin: 8px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-sk-pr { color: var(--j-red); font-weight: 700; font-size: 16px; }
.j-sk-pr del { color: #bbb; font-size: 12px; font-weight: 400; margin-left: 4px; }

/* ---------- 楼层 / 商品卡 ---------- */
.j-floor { background: #fff; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.j-floor-hd { display: flex; align-items: center; padding: 12px 16px; border-bottom: 2px solid var(--j-red); }
.j-floor-hd h3 { font-size: 18px; font-weight: 700; }
.j-more { margin-left: auto; color: #999; font-size: 12px; }
a.j-more:hover { color: var(--j-red); }
.j-more-static { color: #999; }
.j-floor-bd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.j-card {
  min-width: 0; padding: 16px; border-right: 1px solid #f3f3f3;
  border-bottom: 1px solid #f3f3f3; transition: box-shadow .2s; color: #333; display: block;
}
.j-card:hover { box-shadow: 0 0 14px rgba(0,0,0,.12); }
.j-card-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: #f5f5f5; border-radius: 6px; overflow: hidden;
}
.j-card-img > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9%;
}
.j-card-nm {
  font-size: 13px; line-height: 1.5; height: 40px; overflow: hidden;
  margin: 10px 0 6px;
}
.j-tag-self { color: var(--j-red); border: 1px solid var(--j-red); font-size: 11px; padding: 0 3px; border-radius: 2px; margin-right: 4px; }
.j-card-pr { color: var(--j-red); font-size: 18px; font-weight: 700; }
.j-card-pr i { font-style: normal; font-size: 12px; }
.j-card-pr del { color: #bbb; font-size: 12px; font-weight: 400; margin-left: 6px; }
.j-card-sl { font-size: 12px; color: #999; margin-top: 4px; display: flex; justify-content: space-between; }
.j-card-sl em { font-style: normal; }

/* ---------- 店铺街 ---------- */
.j-shopstreet { background: #fff; margin-top: 12px; border-radius: 4px; padding-bottom: 14px; overflow: hidden; }
.j-ss-bd { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 0; }
.j-ss-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 8px 14px; border: 1px solid #f0f0f0; border-radius: 6px;
  color: #333; transition: .15s;
}
.j-ss-card:hover { border-color: var(--j-red); box-shadow: 0 4px 12px rgba(225,37,27,.12); }
.j-ss-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--j-red), #ff7a45);
  color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.j-ss-logo img { width: 100%; height: 100%; object-fit: cover; }
.j-ss-card b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-ss-cnt { font-size: 12px; color: #999; }
.j-ss-go { font-size: 12px; color: var(--j-red); }

/* ---------- 服务保障条 ---------- */
.j-svcrow { background: #fff; border-top: 1px solid var(--j-line); border-bottom: 1px solid var(--j-line); margin-top: 16px; }
.j-svc-bd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 12px; }
.j-svc { text-align: center; display: flex; flex-direction: column; align-items: center; }
.j-svc-ic { font-size: 26px; margin-bottom: 8px; }
.j-svc b { font-size: 16px; display: block; margin-bottom: 4px; }
.j-svc span { font-size: 12px; color: #999; }

/* ---------- 页脚 ---------- */
.j-foot { background: #fff; padding: 26px 0 10px; margin-top: 16px; }
.j-foot-brand { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.j-foot-brand-name { flex: 0 0 auto; font-size: 18px; color: var(--j-red); line-height: 1.6; }
.j-foot-brand p { font-size: 13px; color: #888; line-height: 1.9; }
.j-foot-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.j-foot h5 { font-size: 14px; margin-bottom: 10px; }
.j-foot a { display: block; color: #888; font-size: 12px; line-height: 2.1; }
.j-foot a:hover { color: var(--j-red); }
.j-tel b { color: var(--j-red); font-size: 17px; display: block; margin-bottom: 4px; }
.j-tel span { font-size: 12px; color: #999; }
.j-copy { text-align: center; color: #999; font-size: 12px; line-height: 2.2; padding: 18px 12px 8px; }
.j-copy a { color: #999; display: inline; }
.j-copy a:hover { color: var(--j-red); }

/* ---------- 面包屑 / 筛选 / 分页 / 空态 ---------- */
.j-crumb { font-size: 12px; color: #888; padding: 14px 0 6px; }
.j-crumb a { color: #888; }
.j-crumb a:hover { color: var(--j-red); }
.j-filter {
  background: #fff; border: 1px solid #e8e8e8; display: flex; align-items: center;
  padding: 0 14px; min-height: 46px; margin-bottom: 10px; flex-wrap: wrap; gap: 4px;
}
.j-filter-flat { border-bottom: none; margin-bottom: 0; }
.j-filter-lb { font-size: 13px; color: #999; margin-right: 8px; }
.j-filter a { padding: 6px 16px; color: #555; font-size: 13px; border-radius: 3px; }
.j-filter a.on { background: var(--j-red); color: #fff; }
.j-filter a:hover:not(.on) { color: var(--j-red); }
.j-filter-cnt { margin-left: auto; font-size: 12px; color: #999; }
.j-listgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.j-pager { display: flex; justify-content: center; gap: 6px; padding: 24px 0; flex-wrap: wrap; }
.j-pager a { background: #fff; border: 1px solid #e0e0e0; color: #555; padding: 7px 14px; font-size: 13px; }
.j-pager a.on { background: var(--j-red); border-color: var(--j-red); color: #fff; }
.j-pager a:hover:not(.on) { border-color: var(--j-red); color: var(--j-red); }
.j-empty { background: #fff; padding: 70px 20px; text-align: center; color: #999; border-radius: 4px; }
.j-empty a { color: var(--j-red); }
.j-empty p { margin: 6px 0; }
.j-empty-ic { font-size: 42px; margin-bottom: 10px; }
.j-empty-sub { font-size: 13px; color: #bbb; }

/* ---------- 商品详情 ---------- */
.j-pd-wrap {
  background: #fff; padding: 20px; display: grid;
  grid-template-columns: 380px minmax(0, 1fr); gap: 30px;
  margin-top: 10px; border-radius: 4px;
}
.j-pd-gallery {
  display: flex; align-items: stretch; gap: 10px; width: 100%;
}
/* 竖排缩略图条 */
.j-gal-thumbs {
  display: flex; flex-direction: column; gap: 8px; width: 58px; flex-shrink: 0;
}
.j-gal-thumb {
  width: 58px; height: 58px; padding: 0; cursor: pointer; border: 2px solid #e8e8e8;
  border-radius: 6px; background: #f5f5f5; overflow: hidden; transition: border-color .15s;
}
.j-gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.j-gal-thumb:hover { border-color: #ffb0a6; }
.j-gal-thumb.on { border-color: var(--j-red); }
/* 主图舞台 */
.j-gal-stage {
  position: relative; flex: 1; min-width: 0; aspect-ratio: 1 / 1;
  background: #f5f5f5; border-radius: 6px; overflow: hidden;
}
.j-gal-big {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 6%; transition: opacity .18s;
}
.j-gal-stage.j-is-oos .j-gal-big { opacity: .35; }
.j-gal-count {
  position: absolute; left: 10px; bottom: 10px; padding: 2px 10px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; border-radius: 20px;
}
/* 详情保障图标条 */
.j-guard-strip {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  padding: 10px 14px; margin: 12px 0;
  background: #fafafa; border-radius: 6px;
}
.j-guard-strip li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.j-gs-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--j-red); color: #fff; font-size: 11px; font-style: normal;
}
.j-oos-note {
  padding: 12px 14px; margin: 12px 0; font-size: 13px; color: #9a6a00;
  background: #fff8e6; border: 1px solid #ffe2a8; border-radius: 6px;
}
/* 用户评价（仅后端提供真实评价数据时渲染） */
.j-review-list { padding: 4px 16px 14px; }
.j-review-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.j-review-item:last-child { border-bottom: none; }
.j-rv-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.j-rv-user { font-size: 13px; font-weight: 700; color: #333; }
.j-rv-stars { color: #ff9a00; font-size: 13px; letter-spacing: 1px; }
.j-rv-date { font-size: 12px; color: #999; margin-left: auto; }
.j-rv-content { font-size: 13px; color: #555; line-height: 1.7; }
.j-btn:disabled { opacity: .5; cursor: not-allowed; }
.j-pd-nm { font-size: 20px; font-weight: 700; line-height: 1.5; }
/* 营销标签 */
.j-pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.j-pdtag {
  padding: 2px 9px; font-size: 12px; color: var(--j-red);
  background: var(--j-red-l); border-radius: 3px;
}
/* 已售/评价/库存统计 */
.j-pd-stat { display: flex; gap: 26px; margin: 14px 0 0; font-size: 12px; color: #999; }
.j-pd-stat b { color: #333; font-size: 15px; font-weight: 700; margin-left: 5px; }
.j-pd-pricebox {
  background: linear-gradient(135deg, #fff1ef, #ffe7e3);
  padding: 16px 18px; border-radius: 6px; margin-top: 14px;
}
.j-pd-price-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.j-pd-lb { color: #999; font-size: 12px; }
.j-pd-p { color: var(--j-red); font-size: 30px; font-weight: 700; line-height: 1; }
.j-pd-p i { font-style: normal; font-size: 15px; margin-right: 1px; }
.j-pd-mp { color: #a08a87; font-size: 13px; text-decoration: line-through; }
.j-pd-disc {
  padding: 1px 7px; font-size: 12px; color: #fff;
  background: var(--j-red); border-radius: 3px;
}
.j-pd-price-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 12px; }
.j-pd-save { color: var(--j-red); }
.j-pd-freeship { color: var(--j-red); font-weight: 700; }
.j-pd-prom { color: var(--j-red); font-size: 12px; }
.j-pd-svc { font-size: 12px; color: #888; margin-bottom: 16px; line-height: 2; }
.j-pd-svc b { color: var(--j-red); margin-right: 4px; }
.j-pd-buyrow { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.j-qtybox { display: flex; border: 1px solid #ddd; height: 38px; border-radius: 4px; overflow: hidden; }
.j-qtybox input { width: 52px; border: none; text-align: center; font-size: 14px; outline: none; }
.j-qtybox button { width: 34px; border: none; background: #f5f5f5; cursor: pointer; font-size: 16px; color: #666; }
.j-qtybox button:hover { color: var(--j-red); }
.j-pd-stock { color: #999; font-size: 12px; }
.j-btn { border: none; cursor: pointer; font-size: 16px; font-weight: 700; padding: 13px 40px; border-radius: 4px; }
.j-btn-cart { background: var(--j-red-l); color: var(--j-red); border: 1px solid var(--j-red); }
.j-btn-cart:hover { background: var(--j-red); color: #fff; }
.j-btn-buy { background: var(--j-red); color: #fff; }
.j-btn-buy:hover { background: var(--j-red-d); }
.j-btn-ghost {
  background: #fff; color: var(--j-red); border: 1px solid var(--j-red);
  padding: 9px 22px; font-size: 14px; border-radius: 4px; cursor: pointer; display: inline-block;
}
.j-btn-ghost:hover { background: var(--j-red-l); }
/* 移动端固定购买坞（桌面隐藏） */
.j-pd-dock { display: none; }

/* 详情选项卡 */
.j-pd-tabs { background: #fff; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.j-tb-h { display: flex; border-bottom: 2px solid var(--j-red); }
.j-tb-h span { padding: 12px 28px; cursor: pointer; font-size: 15px; color: #555; }
.j-tb-h span.on { background: var(--j-red); color: #fff; }
.j-tb-b { padding: 24px; line-height: 2; min-height: 160px; }
.j-desc-sec { margin-bottom: 18px; }
.j-desc-sec h4 { font-size: 15px; color: #333; border-left: 3px solid var(--j-red); padding-left: 8px; margin: 0 0 10px; }
.j-desc-list { list-style: none; }
.j-desc-list li { padding: 4px 0 4px 16px; position: relative; color: #555; font-size: 13px; line-height: 1.8; }
.j-desc-list li::before { content: '·'; position: absolute; left: 4px; color: var(--j-red); font-weight: 700; }
.j-desc-p { color: #555; font-size: 13px; line-height: 1.9; }
.j-desc-rich { color: #555; font-size: 13px; line-height: 1.9; }
.j-desc-rich p { margin: 8px 0; }
.j-desc-imgs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px;
}
.j-desc-imgs img {
  width: 100%; max-width: 100%; margin: 0; border-radius: 6px; background: #f5f5f5;
}
/* 已选规格行 */
.j-pd-optrow { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0; font-size: 13px; }
.j-pd-opt-lb { color: #999; padding-top: 2px; flex-shrink: 0; }
.j-pd-opt-val { color: #333; line-height: 1.6; }
.j-spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.j-spec-table th, .j-spec-table td { border: 1px solid #eee; padding: 10px 14px; text-align: left; }
.j-spec-table th { width: 160px; background: #f7f7f7; color: #777; font-weight: 400; }
.j-spec-table td { color: #333; }

/* 商品页店铺条 */
.j-shopbar {
  display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid #eee; border-radius: 6px; padding: 14px 18px; margin-top: 12px;
}
.j-sb-logo {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--j-red), #ff7a45); color: #fff;
  font-size: 26px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; text-decoration: none; overflow: hidden; flex-shrink: 0;
}
.j-sb-logo img { width: 100%; height: 100%; object-fit: cover; }
.j-sb-info { flex: 1; min-width: 0; }
.j-sb-name { font-size: 16px; font-weight: 700; color: #333; display: block; }
.j-sb-name:hover { color: var(--j-red); }
.j-sb-sub { font-size: 12px; color: #999; display: block; }
.j-sb-stat { display: flex; gap: 20px; font-size: 12px; color: #999; }
.j-sb-stat b { color: var(--j-red); font-size: 15px; display: block; }
.j-sb-enter {
  padding: 8px 20px; border: 1px solid var(--j-red); color: var(--j-red);
  border-radius: 4px; font-size: 14px; flex-shrink: 0;
}
.j-sb-enter:hover { background: var(--j-red); color: #fff; }

/* ---------- 购物车 ---------- */
.j-cart-hd { background: #fff; display: flex; align-items: center; padding: 14px 16px; font-size: 16px; font-weight: 700; margin-top: 10px; border-radius: 4px; }
.j-cart-hd small { color: #999; font-weight: 400; font-size: 12px; margin-left: 10px; }
.j-cart-tbl { width: 100%; background: #fff; border-collapse: collapse; margin-top: 10px; }
.j-cart-tbl th { background: #f7f7f7; padding: 10px; font-size: 12px; color: #888; font-weight: 400; text-align: left; }
.j-cart-tbl td { padding: 14px 10px; border-top: 1px solid #f0f0f0; font-size: 13px; }
.j-th-goods { width: 46%; }
.j-th-check { width: 52px; }
.j-cart-all { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.j-cart-all input, .j-row-check { width: 16px; height: 16px; accent-color: var(--j-red); cursor: pointer; }
.j-gi { display: flex; gap: 12px; align-items: center; }
.j-gi img {
  width: 76px; height: 76px; background: #f5f5f5; border: none;
  object-fit: contain; padding: 6%; border-radius: 6px; flex-shrink: 0;
}
.j-gi a { color: #333; }
.j-gi a:hover { color: var(--j-red); }
.j-cart-sub { color: var(--j-red); font-weight: 700; }
.j-del { color: #999; background: none; border: none; cursor: pointer; }
.j-del:hover { color: var(--j-red); }
.j-cart-bar {
  background: #fff; display: flex; align-items: center; padding: 12px 16px;
  margin-top: 10px; border-radius: 4px; gap: 14px;
}
.j-continue { color: #666; font-size: 13px; white-space: nowrap; }
.j-cart-total { margin-left: auto; font-size: 14px; white-space: nowrap; }
.j-cart-total b { color: var(--j-red); font-size: 22px; font-weight: 700; }
.j-go-btn {
  background: var(--j-red); color: #fff; border: none; padding: 12px 38px;
  font-size: 16px; font-weight: 700; border-radius: 4px; cursor: pointer;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.j-go-btn:hover { background: var(--j-red-d); }
.j-cart-tip { font-size: 12px; color: #999; padding: 10px 2px; }

/* ---------- 下单 / 订单面板 ---------- */
.j-co-panel { background: #fff; padding: 20px; margin-top: 10px; border-radius: 4px; }
.j-co-panel h3 { font-size: 15px; margin-bottom: 14px; color: #333; }
.j-co-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.j-co-lb { width: 84px; text-align: right; color: #888; font-size: 13px; flex-shrink: 0; }
.j-co-row input { flex: 1; max-width: 460px; padding: 10px 12px; border: 1px solid #ddd; font-size: 14px; outline: none; border-radius: 4px; }
.j-co-row input:focus { border-color: var(--j-red); }
.j-co-val { color: #333; }
.j-link { color: var(--j-red); }
.j-addr-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid #eee; border-radius: 4px; margin-bottom: 10px; cursor: pointer; font-size: 13px;
}
.j-addr-item:hover { border-color: var(--j-red); }
.j-addr-item input[type=radio] { accent-color: var(--j-red); }
.j-addr-txt { flex: 1; color: #555; min-width: 0; }
.j-addr-txt b { color: #333; }
.j-addr-txt em {
  font-style: normal; background: var(--j-red); color: #fff; font-size: 11px;
  padding: 1px 6px; border-radius: 3px; margin-left: 8px;
}
.j-addr-add { color: var(--j-red); font-size: 13px; }
.j-checkbox { display: flex; align-items: center; gap: 6px; color: #555; }
.j-checkbox input { accent-color: var(--j-red); }
.j-amount-list { padding: 8px 0; }
.j-amount-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 14px; color: #555;
}
.j-amount-list li b { font-weight: 400; color: #333; }
.j-amount-list .j-amount-pay {
  border-top: 1px solid #eee; margin-top: 6px; padding-top: 14px;
  font-size: 15px; color: #333;
}
.j-amount-list .j-amount-pay b { color: var(--j-red); font-size: 24px; font-weight: 700; }
.j-freight { color: #4caf50; font-size: 12px; margin-left: 10px; }
.j-co-submit { display: flex; justify-content: flex-end; margin-top: 10px; }

/* 订单详情状态条 */
.j-od-status {
  padding: 20px; color: #fff; font-size: 17px; font-weight: 700;
  margin-top: 10px; border-radius: 4px;
}
.j-od-status.st-pending { background: #ff9800; }
.j-od-status.st-paid, .j-od-status.st-shipped, .j-od-status.st-done { background: #4caf50; }
.j-od-status.st-cancelled { background: #999; }
.j-od-status small { font-weight: 400; font-size: 13px; margin-left: 12px; }
.j-repay-row { display: flex; align-items: center; gap: 16px; }
.j-repay-tip { color: #666; font-size: 13px; }
.j-repay-tip b { color: var(--j-red); }
.j-repay-btn {
  margin-left: auto; background: var(--j-red); color: #fff; padding: 14px 44px;
  border-radius: 4px; font-weight: 700; font-size: 17px; white-space: nowrap;
}
.j-repay-btn:hover { background: var(--j-red-d); }
.j-addr-line { font-size: 13px; color: #555; line-height: 2; }
.j-remark-line { font-size: 12px; color: #999; margin-top: 6px; }
.j-time-panel { font-size: 12px; color: #999; line-height: 2; }

/* 扫码付款页 */
.j-qr-wrap {
  max-width: 520px; margin: 24px auto; background: #fff; border-radius: 8px;
  padding: 36px 30px; text-align: center;
}
.j-qr-title { font-size: 16px; color: #333; }
.j-qr-amount { font-size: 34px; font-weight: 800; color: var(--j-red); margin: 8px 0 4px; }
.j-qr-no { font-size: 12px; color: #999; margin-bottom: 20px; }
.j-qr-box { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.j-qr-box > img { width: 280px; height: 280px; }
.j-qr-mask {
  position: absolute; inset: 0; background: rgba(255,255,255,.95);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.j-qr-mask.show { display: flex; }
.j-qr-mask p { color: #666; font-size: 14px; }
.j-qr-refresh {
  background: var(--j-red); color: #fff; border: none; padding: 10px 34px;
  border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.j-qr-timer { margin-top: 16px; font-size: 14px; color: #666; }
.j-qr-timer b { color: var(--j-red); font-size: 18px; }
.j-qr-tip { margin-top: 18px; font-size: 13px; color: #999; line-height: 2; }
.j-qr-back { display: inline-block; margin-top: 14px; font-size: 13px; color: #666; }
.j-qr-back:hover { color: var(--j-red); }

/* ---------- 登录 / 注册 ---------- */
.j-auth-bg { min-height: 100vh; background: linear-gradient(135deg, #fff1f0, #f4f4f5); display: flex; align-items: center; justify-content: center; padding: 24px 14px; }
.j-auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 36px 32px; box-shadow: 0 10px 36px rgba(0,0,0,.08); }
.j-auth-logo { display: block; text-align: center; font-size: 26px; font-weight: 800; font-style: italic; color: var(--j-red); }
.j-auth-card h2 { font-size: 18px; text-align: center; margin: 18px 0 20px; font-weight: 600; }
.j-auth-err { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; font-size: 13px; padding: 10px 14px; margin-bottom: 16px; border-radius: 6px; }
.j-auth-ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; font-size: 13px; padding: 10px 14px; margin-bottom: 16px; border-radius: 6px; }
.j-msg-ok { margin-top: 10px; }
.j-auth-field { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding: 0 12px; margin-bottom: 14px; }
.j-auth-field:focus-within { border-color: var(--j-red); }
.j-auth-ic { font-size: 16px; }
.j-auth-field input { flex: 1; border: none; outline: none; padding: 12px 10px; font-size: 14px; }
.j-auth-btn {
  width: 100%; background: var(--j-red); color: #fff; border: none;
  padding: 13px; font-size: 16px; font-weight: 700; border-radius: 8px; cursor: pointer;
}
.j-auth-btn:hover { background: var(--j-red-d); }
.j-auth-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.j-auth-foot a { color: var(--j-red); }

/* ---------- 我的订单卡片 ---------- */
.j-ord-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.j-ord-card { background: #fff; border-radius: 8px; padding: 16px; }
.j-ord-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #f3f3f3; padding-bottom: 10px; }
.j-ord-no { font-size: 12px; color: #999; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-ord-no a { color: #666; }
.j-ord-no a:hover { color: var(--j-red); }
.j-ord-st { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.j-ord-st.st-pending { color: #ff9800; }
.j-ord-st.st-paid, .j-ord-st.st-shipped, .j-ord-st.st-done { color: #4caf50; }
.j-ord-st.st-cancelled { color: #999; }
.j-ord-meta { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 0; font-size: 12px; color: #999; }
.j-ord-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.j-ord-total { font-size: 13px; color: #555; }
.j-ord-total b { color: var(--j-red); font-size: 17px; }

/* 用户中心地址管理 */
.j-empty-line { color: #999; font-size: 13px; margin-bottom: 12px; }
.j-addr-manage {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  border: 1px solid #eee; border-radius: 6px; padding: 12px 14px; margin-bottom: 10px;
}
.j-addr-op { display: flex; gap: 8px; flex-shrink: 0; }
.j-addr-op form { display: inline; }
.j-addr-op button {
  background: #fff; border: 1px solid #ddd; color: #888; font-size: 12px;
  padding: 5px 10px; border-radius: 4px; cursor: pointer;
}
.j-addr-op button:hover { color: var(--j-red); border-color: var(--j-red); }
.j-addr-add-form { margin-top: 14px; border-top: 1px solid #f3f3f3; padding-top: 14px; }
.j-small-btn { padding: 10px 28px; font-size: 14px; }

/* ---------- 商家合作页 ---------- */
.j-settle-hero {
  background: linear-gradient(120deg, #b71c1c, var(--j-red) 60%, #f4542a);
  color: #fff; border-radius: 10px; padding: 42px 38px; margin: 18px 0;
}
.j-settle-hero h2 { font-size: 28px; letter-spacing: 1px; }
.j-settle-hero p { margin-top: 10px; font-size: 14px; opacity: .92; letter-spacing: 1px; }
.j-settle-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.j-st { background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 16px; text-align: center; }
.j-st b { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--j-red); color: #fff; font-size: 15px; align-items: center; justify-content: center; }
.j-st h4 { margin: 10px 0 6px; font-size: 15px; }
.j-st p { font-size: 12px; color: #888; line-height: 1.7; }
.j-settle-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.j-settle-cols p { font-size: 13px; color: #555; line-height: 2.1; }
.j-settle-cols a { color: var(--j-red); }
.j-form-title { margin-top: 24px; }
.j-settle-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; max-width: 760px; }
.j-fr label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.j-fr input, .j-fr select, .j-fr textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #ccc; border-radius: 5px;
  font-size: 14px; outline: none; font-family: inherit;
}
.j-fr input:focus, .j-fr textarea:focus { border-color: var(--j-red); }
.j-fr textarea { min-height: 100px; resize: vertical; }
.j-full { grid-column: 1 / -1; }
.j-form-err { color: #c62828; margin-bottom: 10px; font-size: 13px; }
.j-settle-done { background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: 8px; padding: 26px; text-align: center; }
.j-settle-done b { color: #2e7d32; font-size: 18px; }
.j-settle-done p { margin: 10px 0 16px; color: #555; font-size: 14px; line-height: 1.9; }
.j-settle-done a { color: var(--j-red); }

/* ---------- 文档页 / 证照 ---------- */
.j-page-doc h3 { font-size: 20px; margin-bottom: 14px; }
.j-page-doc h4 { margin: 20px 0 8px; font-size: 15px; color: #222; border-left: 3px solid var(--j-red); padding-left: 8px; }
.j-page-doc p { font-size: 14px; color: #444; line-height: 2.1; }
.j-page-doc a { color: var(--j-red); }
.j-about-rich { margin-bottom: 14px; }
.j-cert-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 14px 0; }
.j-cert-item { width: 260px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fafafa; }
.j-cert-item img { width: 100%; height: 320px; object-fit: contain; background: #fff; }
.j-cert-item span { display: block; padding: 10px 12px; font-size: 12px; color: #666; line-height: 1.8; text-align: center; }
.j-cert-note { font-size: 13px; color: #777; }

/* ---------- 404 ---------- */
.j-nf-box { text-align: center; padding: 70px 20px; }
.j-nf-code { font-size: 72px; font-weight: 700; color: #e0e0e0; line-height: 1; }
.j-nf-msg { font-size: 18px; color: #666; margin: 18px 0 8px; }
.j-nf-sub { font-size: 13px; color: #999; margin-bottom: 28px; }
.j-nf-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.j-nf-links a { padding: 10px 24px; border: 1px solid var(--j-red); color: var(--j-red); border-radius: 6px; font-size: 14px; }
.j-nf-links a.j-main { background: var(--j-red); color: #fff; }
.j-nf-links a:hover { box-shadow: 0 4px 12px rgba(225,37,27,.18); }

/* ---------- 店铺主页 ---------- */
.j-shophead {
  background: linear-gradient(120deg, #b91c14, var(--j-red) 60%, #ff6a3d);
  color: #fff; padding: 26px 0; margin-top: 10px; border-radius: 4px;
}
.j-sh-in { display: flex; align-items: center; gap: 18px; }
.j-sh-logo {
  width: 72px; height: 72px; border-radius: 14px; background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.5); font-size: 34px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.j-sh-logo img { width: 100%; height: 100%; object-fit: cover; }
.j-sh-meta { flex: 1; min-width: 0; }
.j-sh-meta h2 { font-size: 22px; }
.j-sh-meta p { font-size: 13px; opacity: .85; margin-top: 4px; }
.j-sh-nums { display: flex; gap: 26px; text-align: center; }
.j-sh-nums b { display: block; font-size: 20px; }
.j-sh-nums span { font-size: 12px; opacity: .85; }
.j-shopnav { background: #2b2b2f; margin-top: 10px; border-radius: 4px; }
.j-shopnav .j-box { display: flex; align-items: center; }
.j-shopnav a { color: #d8d8dc; font-size: 14px; padding: 12px 20px; white-space: nowrap; }
.j-shopnav a.on, .j-shopnav a:hover { color: #fff; background: var(--j-red); }
.j-sn-r { margin-left: auto; color: #8a8a90; font-size: 12px; white-space: nowrap; }
.j-shopmain { display: flex; gap: 12px; align-items: flex-start; }
.j-shside { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.j-shcontent { flex: 1; min-width: 0; }
.j-shcard { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.j-shcard-hd { background: #f7f7f7; border-bottom: 1px solid #eee; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.j-shcard-bd { padding: 10px 14px; }
.j-shcard-bd p { font-size: 12px; color: #666; line-height: 1.9; margin: 0 0 6px; display: flex; flex-direction: column; }
.j-shcard-bd p b { color: #999; font-weight: 400; }
.j-shcard-cats a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  font-size: 13px; color: #555; border-bottom: 1px solid #f5f5f5;
}
.j-shcard-cats a:last-child { border-bottom: none; }
.j-shcard-cats a span { font-size: 11px; color: #bbb; }
.j-shcard-cats a.on, .j-shcard-cats a:hover { color: var(--j-red); background: #fff5f4; }
.j-shcard-cats a.on span { color: var(--j-red); }
.j-shcard-hot { padding: 8px 10px; }
.j-hh-item { display: flex; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #f5f5f5; align-items: center; }
.j-hh-item:last-child { border-bottom: none; }
.j-hh-item img {
  width: 60px; height: 60px; object-fit: contain; padding: 5%;
  background: #f5f5f5; border-radius: 6px; flex-shrink: 0;
}
.j-hh-meta { min-width: 0; }
.j-hh-nm { font-size: 12px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.j-hh-pr { font-size: 13px; color: var(--j-red); font-weight: 700; margin-top: 3px; }
.j-rk {
  display: inline-block; width: 16px; height: 16px; line-height: 16px;
  text-align: center; font-size: 11px; font-style: normal; color: #fff;
  background: #bbb; border-radius: 3px; margin-right: 5px;
}
.j-rk1 { background: var(--j-red); } .j-rk2 { background: #ff7a45; } .j-rk3 { background: #ffb340; }
.j-filterbar {
  background: #fff; border: 1px solid #e8e8e8; display: flex; align-items: center;
  padding: 0 14px; min-height: 46px; gap: 4px; flex-wrap: wrap; border-radius: 4px;
}
.j-filterbar a { padding: 6px 14px; color: #555; font-size: 13px; border-radius: 3px; }
.j-filterbar a.on { background: var(--j-red); color: #fff; }
.j-filterbar a:hover:not(.on) { color: var(--j-red); }
.j-cnt { margin-left: auto; font-size: 12px; color: #999; }

/* ---------- 在线客服悬浮组件 ---------- */
.cs-launcher {
  position: fixed; right: 24px; bottom: 86px; z-index: 9990;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--j-red), #f10215); color: #fff;
  padding: 11px 18px; border-radius: 24px; cursor: pointer; font-size: 14px;
  box-shadow: 0 4px 14px rgba(225,37,27,.35); transition: transform .15s;
}
.cs-launcher:hover { transform: translateY(-2px); }
.cs-panel {
  position: fixed; right: 24px; bottom: 140px; z-index: 9991;
  width: 340px; max-width: calc(100vw - 32px); height: 470px;
  max-height: calc(100vh - 180px); background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18); display: none;
  flex-direction: column; overflow: hidden;
}
.cs-panel.open { display: flex; }
.cs-hd { background: linear-gradient(135deg, var(--j-red), #f10215); color: #fff; padding: 13px 16px; position: relative; }
.cs-hd b { font-size: 15px; display: block; }
.cs-hd .cs-sub { font-size: 11px; opacity: .85; }
.cs-close { position: absolute; right: 12px; top: 8px; font-size: 22px; font-style: normal; cursor: pointer; opacity: .8; }
.cs-bd { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f6f7f9; }
.cs-msg { display: flex; margin-bottom: 10px; }
.cs-msg.me { justify-content: flex-end; }
.cs-bubble { max-width: 82%; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.cs-msg.bot .cs-bubble { background: #fff; border: 1px solid #ececec; color: #333; border-top-left-radius: 2px; }
.cs-msg.me .cs-bubble { background: #ffe4e1; color: #b71c1c; border-top-right-radius: 2px; }
.cs-bubble a { color: var(--j-red); }
.cs-quick { padding: 8px 10px 4px; border-top: 1px solid #f0f0f0; background: #fff; }
.cs-chip {
  display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; font-size: 12px;
  color: var(--j-red); border: 1px solid #f3c1bd; border-radius: 14px;
  cursor: pointer; background: #fff;
}
.cs-chip:hover { background: #fff5f4; }
.cs-ft { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #f0f0f0; }
.cs-ft input { flex: 1; border: 1px solid #ddd; border-radius: 18px; padding: 8px 14px; font-size: 13px; outline: none; }
.cs-ft input:focus { border-color: var(--j-red); }
.cs-ft button { background: var(--j-red); color: #fff; border: none; border-radius: 18px; padding: 0 18px; font-size: 13px; cursor: pointer; }

/* ---------- 回到顶部 ---------- */
.backtop {
  position: fixed; right: 24px; bottom: 150px; width: 44px; height: 44px;
  background: #fff; border: 1px solid #e0e0e0; color: #888; display: none;
  align-items: center; justify-content: center; cursor: pointer; font-size: 12px;
  z-index: 99; border-radius: 6px;
}
.backtop:hover { color: var(--j-red); border-color: var(--j-red); }

/* ============================================================
   响应式 · 1024
   ============================================================ */
@media (max-width: 1024px) {
  .j-hero { grid-template-columns: 180px minmax(0, 1fr); }
  .j-userpanel { display: none; }
  .j-fly { width: 520px; }
  .j-foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .j-sk-bd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j-sk-item:nth-child(3) { border-right: none; }
  .j-floor-bd, .j-listgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   响应式 · 768（手机/小平板）
   ============================================================ */
@media (max-width: 768px) {
  .j-top { display: none; }
  .j-head-in { gap: 14px; padding: 12px; flex-wrap: wrap; }
  .j-logo { font-size: 22px; }
  .j-cart-btn { padding: 9px 12px; font-size: 12px; }
  .j-allcat { display: none; }
  .j-nav-in { height: 40px; }
  .j-nav-more { line-height: 40px; }
  .j-hero { display: block; }
  .j-side { display: none; }
  .j-banner { height: 190px; border-radius: 6px; }
  .j-fly { display: none !important; }
  .j-sk-hd { flex-wrap: wrap; gap: 8px; }
  .j-sk-bd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j-floor-bd, .j-listgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-card { padding: 12px; }
  .j-ss-bd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j-svc-bd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .j-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-foot-brand { flex-direction: column; gap: 8px; }
  .j-settle-hero { padding: 28px 22px; }
  .j-settle-hero h2 { font-size: 22px; }
  .j-settle-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-settle-cols, .j-settle-form { grid-template-columns: 1fr; }

  /* 商品详情：单列 + 固定底部购买坞 */
  .j-pd-wrap { grid-template-columns: 1fr; padding: 14px; gap: 18px; }
  .j-pd-gallery { max-width: 420px; margin: 0 auto; }
  .j-pd-actions { display: none; }
  .j-pd-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: #fff; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 10px; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  }
  .j-dock-cart, .j-dock-buy {
    flex: 1; border: none; border-radius: 22px; padding: 12px; font-size: 15px;
    font-weight: 700; cursor: pointer;
  }
  .j-dock-cart { background: var(--j-red-l); color: var(--j-red); border: 1px solid var(--j-red); }
  .j-dock-buy { background: var(--j-red); color: #fff; }
  .j-pd-body { padding-bottom: 72px; }
  .j-tb-h span { padding: 11px 16px; font-size: 14px; }
  .j-tb-b { padding: 16px; }

  /* 店铺页：去侧栏 */
  .j-shopmain { flex-direction: column; }
  .j-shside { width: 100%; }
  .j-sh-nums { display: none; }
  .j-sn-r { display: none; }

  /* 表格转卡片 */
  .j-cart-tbl thead { display: none; }
  .j-cart-tbl, .j-cart-tbl tbody { display: block; }
  .j-cart-tbl tr {
    display: block; background: #fff; border: 1px solid #f0f0f0;
    border-radius: 8px; margin-bottom: 10px; padding: 12px;
  }
  .j-cart-tbl td { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border: none; }
  .j-cart-tbl td::before { content: attr(data-label); color: #999; font-size: 12px; }
  .j-gi { flex: 1; min-width: 0; justify-content: flex-end; }
  .j-gi img { width: 56px; height: 56px; }
  .j-cart-bar { flex-wrap: wrap; }
  .j-cart-total { margin-left: auto; }
  .j-cart-total b { font-size: 19px; }
  .j-go-btn { padding: 10px 24px; }
  .j-repay-row { flex-direction: column; align-items: stretch; }
  .j-repay-btn { margin-left: 0; text-align: center; padding: 12px; }

  /* 客服组件（抬升至购买坞/底部栏之上，避免遮挡） */
  .cs-launcher { right: 14px; bottom: 76px; padding: 9px 14px; }
  .cs-panel { left: 8px; right: 8px; width: auto; bottom: 140px; }
  .backtop { display: none !important; }
}

/* ============================================================
   响应式 · 480（小屏手机）
   ============================================================ */
@media (max-width: 480px) {
  .j-box { padding: 0 10px; }
  .j-search-box { order: 3; flex-basis: 100%; max-width: none; }
  .j-cart-btn span { display: none; }
  .j-banner { height: 160px; }
  .j-sk-bd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-sk-item:nth-child(2) { border-right: none; }
  .j-ss-bd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-floor-hd h3 { font-size: 16px; }
  .j-auth-card { padding: 28px 20px; }
  .j-ord-foot { flex-wrap: wrap; }
  .j-addr-manage { flex-direction: column; align-items: flex-start; }
  .j-pd-meta { flex-wrap: wrap; }
  .j-pd-meta div { flex-basis: 50%; }
  .j-pd-meta div:nth-child(-n+2) { border-bottom: 1px solid #f3f3f3; }
}

/* ============================================================
   第五轮 · 通用化新增组件（全部数据驱动，无外链）
   ============================================================ */

/* ---------- 公告横向滚动条 ---------- */
.j-noticebar { background: #fff; border-bottom: 1px solid var(--j-line); }
.j-nb-in { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.j-nb-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--j-red); font-weight: 700; flex-shrink: 0; }
.j-nb-viewport { flex: 1; min-width: 0; overflow: hidden; }
.j-nb-track { display: inline-flex; align-items: center; white-space: nowrap; animation: jMarquee 40s linear infinite; }
.j-nb-item { padding-right: 48px; color: var(--j-gray); font-size: 13px; }
.j-nb-viewport:hover .j-nb-track { animation-play-state: paused; }
@keyframes jMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 金刚区分类导航 ---------- */
.j-kingkong { background: #fff; border-radius: var(--j-radius); margin-top: 10px; padding: 16px 8px; }
.j-kk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.j-kk-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px; min-width: 0; }
.j-kk-ic {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; color: #fff;
}
.j-kk-tone-0 { background: linear-gradient(135deg, #e1251b, #ff6a3d); }
.j-kk-tone-1 { background: linear-gradient(135deg, #ff8a00, #ffb340); }
.j-kk-tone-2 { background: linear-gradient(135deg, #1677ff, #5aa9ff); }
.j-kk-tone-3 { background: linear-gradient(135deg, #07c160, #52d98f); }
.j-kk-tone-4 { background: linear-gradient(135deg, #722ed1, #a76bff); }
.j-kk-nm { font-size: 12.5px; color: var(--j-gray); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-kk-long { font-size: 11px; letter-spacing: -.2px; }
.j-kk-item:hover .j-kk-nm { color: var(--j-red); }

/* ---------- 活动区横滑卡片 ---------- */
.j-activities { margin-top: 10px; }
.j-act-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.j-act-scroll::-webkit-scrollbar { display: none; }
.j-act-card {
  flex: 1 1 0; min-width: 240px; background: #fff; border-radius: var(--j-radius); overflow: hidden;
  display: block; border: 1px solid var(--j-line);
}
.j-act-card img { width: 100%; height: 150px; object-fit: cover; }
.j-act-info { padding: 10px 12px; }
.j-act-info h3 { font-size: 15px; color: var(--j-ink); }
.j-act-info p { font-size: 12px; color: var(--j-gray); margin-top: 2px; }

/* ---------- 优惠券领取条 ---------- */
.j-couponbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.j-cp-card {
  flex: 1 1 260px; display: flex; align-items: center; gap: 12px; background: #fff7f6;
  border: 1px dashed var(--j-red); border-radius: var(--j-radius); padding: 12px 14px;
}
.j-cp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.j-cp-info b { font-size: 15px; color: var(--j-red); }
.j-cp-info span { font-size: 12px; color: var(--j-gray); margin-top: 2px; }
.j-cp-btn {
  flex-shrink: 0; background: var(--j-red); color: #fff; border: none; border-radius: 16px;
  padding: 8px 22px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.j-cp-btn:hover { background: var(--j-red-d); }
.j-cp-btn.j-cp-done { background: #c9c9c9; cursor: default; }

/* ---------- 频道入口 ---------- */
.j-channel { background: #fff; border-radius: var(--j-radius); margin-top: 10px; padding: 16px 8px; }
.j-ch-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.j-ch-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px; min-width: 0; }
.j-ch-ic {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; color: #fff;
}
.j-ch-tone-0 { background: linear-gradient(135deg, #e1251b, #ff6a3d); }
.j-ch-tone-1 { background: linear-gradient(135deg, #ff8a00, #ffb340); }
.j-ch-tone-2 { background: linear-gradient(135deg, #1677ff, #5aa9ff); }
.j-ch-tone-3 { background: linear-gradient(135deg, #07c160, #52d98f); }
.j-ch-tone-4 { background: linear-gradient(135deg, #722ed1, #a76bff); }
.j-ch-nm { font-size: 12.5px; color: var(--j-gray); white-space: nowrap; }
.j-ch-item:hover .j-ch-nm { color: var(--j-red); }

/* ---------- 限时秒杀 ---------- */
.j-seckill { background: #fff; border-radius: var(--j-radius); margin-top: 10px; overflow: hidden; }
.j-sk-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: linear-gradient(90deg, #e1251b, #ff5a36);
}
.j-sk-title { display: flex; align-items: baseline; gap: 10px; }
.j-sk-title h3 { color: #fff; font-size: 18px; font-weight: 700; }
.j-sk-tip { color: #ffd9d2; font-size: 12px; }
.j-sk-cd { display: flex; align-items: center; gap: 3px; }
.j-sk-cd-lb { color: #ffe2dd; font-size: 12px; margin-right: 5px; }
.j-sk-cd b {
  min-width: 22px; padding: 3px 5px; background: #2a0a06; color: #fff;
  border-radius: 4px; text-align: center; font-size: 14px; font-weight: 700;
}
.j-sk-cd i { color: #fff; font-style: normal; font-weight: 700; }
.j-sk-bd {
  display: flex; gap: 10px; padding: 14px 14px 16px; overflow-x: auto; scrollbar-width: none;
}
.j-sk-bd::-webkit-scrollbar { display: none; }
.j-sk-item { flex: 0 0 150px; width: 150px; display: block; min-width: 0; }
.j-sk-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px;
  background: #f5f5f5; overflow: hidden;
}
.j-sk-img img { width: 100%; height: 100%; object-fit: cover; }
.j-sk-badge {
  position: absolute; top: 0; left: 0; padding: 2px 8px; font-size: 11px;
  color: #fff; background: linear-gradient(135deg, #e1251b, #ff6a3d);
  border-bottom-right-radius: 8px; z-index: 2;
}
.j-sk-pr { color: var(--j-red); font-weight: 700; font-size: 16px; margin-top: 8px; white-space: nowrap; }
.j-sk-pr i { font-style: normal; font-size: 11px; }
.j-sk-pr del { color: #bbb; font-size: 11px; font-weight: 400; margin-left: 4px; }
.j-sk-meter {
  height: 14px; margin-top: 6px; border-radius: 20px; background: #ffe7e3; overflow: hidden;
}
.j-sk-fill {
  display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, #ff8a00, #e1251b);
}
.j-sk-foot { font-size: 11px; color: #999; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 品牌补贴 ---------- */
.j-subsidy { background: #fff; border-radius: var(--j-radius); margin-top: 10px; overflow: hidden; }
.j-sb2-hd { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 6px; }
.j-sb2-hd h3 { font-size: 18px; color: var(--j-ink); font-weight: 700; }
.j-sb2-tip { font-size: 12px; color: var(--j-gray); }
.j-sb2-more { margin-left: auto; font-size: 13px; color: var(--j-red); }
.j-sb2-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 10px 18px 18px;
}
.j-sb2-item { display: block; min-width: 0; }
.j-sb2-img {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; background: #f5f5f5; overflow: hidden;
}
.j-sb2-img img { width: 100%; height: 100%; object-fit: cover; }
.j-sb2-tag {
  position: absolute; top: 0; left: 0; padding: 2px 8px; font-size: 11px;
  color: #fff; background: linear-gradient(135deg, #ff8a00, #e1251b);
  border-bottom-right-radius: 8px; z-index: 2;
}
.j-sb2-nm {
  font-size: 13px; color: var(--j-ink); margin-top: 8px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.j-sb2-pr { color: var(--j-red); font-weight: 700; font-size: 16px; margin-top: 3px; }
.j-sb2-pr i { font-style: normal; font-size: 11px; }
.j-sb2-pr del { color: #bbb; font-size: 11px; font-weight: 400; margin-left: 4px; }

/* ---------- 热卖榜楼层 ---------- */
.j-rankfloor { background: #fff; border-radius: var(--j-radius); margin-top: 10px; overflow: hidden; }
.j-rank-bd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.j-rank-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f3f3f3; min-width: 0; }
.j-rank-no {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px; background: #c9c9c9;
  color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.j-rank-item .j-imgframe { width: 72px; height: 72px; flex-shrink: 0; }
.j-rank-item .j-imgframe > img { padding: 6%; }
.j-rank-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.j-rank-nm { font-size: 13px; color: var(--j-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-rank-pr { color: var(--j-red); font-weight: 700; font-size: 15px; }
.j-rank-pr i { font-style: normal; font-size: 11px; }
.j-rank-pr del { color: #bbb; font-size: 11px; font-weight: 400; margin-left: 4px; }
.j-rank-sl { font-size: 12px; color: #999; }

/* ---------- 收藏按钮（心形） ---------- */
.j-fav {
  position: absolute; top: 6px; right: 6px; z-index: 4; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid #ececec; background: rgba(255,255,255,.92);
  color: #999; display: flex; align-items: center; justify-content: center; cursor: pointer;
  padding: 0;
}
.j-fav:hover { color: var(--j-red); border-color: var(--j-red); }
.j-fav.j-fav-on { color: #fff; background: var(--j-red); border-color: var(--j-red); }

/* ---------- 分享弹层 ---------- */
.j-share-mask {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.j-share-sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 16px 16px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); }
.j-share-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 18px; }
.j-share-opts { display: flex; justify-content: space-around; }
.j-share-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--j-gray); font-size: 12px; }
.j-share-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--j-red-l); color: var(--j-red); display: flex; align-items: center; justify-content: center; }
.j-share-cancel { width: 100%; margin-top: 20px; padding: 12px; border: none; background: #f5f5f5; border-radius: 10px; font-size: 15px; color: var(--j-gray); cursor: pointer; }

/* ---------- 轻提示 toast ---------- */
.j-toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 1400;
  background: rgba(0,0,0,.78); color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 8px; max-width: 80vw; text-align: center;
}

/* ---------- “我的”页收藏列表 ---------- */
.j-fav-row {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--j-radius);
  border: 1px solid var(--j-line); padding: 10px 12px; margin-bottom: 10px; position: relative;
}
.j-fav-row:hover { border-color: var(--j-red); }
.j-fav-img { width: 64px; height: 64px; flex-shrink: 0; }
.j-fav-img img, .j-fav-ph {
  width: 64px; height: 64px; border-radius: 6px; background: #f5f5f5; object-fit: contain; padding: 6%;
}
.j-fav-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.j-fav-nm { font-size: 13px; color: var(--j-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-fav-pr { font-size: 15px; color: var(--j-red); font-weight: 700; }
.j-fav-del {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e6e6e6;
  background: #fff; color: #999; font-size: 16px; cursor: pointer; padding: 0;
}
.j-fav-del:hover { color: var(--j-red); border-color: var(--j-red); }

/* ---------- 详情页收藏/评价图/移动坞图标 ---------- */
.j-pd-fav { top: 10px; right: 10px; width: 34px; height: 34px; }
.j-rv-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.j-rv-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.j-review-floor .j-review-list { padding: 4px 16px 14px; }
.j-dock-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--j-red-l); color: var(--j-red); display: flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0;
}
.j-dock-icon.j-fav-on { background: var(--j-red); color: #fff; }

/* ---------- 空态插画容器 ---------- */
.j-empty-illu { padding: 50px 20px; }
.j-empty-img { width: 160px; height: 160px; margin: 0 auto 14px; object-fit: contain; }
.j-empty-btn { color: var(--j-red); font-weight: 700; }

/* ---------- 分享卡内容 ---------- */
.j-share-cardbox { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.j-share-cardimg { width: 180px; height: 180px; object-fit: contain; border-radius: 12px; background: #f7f7f7; padding: 10px; }
.j-share-cardbox b { font-size: 15px; color: var(--j-ink); text-align: center; }
.j-share-cardurl { font-size: 12px; color: #999; word-break: break-all; text-align: center; }
.j-share-tip { font-size: 12px; color: #bbb; }

/* ---------- H5 底部四 tab 导航（PC 隐藏） ---------- */
.j-tabbar { display: none; }
.j-tab-badge { display: none; }

/* ---------- 浮动快捷工具（回到顶部/客服） ---------- */
.j-floattools {
  position: fixed; right: 16px; bottom: 96px; z-index: 980; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid #e6e6e6; background: #fff; color: var(--j-gray);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.j-floattools:hover { color: var(--j-red); border-color: var(--j-red); }
.j-floatpanel {
  position: fixed; right: 16px; bottom: 148px; z-index: 980; background: #fff;
  border: 1px solid #ececec; border-radius: 12px; padding: 6px; display: none;
  flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.j-floatpanel.j-open { display: flex; }
.j-floatpanel button, .j-floatpanel a {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  padding: 8px 12px; font-size: 13px; color: var(--j-gray); cursor: pointer; white-space: nowrap;
}
.j-floatpanel button:hover, .j-floatpanel a:hover { color: var(--j-red); }

/* ============================================================
   第五轮响应式 · 平板（≤1024）
   ============================================================ */
@media (max-width: 1024px) {
  .j-rank-bd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   第五轮响应式 · 手机（≤768）：显示底部 tab，预留底部空间
   ============================================================ */
@media (max-width: 768px) {
  body.j-body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .j-kingkong { padding: 12px 4px; }
  .j-kk-item { gap: 6px; }
  .j-kk-ic { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; }
  .j-act-card { flex: 0 0 240px; }
  .j-act-card img { height: 128px; }
  .j-rank-bd { grid-template-columns: 1fr; }
  .j-rank-item { padding: 12px; }

  /* 底部 tab 显示 */
  .j-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: #fff; border-top: 1px solid var(--j-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .j-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: #999; font-size: 11px; padding: 7px 0; position: relative; min-height: 56px;
  }
  .j-tab-active { color: var(--j-red); }
  .j-tab-badge {
    display: none; position: absolute; top: 4px; left: 50%; transform: translateX(8px);
    background: var(--j-red); color: #fff; font-size: 10px; font-style: normal;
    min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
    align-items: center; justify-content: center;
  }
  .j-tab-badge.j-show { display: inline-flex; }

  /* 浮动工具上移避开 tabbar */
  .j-floattools { bottom: 78px; right: 12px; width: 40px; height: 40px; }
  .j-floatpanel { bottom: 126px; right: 12px; }
  .j-toast { bottom: 90px; }
}

@media (max-width: 480px) {
  .j-kk-nm { font-size: 11px; }
  .j-kk-ic { width: 36px; height: 36px; font-size: 15px; }
}

/* ============================================================
   R6 正规化改造 · 新增组件（鲜艳图标 / 动感 AI / 信任小标 /
   分割 banner / 两侧固定广告位 / 页脚证照位）
   ============================================================ */

/* 用户面板：鲜艳图标（不再灰色） */
.j-up-links a b.j-up-ic {
  width: 42px; height: 42px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; color: #fff; margin: 0 auto 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.j-up-tone-0 { background: linear-gradient(135deg, #e1251b, #ff6a3d); }
.j-up-tone-1 { background: linear-gradient(135deg, #ff8a00, #ffb340); }
.j-up-tone-2 { background: linear-gradient(135deg, #1677ff, #5aa9ff); }
.j-up-tone-3 { background: linear-gradient(135deg, #07c160, #52d98f); }

/* AI 智能搭配卡片 */
.j-ai-intro { margin-top: 12px; }
.j-ai-card {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #d91f16 0%, #ef4133 55%, #ff7a45 100%);
  border-radius: 16px; padding: 18px 26px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: 0 10px 26px rgba(225,37,27,.18);
}
.j-ai-card::after {
  content: ''; position: absolute; right: -60px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.j-ai-head { display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: relative; z-index: 1; }
.j-ai-badge {
  position: relative; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.j-ai-pulse {
  position: absolute; inset: 0; border-radius: 14px;
  border: 2px solid rgba(255,255,255,.7); animation: jPulse 1.9s ease-out infinite;
}
@keyframes jPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.j-ai-head h3 { font-size: 20px; color: #fff; }
.j-ai-head p { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 2px; }

.j-ai-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 0; flex: 1; position: relative; z-index: 1;
}
.j-ai-node {
  flex: 0 0 auto; max-width: none; display: flex; flex-direction: row;
  align-items: center; gap: 8px;
}
.j-ai-node-ic {
  width: 38px; height: 38px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; color: #fff;
  box-shadow: none;
}
.j-ai-tone-0, .j-ai-tone-1, .j-ai-tone-2 { background: rgba(255,255,255,.16); }
.j-ai-node b { font-size: 14px; color: #fff; }
.j-ai-node span { display: none; }
.j-ai-arrow {
  flex: 0 0 22px; height: 2px; position: relative;
  background: rgba(255,255,255,.4); border-radius: 2px;
}
.j-ai-arrow::after {
  content: ''; position: absolute; top: 50%; width: 8px; height: 8px;
  background: #fff; border-radius: 50%; transform: translateY(-50%);
  animation: jFlowH 1.7s ease-in-out infinite;
}
@keyframes jFlowH {
  0% { left: 0; opacity: 0; }
  25% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
.j-ai-btn {
  display: block; margin: 0; border: none; cursor: pointer; flex-shrink: 0;
  background: #fff; color: #e1251b;
  border-radius: 24px; padding: 11px 28px; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: transform .15s;
  position: relative; z-index: 1;
}
.j-ai-btn:hover { transform: translateY(-1px); }

/* 商品图信任小标：正品 / 认证 */
.j-trust {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2;
  display: flex; gap: 6px;
}
.j-trust-pill {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10px;
  font-weight: 700; color: #fff; background: rgba(225,37,27,.92);
  padding: 3px 7px; border-radius: 10px;
}
.j-trust-pill svg { width: 11px; height: 11px; }
.j-trust-cert { background: rgba(22,119,255,.92); }

/* 热卖榜内联正品标记 */
.j-rank-tag {
  font-style: normal; font-size: 10px; color: #fff; background: var(--j-red);
  border-radius: 8px; padding: 1px 6px; margin-left: 6px;
}

/* 分类分割广告 banner（替代 1F/2F 标签） */
.j-sep-banner {
  display: block; width: 100%; border-radius: 10px; overflow: hidden;
  margin-bottom: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.j-sep-banner img { width: 100%; height: auto; display: block; }

/* 首页两侧固定广告位（宽屏显示，窄屏隐藏） */
.j-rail {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 900;
  width: 128px; display: none;
}
.j-rail a { display: block; transition: transform .2s ease; }
.j-rail a:hover { transform: translateY(-3px); }
.j-rail img {
  width: 128px; height: 440px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.j-rail-l { left: calc(50% - 600px - 150px); }
.j-rail-r { right: calc(50% - 600px - 150px); }
@media (min-width: 1500px) { .j-rail { display: block; } }

/* 服务保障：鲜艳图标 */
.j-svc .j-svc-ic {
  width: 58px; height: 58px; border-radius: 15px; display: flex;
  align-items: center; justify-content: center; color: #fff;
  margin: 0 auto 10px; box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.j-svc-tone-0 { background: linear-gradient(135deg, #e1251b, #ff6a3d); }
.j-svc-tone-1 { background: linear-gradient(135deg, #ff8a00, #ffb340); }
.j-svc-tone-2 { background: linear-gradient(135deg, #07c160, #52d98f); }
.j-svc-tone-3 { background: linear-gradient(135deg, #1677ff, #5aa9ff); }

/* 页脚：法规区与证照展示位 */
.j-foot-legal { padding-top: 14px; }
.j-legal-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: #888;
}
.j-legal-links i { color: #ccc; font-style: normal; }
.j-credits {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px;
  color: #888; margin-top: 8px; align-items: center;
}
.j-credits-slot { color: #999; gap: 22px; }
.j-credits-item { display: inline-flex; align-items: center; }

/* R7 移动端适配：AI 卡片纵向堆叠、步骤横向换行 */
@media (max-width: 768px) {
  .j-ai-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .j-ai-head { justify-content: center; }
  .j-ai-head p { display: none; }
  .j-ai-flow { flex-wrap: wrap; gap: 6px 10px; }
  .j-ai-node { flex: 1 1 auto; justify-content: center; }
  .j-ai-arrow { display: none; }
  .j-ai-btn { width: 100%; }
  .j-trust-pill { font-size: 9px; padding: 2px 6px; }
}
