/* ============ 鲸发卡主题 · 商品区（共用顶栏/信息条/页脚在 style.css） ============ */
.jing .j-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px;
}
.jing .j-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.jing .j-card:hover {
  transform: translateY(-3px); border-color: var(--primary-line);
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .18);
}
.jing .j-thumb {
  position: relative; height: 100px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
}
.jing .j-thumb.j-thumb-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .22), transparent 55%),
              radial-gradient(circle at 15% 90%, rgba(255, 255, 255, .12), transparent 45%);
}
.jing .j-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jing .j-thumb-ch {
  position: relative; z-index: 1; font-family: var(--serif); font-size: 44px; font-weight: 700;
  color: rgba(255, 255, 255, .94); text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.jing .j-thumb-cat {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 11px; color: #fff;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px); border-radius: 999px; padding: 1px 8px;
  max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jing .j-thumb-out {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1px;
}
.jing .j-body { display: flex; flex-direction: column; gap: 5px; padding: 11px 13px 12px; flex: 1; }
.jing .j-name {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.jing .j-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.1em;
}
.jing .j-sub { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.jing .j-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.jing .j-price {
  color: var(--price); font-family: var(--serif); font-weight: 700; font-size: 22px;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.jing .j-price small { font-size: 13px; font-weight: 600; margin-right: 1px; }
.jing .j-buy {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 15px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #ffffff;
  background: var(--primary); transition: background .15s;
}
.jing a.j-buy { color: #ffffff; }
.jing .j-buy:hover { background: var(--primary-bright); }
.jing .j-buy.off { background: rgba(0, 0, 0, .06); color: var(--muted); }
.jing .j-empty, .jing .j-nohit {
  grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px;
  padding: 52px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px;
}
.jing .j-nohit { margin-top: 16px; padding: 22px 16px; }

@media (max-width: 720px) {
  .jing .j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jing .j-card { border-radius: 10px; }
  .jing .j-card:hover { transform: none; box-shadow: var(--shadow); }
  .jing .j-thumb { height: 92px; }
  .jing .j-thumb-ch { font-size: 32px; }
  .jing .j-thumb-cat { font-size: 10px; padding: 1px 6px; left: 7px; top: 7px; }
  .jing .j-body { padding: 9px 10px 10px; gap: 4px; }
  .jing .j-name { font-size: 13.5px; min-height: 2.9em; }
  .jing .j-desc { font-size: 11.5px; min-height: 3.0em; line-height: 1.5; }
  .jing .j-sub { font-size: 10.5px; gap: 8px; }
  .jing .j-price { font-size: 17px; }
  .jing .j-price small { font-size: 11px; }
  .jing .j-buy { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
}

@media (max-width: 360px) {
  .jing .j-name { font-size: 12.5px; }
  .jing .j-price { font-size: 16px; }
}
