/* 达望鞋业 · 商品资料站（框架复刻搜鞋网店铺页） */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #f4f4f4;
  color: #333;
  font: 12px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.stipulate { width: 1280px; margin: 0 auto; }
.fl { float: left; }
.fr { float: right; }
.cl { clear: both; }
.hide { display: none !important; }

/* ---------- 顶部 ---------- */
.asx-header { background: #fff; }
.asx-header .top { height: 32px; border-bottom: 1px solid #f2f2f2; }
.asx-header .top .stipulate { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.welcome { color: #999; }
.welcome .hi { color: #e60039; }
.welcome em { font-style: normal; color: #666; margin-left: 10px; }
.user-menu span { color: #999; margin-left: 16px; cursor: default; }
.user-menu span:first-child { margin-left: 0; }

.asx-header .search { height: 80px; }
.asx-header .search .stipulate { position: relative; height: 80px; display: flex; align-items: center; }
.merchant-logo { padding-top: 12px; }
.merchant-logo span { display: block; font-size: 34px; font-weight: 700; color: #e60039; letter-spacing: 2px; line-height: 1.15; }
.merchant-logo em { display: block; font-style: normal; color: #999; font-size: 11px; margin-top: 2px; }
.medal-list { margin-left: 26px; align-self: flex-end; margin-bottom: 16px; }
.medal-good { font-style: normal; display: block; width: 73px; height: 56px; border: 1px solid #f0c9d5; border-radius: 3px; color: #e60039; font-size: 11px; text-align: center; line-height: 56px; background: #fff8fa; }
.search-box { position: absolute; right: 0; top: 21px; width: 602px; height: 38px; display: flex; border: 1px solid #d9d9d9; background: #fff; }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font-size: 12px; color: #333; }
.search-input::placeholder { color: #bbb; }
.search-btn-txt { width: 100px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; cursor: pointer; user-select: none; background: #e60039; }

.merchant-menu { height: 36px; background: #1c1c1c; }
.merchant-menu dl { display: flex; height: 36px; margin: 0; padding: 0; }
.merchant-menu dd { margin: 0; padding: 0; }
.merchant-menu dd a { display: block; height: 36px; line-height: 36px; padding: 0 18px; color: #d8d8d8; font-size: 12px; }
.merchant-menu dd a:hover { color: #fff; background: #333; }
.merchant-menu dd.actived a { background: #e60039; color: #fff; }

/* ---------- 主体 ---------- */
.asx-content { padding: 10px 0 40px; }
.asx-layout { position: relative; }
.shop-param { height: 52px; background: #fff; display: flex; align-items: center; margin-bottom: 10px; overflow: hidden; font-size: 14px; }
.shop-param .cur { height: 52px; line-height: 52px; padding: 0 22px; cursor: pointer; white-space: nowrap; }
.shop-param .cur:hover { color: #e60039; }
.shop-param .cur.actived { background: #e60039; color: #fff; }
.shop-param .range { padding: 0 12px; color: #666; white-space: nowrap; }
.price-input { width: 90px; height: 30px; border: 1px solid #ddd; padding: 0 8px; outline: 0; font-size: 13px; }
.price-btn { display: inline-block; background: #e60039; color: #fff; font-size: 13px; padding: 6px 16px; margin-left: 6px; cursor: pointer; }
.pager { margin-left: auto; padding-right: 12px; color: #999; white-space: nowrap; font-size: 14px; }
.pager b { color: #e60039; }
.pager i { font-style: normal; display: inline-block; width: 26px; height: 26px; line-height: 24px; text-align: center; border: 1px solid #ddd; margin-left: 6px; cursor: pointer; }
.pager i:hover { border-color: #e60039; color: #e60039; }

.asx-main { background: #fff; min-height: 300px; padding: 12px; }
.goods-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 10px; max-width: 1256px; }
.goods-card { position: relative; border: 1px solid #eee; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.goods-card:hover { border-color: #e60039; box-shadow: 0 2px 10px rgba(230,0,57,.12); }
.goods-card .photo { position: relative; aspect-ratio: 1 / 1; min-height: 148px; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.goods-card .photo img { width: 100%; height: 100%; object-fit: contain; }
.goods-card .noimg { color: #ccc; font-size: 12px; text-align: center; }
.goods-card .card-meta { display: flex; gap: 8px; padding: 0 6px 7px; color: #888; font-size: 11px; white-space: nowrap; }
.goods-card .card-meta span { overflow: hidden; text-overflow: ellipsis; }
.goods-card .card-name { height: 21px; line-height: 21px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #555; font-size: 11px; }
.goods-card .card-price { padding: 0 6px 4px; color: #e60039; font-size: 13px; font-weight: 700; }
.goods-card .card-price.unset { color: #999; font-size: 11px; font-weight: 400; }
.empty { text-align: center; color: #999; padding: 80px 0; font-size: 14px; }

.asx-home-tools { position: fixed; right: 8px; top: 284px; width: 55px; background: #fff; border: 1px solid #eee; z-index: 30; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.asx-home-tools span { display: block; height: 75px; border-bottom: 1px solid #eee; text-align: center; padding-top: 10px; cursor: default; }
.asx-home-tools span:last-child { border-bottom: 0; }
.asx-home-tools i { display: block; font-style: normal; font-size: 20px; color: #666; line-height: 30px; }
.asx-home-tools em { display: block; font-style: normal; color: #888; }

.asx-bottom { background: #fff; border-top: 1px solid #eee; }
.asx-quick-menu ul, .asx-more-link ul { list-style: none; margin: 0; padding: 0; display: flex; }
.asx-quick-menu { height: 40px; border-bottom: 1px solid #eee; }
.asx-quick-menu li { width: 320px; height: 38px; line-height: 38px; text-align: center; color: #666; border-right: 1px solid #eee; }
.asx-more-link { padding: 18px 0; }
.asx-more-link li { width: 179px; margin-right: 20px; color: #999; font-size: 11px; line-height: 22px; }
.asx-more-link li b { display: block; color: #555; font-size: 13px; margin-bottom: 4px; }
.asx-footer { height: 36px; line-height: 36px; text-align: center; color: #999; border-top: 1px solid #eee; font-size: 11px; }
.asx-footer a { margin: 0 8px; }

/* ---------- 详情页 ---------- */
.row-top { display: grid; grid-template-columns: 442px minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.meri-photo { position: relative; z-index: 20; width: 442px; min-height: 500px; background: #fff; border: 1px solid #eee; padding: 10px; }
.meri-right { position: relative; z-index: 1; }
.photo-main { position: relative; width: 100%; height: 390px; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zoom-lens { position: absolute; display: none; background: rgba(0,0,0,.2); opacity: .5; pointer-events: none; z-index: 5; }
.zoom-panel { position: absolute; display: none; overflow: hidden; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 18px rgba(0,0,0,.15); z-index: 60; }
.zoom-panel img { position: absolute; display: block; max-width: none; max-height: none; }
.photo-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-main .colour-tag { position: absolute; left: 0; top: 0; background: #fff; border: 1px solid #eee; padding: 4px 7px; font-size: 10px; color: #666; }
.photo-icons { display: flex; justify-content: space-around; padding: 8px 0 4px; color: #bbb; font-size: 10px; text-align: center; }
.photo-icons b { display: block; font-size: 18px; color: #aaa; font-weight: 400; }
.thumbs { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.thumbs .arrow { width: 18px; text-align: center; color: #bbb; font-size: 16px; cursor: default; }
.thumbs img { width: 68px; height: 68px; border: 1px solid #ddd; object-fit: cover; cursor: pointer; background: #fafafa; }
.thumbs img.sel { border: 2px solid #e60039; }
.thumbs .none { color: #ccc; font-size: 11px; }

.meri-tabs { min-height: 420px; height: 100%; background: #fff; border: 1px solid #eee; padding: 18px 22px; }
.tabbar { display: flex; height: 40px; border-bottom: 2px solid #ff4d7d; padding-left: 10px; }
.tabbar div { min-width: 88px; padding: 0 14px; height: 40px; line-height: 40px; text-align: center; color: #666; cursor: pointer; font-size: 12px; }
.tabbar div.on { color: #e60039; background: #fff5f7; font-weight: 700; }
.tabpanel { display: none; padding: 18px 22px; }
.tabpanel.on { display: block; }
.shop-title h2 { margin: 0 0 16px; font-size: 18px; line-height: 1.5; color: #222; }
.shop-details p { margin: 0 0 12px; line-height: 28px; }
.shop-details .k { display: inline-block; width: 48px; text-align: left; margin-right: 8px; color: #e60039; vertical-align: top; }
.shop-details #dColors, .shop-details #dSizes { display: inline-block; vertical-align: top; max-width: calc(100% - 56px); }
.shop-details u { text-decoration: none; color: #333; }
.meri-price { color: #e60039; font-size: 22px; font-weight: 700; }
.meri-new { display: inline-block; background: #4caf50; color: #fff; padding: 0 6px; margin-left: 8px; font-size: 10px; line-height: 18px; }
.chip { display: inline-block; border: 1px solid #ddd; background: #fff; padding: 3px 9px; margin: 0 5px 5px 0; cursor: pointer; color: #555; }
.chip:hover, .chip.on { border-color: #e60039; color: #e60039; background: #fff7f9; }
.shop-menu { margin-top: 18px; margin-left: 56px; display: flex; gap: 12px; }
.btn { height: 36px; min-width: 130px; padding: 0 22px; border: 1px solid #e60039; background: #fff; color: #e60039; font-size: 13px; cursor: pointer; }
.btn-primary { background: #e60039; color: #fff; }
.btn:hover { opacity: .88; }
.tab-note { color: #999; line-height: 24px; }
.tab-note b { color: #555; }
.meri-right-da { height: 70px; background: linear-gradient(90deg,#e60039,#ff7a9c); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 10px; font-size: 22px; font-weight: 700; letter-spacing: 2px; }

.row-bottom { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.shop-left-box { background: #fff; border: 1px solid #eee; margin-bottom: 10px; }
.slb-title { height: 36px; line-height: 36px; padding: 0 12px; background: #fafafa; border-bottom: 1px solid #eee; color: #e60039; font-weight: 700; }
.slb-info { padding: 10px 12px; }
.slb-info p { margin: 0 0 6px; color: #666; word-break: break-all; }
.slb-list { list-style: none; margin: 0; padding: 6px 12px; }
.slb-list li { padding: 6px 0; border-bottom: 1px dashed #eee; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.slb-list li:hover { color: #e60039; }
.shop-info-da { height: 64px; background: #fff; border: 1px solid #eee; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #666; }
.shop-info-da b { color: #e60039; font-size: 16px; }
.shop-info-tags { background: #fff; border: 1px solid #eee; }
.latest-box .goods-grid { padding: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.latest-box .goods-card .photo { min-height: 0; }
.latest-box .goods-card .card-name { height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
.latest-box .goods-card .card-price { font-size: 11px; padding: 0 4px 2px; }
.latest-box .goods-card .card-meta { font-size: 9px; gap: 4px; padding: 0 4px 5px; }
.param-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.param-table th, .param-table td { border: 1px solid #eee; padding: 8px 12px; text-align: left; font-size: 12px; line-height: 20px; }
.param-table th { width: 110px; background: #fafafa; color: #888; font-weight: 400; }
.detail-empty { color: #999; padding: 30px 0; }

#toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%,-50%); background: rgba(0,0,0,.78); color: #fff; padding: 10px 20px; border-radius: 4px; font-size: 13px; z-index: 999; display: none; }

/* ---------- 图包预览弹窗（素材空间平铺） ---------- */
.pkg-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 24px; overscroll-behavior: contain; }
.pkg-box { width: 1080px; max-width: 100%; height: 88vh; max-height: 88vh; background: #fff; display: flex; flex-direction: column; box-shadow: 0 8px 40px rgba(0,0,0,.25); }
.pkg-head { height: 46px; flex: 0 0 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #eee; }
.pkg-head b { font-size: 15px; color: #e60039; }
.pkg-close { cursor: pointer; color: #999; user-select: none; font-size: 13px; }
.pkg-close:hover { color: #e60039; }
.pkg-toolbar { flex: 0 0 36px; display: flex; align-items: center; gap: 24px; padding: 0 16px; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #999; }
.pkg-toolbar b { color: #e60039; }
.pkg-sort { cursor: pointer; user-select: none; }
.pkg-sort:hover, .pkg-sort.on { color: #444; }
.pkg-total { margin-left: auto; }
.pkg-crumb { flex: 0 0 32px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #888; }
.pkg-crumb span { cursor: pointer; }
.pkg-crumb span:hover { color: #e60039; }
.pkg-crumb i { font-style: normal; color: #ccc; }
.pkg-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; }
.pkg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 6px; align-content: start; }
.pkg-tile { position: relative; min-width: 0; text-align: center; padding: 16px 4px 6px; border: 1px solid transparent; cursor: pointer; user-select: none; }
.pkg-tile:hover { border-color: #f5d7e0; background: #fff9fb; }
.pkg-tile.checked { border-color: #e60039; background: #fff5f7; }
.pkg-cb { position: absolute; left: 8px; top: 6px; width: 14px; height: 14px; margin: 0; accent-color: #e60039; cursor: pointer; }
.pkg-thumb { height: 74px; display: flex; align-items: center; justify-content: center; }
.pkg-fimg { max-width: 92px; max-height: 72px; object-fit: contain; background: #fff; }
.pkg-fico { width: 66px; height: 56px; display: block; }
.pkg-fother { display: flex; align-items: center; justify-content: center; background: #f4f4f4; color: #bbb; font-size: 32px; }
.pkg-tname { margin-top: 4px; font-size: 12px; color: #444; line-height: 16px; min-height: 32px; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-grid .empty { grid-column: 1 / -1; color: #aaa; padding: 30px 0; }

/* ---------- 图片灯箱（透明背景，不做黑边） ---------- */
.lb-modal { position: fixed; inset: 0; z-index: 950; background: transparent; display: flex; flex-direction: column; overscroll-behavior: contain; pointer-events: none; }
.lb-bar { position: absolute; left: 16px; top: 12px; z-index: 2; height: 32px; display: flex; align-items: center; gap: 14px; padding: 0 12px; color: #333; font-size: 13px; background: rgba(255,255,255,.94); border: 1px solid rgba(0,0,0,.06); border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.16); pointer-events: auto; }
.lb-bar b { font-weight: 400; max-width: 46vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-bar span { color: #888; }
.lb-close { margin-left: 4px; cursor: pointer; font-size: 15px; color: #999; line-height: 1; }
.lb-close:hover { color: #e60039; }
.lb-stage { width: 58%; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 60px 24px 24px; text-align: center; background: transparent; pointer-events: auto; }
.lb-stage img { display: block; margin: 0 auto; max-width: 100%; height: auto; background: #fff; box-shadow: 0 10px 50px rgba(0,0,0,.32); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; line-height: 42px; text-align: center; font-size: 30px; color: #333; background: rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,.18); cursor: pointer; user-select: none; pointer-events: auto; }
.lb-nav:hover { color: #e60039; background: #fff; }
.lb-prev { left: 12px; }
.lb-next { left: calc(58% - 58px); right: auto; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* 图片预览（Viewer.js，聚水潭素材空间同款） */
#pkgViewerClose { position: fixed; right: 20px; top: 16px; z-index: 2100; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; cursor: pointer; user-select: none; }
#pkgViewerClose:hover { background: rgba(0,0,0,.8); }
.viewer-container { z-index: 2015; }
.viewer-toolbar > ul > li { background-color: rgba(0,0,0,.5); }
.viewer-title { color: #fff; }
/* 聚水潭素材空间预览：底部缩略图尺寸 */
.viewer-list { height: 84px; }
.viewer-list > li { width: 64px; height: 84px; }
.viewer-navbar { background-color: rgba(0,0,0,.62); }
.viewer-toolbar > ul > li { width: 28px; height: 28px; }

/* 右侧悬浮工具（复刻搜鞋网：首页 / 咨询 / 二维码） */
.dw-tools { position: fixed; right: 0; top: 30%; z-index: 800; width: 55px; background: #fff; border-radius: 12px 0 0 12px; box-shadow: -2px 0 12px rgba(0,0,0,.06); }
.dw-tool { position: relative; display: block; width: 100%; height: 75px; padding-top: 10px; box-sizing: border-box; text-align: center; cursor: pointer; transition: background .2s, border-radius .2s; }
.dw-tool > a { display: block; color: inherit; text-decoration: none; }
.dw-tool em { display: block; color: #333; font-style: normal; font-size: 12px; line-height: 20px; }
.dw-tool:hover { background: #e90945; border-radius: 8px 0 0 8px; }
.dw-tool:hover em { color: #fff; }
.dw-ico { display: inline-block; width: 32px; height: 32px; background-repeat: no-repeat; background-position: 50% 50%; background-size: 100%; }
.dw-ico.i-home { width: 26px; background-image: url(tools/home.png); }
.dw-ico.i-tel { background-image: url(tools/tel.png); }
.dw-ico.i-qr { background-image: url(tools/qr.png); }
.dw-tool:hover .i-home { background-image: url(tools/home_w.png); }
.dw-tool:hover .i-tel { background-image: url(tools/tel_w.png); }
.dw-tool:hover .i-qr { background-image: url(tools/qr_w.png); }
.dw-pop { display: none; position: absolute; right: 58px; top: 0; z-index: 801; color: #333; text-align: left; box-sizing: border-box; }
.dw-tool:hover .dw-pop { display: block; }
.dw-consult { width: 280px; min-height: 60px; padding: 4px 0; background: #fff; border-radius: 4px; box-shadow: 0 0 1px #999, 0 4px 18px rgba(0,0,0,.12); }
.dw-pt { padding: 2px 10px 6px; margin-bottom: 4px; border-bottom: 1px solid #e32849; color: #333; font-size: 13px; font-weight: 600; line-height: 25px; }
.dw-g { padding: 5px 12px 7px; color: #666; font-size: 13px; line-height: 22px; border-bottom: 1px dashed #eee; }
.dw-g:last-child { border-bottom: 0; }
.dw-g b { color: #e32849; font-weight: 600; }
.dw-qr { width: 232px; padding: 14px 14px 12px; background: #fff; border-radius: 4px; box-shadow: 0 0 1px #999, 0 4px 18px rgba(0,0,0,.12); text-align: center; }
.dw-qr img { display: block; width: 190px; height: 190px; margin: 0 auto 6px; object-fit: contain; background: #fff; }
.dw-qr u { display: block; color: #333; font-size: 14px; font-weight: 600; line-height: 24px; text-decoration: none; }
.dw-qr p { margin: 0; color: #999; font-size: 12px; line-height: 20px; }

/* 聚水潭价格未设置 */
.meri-price.price-unset { color: #999; font-size: 14px; font-weight: 400; }
