/* ===================================================================
   前台商品查询样式
   =================================================================== */

:root {
    --primary: #2f7cf6;
    --text: #1f2b3a;
    --muted: #7a889a;
    --border: #e6eaf0;
    --bg: #f5f7fa;
    --brand: #0f7b5c;
    --brand-dark: #0a5c45;
    --sale: #e0453f;
    --radius: 16px;
}

* { box-sizing: border-box; }

body.front-body {
    margin: 0;
    background: var(--bg);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    padding-bottom: env(safe-area-inset-bottom);
}

.front-header {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top);
    box-shadow: 0 6px 20px rgba(15, 123, 92, .18);
}

.front-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.front-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.front-logo .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.front-logo .mark {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex: 0 0 32px;
}

.header-action {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 34px;
}

.front-header-search {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 12px;
}

.front-search {
    display: flex;
    align-items: center;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 4px 4px 4px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.front-search .search-ico { color: #9aa6b5; font-size: 17px; margin-right: 6px; }

.front-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 10px 6px;
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
}

.front-search input::-webkit-search-cancel-button { display: none; }

.front-search button {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
}

.front-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 18px 50px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px; height: 16px;
    background: var(--brand);
    border-radius: 3px;
}

.section-more {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
}

/* 分类 */
.cat-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }

.cat-chip {
    padding: 7px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    color: #56657a;
    text-decoration: none;
    font-size: 13.5px;
    transition: all .15s;
    white-space: nowrap;
}

.cat-chip:hover { border-color: var(--brand); color: var(--brand); }
.cat-chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow .18s, transform .18s;
    box-shadow: 0 2px 10px rgba(31, 43, 58, .04);
}

.product-card:hover {
    box-shadow: 0 8px 22px rgba(31, 43, 58, .10);
    transform: translateY(-2px);
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f4f6fa;
    display: block;
    cursor: zoom-in;
}

.product-img-wrap { position: relative; overflow: hidden; }

.zoom-tip {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(15, 35, 28, .55);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s;
}

.product-card:hover .zoom-tip { opacity: 1; }

@media (hover: none) {
    .zoom-tip { opacity: .85; }
}

.product-img-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccd4de;
    font-size: 40px;
}

.product-info { padding: 11px 12px 13px; }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.mini-tag {
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 7px;
    background: #e9f6f0;
    color: var(--brand);
    font-weight: 600;
}

.mini-tag.ghost {
    background: #f2f5f9;
    color: #7a889a;
    font-weight: 400;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    height: 41px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.product-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--sale);
}

.product-price small { font-size: 12px; font-weight: 400; }

.stock-tag {
    font-size: 12px;
    color: var(--muted);
}

.stock-tag.out { color: #e04b4b; }

.product-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
}

/* 详情 */
.detail-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    box-shadow: 0 4px 18px rgba(31, 43, 58, .05);
}

@media (max-width: 880px) {
    .detail-wrap { grid-template-columns: 1fr; }
}

.detail-img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #f4f6fa;
    cursor: zoom-in;
    display: block;
}

.detail-gallery { position: relative; }

.detail-zoom-tip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 35, 28, .6);
    color: #fff;
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: 10px;
    pointer-events: none;
}

.detail-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.detail-crumb a { color: var(--muted); text-decoration: none; }
.detail-crumb a:hover { color: var(--brand); }

.detail-title { font-size: 22px; font-weight: 800; margin: 0 0 10px; line-height: 1.35; }

.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.detail-grade {
    background: #e9f6f0;
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff5f4, #fff);
    border: 1px solid #f6dedb;
    border-radius: 14px;
}

.detail-price-main {
    font-size: 30px;
    font-weight: 900;
    color: var(--sale);
    line-height: 1;
}

.detail-price-main small { font-size: 15px; font-weight: 700; }

.detail-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 4px 0 16px;
}

.detail-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}

.detail-facts span { color: var(--muted); flex: 0 0 auto; }
.detail-facts b { font-weight: 600; text-align: right; word-break: break-all; }

