/* ============================================================
   在庫検索（复制自 cakoren.com）· mamicase 风格皮肤
   依赖 /assets/css/style.css + /assets/css/site.css
   仅保留 st- 前缀，避免与站点其它样式冲突
   ============================================================ */

.st-page {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
  padding-bottom: 0;
}
.st-page * { box-sizing: border-box; }
.st-page a { text-decoration: none; color: inherit; }
.st-page a:hover { text-decoration: none; }
.st-page img { display: block; }

.st-container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------------- Hero ---------------- */
.site-hero.compact { padding: 34px 22px 92px; }
.site-hero .inner h1 { margin: 0 0 10px; }
.st-search-lg {
  max-width: 560px; margin: 20px auto 0; display: flex; align-items: center;
  background: #fff; border-radius: 999px; padding: 5px 5px 5px 4px;
  box-shadow: 0 16px 38px -18px rgba(0, 0, 0, .55);
}
.st-search-lg input {
  flex: 1; min-width: 0; height: 42px; border: 0; outline: none; background: transparent;
  padding: 0 16px; font-size: 14px; color: var(--ink); font-family: var(--font);
}
.st-search-lg input::placeholder { color: var(--muted-2); }
.st-search-lg button {
  height: 42px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line-green); color: #fff; font-size: 13.5px; font-weight: 800;
  font-family: var(--font); transition: background .15s;
}
.st-search-lg button:hover { background: #05b04b; }

.st-hero-stats {
  margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 22px; color: rgba(255, 255, 255, .72); font-size: 12.5px;
}
.st-hero-stats b { color: #fff; font-size: 18px; font-weight: 800; margin-right: 3px; }
.st-quick { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.st-quick a {
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}
.st-quick a:hover { background: var(--line-green); border-color: var(--line-green); color: #fff; }

/* ---------------- 筛选区 ---------------- */
.site-card.st-filter { padding: 16px 22px; margin-bottom: 18px; }
.st-dim-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.st-dim-row:first-child { padding-top: 2px; }
.st-dim-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.st-dim-label {
  flex: 0 0 92px; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.st-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.st-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: all .15s;
}
.st-chip:hover { border-color: var(--line-green); color: var(--line-green); background: #f4fef8; }
.st-chip i { font-style: normal; font-size: 11px; color: var(--muted-2); font-weight: 500; }
.st-chip.on { background: var(--line-green); border-color: var(--line-green); color: #fff; box-shadow: 0 6px 16px -10px var(--line-green); }
.st-chip.on i { color: rgba(255, 255, 255, .8); }

/* ---------------- 结果头 ---------------- */
.st-result-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.st-result-head h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0; }
.st-result-head .sub { color: var(--muted); font-size: 13px; }
.st-result-head .sub b { color: var(--ink); }
.st-clear {
  margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--brand);
  padding: 5px 12px; border-radius: 999px; background: var(--brand-50);
}
.st-clear:hover { background: #e3e8ff; }

/* ---------------- 卡片网格 ---------------- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 16px; }
.st-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s, border-color .18s;
}
.st-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d7dee9; }
.st-card-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--line-soft); overflow: hidden; }
.st-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.st-card:hover .st-card-thumb img { transform: scale(1.04); }
.st-card-thumb .st-qty {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(6, 199, 85, .95); color: #fff; font-size: 11.5px; font-weight: 700;
  backdrop-filter: blur(3px); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .5);
}
.st-card-thumb .st-qty.zero { background: rgba(100, 116, 139, .9); }

.st-card-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.st-card-name {
  font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.45; min-height: 39px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-card-sn { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.st-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.st-tag {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--line-soft); color: var(--muted); white-space: nowrap;
}
.st-tag.brand { background: var(--brand-50); color: var(--brand); }
.st-tag.type { background: #f5f3ff; color: #7c3aed; }
.st-tag.loc { background: var(--ok-bg); color: var(--ok); }
.st-tag.loc.none { background: var(--line-soft); color: var(--muted-2); }
.st-card-models {
  font-size: 11.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-card-colors {
  font-size: 11.5px; color: var(--ink-2); border-top: 1px dashed var(--line-soft);
  padding-top: 7px; margin-top: auto;
}
.st-card-colors span { display: inline-block; margin-right: 9px; }
.st-card-colors em { font-style: normal; color: var(--line-green); font-weight: 800; }

/* ---------------- 空状态 ---------------- */
.st-empty {
  background: var(--panel); border: 1px dashed var(--line); border-radius: 18px;
  padding: 64px 20px; text-align: center; color: var(--muted); font-size: 14px;
}

/* ---------------- 分页 ---------------- */
.st-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 30px 0 0; flex-wrap: wrap; }
.st-pager a, .st-pager span {
  min-width: 36px; height: 36px; padding: 0 11px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.st-pager a:hover { border-color: var(--line-green); color: var(--line-green); }
.st-pager .cur { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.st-pager .gap { border: 0; background: transparent; color: var(--muted-2); }

/* ---------------- 首页：三维入口 ---------------- */
.st-dims3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-card.st-dimcard { padding: 20px 22px; margin-bottom: 0; }
.st-dimcard h4 {
  margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.st-dimcard h4::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--line-green);
}
.st-dimcard h4 em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.st-dimcard .st-chips { gap: 6px; }
.st-dimcard .more { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.st-dimcard .st-note { margin-top: 12px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

.st-section-title { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; }
.st-section-title h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0; }
.st-section-title span { color: var(--muted-2); font-size: 12px; }
.st-section-title a.more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand); }

/* ---------------- 页脚补充 ---------------- */
.site-foot .f-note { margin-top: 10px; font-size: 11.5px; color: var(--muted-2); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .st-dims3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-hero.compact { padding: 26px 16px 88px; }
  .st-search-lg { border-radius: 16px; padding: 5px; }
  .st-search-lg button { padding: 0 18px; }
  .site-card.st-filter { padding: 14px 14px; }
  .st-dim-row { flex-direction: column; gap: 7px; }
  .st-dim-label { flex-basis: auto; padding-top: 0; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .st-card-body { padding: 10px 11px 12px; }
  .st-card-name { font-size: 12.5px; min-height: 36px; }
  .st-result-head h2 { font-size: 17px; }
}

/* ---------------- 详情页 ---------------- */
.gd-hero { padding: 30px 22px 88px; }
.gd-hero .inner h1.gd-title { font-size: 24px; margin: 6px 0 8px; }
.gd-crumb { margin: 0 0 4px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.gd-crumb a { color: rgba(255, 255, 255, .8); }
.gd-crumb a:hover { color: #fff; }

.gd-wrap { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 30px; }
.gd-main { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--line-soft); }
.gd-pool { display: none; }
.gd-info { display: flex; flex-direction: column; gap: 16px; }
.gd-brandrow { gap: 6px; }
.gd-price { margin: 0; font-size: 15px; color: var(--ink-2); }
.gd-price b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.gd-freeship {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: 11.5px; font-weight: 700;
}
.gd-group .gd-label { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.gd-chip { cursor: pointer; position: relative; }
.gd-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gd-actions {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--line-soft); border-radius: 14px; flex-wrap: wrap;
}
.gd-num { font-size: 13px; color: var(--ink-2); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.gd-num input {
  width: 64px; height: 38px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 10px; font-size: 14px; font-family: var(--font); color: var(--ink);
}
.gd-buy { padding: 11px 26px; font-size: 14px; }
.gd-off { font-weight: 700; color: var(--danger); background: var(--danger-bg); padding: 12px 16px; border-radius: 12px; }
.gd-brief { font-size: 13px; color: var(--ink-2); line-height: 1.9; border-top: 1px dashed var(--line-soft); padding-top: 14px; }
.gd-sec { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 12px; padding-left: 11px; border-left: 4px solid var(--line-green); }

@media (max-width: 860px) {
  .gd-wrap { grid-template-columns: 1fr; gap: 20px; }
  .gd-hero { padding: 24px 16px 86px; }
  .gd-hero .inner h1.gd-title { font-size: 20px; }
}
