/* ============================================================
   商城列表页专属样式（作用域 body.is-shop）
   科技蓝风格 · 卡片化 · 响应式
   ============================================================ */

/* ---------- Hero ---------- */
body.is-shop .shop-hero { padding: 56px 0 52px; }
body.is-shop .shop-hero .page-hero-en { color: #8ab4ff; letter-spacing: 4px; }

/* ---------- 工具栏 ---------- */
body.is-shop .shop-wrap { padding-top: 30px; padding-bottom: 64px; }
body.is-shop .shop-toolbar {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 22px; flex-wrap: wrap;
}
body.is-shop .shop-toolbar-main { flex: 1; min-width: 0; }
body.is-shop .shop-filters { margin-bottom: 18px; }
body.is-shop .subcat-chip {
    display: inline-flex; align-items: center; padding: 8px 18px; margin: 0 8px 8px 0;
    border-radius: 8px; font-size: 14px; font-weight: 600;
}
body.is-shop .shop-search {
    position: relative; max-width: 560px; margin-bottom: 0; gap: 0;
    border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden;
    background: var(--bg-card); transition: border-color .2s, box-shadow .2s;
}
body.is-shop .shop-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,49,203,.1); }
body.is-shop .shop-search .search-ico {
    display: flex; align-items: center; padding: 0 12px; color: var(--text-muted);
}
body.is-shop .shop-search input {
    flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 12px 8px;
    background: transparent; box-shadow: none;
}
body.is-shop .shop-search input:focus { outline: none; }
body.is-shop .shop-search .btn-primary {
    border-radius: 0; padding: 0 26px; height: 46px; flex-shrink: 0;
}
body.is-shop .shop-count { color: var(--text-muted); font-size: 14px; padding-bottom: 12px; white-space: nowrap; }
body.is-shop .shop-count b { color: var(--primary); font-size: 17px; margin: 0 3px; }
body.is-shop .shop-search-tip {
    margin: -6px 0 18px; font-size: 14px; color: var(--text-2);
}
body.is-shop .shop-search-tip a { color: var(--primary); margin-left: 10px; }

/* ---------- 商品网格与卡片 ---------- */
body.is-shop .shop-grid { gap: 22px; }
body.is-shop .shop-card {
    display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
body.is-shop .shop-card:hover {
    transform: translateY(-5px); box-shadow: 0 16px 40px rgba(8,49,203,.14); border-color: transparent;
}
body.is-shop .shop-card-media {
    position: relative; height: 178px; overflow: hidden; background: var(--bg-subtle);
}
body.is-shop .shop-card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(6,16,44,.08));
}
body.is-shop .shop-card-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
    transition: transform .4s var(--ease);
}
body.is-shop .shop-card:hover .shop-card-media img { transform: scale(1.05); }
body.is-shop .shop-card-delivery {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
    color: #fff; background: rgba(8,49,203,.88); backdrop-filter: blur(6px);
}
body.is-shop .shop-card-view {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    color: #fff; background: rgba(8,49,203,.9); opacity: 0; transform: translateX(-6px);
    transition: opacity .25s, transform .25s;
}
body.is-shop .shop-card:hover .shop-card-view { opacity: 1; transform: translateX(0); }
body.is-shop .shop-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
body.is-shop .shop-card-no {
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
    color: var(--text-muted); letter-spacing: .02em; margin-bottom: 7px;
    min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.is-shop .shop-card .title {
    font-size: 15.5px; font-weight: 700; line-height: 1.45; height: auto; min-height: 44px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body.is-shop .shop-card-brief {
    margin-top: 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55;
    min-height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body.is-shop .shop-card-bottom {
    margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
body.is-shop .shop-card .price { margin: 0; font-size: 21px; color: #e6a23c; font-weight: 800; white-space: nowrap; }
body.is-shop .shop-card .price .cur { font-size: 14px; margin-right: 1px; }
body.is-shop .shop-card .market { font-size: 12px; }
body.is-shop .shop-card-more { font-size: 12.5px; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ---------- 空状态 ---------- */
body.is-shop .shop-empty {
    padding: 80px 20px; text-align: center; background: var(--bg-card);
    border: 1px dashed var(--border-strong); border-radius: 16px;
}
body.is-shop .shop-empty-ico {
    width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 20px;
    display: grid; place-items: center; color: var(--primary); background: var(--primary-soft);
}
body.is-shop .shop-empty h3 { font-size: 19px; margin-bottom: 8px; }
body.is-shop .shop-empty p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- 分页 ---------- */
body.is-shop .shop-pagination { margin-top: 34px; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
    body.is-shop .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    body.is-shop .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    body.is-shop .shop-card-media { height: 140px; }
    body.is-shop .shop-search { max-width: none; }
    body.is-shop .shop-count { padding-bottom: 0; }
}
@media (max-width: 480px) {
    body.is-shop .shop-grid { grid-template-columns: 1fr; }
    body.is-shop .shop-card-media { height: 180px; }
    body.is-shop .subcat-row { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    body.is-shop .subcat-chip { flex-shrink: 0; }
}

/* ---------- 产品服务分类（导航下拉锚点目标） ---------- */
body.is-shop .shop-services {
    margin-bottom: 34px; padding: 22px;
    border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
}
body.is-shop .shop-services-head { margin-bottom: 18px; }
body.is-shop .shop-services-head .sec-en {
    margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--primary);
}
body.is-shop .shop-services-head h2 { margin-bottom: 6px; font-size: 20px; font-weight: 800; }
body.is-shop .shop-services-head p:last-child { font-size: 13px; color: var(--text-muted); }
body.is-shop .shop-services-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
body.is-shop .shop-service {
    scroll-margin-top: calc(var(--header-h) + 16px);
    display: flex; align-items: flex-start; gap: 9px; min-width: 0;
    padding: 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
body.is-shop .shop-service:hover {
    transform: translateY(-2px); border-color: var(--primary); background: var(--bg-card);
    box-shadow: 0 8px 22px rgba(8, 49, 203, .12);
}
body.is-shop .shop-service:target,
body.is-shop .shop-service.is-anchor-target {
    border-color: var(--primary); background: var(--primary-soft);
    box-shadow: 0 0 0 2px rgba(8, 49, 203, .28), inset 3px 0 0 var(--primary);
}
body.is-shop .shop-service-ico {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    color: var(--primary); background: var(--primary-soft);
}
body.is-shop .shop-service-body { flex: 1; min-width: 0; }
body.is-shop .shop-service-body strong {
    display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.is-shop .shop-service-body > span {
    font-size: 11px; color: var(--text-muted); line-height: 1.45;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body.is-shop .shop-service-go {
    flex-shrink: 0; font-size: 12px; color: var(--primary);
    opacity: 0; transition: opacity .2s;
}
body.is-shop .shop-service:hover .shop-service-go { opacity: 1; }
@media (max-width: 1100px) { body.is-shop .shop-services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px)  { body.is-shop .shop-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  {
    body.is-shop .shop-services { padding: 14px; }
    body.is-shop .shop-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* h5.css 在窄屏把 .search-box-wrap 强制竖排，这里恢复商城搜索框横排 */
@media (max-width: 560px) {
    body.is-shop .shop-search { flex-direction: row; }
    body.is-shop .shop-search .search-ico { padding: 0 10px; }
    body.is-shop .shop-search .btn-primary { padding: 0 16px; }
}