.stock-line {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

/* 商品标价签（前台详情页预览，样式与后台打印标签一致） */
.sr-label {
    width: 100%;
    max-width: 520px;
    border: 3px solid #e60012;
    background: #fff;
    overflow: hidden;
}

.sr-label .lb-head {
    display: flex;
    align-items: stretch;
    background: #e60012;
    color: #fff;
}

.sr-label .lb-head .t1 {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
}

.sr-label .lb-head .t2 {
    flex: 1;
    background: #fff;
    color: #e60012;
    margin: 5px 5px 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    word-break: break-all;
}

.sr-label .lb-main {
    display: flex;
    border-top: 3px solid #e60012;
}

.sr-label .lb-left {
    flex: 1;
    min-width: 0;
    padding: 8px 10px 10px;
}

.sr-label .lb-right {
    flex: 0 0 42%;
    max-width: 200px;
    background: #ffe600;
    border-left: 3px solid #e60012;
    padding: 8px 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sr-label .lb-row {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-bottom: 7px;
    min-height: 24px;
}

.sr-label .lb-k {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    color: #111;
}

.sr-label .lb-k em {
    display: block;
    font-style: normal;
    font-size: 8px;
    color: #888;
    font-weight: 400;
    letter-spacing: .5px;
}

.sr-label .lb-v {
    flex: 1;
    border-bottom: 2px solid #333;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    padding: 0 2px 1px;
    word-break: break-all;
    line-height: 1.25;
}

.sr-label .lb-bc {
    margin-top: 2px;
    text-align: center;
}

.sr-label .lb-bc svg {
    max-width: 100%;
    height: auto;
}

.sr-label .lb-bc .no {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #111;
    font-weight: 700;
    word-break: break-all;
}

.sr-label .lb-price-h {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    text-align: center;
    line-height: 1.2;
}

.sr-label .lb-price-h em {
    display: block;
    font-style: normal;
    font-size: 9px;
    color: #555;
    font-weight: 400;
}

.sr-label .lb-price {
    text-align: center;
    margin-top: 5px;
    white-space: nowrap;
}

.sr-label .lb-price .sym {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.sr-label .lb-price .int {
    font-size: 44px;
    font-weight: 900;
    color: #111;
    font-family: "Arial Black", Impact, Arial, sans-serif;
    letter-spacing: -2px;
}

.sr-label .lb-price .dec {
    font-size: 24px;
    font-weight: 900;
    color: #111;
    font-family: "Arial Black", Impact, Arial, sans-serif;
}

.front-footer {
    text-align: center;
    padding: 22px;
    color: #9aa6b5;
    font-size: 12.5px;
}

.pager.front-pager a, .pager.front-pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #56657a;
    text-decoration: none;
    font-size: 13.5px;
    margin: 0 3px;
}

.pager.front-pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager.front-pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager.front-pager .disabled { opacity: .45; pointer-events: none; }

.pager.front-pager {
    display: flex; justify-content: center; margin-top: 26px; flex-wrap: wrap;
}

/* ---------- 前台图片放大 ---------- */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 14, 22, .88);
    backdrop-filter: blur(3px);
}

.img-lightbox.show { display: flex; }

.img-lightbox img {
    max-width: 94vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    transform-origin: center center;
    transition: transform .08s linear;
    will-change: transform;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
}

.img-lightbox .lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

.img-lightbox .lb-tools {
    position: absolute;
    bottom: calc(52px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(20, 28, 36, .65);
    padding: 6px;
    border-radius: 22px;
    backdrop-filter: blur(6px);
}

.img-lightbox .lb-tools button {
    min-width: 44px;
    height: 34px;
    border: 0;
    border-radius: 17px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.img-lightbox .lb-tools button:active {
    background: rgba(255, 255, 255, .28);
}

.img-lightbox .lb-close {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.img-lightbox .lb-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(18px + env(safe-area-inset-bottom));
    text-align: center;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    padding: 0 20px;
    word-break: break-all;
}

/* ===================================================================
   商城式首页
   =================================================================== */
.banner-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px rgba(12, 70, 54, .18);
}

.banner-track {
    display: flex;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.banner-slide {
    flex: 0 0 100%;
    min-height: 190px;
    padding: 20px 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-slide::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    right: -70px; bottom: -90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.banner-slide.slide-1 { background: linear-gradient(130deg, #12876a 0%, #0b6b52 60%, #07503d 100%); }
.banner-slide.slide-2 { background: linear-gradient(130deg, #d98324 0%, #c26a12 60%, #9c5209 100%); }
.banner-slide.slide-3 { background: linear-gradient(130deg, #2f6fd0 0%, #2457a8 60%, #1a4080 100%); }

.banner-kicker {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: .85;
    margin-bottom: 6px;
}

.banner-title {
    font-size: 27px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .5px;
}

.banner-sub {
    margin-top: 8px;
    font-size: 12.5px;
    opacity: .85;
}

.banner-btn {
    align-self: flex-start;
    margin-top: 14px;
    background: rgba(255, 255, 255, .95);
    color: #14382e;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.banner-dots {
    position: absolute;
    bottom: 11px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.banner-dots i {
    width: 6px; height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .45);
    transition: width .25s, background .25s;
}

.banner-dots i.on {
    width: 16px;
    background: #fff;
}

.mall-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 14px 6px;
    margin-bottom: 14px;
    box-shadow: 0 3px 14px rgba(31, 43, 58, .05);
}

.mall-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mall-card-head .t { font-size: 15.5px; font-weight: 800; }
.mall-card-head .more { font-size: 12.5px; color: var(--muted); text-decoration: none; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 4px;
    padding-bottom: 10px;
}

.cat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text);
}

.cat-ico {
    width: 46px; height: 46px;
    border-radius: 15px;
    background: linear-gradient(145deg, #eff8f4, #e2f2ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cat-cell:active .cat-ico { transform: scale(.94); }

.cat-name {
    font-size: 11.5px;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4c5b6d;
}

.cat-count {
    font-size: 10px;
    color: #9aa6b5;
    line-height: 1;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding-bottom: 12px;
}

.promise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.promise .ico {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #eff8f4;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.promise b { font-size: 12.5px; font-weight: 700; }
.promise small { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

.empty-mall {
    text-align: center;
    padding: 50px 20px;
    color: #9aa6b5;
    background: #fff;
    border-radius: 16px;
    font-size: 14px;
}

.empty-mall .ico { font-size: 42px; opacity: .3; margin-bottom: 10px; }
.empty-mall small { display: block; font-size: 12.5px; margin-top: 7px; }

/* ===================================================================
   商城分类筛选 / 列表
   =================================================================== */
.filter-bar {
    background: #fff;
    border-radius: 14px;
    padding: 10px 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(31, 43, 58, .04);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 18px;
    background: #f5f7fa;
    color: #56657a;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.filter-chip.active {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

.filter-sub {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
    scrollbar-width: none;
}

.filter-sub::-webkit-scrollbar { display: none; }

.sub-chip {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 14px;
    background: #eef6f2;
    color: #0b6b50;
    font-size: 12.5px;
    text-decoration: none;
    white-space: nowrap;
}

.sub-chip.active {
    background: var(--brand);
    color: #fff;
}

.filter-gap {
    flex: 0 0 1px;
    height: 18px;
    background: var(--border);
    margin: 0 2px;
}

.sort-chip {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 18px;
    color: #7a889a;
    font-size: 12.5px;
    text-decoration: none;
    white-space: nowrap;
}

.sort-chip.active {
    color: var(--brand);
    font-weight: 700;
    background: #eff8f4;
}

.list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 4px 10px;
}

.list-title { font-size: 16px; font-weight: 800; }
.list-count { font-size: 12.5px; color: var(--muted); }

.empty-back {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 18px;
    border-radius: 18px;
    background: var(--brand);
    color: #fff;
    font-size: 13.5px;
    text-decoration: none;
}

.hero-card {
    position: relative;
    background: linear-gradient(135deg, #118a67 0%, #0b6b50 55%, #085440 100%);
    border-radius: 20px;
    padding: 20px 18px 18px;
    color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(11, 107, 80, .25);
}

.hero-card::after {
    content: '';
    position: absolute;
    width: 190px; height: 190px;
    right: -70px; top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.hero-title { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { margin-top: 6px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

.hero-btn {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-btn .ico { font-size: 17px; }
.hero-foot { position: relative; z-index: 1; }

#frontScanHint {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.btn-scan {
    background: #fff;
    color: var(--brand-dark);
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.btn-scan:hover { opacity: .92; }

#frontReader { margin-top: 14px; border-radius: 10px; overflow: hidden; }

/* ===================================================================
   手机端适配
   =================================================================== */

@media (max-width: 640px) {
    body.front-body { font-size: 15px; background: #f3f6f9; }

    .front-header-inner {
        padding: 10px 14px 8px;
        gap: 10px;
    }

    .front-logo { font-size: 16.5px; }
    .front-logo .mark { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
    .front-header-search { padding: 0 14px 10px; }
    .front-search { border-radius: 11px; padding: 3px 3px 3px 11px; }

    .front-search input {
        padding: 10px 4px;
        font-size: 16px; /* 避免 iOS 聚焦时自动放大 */
    }

    .front-search button { padding: 9px 15px; font-size: 14px; }

    .front-main { padding: 14px 12px 36px; }

    .section-title { font-size: 15.5px; margin: 18px 0 11px; }

    .banner-slide { min-height: 176px; padding: 18px 16px; }
    .banner-title { font-size: 25px; }
    .banner-kicker { font-size: 11.5px; }
    .banner-sub { font-size: 12px; }

    .mall-card { border-radius: 15px; padding: 13px 12px 4px; margin-bottom: 12px; }
    .cat-grid { gap: 10px 2px; }
    .cat-ico { width: 44px; height: 44px; font-size: 21px; border-radius: 14px; }
    .cat-name { font-size: 11px; }
    .promise b { font-size: 12px; }
    .promise small { font-size: 10px; }

    /* 分类横滑，不换行 */
    .cat-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -12px 16px;
        padding: 0 12px 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cat-chips::-webkit-scrollbar { display: none; }

    .cat-chip {
        flex: 0 0 auto;
        padding: 9px 16px;
        font-size: 13.5px;
        border-radius: 18px;
    }

    /* 商品两列 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card { border-radius: 14px; }

    .product-info { padding: 9px 10px 11px; }

    .product-tags { gap: 4px; margin-bottom: 5px; }
    .mini-tag { font-size: 10.5px; padding: 3px 6px; border-radius: 6px; }

    .product-name {
        font-size: 13.5px;
        line-height: 1.4;
        height: 38px;
        margin-bottom: 4px;
    }

    .product-meta {
        font-size: 11.5px;
        margin-bottom: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-price { font-size: 17.5px; letter-spacing: -.3px; }

    .stock-tag {
        font-size: 11px;
        white-space: nowrap;
    }

    .zoom-tip { font-size: 10.5px; padding: 3px 7px; right: 6px; bottom: 6px; }

    /* 首页扫码主视觉 */
    .hero-card { padding: 18px 16px 16px; border-radius: 18px; margin-bottom: 16px; }
    .hero-title { font-size: 19px; }
    .hero-sub { font-size: 12.5px; }
    .hero-btn { padding: 13px 18px; font-size: 15.5px; border-radius: 12px; }

    /* 商品详情竖排 */
    .detail-wrap {
        padding: 12px;
        gap: 14px;
        border-radius: 16px;
        border: 0;
    }

    .detail-gallery { margin: -12px -12px 0; }
    .detail-img { border-radius: 16px 16px 0 0; border: 0; }
    .detail-zoom-tip { right: 12px; bottom: 12px; }

    .detail-title { font-size: 19px; margin-bottom: 8px; }
    .detail-crumb { font-size: 12px; }

    .detail-price-row { padding: 11px 12px; border-radius: 13px; }
    .detail-price-main { font-size: 27px; }

    .detail-facts { grid-template-columns: 1fr; gap: 0; }

    .sr-label .lb-head .t1 { font-size: 16px; letter-spacing: 2px; padding: 5px 9px; }
    .sr-label .lb-head .t2 { font-size: 15px; }
    .sr-label .lb-right { flex: 0 0 40%; max-width: none; }
    .sr-label .lb-price .int { font-size: 34px; }
    .sr-label .lb-price .dec { font-size: 19px; }
    .sr-label .lb-price .sym { font-size: 16px; }

    .pager.front-pager a, .pager.front-pager span {
        min-width: 40px;
        height: 40px;
        font-size: 14.5px;
        border-radius: 10px;
    }

    .front-footer {
        padding: 20px 14px calc(24px + env(safe-area-inset-bottom));
        font-size: 11.5px;
        line-height: 1.7;
    }
}

/* 触摸设备：去掉 hover 位移，避免点按时跳动 */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-card:active {
        background: #f7f9fc;
    }
}
