/** * 商城前台样式（商品详情页 + 购物车 + 公共组件） * * 说明： * - 本文件自包含：商城模板沿用的工具类（flex/badg/but/text-ellipsis 等） *   全部在此定义，并通过 :where(作用域) 限定在商城容器内，避免污染主题其它页面 * - 作用域容器：#shop（详情页/购物车页主体）、.shop-modal-wrap（弹窗）、 *   .shop-toast-box（提示）、.cart-add-animate（加购动画） * - 颜色变量优先复用主题 --knn-* 变量，暗色模式跟随 body.dark-mode */ /* ============================================================ * 1. 变量 * ============================================================ */ #shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate { --main-color: var(--knn-text-color, #333); --main-bg-color: var(--knn-bg-color-card, #ffffff); --body-bg-color: var(--knn-bg-color, #f3f3f3); --main-border-color: #efefef; --muted-border-color: #f5f6f8; --muted-color: #999999; --muted-2-color: #777777; --muted-3-color: #aaaaaa; --muted-4-color: #cccccc; --focus-color: var(--knn-color-primary, #007aff); --focus-color-opacity6: rgba(0, 122, 255, 0.6); --focus-color-opacity1: rgba(0, 122, 255, 0.1); --focus-color-opacity05: rgba(0, 122, 255, 0.05); --focus-shadow-color: rgba(0, 122, 255, 0.4); --main-radius: 8px; --main-shadow: rgba(0, 0, 0, 0.04); color: var(--main-color); } body.dark-mode #shop, body.dark-mode .shop-modal-wrap, body.dark-mode .shop-toast-box, body.dark-mode .cart-add-animate { --main-color: #d7d7d7; --main-bg-color: #1e1e1e; --body-bg-color: #161616; --main-border-color: #2c2c2c; --muted-border-color: #262626; --muted-color: #8a8a8a; --muted-2-color: #9a9a9a; --muted-3-color: #666666; --muted-4-color: #4d4d4d; --focus-color-opacity05: rgba(0, 122, 255, 0.12); --main-shadow: rgba(0, 0, 0, 0.3); } /* ============================================================ * 2. Vue 挂载 * ============================================================ */ [v-cloak] { opacity: 0; } .vue-mount { transition: opacity 0.4s; } /* ============================================================ * 3. 作用域工具类（:where 保持零优先级，便于组件覆盖） * ============================================================ */ /* --- 布局 --- */ :where(#shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate) .flex, .shop-modal-wrap.flex, .cart-add-animate.flex { display: flex; } :where(#shop, .shop-modal-wrap) .inline-flex { display: inline-flex; } :where(#shop, .shop-modal-wrap, .cart-add-animate) .ac, .shop-modal-wrap.ac { align-items: center; } :where(#shop, .shop-modal-wrap, .cart-add-animate) .jc, .shop-modal-wrap.jc, .cart-add-animate.jc { justify-content: center; } :where(#shop, .shop-modal-wrap) .jsb { justify-content: var(--knn-justify, space-between); } :where(#shop, .shop-modal-wrap) .xx { flex-direction: column; } :where(#shop, .shop-modal-wrap) .flex1 { flex: 1; min-width: 0; } :where(#shop, .shop-modal-wrap) .relative { position: relative; } .cart-add-animate.fixed { position: fixed; } :where(#shop, .shop-modal-wrap) .abs-center { position: absolute; } :where(#shop, .shop-modal-wrap) .abs-center.right-top { top: 0; right: 0; } :where(#shop, .shop-modal-wrap) .pointer { cursor: pointer; } :where(#shop, .shop-modal-wrap) .hide { display: none !important; } /* --- 文本 --- */ :where(#shop, .shop-modal-wrap) .text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } :where(#shop, .shop-modal-wrap) .text-ellipsis-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } :where(#shop, .shop-modal-wrap) .ellipsis-box { overflow: hidden; max-width: 100%; } :where(#shop, .shop-modal-wrap) .font-bold { font-weight: bold; } :where(#shop, .shop-modal-wrap) .em09 { font-size: 0.9em; } :where(#shop, .shop-modal-wrap) .em12 { font-size: 1.2em; } :where(#shop, .shop-modal-wrap) .em14 { font-size: 1.4em; } :where(#shop, .shop-modal-wrap) .em2x { font-size: 2em; } :where(#shop, .shop-modal-wrap) .padding-w10 { padding-left: 10px; padding-right: 10px; } :where(#shop, .shop-modal-wrap) .px12 { font-size: 12px; } :where(#shop, .shop-modal-wrap) .opacity8 { opacity: 0.8; } /* --- 颜色 --- */ :where(#shop, .shop-modal-wrap) .muted-color { color: var(--muted-color); } :where(#shop, .shop-modal-wrap) .muted-2-color { color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); } :where(#shop, .shop-modal-wrap) .muted-3-color { color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); } :where(#shop, .shop-modal-wrap) .focus-color { color: var(--focus-color); } :where(#shop, .shop-modal-wrap) .c-red { --this-color: #fc4545; color: #fc4545; } :where(#shop, .shop-modal-wrap) .c-yellow { --this-color: #ff9600; color: #ff9600; } :where(#shop, .shop-modal-wrap) .c-green { --this-color: #3cbc74; color: #3cbc74; } :where(#shop, .shop-modal-wrap) .c-blue { --this-color: #007aff; color: #007aff; } :where(#shop, .shop-modal-wrap) .c-white { --this-color: #ffffff; color: #ffffff; } /* --- 间距 --- */ :where(#shop, .shop-modal-wrap) .mr3 { margin-right: 3px; } :where(#shop, .shop-modal-wrap) .mr6 { margin-right: 6px; } :where(#shop, .shop-modal-wrap) .mr10 { margin-right: 10px; } :where(#shop, .shop-modal-wrap) .ml3 { margin-left: 3px; } :where(#shop, .shop-modal-wrap) .ml6 { margin-left: 6px; } :where(#shop, .shop-modal-wrap) .ml10 { margin-left: 10px; } :where(#shop, .shop-modal-wrap) .mt3 { margin-top: 3px; } :where(#shop, .shop-modal-wrap) .mt6 { margin-top: 6px; } :where(#shop, .shop-modal-wrap) .mt10 { margin-top: 10px; } :where(#shop, .shop-modal-wrap) .mt20 { margin-top: 20px; } :where(#shop, .shop-modal-wrap) .mb6 { margin-bottom: 6px; } :where(#shop, .shop-modal-wrap) .mb10 { margin-bottom: 10px; } :where(#shop, .shop-modal-wrap) .mb20 { margin-bottom: 20px; } :where(#shop, .shop-modal-wrap) .p2-10 { padding: 2px 10px; } /* --- 列表 --- */ :where(#shop, .shop-modal-wrap) .list-inline { padding-left: 0; margin: 0; list-style: none; } :where(#shop, .shop-modal-wrap) .list-inline > li { display: inline-block; } /* --- 滚动 --- */ :where(#shop, .shop-modal-wrap) .scroll-x { overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; } :where(#shop, .shop-modal-wrap) .scroll-y { overflow-y: auto; -webkit-overflow-scrolling: touch; } :where(#shop, .shop-modal-wrap) .no-scrollbar { scrollbar-width: none; } :where(#shop, .shop-modal-wrap) .no-scrollbar::-webkit-scrollbar { display: none; } :where(#shop, .shop-modal-wrap) .mini-scrollbar { scrollbar-width: thin; } :where(#shop, .shop-modal-wrap) .mini-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; } :where(#shop, .shop-modal-wrap) .mini-scrollbar::-webkit-scrollbar-thumb { background: var(--muted-4-color); border-radius: .25rem; } :where(#shop, .shop-modal-wrap) .max-vh5 { max-height: 50vh; } /* --- 图片 --- */ :where(#shop, .shop-modal-wrap, .cart-add-animate) .fit-cover { width: 100%; height: 100%; object-fit: cover; } :where(#shop, .shop-modal-wrap) .avatar-img { --this-size: 32px; position: relative; display: inline-block; width: var(--this-size); height: var(--this-size); border-radius: 999px; overflow: hidden; flex-shrink: 0; } /* 头像容器内的 img（get_avatar 输出带 width/height 属性，必须强制约束到容器尺寸） */ :where(#shop, .shop-modal-wrap) .avatar-img img, :where(#shop, .shop-modal-wrap) .avatar-img .avatar { display: block; width: 100%; height: 100%; border-radius: 999px; object-fit: cover; } /* --- 响应式显隐 --- */ @media (min-width: 768px) { :where(#shop, .shop-modal-wrap) .show-sm, .shop-modal-wrap .touch-close.show-sm { display: none !important; } } @media (max-width: 767px) { :where(#shop, .shop-modal-wrap) .hide-sm { display: none !important; } :where(#shop, .shop-modal-wrap) .px12-sm { font-size: 12px; } } /* ============================================================ * 3.5 布局底座（模板沿用的全局布局类，主题体系里没有，在商城作用域内补齐） * ============================================================ */ /* 盒模型统一：商城组件均按 border-box 设计，主题没有全局 box-sizing 规则—— * 否则百分比宽度/min-width 按 content-box 计算，padding 额外撞大宽度（规格按钮被撑爆换行） */ :where(#shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate), :where(#shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate) *, :where(#shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate) *::before, :where(#shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate) *::after { box-sizing: border-box; } /* 页面容器：对齐主题 .main-container（≥768px 定宽 1200px 居中，上下留白与主题一致） */ #shop .container { position: relative; width: 100%; margin: 8px auto; padding: 0 8px; box-sizing: border-box; } @media (min-width: 768px) { #shop .container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 15px; } } /* 内容区 + 侧栏浮动布局（content_layout = side 时） */ #shop .content-wrap { float: left; width: 100%; } #shop .container::before, #shop .container::after { content: ' '; display: table; } #shop .container::after { clear: both; } @media (min-width: 992px) { #shop .sidebar { float: left; width: 311px; margin-left: -311px; position: relative; } #shop .content-wrap + .sidebar ~ *, #shop .sidebar + * { clear: both; } #shop .content-wrap:not(:last-child) .content-layout { margin-right: calc(311px + 15px); } } @media (max-width: 991px) { #shop .sidebar { float: none; width: 100%; } } /* 面包屑 */ #shop .breadcrumb { list-style: none; background: transparent; padding: 0 8px; margin: 0 0 12px; opacity: 0.6; } #shop .breadcrumb > li { display: inline-block; } #shop .breadcrumb > li + li::before { content: '/\00a0'; color: #ccc; padding: 0 0 0 6px; opacity: 0.6; } #shop .breadcrumb a { color: inherit; } /* SVG 图标基础尺寸（主题无全局 svg 规则，图标会撑到浏览器默认 300x150） */ :where(#shop, .shop-modal-wrap, .shop-toast-box, .cart-add-animate) svg { width: 1em; height: 1em; vertical-align: -0.15em; fill: currentColor; overflow: hidden; } /* 组合按钮 */ :where(#shop, .shop-modal-wrap) .but-group { display: inline-flex; } :where(#shop, .shop-modal-wrap) .but-group > .but { border-radius: 0; margin: 0; } :where(#shop, .shop-modal-wrap) .but-group > .but:first-of-type { border-radius: var(--main-radius) 0 0 var(--main-radius); } :where(#shop, .shop-modal-wrap) .but-group > .but:last-of-type { border-radius: 0 var(--main-radius) var(--main-radius) 0; } /* knn 中 .but-group 声明晚于 .flex，需显式让 .but-group.flex 为 flex （否则弹窗内两个 btn-block 按钮被 inline-flex 容器挤缩换行） */ #shop .but-group.flex, .shop-modal-wrap .but-group.flex { display: flex; } /* 其余布局/文本工具类 */ :where(#shop, .shop-modal-wrap) .overflow-hidden { overflow: hidden; position: relative; } :where(#shop, .shop-modal-wrap) .text-left { text-align: left; } :where(#shop, .shop-modal-wrap) .flex .grow1 { flex-grow: 1; } :where(#shop, .shop-modal-wrap) .box-body { padding: 15px; } :where(#shop, .shop-modal-wrap) .box-body.notop { padding-top: 0; } /* 价格货币符号 */ :where(#shop, .shop-modal-wrap) .pay-mark { font-size: 0.6em; margin-right: 2px; } :where(#shop, .shop-modal-wrap) .pay-mark.px12 { font-size: 12px; } /* 积分商品价格符号：彩色金币图标，随 .pay-mark 尺寸并略放大保证可辨识 */ :where(#shop, .shop-modal-wrap) .pay-mark .points-icon, :where(.knn-user-orders) .pay-mark .points-icon { width: 1.2em; height: 1.2em; vertical-align: -0.22em; margin-right: 1px; } /* 骨架屏占位尺寸 */ #shop .placeholder.k2 { height: 20px; } #shop .placeholder.s1 { width: 70px; height: 15px; display: inline-block; } /* 商品正文排版 */ #shop .wp-posts-content { line-height: 2; font-size: 16px; min-height: 90px; } /* ============================================================ * 4. 卡片 / 容器 * ============================================================ */ #shop .knn-widget, .shop-modal-wrap .knn-widget { background-color: var(--main-bg-color); border-radius: calc(var(--main-radius) + 0px); padding: 20px; margin-bottom: 20px; box-shadow: 0 8px 22px var(--main-shadow); } /* :where 降为零特异性：重点活动价格条 muted-box 与 jb-* 颜色类组合时，颜色类背景需胜出 */ :where(#shop, .shop-modal-wrap) .muted-box { background-color: var(--muted-border-color); border-radius: calc(var(--main-radius) + 0px); padding: 12px 15px; } #shop .title-theme, .shop-modal-wrap .title-theme { font-size: 16px; font-weight: 600; line-height: 1.4; } /* 弹窗标题（底部分隔线，标题文字由内层 .flex.jc 居中；注意不是左侧竖条样式） */ #shop .border-title, .shop-modal-wrap .border-title { border-block-end: 1px solid var(--main-border-color); padding-bottom: 12px; margin-bottom: 10px; } /* 参数/信息两列行（左标签右对齐 20% 列，右值左对齐；商品参数弹窗等沿用） */ :where(#shop, .shop-modal-wrap) .author-set-left, :where(#shop, .shop-modal-wrap) .author-set-right { display: inline-block; vertical-align: top; } :where(#shop, .shop-modal-wrap) .author-set-left { width: 20%; margin-right: 20px; text-align: right; padding-top: 6px; color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); } :where(#shop, .shop-modal-wrap) .author-set-right { width: calc(80% - 25px); overflow: hidden; } /* ============================================================ * 5. 徽章 badg * ============================================================ */ /* :where 降为零特异性：后台 palette 存的 b-*、jb- 系列颜色类（0,1,0）需能覆盖默认变量 */ :where(#shop, .shop-modal-wrap) .badg { --this-color: #ffffff; --this-bg: var(--focus-color); --this-border: transparent; display: inline-block; color: var(--this-color); background: var(--this-bg); border: 1px solid var(--this-border); border-radius: .25rem; padding: 2px 8px; font-size: 12px; line-height: 1.5; vertical-align: middle; white-space: nowrap; } #shop .badg.badg-sm, .shop-modal-wrap .badg.badg-sm { padding: 1px 5px; font-size: 11px; } #shop .badg.hollow, .shop-modal-wrap .badg.hollow { background: transparent; --this-border: currentColor; color: var(--this-color, var(--muted-2-color)); } #shop .badg.c-red, .shop-modal-wrap .badg.c-red { --this-bg: #fc4545; color: #fff; } #shop .badg.c-yellow, .shop-modal-wrap .badg.c-yellow { --this-bg: #ff9600; color: #fff; } #shop .badg.c-green, .shop-modal-wrap .badg.c-green { --this-bg: #3cbc74; color: #fff; } /* 发货内容（卡密/卡号/邀请码）：无背景纯蓝字。 卡密 HTML 发货时已存库（带内联样式 + .badg.c-blue 类），且 L2973 的 .badg.c-blue 实心蓝底规则在后会压过淡底规则，故用 !important 覆盖存量订单 */ .shop-modal-wrap .break-all .badg { background: none !important; border: 0; padding: 0 !important; color: #2997f7 !important; word-break: break-all; white-space: normal; cursor: pointer; } #shop .badg.hollow.c-red, .shop-modal-wrap .badg.hollow.c-red { background: transparent; color: #fc4545; border-color: rgba(252, 69, 69, 0.5); } #shop .badg.hollow.c-yellow, .shop-modal-wrap .badg.hollow.c-yellow { background: transparent; color: #ff9600; border-color: rgba(255, 150, 0, 0.5); } /* ============================================================ * 5.1 通用颜色工具类 b- / jb- 系列 * 消费方：商品标签徽章 badg、重点活动价格条 important-price-box（后台 palette 存类名） * ============================================================ */ .b-red, .b-yellow, .b-blue, .b-blue-2, .b-black, .b-cyan, .b-green, .b-purple, .jb-red, .jb-pink, .jb-yellow, .jb-yellow-2, .jb-blue, .jb-cyan, .jb-green, .jb-purple, .jb-vip1, .jb-vip2 { color: var(--this-color); background: var(--this-bg); --this-color: #fff; } .jb-red, .jb-pink, .jb-yellow, .jb-yellow-2, .jb-blue, .jb-cyan, .jb-green, .jb-purple, .jb-vip1, .jb-vip2 { border: none; } .b-red { --this-bg: #ff5473; } .b-yellow { --this-bg: #ff6f06; } .b-cyan { --this-bg: #08c4c1; } .b-blue { --this-bg: #2997f7; } .b-blue-2 { --this-bg: #5c7cff; } .b-green { --this-bg: #12b928; } .b-purple { --this-bg: #d448f5; } .b-black { --this-bg: #121517; } .jb-red { --this-bg-b: #fd7a64; --this-bg: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%); } .jb-pink { --this-bg-b: #ff5e7f; --this-bg: linear-gradient(135deg, #ff5e7f 30%, #ff967e 100%); } .jb-yellow { --this-bg-b: #f59f54; --this-bg: linear-gradient(135deg, #f59f54 10%, #ff6922 100%); } .jb-yellow-2 { --this-bg-b: #f9a158; --this-bg: linear-gradient(135deg, #f9a158 10%, #f6b174 100%); } .jb-blue { --this-bg-b: #59c3fb; --this-bg: linear-gradient(135deg, #59c3fb 10%, #268df7 100%); } .jb-cyan { --this-bg-b: #039ab3; --this-bg: linear-gradient(140deg, #039ab3 10%, #58dbcf 90%); } .jb-green { --this-bg-b: #60e464; --this-bg: linear-gradient(135deg, #60e464 10%, #5cb85b 100%); } .jb-purple { --this-bg-b: #f98dfb; --this-bg: linear-gradient(135deg, #f98dfb 10%, #ea00f9 100%); } .jb-vip1 { --this-bg-b: #eabe7b; --this-bg: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%); --this-color: #866127; } .jb-vip2 { --this-bg-b: #585555; --this-bg: linear-gradient(317deg, #4d4c4c 30%, #7b7b7b 70%, #5f5c5c 100%); --this-color: #ddd; } /* ============================================================ * 6. 按钮 but * ============================================================ */ #shop .but, .shop-modal-wrap .but { --this-color: var(--main-color); --this-bg: var(--muted-border-color); display: inline-block; color: var(--this-color); background: var(--this-bg); border: none; border-radius: calc(var(--main-radius) + 0px); padding: 6px 14px; font-size: 14px; line-height: 1.5; text-align: center; cursor: pointer; transition: 0.2s; vertical-align: middle; -webkit-appearance: none; appearance: none; } #shop .but:hover, .shop-modal-wrap .but:hover { opacity: 0.85; color: var(--this-color); } #shop .but.cir, .shop-modal-wrap .but.cir { padding: 0; border-radius: 5em; --this-size: 1.8em; display: inline-flex; justify-content: center; align-items: center; height: var(--this-size); min-width: var(--this-size); } #shop .but.cir svg, #shop .but.cir > .fa, .shop-modal-wrap .but.cir svg, .shop-modal-wrap .but.cir > .fa { margin: 0; } #shop .but.btn-block, .shop-modal-wrap .but.btn-block { display: block; width: 100%; } #shop .but.padding-lg, .shop-modal-wrap .but.padding-lg { padding: 10px 20px; } #shop .but.jb-red, .shop-modal-wrap .but.jb-red { --this-color: #ffffff; --this-bg: linear-gradient(135deg, #ff6034, #ee0a24); background: var(--this-bg); } #shop .but.jb-yellow-2, .shop-modal-wrap .but.jb-yellow-2 { --this-color: #ffffff; --this-bg: linear-gradient(135deg, #ffd01e, #ff8917); background: var(--this-bg); } #shop .but.jb-blue, .shop-modal-wrap .but.jb-blue { --this-color: #ffffff; --this-bg: linear-gradient(135deg, #3d9bff, #007aff); background: var(--this-bg); } #shop .but.jb-vip1, .shop-modal-wrap .jb-vip1 { --this-color: #8c6b39; --this-bg: linear-gradient(135deg, #f8e2c8, #f0c8a0); background: var(--this-bg); } #shop .but.is-disabled, #shop .but[disabled], .shop-modal-wrap .but.is-disabled, .shop-modal-wrap .but[disabled] { opacity: 0.5; cursor: not-allowed; } #shop .but.c-white, .shop-modal-wrap .but.c-white { --this-color: #ffffff; --this-bg: rgb(0 0 0 / 40%); } /* 按钮 loading 态（防重复提交） */ .shop-btn-loading { position: relative; opacity: 0.65; pointer-events: none; } .shop-btn-loading::after { content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 6px; vertical-align: -0.15em; border: 2px solid currentColor; border-top-color: rgb(0 0 0 / 0); border-radius: 999px; animation: shop-btn-loading-spin 0.7s linear infinite; } @keyframes shop-btn-loading-spin { to { transform: rotate(360deg); } } /* ============================================================ * 7. 复选框 div-checkbox * ============================================================ */ .div-checkbox { --size: 20px; position: relative; width: var(--size); height: var(--size); border-radius: 999px; border: solid 1.5px var(--muted-3-color); cursor: pointer; display: inline-block; transition: 0.2s; opacity: 0.8; font-size: 14px; vertical-align: middle; flex-shrink: 0; } .div-checkbox::before, .div-checkbox::after { position: absolute; top: 0; left: 0; opacity: 0; transition: 0.2s; } .div-checkbox::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; content: '\f00c'; color: #fff; padding: 1px; width: 100%; transform: translate3d(1px, -2px, 0) scale(0); } .div-checkbox::after { content: ''; height: 4px; background-color: var(--focus-color); border-radius: 2px; min-inline-size: calc(var(--size) - 8px); transform: translate3d(0, -50%, 0) scale(.8); margin: 0 1px; margin-top: calc(50%); right: 0; padding: 0 2px; } .div-checkbox.checked { background-color: var(--focus-color); border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); } .div-checkbox:is(.checked)::before { opacity: 1; transform: translate3d(1px, -2px, 0) scale(1); } .div-checkbox.portion { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); } .div-checkbox:is(.portion)::after { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); } .div-checkbox:not(.is-disabled):where(:hover) { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); } .div-checkbox.is-disabled { background-color: var(--main-border-color); opacity: 0.6; } /* ============================================================ * 8. 数量选择器 number-spinner * ============================================================ */ .number-spinner { --this-size: 34px; align-items: center; display: inline-grid; font-size: 15px; grid-template-columns: var(--this-size) minmax(42px, auto) var(--this-size); user-select: none; } .number-spinner :where(.minus-btn, .plus-btn) { align-items: center; background-color: var(--muted-border-color); block-size: var(--this-size); color: var(--main-color); cursor: pointer; display: inline-flex; font-size: .8em; inline-size: var(--this-size); justify-content: center; transition: color .18s ease, background-color .18s ease, opacity .18s ease; } .number-spinner .minus-btn { border-radius: 6px 0 0 6px; } .number-spinner .plus-btn { border-radius: 0 6px 6px 0; } .number-spinner :where(.minus-btn, .plus-btn):hover { color: var(--focus-color); } .number-spinner :where(.minus-btn, .plus-btn).is-disabled { color: var(--muted-color); cursor: not-allowed; opacity: .42; } .number-spinner .number-input { align-content: center; background-color: var(--muted-border-color); block-size: var(--this-size); cursor: pointer; line-height: normal; margin-inline: 1.5px; min-inline-size: calc(var(--this-size) + 8px); padding-inline: 4px; text-align: center; } /* 数量输入弹窗 */ .shop-modal-wrap .input-number-form input[name='val'] { width: 100%; border: 1px solid var(--main-border-color); border-radius: calc(var(--main-radius) + 0px); background-color: var(--muted-border-color); color: var(--main-color); padding: 10px 12px; font-size: 16px; outline: none; text-align: center; } .shop-modal-wrap .input-number-form input[name='val']:focus { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); } /* ============================================================ * 9. 弹窗 shop-modal-wrap * ============================================================ */ body.shop-modal-open { overflow: hidden; } .shop-modal-wrap { align-items: center; background-color: rgb(0 0 0 / 50%); inset: 0; justify-content: center; overflow: hidden; padding: 20px; position: fixed; z-index: 4000; } .shop-modal-wrap.fade { opacity: 0; transition: opacity 0.2s; } .shop-modal-wrap.fade.in { opacity: 1; } .shop-modal-wrap .modal-dialog { position: relative; width: 100%; max-width: 560px; margin: 0 auto; transform: translateY(30px); transition: transform 0.25s; } .shop-modal-wrap.in .modal-dialog { transform: translateY(0); } .shop-modal-wrap .modal-dialog.modal-mini { /* .modal-mini 宽度 400px（max-width 兜底小屏） */ width: 400px; max-width: calc(100% - 20px); } .shop-modal-wrap .modal-content { background-color: var(--main-bg-color); border-radius: 16px; box-shadow: 0 18px 45px rgb(0 0 0 / 16%); display: flex; flex-direction: column; max-block-size: calc(100vh - 60px); max-block-size: calc(100dvh - 60px); overflow: hidden; position: relative; } .shop-modal-wrap .modal-body { padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; } .shop-modal-wrap .close.abs-close { position: absolute; top: 10px; right: 10px; z-index: 10; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 999px; background-color: var(--muted-border-color); color: var(--muted-color); cursor: pointer; font-size: 14px; transition: 0.2s; } .shop-modal-wrap .close.abs-close:hover { color: var(--main-color); } .shop-modal-wrap .touch-close { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: var(--muted-4-color); cursor: pointer; z-index: 11; } /* 移动端从底部弹出 */ @media (max-width: 768px) { .shop-modal-wrap.bottom { align-items: flex-end; padding: 0; } .shop-modal-wrap.bottom .modal-dialog, .shop-modal-wrap .modal-dialog.full-sm { width: 100%; max-width: 100%; } .shop-modal-wrap.bottom .modal-dialog { transform: translateY(100%); transition: transform 0.3s; } .shop-modal-wrap.bottom.in .modal-dialog { transform: translateY(0); } .shop-modal-wrap.bottom .modal-content { border-radius: 16px 16px 0 0 / 16px 16px 0 0; max-height: 85vh; max-height: 85dvh; padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); } .shop-modal-wrap.bottom .modal-body { padding: 20px 15px; padding-top: 24px; } } /* ============================================================ * 10. 轻提示 shop-toast * ============================================================ */ .shop-toast-box { position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 5001; pointer-events: none; text-align: center; max-width: 80vw; } .shop-toast { display: block; margin: 8px auto 0; padding: 10px 20px; border-radius: .5rem; background-color: rgb(0 0 0 / 78%); color: #fff; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(-8px); transition: 0.25s; word-break: break-all; } .shop-toast.in { opacity: 1; transform: translateY(0); } .shop-toast.warning { background-color: rgb(230 130 0 / 92%); } .shop-toast.error { background-color: rgb(215 55 55 / 92%); } .shop-toast.success { background-color: rgb(46 155 90 / 92%); } /* ============================================================ * 11. 列表卡片骨架屏 * ============================================================ */ #shop .placeholder, .shop-modal-wrap .placeholder { background-color: var(--muted-border-color); border-radius: .25rem; color: transparent !important; animation: shop-placeholder-breathe 1.2s ease-in-out infinite; pointer-events: none; } @keyframes shop-placeholder-breathe { 50% { opacity: 0.5; } } /* ============================================================ * 12. 优惠券 / 优惠卡片 * ============================================================ */ .discount-card-link { display: block; color: inherit; } .discount-card.muted-box { background-color: rgb(252 69 69 / 3%); color: #fc4545; position: relative; padding-top: 25px; } body.dark-mode .discount-card.muted-box { color: #df4b4b; } :where(#shop, .shop-modal-wrap) .discount-card .discount-amount { min-width: 88px; font-size: 26px; margin-right: 12px; text-align: center; line-height: 1.2; margin-left: -10px; border-inline-end: 1px dashed rgb(252 69 69 / 30%); } :where(#shop, .shop-modal-wrap) .discount-card .discount-amount .decimal-part { font-size: 0.65em; } :where(#shop, .shop-modal-wrap) .discount-card .small-badge, :where(#shop, .shop-modal-wrap) .gift-card .small-badge { position: absolute; top: 0; left: 0; background-color: rgb(252 69 69 / 10%); color: #fc4545; padding: 4px 8px; border-radius: calc(var(--main-radius) + 0px) 0 calc(var(--main-radius) + 0px) 0; font-size: 12px; line-height: 1; transform: scale(0.9); transform-origin: left top; } .gift-card { position: relative; } .gift-card .gift-name { min-width: 80px; margin-right: 12px; } :where(#shop, .shop-modal-wrap) .gift-card .gift-card-info { border-block-end: 1px dashed var(--main-border-color); padding: 10px 0 6px; } /* ============================================================ * 13. 评分组件（S7 评价体系预置） * ============================================================ */ :where(#shop, .shop-modal-wrap) .shop-score-box .icon-star { padding: 0 5px; cursor: pointer; } :where(#shop, .shop-modal-wrap) .shop-score-box .icon-star svg { fill: transparent; stroke: color-mix(in srgb, var(--muted-2-color) 100%, transparent); stroke-width: 70; transition: 0.2s; transform-origin: center; vertical-align: baseline; } :where(#shop, .shop-modal-wrap) .shop-score-box .icon-star.hover svg, :where(#shop, .shop-modal-wrap) .shop-score-box .icon-star.active svg { fill: #fc7049; stroke: #fc7049; } :where(#shop, .shop-modal-wrap) .shop-score-box .icon-star:hover svg { transform: scale(1.2); } /* ============================================================ * 14. 折扣徽章 / 价格 / 星级徽章 * ============================================================ */ /* knn 不带 Bootstrap .badge 基类，基类属性直接补在 badge-discount 上 */ .badge-discount { display: inline-block; padding: 3px 7px; font-size: 12px; line-height: 1; border-radius: 10px; text-align: center; white-space: nowrap; vertical-align: middle; background: transparent; border: 1px solid rgb(249 91 91 / 50%); color: #fc4545; opacity: 0.8; margin: 2px; font-weight: normal; } .badge-discount.no-hit { opacity: 0.5; } #shop .badg.badge-tag, .shop-modal-wrap .badg.badge-tag { font-size: 0.9em; padding: 1px 6px; margin: 1px; } .price-box { display: flex; align-items: baseline; line-height: 1; } .price-box .price-str { font-size: 1.6em; } .price-box .decimal-part { font-size: 0.7em; } #shop .original-price, .shop-modal-wrap .original-price { text-decoration: line-through; color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); } /* 划线只画在数字上：货币符号 inline-block 阻断父级 line-through 贯穿 */ :where(#shop, .shop-modal-wrap) .original-price .pay-mark { display: inline-block; text-decoration: none; } /* 重点活动价格条（票券风浅底）内：原价加深加大，保证浅底上可读 */ #shop .important-price-box .original-price-box { color: var(--muted-color); font-size: 13px; } #shop .important-price-box .original-price { color: inherit; } :where(#shop, .shop-modal-wrap) .original-price-box .original-price { opacity: 1; } .stars-badge-box { color: color-mix(in srgb, var(--muted-4-color) 100%, transparent); } :where(#shop, .shop-modal-wrap) .stars-badge-box .active-half { --active-half-color: rgb(255 84 115); } .stars-badge-box .active { color: #ff5473; } /* ============================================================ * 15. 商品选项 * ============================================================ */ .product-opt-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; } :where(#shop, .shop-modal-wrap) .product-opt-content { --this-spacing: 12px; /* 间距 */ margin: calc(var(--this-spacing) / -2); } #shop .opt-item.badg, .shop-modal-wrap .opt-item.badg { transition: 0.15s; padding: 2px 24px; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); background: transparent; border: 1px solid var(--muted-4-color); margin: calc(.5 * var(--this-spacing)); border-radius: .375rem; cursor: pointer; --this-height: 40px; height: var(--this-height); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; } #shop .opt-item.badg:hover, .shop-modal-wrap .opt-item.badg:hover { border-color: var(--focus-color-opacity6); } #shop .opt-item.badg.active, .shop-modal-wrap .opt-item.badg.active { border-color: var(--focus-color-opacity6); color: var(--focus-color); background-color: var(--focus-color-opacity05); } :where(#shop, .shop-modal-wrap) .opt-item .opt-item-image { width: calc(var(--this-height) * 3 / 5); height: calc(var(--this-height) * 3 / 5); display: inline-block; margin-right: 6px; overflow: hidden; border-radius: .25rem; position: relative; } :where(#shop, .shop-modal-wrap) .opt-item .opt-item-image img { width: 100%; height: 100%; object-fit: cover; } :where(#shop, .shop-modal-wrap) .product-opt-content:not(.mode-img) .opt-item { min-inline-size: calc((100% - var(--this-spacing) * var(--this-item-count)) / var(--this-item-count)); } .count-2 { --this-item-count: 2; } .count-6, .count-3 { --this-item-count: 3; } .count-8, .count-7, .count-4 { --this-item-count: 4; } .count-10, .count-9, .count-5 { --this-item-count: 5; } #shop .mode-img .opt-item.badg, .shop-modal-wrap .mode-img .opt-item.badg { --this-height: 140px; flex-direction: column; width: 110px; overflow: hidden; padding: 0; justify-content: var(--knn-justify-around, space-around); position: relative; } :where(#shop, .shop-modal-wrap) .mode-img .opt-item-image { width: 110px; height: 110px; flex-basis: 110px; margin-right: 0; border-radius: .25rem .25rem 0 0; } :where(#shop, .shop-modal-wrap) .mode-img .opt-item-image .alone-imgbox-img { display: flex; } :where(#shop, .shop-modal-wrap) .opt-item-image .alone-imgbox-img { right: 0; background-color: rgb(84 84 84 / 30%); width: 24px; height: 24px; border-radius: 0 0 0 .5rem; color: #fff; top: 0; display: none; } .mode-img .opt-item-name { padding: 6px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; font-size: 13px; } :where(#shop, .shop-modal-wrap) .product-params-box .params-item + .params-item { margin-left: 10px; padding-left: 10px; border-inline-start: 1px solid var(--main-border-color); } /* ============================================================ * 16. 弹窗内商品信息覆盖 * ============================================================ */ :where(.shop-modal-wrap) .shop-modal .product-graphic { width: 90px; height: 90px; position: relative; flex-shrink: 0; border-radius: .5rem; overflow: hidden; background-color: var(--muted-border-color); } :where(.shop-modal-wrap) .shop-modal .product-graphic img { width: 100%; height: 100%; object-fit: cover; } :where(.shop-modal-wrap) .shop-modal .number-spinner { --this-size: 30px; font-size: 14px; } :where(.shop-modal-wrap) .shop-modal .p-d-mb { margin-bottom: 15px; } :where(.shop-modal-wrap) .shop-modal .product-title, :where(.shop-modal-wrap) .shop-modal .product-opt-title { font-size: 15px; } #shop .shop-modal .product-opt-content:not(.mode-img) .opt-item.badg, .shop-modal-wrap .shop-modal .product-opt-content:not(.mode-img) .opt-item.badg { padding: 5px 14px; --this-height: 34px; } :where(.shop-modal-wrap) .shop-modal .product-opt-content { --this-spacing: 6px; /* 间距 */ } /* ============================================================ * 17. 商品详情页 * ============================================================ */ .single-header-box { --gap: 60px; margin-bottom: 40px; } #shop .single-header-box > * { display: inline-block; inline-size: calc((100% - var(--gap)) / 2); vertical-align: top; } #shop .single-header-box > .single-product-cover-box { margin-right: var(--gap); } /* 封面轮播 */ .single-product-cover-box { position: relative; } #shop .single-product-cover-box .shop-cover-swiper { width: 100%; border-radius: calc(var(--main-radius) + 0px); overflow: hidden; background-color: var(--muted-border-color); } #shop .single-product-cover-box .shop-cover-swiper .swiper-slide img { width: 100%; display: block; cursor: zoom-in; } #shop .single-product-cover-box .shop-cover-swiper .swiper-pagination-fraction { width: auto; left: auto; right: 12px; bottom: 12px; background-color: rgb(0 0 0 / 40%); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; line-height: 1.4; } /* 封面轮播左右按钮（默认隐藏，悬停容器时滑入；覆盖 swiper-bundle 默认蓝色大箭头） */ .shop-cover-swiper .swiper-button-prev, .shop-cover-swiper .swiper-button-next { position: absolute; top: 50%; width: 30px; height: 40px; margin-top: -25px; z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.4s; opacity: 0; color: #fff; text-shadow: 0 0 6px #444; } .shop-cover-swiper .swiper-button-prev:hover, .shop-cover-swiper .swiper-button-next:hover { opacity: 1; background-color: rgba(0, 0, 0, 0.3); } .shop-cover-swiper .swiper-button-prev::after, .shop-cover-swiper .swiper-button-next::after { font-family: swiper-icons; font-size: 15px; } .shop-cover-swiper .swiper-button-next { right: -15px; left: auto; } .shop-cover-swiper .swiper-button-prev { left: -15px; right: auto; } .shop-cover-swiper:hover .swiper-button-next { right: 0; opacity: 0.8; } .shop-cover-swiper:hover .swiper-button-prev { left: 0; opacity: 0.8; } .shop-cover-swiper .swiper-button-prev.swiper-button-disabled, .shop-cover-swiper .swiper-button-next.swiper-button-disabled { opacity: 0 !important; cursor: auto !important; pointer-events: none !important; } #shop .single-product-cover-box .more-btns { position: absolute; right: 0; top: 0; z-index: 2; padding: 10px; } #shop .single-product-cover-box .more-btns text { display: none; } #shop .single-product-cover-box .more-btns .but { --this-bg: rgb(0 0 0 / 40%); background: var(--this-bg); font-size: 1.2em; padding: 6px 10px; } /* 标题与价格 */ #shop .single-product-title .article-title { margin-top: 0; line-height: 1.2; font-size: 26px; } #shop .single-product-title .article-title a { color: inherit; } #shop .single-product-detail-box .price-box { font-size: 26px; } #shop .single-product-detail-box .important-price-box .price-box { font-size: 20px; } #shop .product-service-combine-box > *:last-of-type { margin-bottom: 0; } /* 商品详情区块下间距：product-detail-margin-bottom 简写 */ :where(#shop, .shop-modal-wrap) .p-d-mb { margin-bottom: 20px; } /* 加购/立购按钮组：移动端选购弹窗挂在 body 下，需补 .shop-modal-wrap 前缀 */ #shop .shop-paybtn-group > .but, .shop-modal-wrap .shop-paybtn-group > .but { padding: 10px 20px; min-width: 120px; } /* 移动端详情页底栏：默认隐藏 */ .shop-single-tabbar, .footer-tabbar-placeholder { display: none; } /* 收藏/分享竖排小钮：加 #shop 前缀抬优先级，压过 #shop .but 的 inline-block */ #shop .shop-pay-action-btns > a { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); } #shop .shop-pay-action-btns > a + a { margin-left: 10px; } #shop .shop-pay-action-btns .icon, .shop-modal-wrap .shop-pay-action-btns .icon { font-size: 20px; margin: 0 0 3px; } #shop .shop-pay-action-btns text, .shop-modal-wrap .shop-pay-action-btns text { font-size: 12px; opacity: 0.8; line-height: 1; } /* 重点活动价格条：票券风 * 浅色底 + 活动色大字价格，右侧渐变「票根」放活动名/倒计时， * 中间背景色虚线 + 上下打孔圆模拟擕开的券。 * 颜色链 var(--this-bg-b, var(--this-bg, #fb2d2d)) 兼容 jb-*（渐变）与 b-*（纯色）两系 palette。 */ #shop .product-price-box.important-price-box { position: relative; overflow: visible; align-items: stretch; padding: 0; background: color-mix(in srgb, var(--this-bg-b, var(--this-bg, #fb2d2d)) 8%, transparent); border: 1px solid color-mix(in srgb, var(--this-bg-b, var(--this-bg, #fb2d2d)) 30%, transparent); border-radius: 12px; color: var(--main-color); } #shop .important-price-box .important-price-left { padding: 12px 16px; justify-content: center; } #shop .important-price-box .important-price-left .price-box { color: var(--this-bg-b, var(--this-bg, #fb2d2d)); } #shop .important-price-box .sales-count { color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); } #shop .important-price-box .important-price-right { overflow: visible; position: relative; align-self: stretch; justify-content: center; min-width: 96px; max-width: 40%; margin: -1px -1px -1px 0; padding: 10px 14px; background: var(--this-bg, #fb2d2d); color: var(--this-color, #fff); border-radius: 0 12px 12px 0; border-left: 2px dashed var(--main-bg-color); text-align: center; } /* 票根左缘上下打孔：背景色圆盖在外盒边线上形成缺口 */ #shop .important-price-box .important-price-right::before, #shop .important-price-box .important-price-right::after { content: ''; position: absolute; left: -9px; width: 14px; height: 14px; border-radius: 999px; background-color: var(--main-bg-color); } #shop .important-price-box .important-price-right::before { top: -8px; } #shop .important-price-box .important-price-right::after { bottom: -8px; } #shop .important-price-box.jb-vip1 .c-white { --this-color: #8c6b39; --this-bg: rgb(158 139 134 / 20%); } /* 详情页 tab（自建：shop-tab-nav / data-tab-pane） */ .product-single-tab { padding: 0; } #shop .product-single-tab .shop-tab-nav { font-size: 20px; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); padding: 16px 20px 14px; margin: 0; justify-content: center; border-bottom: none; } #shop .product-single-tab .shop-tab-nav-item { padding: 0 20px 4px; cursor: pointer; position: relative; transition: 0.2s; } #shop .product-single-tab .shop-tab-nav-item.active { color: var(--main-color); font-weight: 600; } #shop .product-single-tab .shop-tab-nav-item.active::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -4px; width: 24px; height: 3px; border-radius: 2px; background-color: var(--focus-color); } #shop [data-tab-pane] { display: none; } #shop [data-tab-pane].active { display: block; } #shop .product-article { padding: 30px; } #shop .layout-full .product-article-full { padding: 0 30px; } #shop .layout-full .product-article-full .seamless-img.full-container { margin-left: -30px; margin-right: -30px; } /* 服务保障 / 参数 / 发货行图标（.icon-header）：此处不需额外样式， 图标作为行内元素与右侧文字首行同基线，勿自创圆底/定高样式否则图标与文字错行 */ /* 空态 */ .shop-empty-box { text-align: center; color: var(--muted-color); padding: 60px 20px; } .shop-empty-box .fa { font-size: 40px; opacity: 0.4; margin-bottom: 12px; display: block; } /* ============================================================ * 18. 加入购物车动画 * ============================================================ */ .cart-add-animate { z-index: 5000; } .cart-add-animate > .img-box { width: 30px; height: 30px; overflow: hidden; border-radius: 999px; animation: knn-cart-fly-pop .2s ease-in; } @keyframes knn-cart-fly-pop { 0% { opacity: 0; transform: scale(6); } 30% { opacity: 1; transform: scale(6); } 100% { transform: scale(1); } } .add-animate { animation: knn-cart-button-pulse .3s ease-in; } @keyframes knn-cart-button-pulse { 50% { transform: scale(1.3); } } /* 导航购物车按钮（对齐消息铃铛 .msg-news-icon + badge.top 风格，样式自包含不依赖消息模块 CSS） */ .shop-cart-nav-icon { position: relative; display: inline-block; vertical-align: middle; /* 页头无全局 .ml10 规则，间距自带 */ margin-left: 10px; flex-shrink: 0; } /* 圆底（与 message.css 铃铛 .toggle-radius 同规格，消息模块关闭时也不塌缩） */ .shop-cart-nav-icon .toggle-radius { background: var(--main-border-color, rgba(50, 50, 50, 0.06)); width: 29px; height: 29px; display: inline-block; text-align: center; border-radius: 999px; position: relative; vertical-align: text-top; margin: 0; } .shop-cart-nav-icon .toggle-radius svg, .shop-cart-nav-icon .toggle-radius .icon { position: absolute; top: 50%; right: 0; left: 0; margin: auto; transform: translateY(-50%); z-index: 1; width: 15px; height: 15px; } .shop-cart-nav-icon badge.top { position: absolute; transform: translate(-10px, -6px) scale(0.85); margin-right: -10px; z-index: 2; } badge[cart-count] { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 999px; background: #fc4545; color: #fff; font-size: 11px; text-align: center; box-sizing: border-box; } badge[cart-count='0'], badge[cart-count=''] { display: none; } /* ============================================================ * 19. 购物车页 * ============================================================ */ /* tab 容器显隐 */ #shop .tab-content > .tab-pane { display: none; } #shop .tab-content > .tab-pane.active { display: block; } #shop .fade { opacity: 0; transition: opacity 0.15s linear; } #shop .fade.in { opacity: 1; } /* 结算步骤条（选择商品 → 核对订单 → 提交订单） */ #shop .steps-box { display: flex; align-items: center; color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); } #shop .steps-box .step { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 15px; padding-right: 15px; position: relative; } #shop .steps-box .step::before { content: ''; width: 8px; height: 8px; background: var(--muted-3-color); border-radius: 999px; margin-bottom: 10px; z-index: 10; } #shop .steps-box .step.active { color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); } #shop .steps-box .step.active::before { background: transparent; box-shadow: 0 0 0 3px var(--focus-color); } #shop .steps-box .step::after { content: ''; width: 100%; height: 2px; background: var(--muted-4-color); margin-top: 10px; position: absolute; top: -7px; left: 0; } #shop .steps-box .step:first-child::after { left: calc(50% + 6px); } #shop .steps-box .step:last-child::after { right: calc(50% + 3px); left: auto; } #shop .cart-list-item.cart-footer, #shop .cart-list-item.cart-header { font-size: 1.2em; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); padding: 15px 30px; } #shop .cart-group.knn-widget { padding: 15px 30px; } #shop .cart-list-item.cart-header .product-graphic { height: 0; width: 56px; } /* 注意：此处不可加 display:flex —— 内部 .cart-list-header 作为 flex 子项会收缩成内容宽， * 整行挤到左侧、列错位 */ #shop .cart-list-item, .shop-modal-wrap .cart-list-item { padding: 20px 0; } #shop .cart-list-item .product-graphic, .shop-modal-wrap .cart-list-item .product-graphic { --t-size: 100px; width: var(--t-size); height: var(--t-size); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: var(--muted-border-color); border-radius: .5rem; flex-shrink: 0; } #shop .cart-list-item .product-graphic img, .shop-modal-wrap .cart-list-item .product-graphic img { width: 100%; height: 100%; object-fit: cover; } #shop .cart-list-item .cart-col-checkbox, .shop-modal-wrap .cart-list-item .cart-col-checkbox { height: 100%; margin: -20px; padding: 20px; margin-right: 0px; cursor: pointer; } #shop .cart-product .cart-list-item .cart-col-checkbox { padding: 50px 20px; } #shop .cart-col-spinner-price, #shop .cart-list-item .cart-col-right, #shop .cart-list-item .cart-col-main, .shop-modal-wrap .cart-col-spinner-price, .shop-modal-wrap .cart-list-item .cart-col-right, .shop-modal-wrap .cart-list-item .cart-col-main { display: flex; flex: 1; justify-content: var(--knn-justify, space-between); align-items: center; overflow: hidden; } .cart-col-product { flex-basis: 30%; margin-left: 20px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; margin-right: 30px; } .cart-col-action { flex-basis: 50px; } #shop .cart-col-spinner-price > *, .shop-modal-wrap .cart-col-spinner-price > * { flex: 1; overflow: hidden; } #shop .cart-list-item .product-title, .shop-modal-wrap .cart-list-item .product-title { font-size: 1.1em; height: auto; max-width: 100%; } #shop .cart-list-item .product-title a, .shop-modal-wrap .cart-list-item .product-title a { color: inherit; } #shop .cart-list-item .product-discount-box:not(.hide) + .product-tags-box, .shop-modal-wrap .cart-list-item .product-discount-box:not(.hide) + .product-tags-box { display: none; } #shop .cart-list-author, .shop-modal-wrap .cart-list-author { padding-top: 5px; padding-bottom: 15px; border-block-end: 1px solid var(--main-border-color); } .cart-col-author { align-items: center; display: flex; font-size: 1.1em; font-weight: bold; } .cart-col-author a { color: inherit; display: flex; align-items: center; overflow: hidden; } #shop .cart-col-author .avatar-img { --this-size: 28px; margin-right: 8px; } #shop .cart-list-item.cart-footer { color: var(--muted-color); background-color: var(--main-bg-color); } #shop .cart-col-price .price-box, .shop-modal-wrap .cart-col-price .price-box { flex-wrap: wrap; } .cart-col-total-info { text-align: right; } .discount-str { cursor: pointer; font-size: 0.85em; } #shop .cart-footer .settle-btn { min-width: 165px; padding: 11px 20px; margin-left: 30px; } #shop .cart-remove-btn { padding: 6px 10px; } #shop .cart-col-action .but { white-space: nowrap; } /* 购物车页 tab 头 */ #shop .cart-page-tab .list-inline > li { cursor: pointer; padding: 4px 0; margin-right: 20px; color: var(--muted-color); } #shop .cart-page-tab .list-inline > li.active { color: var(--main-color); font-weight: 600; } /* ============================================================ * 20. 商品列表卡片（相关推荐等） * ============================================================ */ .knn-cart-shell { padding: 24px 0 96px; } .knn-cart-top { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); gap: 18px; padding: 18px; margin-bottom: 14px; background-color: var(--main-bg-color); border: 1px solid var(--main-border-color); border-radius: 10px; box-shadow: 0 8px 24px var(--main-shadow); } .knn-cart-heading { min-width: 0; } .knn-cart-step-card { flex: 0 1 420px; min-width: 0; padding: 10px 12px; background-color: var(--muted-border-color); border: 1px solid var(--main-border-color); border-radius: .5rem; } .knn-cart-step-card .el-steps { min-width: 0; background: transparent; } .knn-cart-step-card .el-step__title { font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; } .knn-cart-step-card .el-step__head { padding-right: 8px; } .knn-cart-step-card .el-step__main { min-width: 56px; } .knn-cart-step-card .el-step__icon { background-color: var(--main-bg-color); } .knn-cart-title { font-size: 22px; font-weight: 700; line-height: 1.2; } .knn-cart-subtitle { margin-top: 6px; color: var(--muted-color); font-size: 13px; } .knn-cart-tabs > .el-tabs__header { margin-bottom: 16px; } .knn-cart-group { background-color: var(--main-bg-color); border: 1px solid var(--main-border-color); border-radius: 10px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 8px 24px var(--main-shadow); } .knn-cart-merchant { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); gap: 18px; padding: 14px 18px; border-block-end: 1px solid var(--main-border-color); } .knn-cart-merchant-main { display: flex; align-items: center; min-width: 0; gap: 10px; color: inherit; } .knn-cart-merchant-main .avatar-img { --this-size: 30px; display: inline-flex; width: var(--this-size); height: var(--this-size); overflow: hidden; border-radius: 999px; background-color: var(--muted-border-color); flex: 0 0 auto; } .knn-cart-merchant-main .avatar-img img, .knn-cart-merchant-main .avatar-img .avatar { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 999px; } .knn-cart-item { display: grid; grid-template-columns: auto 96px minmax(180px, 1fr) 132px 116px 132px 88px; gap: 16px; align-items: center; padding: 18px; border-block-end: 1px solid var(--main-border-color); } .knn-cart-item:last-child { border-bottom: 0; } .knn-cart-thumb { display: block; width: 96px; height: 96px; border-radius: .5rem; overflow: hidden; background-color: var(--muted-border-color); } .knn-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .knn-cart-product { min-width: 0; } .knn-cart-product-name { font-size: 15px; font-weight: 700; line-height: 1.45; color: inherit; } .knn-cart-product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .knn-cart-option { margin-top: 10px; max-width: 100%; } .knn-cart-price { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; color: #fc4545; } .knn-cart-price.is-points { color: #d99b00; } .knn-cart-price .pay-mark { font-size: 12px; } .knn-cart-origin { display: inline-flex; margin-left: 6px; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); font-size: 12px; text-decoration: line-through; } .knn-cart-stock { margin-top: 6px; color: var(--muted-color); font-size: 12px; } .knn-cart-summary { position: sticky; bottom: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; margin-top: 16px; background-color: var(--main-bg-color); border: 1px solid var(--main-border-color); border-radius: 10px; box-shadow: 0 -8px 24px var(--main-shadow); } .knn-cart-total { text-align: right; } .knn-cart-total-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; } .knn-cart-save { margin-top: 4px; font-size: 12px; color: #fc4545; cursor: pointer; } .knn-cart-option-dialog .el-radio-group { display: flex; flex-wrap: wrap; gap: 8px; } .knn-cart-option-dialog .el-radio-button { margin-right: 0; } .knn-cart-option-block { padding: 12px 0; border-block-end: 1px solid var(--main-border-color); } .knn-cart-option-block:last-child { border-bottom: 0; } .knn-cart-dialog-product { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; } .knn-cart-dialog-thumb { width: 58px; height: 58px; border-radius: .5rem; overflow: hidden; background-color: var(--muted-border-color); } .knn-cart-dialog-thumb img { width: 100%; height: 100%; object-fit: cover; } body.dark-mode .knn-cart-group, body.dark-mode .knn-cart-top, body.dark-mode .knn-cart-step-card, body.dark-mode .knn-cart-summary, body.dark-mode-auto .knn-cart-group, body.dark-mode-auto .knn-cart-top, body.dark-mode-auto .knn-cart-step-card, body.dark-mode-auto .knn-cart-summary { background-color: var(--main-bg-color); border-color: var(--main-border-color); } @media (max-width: 767px) { .knn-cart-shell { padding-top: calc(64px + env(safe-area-inset-top, 0px)); } .knn-cart-top { gap: 12px; align-items: flex-start; flex-direction: column; padding: 16px; } .knn-cart-heading { padding-left: 0; border-left: 0; } .knn-cart-step-card { display: none; } .knn-cart-title { font-size: 20px; } .knn-cart-merchant { padding: 12px; } .knn-cart-item { grid-template-columns: auto 76px minmax(0, 1fr); gap: 12px; padding: 14px 12px; align-items: start; } .knn-cart-thumb { width: 76px; height: 76px; } .knn-cart-quantity, .knn-cart-subtotal, .knn-cart-action { grid-column: 3; justify-self: start; } .knn-cart-unit { display: none; } .knn-cart-summary { left: 0; right: 0; grid-template-columns: auto 1fr auto; border-radius: 0; margin-left: -15px; margin-right: -15px; } .knn-cart-total { font-size: 13px; } } #shop .product-lists-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; } #shop .product-lists-row > * { margin: 0; } #shop .product-item.card { --body-padding: 15px; background-color: var(--main-bg-color); border-radius: calc(var(--main-radius) + 0px); box-shadow: 0 8px 22px var(--main-shadow); color: inherit; display: block; flex: 0 0 calc((100% - 48px) / 4); overflow: hidden; padding: 0; transition: transform .2s ease, box-shadow .2s ease; } #shop .product-item.card:hover { transform: translateY(-2px); } #shop .product-item.card .item-body { padding: calc(var(--body-padding) + 0px); margin: 0; } #shop .product-item.card .item-body > * { margin: 0; margin-top: 6px; } #shop .product-item.card .item-thumbnail { position: relative; padding-block-end: var(--t-s, var(--thumb-scale, 100%)); overflow: hidden; } #shop .product-item.card .item-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } #shop .product-item.card .item-thumbnail, #shop .product-item.card .item-thumbnail img { border-radius: calc(var(--main-radius) + 0px) calc(var(--main-radius) + 0px) 0 0; } #shop .product-item.card .item-heading { margin-top: 0px; font-size: 16px; font-weight: normal; } #shop .product-item.card .item-heading a { color: inherit; } #shop .product-item.card .item-heading.text-ellipsis { display: block; white-space: nowrap; min-height: auto; overflow: hidden; text-overflow: ellipsis; } #shop .product-item.card .placeholder.item-heading.text-ellipsis { min-height: 1.4em; } #shop .product-item.card .item-excerpt.text-ellipsis { height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-color); font-size: 13px; } #shop .product-item .item-price { display: inline-flex; align-items: baseline; color: #fc4545; } #shop .product-item .item-price .show-price-box .price { font-size: 1.2em; } #shop .product-item .item-discount-badge { margin-top: 6px; min-height: 24px; } #shop .product-item.card .img-badge { position: absolute; top: 14px; left: 0; z-index: 1; } /* 展开/收起箭头 */ .expanded .fa { transform: rotate(180deg); } #shop .expand-toggle .fa { transition: transform 0.2s; } /* 即将上线占位按钮 */ #shop .shop-coming-soon { cursor: pointer; } /* ============================================================ * 21. 媒体查询：电脑端 * ============================================================ */ @media (min-width: 768px) { .single-header-box > * { position: sticky; top: 88px; } .single-product-header { background-color: var(--main-bg-color); margin-top: -20px; margin-bottom: 20px; padding-top: 20px; } #shop .cart-col-product > * + * { margin-top: 10px; } .cart-col-spinner { min-width: 124px; } #shop .cart-list-item.cart-footer { position: sticky; bottom: 0; z-index: 10; } /* 移动端专用列隐藏 */ #shop .cart-col-spinner-price-sm { display: none; } } /* ============================================================ * 22. 媒体查询：平板 * ============================================================ */ @media (max-width: 991px) { #shop .product-item.card { flex-basis: calc((100% - 32px) / 3); } } /* ============================================================ * 23. 媒体查询：手机端 * ============================================================ */ @media (max-width: 767px) { /* --- 详情页 --- */ #shop .product-single-tab .shop-tab-nav { display: flex; justify-content: var(--knn-justify-around, space-around); font-size: 16px; color: var(--muted-color); padding: 12px 10px 6px; } #shop .product-single-tab .shop-tab-nav-item { padding: 0 6px 4px; } #shop .p-d-mb { margin-bottom: 15px; } #shop .product-article { padding: 15px; } #shop .layout-full .product-article-full { padding: 0 15px; } #shop .layout-full .product-article-full .seamless-img.full-container { margin-left: -15px; margin-right: -15px; } /* 左右出血量须等于 #shop .container 移动端左右 padding 8px，否则撑出横向滚动条 */ #shop .single-header-box { margin: -20px -8px -10px -8px; } #shop .single-product-detail-box > .v-shop-detail { padding: 10px; } #shop .single-header-box > * { display: block; width: 100%; } #shop .single-header-box > .single-product-cover-box { margin: 0; } #shop .single-header-box > .single-product-detail-box { z-index: 10; position: relative; } #shop .single-product-cover-box .shop-cover-swiper { border-radius: 0; } #shop .single-product-cover-box .shop-cover-swiper .swiper-slide img { border-radius: 0; } #shop .single-product-cover-box .shop-cover-swiper .swiper-pagination-fraction { opacity: 0.8; bottom: 26px; } #shop .single-product-title .article-title { font-size: 18px; } #shop .single-product-header .breadcrumb { display: none; } .product-title-price-box { background: linear-gradient(180deg, var(--main-bg-color) 40%, rgb(0 0 0 / 0)); border-radius: 16px 16px 0 0 / 16px 16px 0 0; padding: 15px 15px 10px; margin: -10px; margin-top: -31px; box-shadow: 0 -2px 8px rgb(0 0 0 / 2%); position: relative; } /* 重点活动票券：移动端不做贴顶横幅，流内展示，仅紧凑化 */ #shop .important-price-box .important-price-left { padding: 10px 12px; } #shop .important-price-box .important-price-right { min-width: 84px; padding: 8px 10px; } #shop .product-title-price-box .product-price-discount-box { order: -1; } #shop .single-product-detail-box .price-box { font-size: 18px; } #shop .single-product-detail-box .important-price-box .price-box { font-size: 16px; } #shop .product-service-combine-box { background-color: var(--main-bg-color); padding: 15px 10px; box-shadow: 0 8px 22px var(--main-shadow); border-radius: calc(var(--main-radius) + 0px); } /* 移动端底部购买栏 */ #shop .footer-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; width: 100%; z-index: 1035; justify-content: var(--knn-justify-around, space-around); align-items: center; text-align: center; background-color: var(--main-bg-color); padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 5px var(--main-shadow); } /* 购买栏 fixed 脱流的尾随占位 */ #shop .footer-tabbar-placeholder { display: block; height: calc(49px + constant(safe-area-inset-bottom)); height: calc(49px + env(safe-area-inset-bottom)); } #shop .footer-tabbar .tabbar-item { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 49px; padding: 3px 0; color: var(--muted-color); } #shop .footer-tabbar .tabbar-item > svg, #shop .footer-tabbar .tabbar-item > icon { font-size: 24px; line-height: 1em; height: 1em; } /* 店铺头像 */ #shop .footer-tabbar .avatar-img, #shop .footer-tabbar .avatar-img img { width: 24px; height: 24px; border-radius: 999px; display: block; } #shop .footer-tabbar .tabbar-item badge { font-size: 12px; transform: scale(0.8) translateX(13px); position: absolute; top: 1px; } #shop .footer-tabbar text { width: 100%; font-size: 13px; line-height: 1em; transform: scale(0.8); } #shop .footer-tabbar .but-group { padding: 6px; margin: 0 8px; } .footer-tabbar :where(.shop-paybtn-group) { flex: 1 0 44%; display: flex; } #shop .footer-tabbar .shop-paybtn-group > .but { min-width: 87px; padding: 8px; width: 50%; } #shop .footer-tabbar .shop-paybtn-group > .but:last-of-type { border-radius: 0 999px 999px 0; } #shop .footer-tabbar .shop-paybtn-group > .but:first-of-type { border-radius: 999px 0 0 999px; } /* 页面底部为固定底栏留白（注意：WP 自动 body class 为 single-shop_product 下划线写法） */ body.single-shop_product footer::after, body.shop-cart-page footer::after { content: ''; display: block; height: calc(62px + constant(safe-area-inset-bottom)); height: calc(62px + env(safe-area-inset-bottom)); } /* --- 购物车 --- */ #shop .cart-group.knn-widget { padding: 5px 12px; } /* 通栏出血量须等于 #shop .container 移动端左右 padding 8px，否则撑出横向滚动条 */ #shop .cart-group.knn-widget.full-widget-sm { border-radius: 0; margin-left: -8px; margin-right: -8px; } #shop .cart-col-spinner-price { display: none; } #shop .cart-col-action { display: none; } #shop .cart-col-product { flex-basis: 100%; margin-left: 10px; margin-right: 0; justify-content: var(--knn-justify, space-between); } #shop .cart-list-item { padding: 10px 0; } #shop .cart-list-author { padding-top: 6px; } #shop .cart-product .cart-list-item .cart-col-checkbox { padding: 30px 10px 30px 21px; } #shop .cart-list-item .cart-col-checkbox { padding-right: 10px; } #shop .cart-list-item .product-graphic { --t-size: 90px; } #shop .cart-list-item .product-title { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block; } #shop .cart-col-product > * + * { margin-top: 4px; line-height: 1; } #shop .cart-group .cart-col-price .original-price, #shop .cart-group .cart-col-price .price-box { font-size: 12px; } #shop .cart-col-spinner-price-sm { width: 100%; display: flex; align-items: center; justify-content: var(--knn-justify, space-between); } #shop .cart-col-spinner-price-sm .number-spinner { --this-size: 23.2px; } #shop .cart-list-item .cart-col-main, #shop .cart-list-item .cart-col-right { align-items: stretch; } #shop .cart-list-item .product-option-btn { padding: 2px 4px; } #shop .cart-list-item .badg.badge-tag, #shop .cart-list-item .badge-discount + .badge-discount { margin-left: 4px; } #shop .cart-list-item .badge-discount, #shop .cart-list-item .badg.badge-tag { font-size: 10px; padding: 2px 3px; line-height: 1; margin: 0; } #shop .cart-list-item .badge-discount { padding: 2px 5px; } /* 移动端底部结算栏 */ #shop .cart-list-item.cart-footer { padding: 6px 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding-bottom: calc(6px + constant(safe-area-inset-bottom)); padding-bottom: calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px var(--main-shadow); flex-wrap: wrap; } #shop .cart-list-item.cart-footer .cart-remove-btn, #shop .cart-list-item.cart-footer .settle-btn { padding: 8px; margin-left: 10px; min-width: 120px; border-radius: 999px; } #shop .cart-list-item.cart-footer .cart-remove-btn { padding: 7px; } #shop .cart-list-item.cart-footer .cart-list-header { flex-basis: 100%; } #shop .cart-list-item.cart-footer .cart-col-total-info { font-size: 14px; } /* --- 商品列表 --- */ #shop .product-lists-row { gap: 10px; margin: 0; margin-bottom: 15px; } #shop .product-lists-row > * { margin: 0; } #shop .product-item.card { --body-padding: 10px; flex-basis: calc((100% - 10px) / 2); } #shop .product-item.card .item-heading { font-size: 15px; margin-bottom: 4px; } #shop .product-item.card .item-body > * { margin-top: 0; } #shop .product-item.card .badge-discount { font-size: 10px; padding: 2px 5px; } } /* ============================================================ * 24. 下单确认弹窗 / 收货地址弹窗（S3） * ============================================================ */ /* --- 工具类补充 --- */ :where(#shop, .shop-modal-wrap) .flex.ab { align-items: flex-end; } :where(#shop, .shop-modal-wrap) .flex.abl { align-items: baseline; } :where(#shop, .shop-modal-wrap) .flex.at { align-items: flex-start; } :where(#shop, .shop-modal-wrap) .flex .shrink0 { flex-shrink: 0; } :where(#shop, .shop-modal-wrap) .flex .flex0 { flex: none; } :where(#shop, .shop-modal-wrap) .flex .flex-auto { flex: auto; } :where(#shop, .shop-modal-wrap) .text-right { text-align: right; } :where(#shop, .shop-modal-wrap) .text-center { text-align: center; } :where(#shop, .shop-modal-wrap) .mr20 { margin-right: 20px; } :where(#shop, .shop-modal-wrap) .em3x { font-size: 3em; } :where(#shop, .shop-modal-wrap) .padding-10 { padding: 10px; } /* --- badg / but 扩展 --- */ #shop .badg.cir, .shop-modal-wrap .badg.cir { padding: 0; border-radius: 5em; --this-size: 1.8em; display: inline-flex; justify-content: center; align-items: center; height: var(--this-size); min-width: var(--this-size); } #shop .badg.badg-sm.cir, .shop-modal-wrap .badg.badg-sm.cir { --this-size: 1.6em; } /* 图片需锁进定高容器（如 .badg.cir 内商品缩略图）， knn 无 img 全局 max 规则，仅在商城作用域内补齐，避免原图撑爆弹窗布局 */ :where(#shop, .shop-modal-wrap) .badg img { max-width: 100%; max-height: 100%; border-radius: inherit; object-fit: cover; } #shop .badg.jb-yellow, .shop-modal-wrap .badg.jb-yellow { --this-bg: linear-gradient(135deg, #f59f54 10%, #ff6922 100%); background: var(--this-bg); color: #fff; } #shop .badg.c-blue, .shop-modal-wrap .badg.c-blue { --this-bg: #007aff; color: #fff; } /* 浅底彩字按钮 */ #shop .but.c-blue, .shop-modal-wrap .but.c-blue { --this-bg: rgb(0 122 255 / 10%); } #shop .but.c-red, .shop-modal-wrap .but.c-red { --this-bg: rgb(252 69 69 / 10%); } #shop .but.but-sm, .shop-modal-wrap .but.but-sm { font-size: 0.9em; padding: 0.1em 0.4em; vertical-align: 0.05em; } #shop .badg.p2-10, #shop .but.p2-10, .shop-modal-wrap .badg.p2-10, .shop-modal-wrap .but.p2-10 { padding: 2px 10px; } /* 地址项等选中态 */ #shop .muted-box.active, .shop-modal-wrap .muted-box.active { background: var(--focus-color-opacity1); } /* 地址标签胶囊：用 .badg 默认灰系配色（knn badg 默认为主色底，仅在标签列表内还原） */ #shop .tag-list .badg, .shop-modal-wrap .tag-list .badg { --this-bg: rgb(136 136 136 / 10%); --this-color: #888; background: var(--this-bg); color: var(--this-color); } /* 标签选中态 */ #shop .active.badg, #shop .active > .badg:not(.vip-tag), .shop-modal-wrap .active.badg, .shop-modal-wrap .active > .badg:not(.vip-tag) { --this-bg: var(--focus-color); --this-color: #fff; background: var(--this-bg); color: var(--this-color); } /* --- 表单控件 --- */ #shop .form-group, .shop-modal-wrap .form-group { margin-bottom: 15px; } #shop .form-control, .shop-modal-wrap .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: var(--main-color); background-color: var(--body-bg-color); background-image: none; border: 1px solid transparent; border-radius: .25rem; box-shadow: none; transition: border-color ease-in-out 0.15s, background ease-in-out 0.15s, box-shadow ease-in-out 0.15s, opacity ease-in-out 0.3s; } #shop .form-control::placeholder, .shop-modal-wrap .form-control::placeholder { color: #999; opacity: 1; } #shop .form-control:focus, .shop-modal-wrap .form-control:focus { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); outline: 0; box-shadow: 0 0 2px 3px var(--focus-shadow-color); } #shop .form-control:hover, .shop-modal-wrap .form-control:hover { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); opacity: 0.8; } #shop .form-control[disabled], .shop-modal-wrap .form-control[disabled] { background-color: var(--body-bg-color); opacity: 0.5; cursor: not-allowed; } #shop .help-block, .shop-modal-wrap .help-block { display: block; margin-top: 5px; color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); } /* 输入组 */ #shop .input-group, .shop-modal-wrap .input-group { position: relative; display: table; width: 100%; border-collapse: separate; } #shop .input-group .form-control, .shop-modal-wrap .input-group .form-control { position: relative; z-index: 2; display: table-cell; width: 100%; margin-bottom: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; } #shop .input-group-addon, .shop-modal-wrap .input-group-addon { display: table-cell; width: 1%; white-space: nowrap; vertical-align: middle; padding: 6px 12px; font-size: 14px; font-weight: 400; line-height: 1; text-align: center; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); background-color: var(--main-border-color); border: 1px solid transparent; border-right: 0; border-radius: 4px 0 0 4px; box-shadow: none; } /* 下拉选择 */ #shop select.form-control, .shop-modal-wrap select.form-control { cursor: pointer; padding-left: 2px; padding-right: 20px; -webkit-appearance: none; appearance: none; } #shop .form-select, .shop-modal-wrap .form-select { position: relative; } #shop .form-select::before, .shop-modal-wrap .form-select::before { position: absolute; top: 50%; right: 0.7em; transform: translateY(-50%); z-index: 1; font-family: 'Font Awesome 6 Free'; font-weight: 900; content: '\f107'; opacity: 0.5; pointer-events: none; } /* 开关 */ #shop .form-switch, .shop-modal-wrap .form-switch { border-radius: 999px; width: 46px; height: 26px; transition: 0.3s; cursor: pointer; position: relative; overflow: hidden; background-color: rgb(189 189 189 / 40%); } #shop .form-switch::after, .shop-modal-wrap .form-switch::after { content: ''; width: 22px; height: 22px; border-radius: 999px; top: 2px; left: 2px; position: absolute; background: #fff; transition: 0.3s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } #shop .form-switch:active::after, .shop-modal-wrap .form-switch:active::after { width: 30px; } #shop input:checked ~ .form-switch, .shop-modal-wrap input:checked ~ .form-switch { background: rgb(79, 184, 69); } #shop input:checked ~ .form-switch::after, .shop-modal-wrap input:checked ~ .form-switch::after { left: 22px; } #shop input:checked ~ .form-switch:active::after, .shop-modal-wrap input:checked ~ .form-switch:active::after { width: 30px; left: 14px; } /* 自定义标签输入框 */ #shop .badg-form:focus, .shop-modal-wrap .badg-form:focus { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); box-shadow: 0 0 2px 3px var(--focus-shadow-color); color: var(--muted-color); outline: 0; } #shop .badg-form:hover, .shop-modal-wrap .badg-form:hover { border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); opacity: 0.8; } /* --- 按钮组 but-average / 弹窗底部按钮组 modal-buts --- */ #shop .but-average, .shop-modal-wrap .but-average { display: flex; border-radius: .25rem; overflow: hidden; } #shop .but-average > .but, .shop-modal-wrap .but-average > .but { margin: 0 !important; border-radius: 0; flex: auto; } .shop-modal-wrap.modal .but-average > .but { flex: 1; } #shop .modal-buts .but, .shop-modal-wrap .modal-buts .but { padding: 0.3em 1em; } #shop .modal-buts .but + .but, .shop-modal-wrap .modal-buts .but + .but { margin-left: 0.5em; } #shop .modal-buts.but-average, .shop-modal-wrap .modal-buts.but-average { border-block-start: 1px solid var(--main-border-color); margin-top: 10px; } #shop .modal-buts.but-average > .but, .shop-modal-wrap .modal-buts.but-average > .but { background: transparent; padding: 0.8em; border-radius: 0; } #shop .modal-buts.but-average > .but + .but, .shop-modal-wrap .modal-buts.but-average > .but + .but { border-inline-start: 1px solid var(--main-border-color); margin-left: 0; } /* --- 确认订单弹窗 --- */ .shop-modal-wrap .confirm-group .cart-list-item { align-items: stretch; } .shop-modal-wrap .confirm-group.knn-widget .cart-list-item ~ .confirm-product-item, .shop-modal-wrap .confirm-group.knn-widget .cart-list-item + .cart-list-item { border-block-start: 1px solid var(--main-border-color); } .shop-modal-wrap .confirm-group .cart-list-item.confirm-list-item.knn-widget { padding: 15px; } .shop-modal-wrap .confirm-group .cart-list-item { padding: 15px 0; } .shop-confirm-modal :where(.scroll-y) { /* 确认订单弹窗隐藏滚动条（仍可滚动）；高度交由下方 flex 收缩链接管，不再固定限高 */ scrollbar-width: none; } .shop-confirm-modal :where(.scroll-y)::-webkit-scrollbar { display: none; } /* 提交按钮在 .scroll-y 外、body 底部：本主题弹窗壳 .modal-content 限高 85dvh， 若 scroll-y 再限高 90dvh-120px， 「滚动区+按钮」会超出弹窗壳把提交按钮挤出可视区。 改用 flex 纵向布局：滚动区自动收缩，按钮永远钉在弹窗底部可见。 注意 DOM 层级是 .modal-body > .shop-modal-body（Vue 挂载容器）> .scroll-y， 中间层也必须是 flex 列，否则收缩链断裂、滚动区不会收缩 */ .shop-confirm-modal :where(.modal-body), .shop-confirm-modal :where(.shop-modal-body) { display: flex; flex-direction: column; min-height: 0; } .shop-confirm-modal :where(.shop-modal-body) { flex: 1; } .shop-confirm-modal :where(.scroll-y) { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; } .shop-confirm-modal :where(.order-pay-btn), .shop-confirm-modal :where(#shop_knn_pay_form) { flex-shrink: 0; } /* 确认订单弹窗内 icon-header 是「图标+文字」行标签（发货/赠品/备注/必填）， 还原为无样式状态；双类选择器提特异性，压过文件靠后的 34px 圆形图标列规则 */ .shop-modal-wrap.shop-confirm-modal .icon-header { width: auto; height: auto; border-radius: 0; background: none; display: block; color: inherit; white-space: nowrap; } .shop-confirm-modal :where(.modal-content) { background-color: var(--body-bg-color); } .shop-confirm-modal :where(.cart-list-author) { padding-top: 0; padding-bottom: 10px; border-bottom: none; } .shop-confirm-modal :where(.cart-list-item) .product-graphic { --t-size: 80px; } .shop-confirm-modal :where(.cart-list-item) .product-graphic + .flex1 { min-height: 80px; } .shop-confirm-modal :where(.product-title) { font-size: 1em; font-weight: bold; } .shop-confirm-modal :where(.cart-col-author) .avatar-img { --this-size: 22px; } .shop-confirm-modal :where(.cart-col-author) { font-size: 1.05em; } .shop-confirm-modal .confirm-group.knn-widget { padding-bottom: 0; } .shop-confirm-modal :where(.payment-methods) .payment-icon img { height: 1.8em; } .shop-confirm-modal :where(.payment-methods) .payment-icon svg { font-size: 1.8em; } .shop-confirm-modal :where(.payment-methods + .payment-methods) { margin-top: 16px; } .shop-confirm-modal :where(.order-submit-btn), .shop-confirm-modal :where(.initiate-pay) { height: auto; min-height: 34px; } .shop-confirm-modal :where(.modal-content) { overflow: hidden; } .knn-confirm { display: flex; flex-direction: column; flex: 1; min-height: 0; } /* 滚动区外的固定区块（订单金额/订单号/支付方式）：不随商品列表滚动、不被压缩， 多商品结算时订单合计与支付方式始终钉在可视区，不会被商品列表遮住 */ .knn-confirm > .knn-confirm-card { flex-shrink: 0; margin-top: 10px; } .knn-confirm-scroll { display: flex; flex-direction: column; flex: 1; gap: 10px; min-height: 0; padding-right: 2px; } .knn-confirm-card { padding: 14px; background-color: var(--main-bg-color); border: 1px solid var(--main-border-color); border-radius: 10px; box-shadow: 0 6px 18px var(--main-shadow); } .knn-confirm-line, .knn-confirm-extra-row, .knn-confirm-total-row { width: 100%; padding: 0; border: 0; outline: 0; color: inherit; background: transparent; text-align: left; } .knn-confirm-line { display: flex; align-items: center; gap: 12px; } .knn-confirm-line.is-clickable, .knn-confirm-extra-row.is-clickable, .knn-confirm-total-row.is-clickable { cursor: pointer; } .knn-confirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--main-color); background: rgba(64, 158, 255, .1); border-radius: .5rem; } .knn-confirm-main { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 5px; } .knn-confirm-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; } .knn-confirm-desc { display: block; color: var(--muted-color); font-size: 12px; line-height: 1.45; } .knn-confirm-text-button { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; } .knn-confirm-link { color: var(--main-color); font-size: 13px; white-space: nowrap; } .knn-confirm-merchant { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); padding-bottom: 12px; margin-bottom: 12px; border-block-end: 1px solid var(--main-border-color); } .knn-confirm-author { display: inline-flex; align-items: center; min-width: 0; gap: 8px; color: inherit; } .knn-confirm-author .avatar-img { --this-size: 24px; } .knn-confirm-product + .knn-confirm-product { padding-top: 14px; margin-top: 14px; border-block-start: 1px solid var(--main-border-color); } .knn-confirm-product { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: start; } .knn-confirm-thumb { display: block; width: 78px; height: 78px; overflow: hidden; background-color: var(--muted-border-color); border-radius: .5rem; } .knn-confirm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; } .knn-confirm-product-body { min-width: 0; } .knn-confirm-product-title { display: block; color: inherit; font-size: 14px; font-weight: 700; line-height: 1.45; } .knn-confirm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .knn-confirm-extra { display: grid; gap: 8px; margin-top: 12px; } .knn-confirm-extra-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 26px; color: var(--muted-color); font-size: 12px; } .knn-confirm-extra-row > span:first-child { color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); white-space: nowrap; } .knn-confirm-extra-note { margin-left: 82px; color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); font-size: 12px; line-height: 1.45; } .knn-confirm-product-side { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; min-width: 82px; text-align: right; } .knn-confirm-price { display: inline-flex; align-items: baseline; gap: 2px; color: #fc4545; font-weight: 700; white-space: nowrap; } .knn-confirm-price.is-points { color: #d99b00; } .knn-confirm-total-row { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); gap: 16px; min-height: 30px; color: var(--muted-color); } .knn-confirm-total-row + .knn-confirm-total-row { margin-top: 8px; } .knn-confirm-total-row em { margin-left: 4px; color: color-mix(in srgb, var(--muted-3-color) 100%, transparent); font-style: normal; font-size: 12px; } .knn-confirm-total-row strong { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; color: inherit; font-weight: 700; } .knn-confirm-total-row.is-payable strong { color: #fc4545; font-size: 16px; } .knn-confirm-bill { padding: 0; overflow: hidden; } .knn-confirm-bill-head { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); gap: 16px; padding: 16px 14px; background-color: var(--body-bg-color); border-block-end: 1px solid var(--main-border-color); } .knn-confirm-bill-head > div:first-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; } .knn-confirm-bill-head strong { color: var(--main-color); font-size: 15px; } .knn-confirm-bill-head span { color: var(--muted-color); font-size: 12px; } .knn-confirm-bill-pay { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 110px; font-size: 18px; } .knn-confirm-bill-list { padding: 10px 14px 12px; } .knn-confirm-bill-list > div, .knn-confirm-bill-list > button { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); gap: 16px; width: 100%; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted-color); text-align: left; } .knn-confirm-bill-list > div + div, .knn-confirm-bill-list > div + button, .knn-confirm-bill-list > button + div, .knn-confirm-bill-list > button + button { margin-top: 6px; } .knn-confirm-bill-list strong { display: inline-flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 8px; color: var(--main-color); } .knn-confirm-section-head { display: flex; align-items: baseline; justify-content: var(--knn-justify, space-between); gap: 12px; margin-bottom: 12px; } .knn-confirm-section-head strong { font-size: 15px; } .knn-confirm-section-head span { color: var(--muted-color); font-size: 12px; } /* 支付方式：与付费文章购买弹窗（.knn-post-order-modal .pay-methods）同款 —— 3 列网格卡片 + 彩色文字图标 */ /* 选择器带 .knn-confirm 作用域提升优先级，覆盖 Element Plus .el-radio-group 的 inline-flex，使网格平铺撑满容器宽度 */ .knn-confirm .knn-pay-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; box-sizing: border-box; } .knn-pay-channels .el-radio { height: auto; margin-right: 0; } .knn-pay-channel { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 48px; padding: 8px 10px; border: 1px solid #dcdfe6; border-radius: .5rem; background: #fff; color: #303133; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; } .knn-pay-channel:hover { border-color: #409eff; } .knn-pay-channel.is-active, .knn-pay-channel.is-checked { border-color: #409eff; background: #ecf5ff; box-shadow: 0 0 0 2px rgba(64, 158, 255, .12); } /* 渠道卡片不展示原生圆点，选中态由蓝边框 + 浅蓝底承担 */ .knn-pay-channel .el-radio__input { position: absolute; opacity: 0; pointer-events: none; } .knn-pay-channel .el-radio__label { display: inline-flex; align-items: center; gap: 5px; padding-left: 0; } .knn-pay-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: .375rem; color: #fff; font-size: 13px; font-weight: 700; } .knn-pay-icon.is-balance { background: linear-gradient(135deg, #e6a23c, #f7ba2a); } .knn-pay-icon.is-wechat { background: #07c160; } .knn-pay-icon.is-alipay { background: #1677ff; } .knn-pay-icon.is-card { background: #9254de; } .knn-pay-icon.is-points { background: #e6a23c; } .knn-pay-icon.is-other { background: #409eff; } .knn-pay-name { overflow: hidden; color: #303133; font-size: 13px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; } /* 余额/积分信息条（选中余额或积分时显示，同款付费文章弹窗 .pay-balance-info） */ .knn-pay-balance { display: flex; align-items: center; justify-content: var(--knn-justify, space-between); gap: 12px; margin-top: 10px; padding: 11px 14px; border: 1px solid #ebeef5; border-radius: .5rem; background: #fafafa; color: #606266; font-size: 13px; } .knn-pay-balance b { color: #e6a23c; font-size: 15px; } .knn-confirm-footer, .knn-confirm #shop_knn_pay_form { flex-shrink: 0; padding-top: 10px; } .knn-confirm-actionbar { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-top: 12px; } .knn-confirm-action-total { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 3px; } .knn-confirm-action-total > span { color: var(--muted-color); font-size: 12px; } .knn-confirm-action-total strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 18px; } /* 立即购买 / 去支付：与付费文章弹窗「确认支付」按钮（.pay-submit）同款 —— 蓝色实底无边框 */ .knn-confirm-submit { --el-button-bg-color: transparent; --el-button-hover-bg-color: transparent; --el-button-active-bg-color: transparent; --el-button-border-color: transparent; --el-button-hover-border-color: transparent; --el-button-active-border-color: transparent; --el-button-text-color: #fff; --el-button-hover-text-color: #fff; border: none; background: #409eff; border-radius: .375rem; min-width: 120px; height: auto; min-height: 42px; padding: 0 26px; font-size: 14px; font-weight: 700; line-height: 42px; text-align: center; } .knn-confirm-submit:hover, .knn-confirm-submit:focus { background: #66b1ff; color: #fff; } .knn-confirm-submit .knn-confirm-submit-price { display: inline-flex; align-items: baseline; gap: 4px; margin-left: 8px; font-weight: 700; } .knn-confirm-submit.is-disabled, .knn-confirm-submit.is-disabled:hover { background: #a0cfff; color: #fff; opacity: 1; cursor: not-allowed; } body.dark-mode .knn-confirm-card, body.dark-mode .knn-pay-channel, body.dark-mode-auto .knn-confirm-card, body.dark-mode-auto .knn-pay-channel { background-color: var(--main-bg-color); border-color: var(--main-border-color); } body.dark-mode .knn-pay-channel.is-active, body.dark-mode .knn-pay-channel.is-checked, body.dark-mode-auto .knn-pay-channel.is-active, body.dark-mode-auto .knn-pay-channel.is-checked { background: rgba(64, 158, 255, .12); } .shop-modal-wrap .expanded .fa { transform: rotate(180deg); } /* --- S3 移动端补充 --- */ @media (max-width: 767px) { :where(#shop, .shop-modal-wrap) .mb10-sm { margin-bottom: 10px; } .knn-confirm-card { padding: 12px; border-radius: 9px; } .knn-confirm-product { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; } .knn-confirm-thumb { width: 68px; height: 68px; } .knn-confirm-product-side { grid-column: 2; align-items: flex-start; flex-direction: row; min-width: 0; text-align: left; } .knn-confirm-extra-row { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; } .knn-confirm-extra-note { margin-left: 66px; } .knn-confirm-actionbar { align-items: stretch; } .knn-confirm-submit { min-width: 120px; padding: 0 18px; } } /* ============================================================ * 25. 用户中心 · 我的订单（S8） * 面板容器 .knn-user-orders 位于 .knn-uc 内（基础工具类由 user-center.css 提供， * 此处仅补面板缺失的工具类与订单组件样式）；详情弹窗沿用 .shop-modal-wrap 作用域 * ============================================================ */ /* --- 面板补充变量（.knn-uc 未定义的） --- */ .knn-user-orders { --muted-4-color: #cccccc; } body.dark-mode .knn-user-orders, body.dark-mode-auto .knn-user-orders { --muted-4-color: #4d4d4d; } /* --- 面板缺失工具类 --- */ :where(.knn-user-orders) .pointer { cursor: pointer; } :where(.knn-user-orders) .text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } :where(.knn-user-orders) .overflow-hidden { overflow: hidden; position: relative; } :where(.knn-user-orders) .text-right { text-align: right; } :where(.knn-user-orders) .list-inline { padding-left: 0; margin: 0; list-style: none; } :where(.knn-user-orders) .list-inline > li { display: inline-block; } :where(.knn-user-orders) .scroll-x { overflow-x: auto; overflow-y: hidden; white-space: nowrap; max-width: 100%; -webkit-overflow-scrolling: touch; } :where(.knn-user-orders) .mini-scrollbar { scrollbar-width: thin; } :where(.knn-user-orders) .mini-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; } :where(.knn-user-orders) .mini-scrollbar::-webkit-scrollbar-thumb { background: var(--muted-4-color); border-radius: .25rem; } :where(.knn-user-orders) .flex.ab { align-items: flex-end; } :where(.knn-user-orders) .fit-cover { width: 100%; height: 100%; object-fit: cover; } :where(.knn-user-orders) .muted-box { background-color: var(--muted-border-color); border-radius: calc(var(--main-radius) + 0px); } :where(.knn-user-orders, .shop-modal-wrap) .inline-block { display: inline-block; } :where(.knn-user-orders, .shop-modal-wrap) .radius8 { border-radius: .5rem; } :where(.knn-user-orders) .pay-mark { font-size: 0.6em; margin-right: 2px; } :where(.knn-user-orders) .pay-mark.px12 { font-size: 12px; } /* 状态文字上色（.knn-uc 的 .c-yellow 仅提供变量不输出颜色） */ :where(.knn-user-orders) .c-yellow { color: #ff9600; } :where(.knn-user-orders, .shop-modal-wrap) .c-blue-2 { --this-color: #5c7cff; --this-bg: rgb(77 130 249 / 10%); } :where(.knn-user-orders) .b-red { --this-bg: #fe3459; --this-color: #ffffff; background: #fe3459; color: #fff; } /* --- 懒加载骨架屏 --- */ .knn-user-orders .placeholder { background-color: var(--muted-border-color); border-radius: .25rem; color: transparent !important; animation: shop-placeholder-breathe 1.2s ease-in-out infinite; pointer-events: none; } .knn-user-orders .placeholder.k1 { height: 20px; } .knn-user-orders .placeholder.s1 { width: 70px; height: 15px; display: inline-block; } /* --- 分栏导航 --- */ .knn-user-orders .order-tab-nav { padding: 12px 15px; } .knn-user-orders .order-tab-nav li + li { margin-left: 22px; } .knn-user-orders .order-tab-nav li a { color: inherit; position: relative; display: inline-block; padding: 2px 0 6px; } .knn-user-orders .order-tab-nav li.active a { color: var(--focus-color); font-weight: bold; } .knn-user-orders .order-tab-nav li.active a::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 20px; height: 2px; border-radius: 2px; background-color: var(--focus-color); } /* --- 分栏面板显隐（AJAX 懒加载，仅激活分栏可见） --- */ .knn-user-orders .knn-order-tab-pane { display: none; } .knn-user-orders .knn-order-tab-pane.active { display: block; } /* --- 订单卡片（面板列表与详情弹窗商品行共用） --- */ :where(.knn-user-orders, .shop-modal-wrap) .order-item .order-thumb { width: 70px; height: 70px; border-radius: .5rem; background-color: var(--main-border-color); overflow: hidden; flex-shrink: 0; } :where(.knn-user-orders, .shop-modal-wrap) .order-item .order-thumb img, :where(.knn-user-orders, .shop-modal-wrap) .order-item .order-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; } :where(.knn-user-orders, .shop-modal-wrap) .order-item .order-title { font-size: 15px; line-height: 1.5; } :where(.knn-user-orders, .shop-modal-wrap) .order-item .order-title a { color: inherit; } :where(.knn-user-orders, .shop-modal-wrap) .order-item .unit-price { white-space: nowrap; } :where(.knn-user-orders, .shop-modal-wrap) .order-item-author { color: inherit; } .knn-user-orders .knn-order-pay-form { display: inline-block; } .knn-user-orders .knn-order-load-more-box { padding: 5px 0 15px; } /* --- 订单详情弹窗补充工具类 --- */ :where(.shop-modal-wrap) .inflex { display: inline-flex; } :where(.shop-modal-wrap) .font-normal { font-weight: normal; } :where(.shop-modal-wrap) .ml20 { margin-left: 20px; } :where(.shop-modal-wrap) .break-all { word-break: break-all; } :where(.shop-modal-wrap) .padding-h6 { padding-top: 6px; padding-bottom: 6px; } :where(.shop-modal-wrap) .max-vh7 { max-height: 70vh; max-height: 70dvh; } /* 复制链接前小圆点分隔 */ :where(.shop-modal-wrap) .icon-spot::before { content: ''; width: 4px; height: 4px; margin: 0 0.5em; border-radius: 999px; display: inline-block; vertical-align: 0.2em; background: var(--main-color); opacity: 0.3; } /* 商家头像：knn_custom_avatar 过滤器会重建 class 为 avatar avatar-{size} photo， 丢失传入的 avatar-mini/mr10；故直接锁定 img.avatar 尺寸（高于 .knn-uc .avatar 的 100% 规则） */ .shop-modal-wrap img.avatar, .knn-user-orders img.avatar { width: 24px; height: 24px; border-radius: 999px; object-fit: cover; margin-right: 8px; flex-shrink: 0; vertical-align: middle; } /* 地址/物流行左侧圆形图标列 */ .shop-modal-wrap .icon-header { width: 34px; height: 34px; border-radius: 999px; background-color: var(--muted-border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: color-mix(in srgb, var(--muted-2-color) 100%, transparent); } /* 弹窗通栏底部（抵消 .modal-body 内边距全宽铺底） */ .shop-modal-wrap .modal-body .modal-full-footer { margin: 15px -24px -24px; background-color: var(--body-bg-color); padding: 12px 24px; padding-bottom: calc(12px + constant(safe-area-inset-bottom)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); } /* 时间线（自动发货进度） */ .shop-modal-wrap .timeline-box { position: relative; } .shop-modal-wrap .timeline-content { position: relative; padding: 6px 6px 6px 28px; top: -3px; } .shop-modal-wrap .timeline-content::before { content: ''; position: absolute; left: 5px; top: 13px; width: 7px; height: 7px; border-radius: 999px; background: var(--muted-4-color); z-index: 1; } .shop-modal-wrap .timeline-content::after { position: absolute; content: ''; left: 8px; top: 18px; height: 100%; width: 1px; bottom: 6px; background-color: var(--main-border-color); } .shop-modal-wrap .timeline-content:last-child::after { display: none; } .shop-modal-wrap .timeline-content:first-child { --this-color: color-mix(in srgb, var(--focus-color) 100%, transparent); } .shop-modal-wrap .timeline-content:first-child::before { left: 4px; top: 12px; width: 9px; height: 9px; background-color: var(--main-bg-color); border: 2px solid var(--focus-color); } .shop-modal-wrap .timeline-time { color: var(--this-color, var(--muted-color)); margin-bottom: 3px; } /* 详情弹窗隐藏右侧滚动条（仍可滚动，与确认订单弹窗一致） */ .order-details-modal .scroll-y { scrollbar-width: none; } .order-details-modal .scroll-y::-webkit-scrollbar { display: none; width: 0; height: 0; } /* 详情弹窗内层卡片去阴影、收窄内边距（弹窗自身已有容器背景） */ .order-details-modal .knn-widget { box-shadow: none; background-color: var(--muted-border-color); padding: 15px; margin-bottom: 0; } .order-details-modal .knn-widget + .knn-widget, .order-details-modal .knn-widget.mb10 { margin-bottom: 10px; } .order-details-modal .knn-widget.mb10 + .knn-widget { margin-bottom: 0; } /* --- 用户中心侧栏订单入口 / 购物车按钮 --- */ .knn-uc .user-order-tab-btn-box .shop-user-order-tab-btn, .knn-uc item.icon-but-cart { display: block; cursor: pointer; padding: 6px 4px; line-height: 1.4; box-sizing: border-box; /* 主题无全局 border-box，padding 会撑宽 25% 宽度导致按钮组提前换行 */ } .knn-uc item.icon-but-cart a { color: inherit; display: block; } .knn-uc .shop-user-order-tab-btn badge.abs-tr { position: absolute; top: -4px; right: -10px; } /* --- 移动端适配 --- */ @media (max-width: 767px) { .knn-user-orders .order-tab-nav li + li { margin-left: 15px; } /* 分栏导航隐藏滚动条（仍可左右滑动切换） */ .knn-user-orders .order-tab-nav .scroll-x { scrollbar-width: none; -ms-overflow-style: none; } .knn-user-orders .order-tab-nav .scroll-x::-webkit-scrollbar { display: none; width: 0; height: 0; } :where(.knn-user-orders) .order-item .order-thumb { width: 60px; height: 60px; } .shop-modal-wrap .modal-body .modal-full-footer { margin: 15px -15px calc(0px - constant(safe-area-inset-bottom)); margin: 15px -15px calc(0px - env(safe-area-inset-bottom)); padding: 12px 15px; padding-bottom: calc(12px + constant(safe-area-inset-bottom)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); } .knn-uc .mb10-sm { margin-bottom: 10px; } } /* ============================================================ * 26. 支付成功弹窗 · 多彩头部（modal-colorful-header / colorful-bg） *    支付成功通知弹窗顶部绿色渐变横幅 + 右上关闭按钮 * ============================================================ */ .shop-modal-wrap .jb-green { --this-color: #fff; --this-bg-b: #60e464; --this-bg: linear-gradient(135deg, #60e464 10%, #5cb85b 100%); color: var(--this-color); background: var(--this-bg); border: none; } .shop-modal-wrap .modal-colorful-header, .shop-modal-wrap .colorful-bg { background-size: 120%; overflow: hidden; position: relative; color: var(--this-color); background: var(--this-bg); } .shop-modal-wrap .colorful-bg > .colorful-make, .shop-modal-wrap .colorful-bg > .colorful-make::before, .shop-modal-wrap .colorful-bg > .colorful-make::after { position: absolute; color: var(--this-color); background: var(--this-bg); border-radius: 999px; content: ' '; } .shop-modal-wrap .colorful-bg > .colorful-make { bottom: 0; height: 290px; width: 323px; top: 60%; } .shop-modal-wrap .colorful-bg > .colorful-make::before { right: -558px; bottom: 0; height: 300px; width: 677px; top: -325px; transform: rotate(341deg); opacity: 0.6; } .shop-modal-wrap .colorful-bg > .colorful-make::after { left: -262px; bottom: 0; height: 214px; width: 402px; top: -170px; transform: rotate(326deg); opacity: 0.4; } .shop-modal-wrap .colorful-bg > .colorful-make + * { position: relative; } /* 头部绝对定位覆盖弹窗顶部，后续内容以 margin-top 让位 */ .shop-modal-wrap .modal-colorful-header { border-radius: 16px 16px 0 0 / 16px 16px 0 0; position: absolute; left: 0; right: 0; top: 0; height: 120px; display: flex; align-items: center; justify-content: center; } .shop-modal-wrap .modal-body > .modal-colorful-header + * { margin-top: calc(120px - 24px); } .shop-modal-wrap .modal-colorful-header > .close { position: absolute; right: 10px; top: 10px; color: var(--this-color); opacity: 0.6; font-size: 18px; z-index: 9; background: none; border: none; padding: 0; cursor: pointer; line-height: 1; } .shop-modal-wrap .modal-colorful-header > .close:hover { opacity: 1; } .shop-modal-wrap .modal-colorful-header > .close.hide { display: none; } /* 关闭图标与内嵌 svg 图标（弹窗内无 .knn-uc 作用域，需自带尺寸） */ .shop-modal-wrap .ic-close { width: 1em; height: 1em; fill: currentColor; } .shop-modal-wrap svg.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.15em; } /* ============================================================ * 27. 商品评价（S7：评分汇总/筛选/评价列表/评价弹窗/移动端入口） * ============================================================ */ /* --- 评分汇总区 --- */ .shop-comment-area { transition: opacity 0.2s; } .shop-comment-box .comment-header { padding-bottom: 6px; border-block-end: 1px solid var(--main-border-color); } .comment-score-detail .score-item + .score-item { margin-top: 8px; } .comment-score-progress { width: 160px; height: 6px; border-radius: 3px; background: var(--main-bg-color-opacity, rgba(128, 128, 128, 0.12)); overflow: hidden; margin-right: 10px; } .comment-score-progress > .vote-progress { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff9a9e 0%, #fc4545 100%); } /* --- 筛选条 --- */ .comment-filter .badg, .comment-filter .but { white-space: nowrap; } .comment-filter .scroll-x { white-space: nowrap; padding: 2px 0 6px; } /* --- 评价列表 --- */ .shop-commentlist { margin: 0; padding: 0; } .shop-comment-item { padding: 16px 0; border-block-end: 1px solid var(--main-border-color); } .shop-comment-item:last-child { border-bottom: none; } .shop-comment-item .avatar-img img, .shop-featured-comment-box .avatar-img img { border-radius: 999px; display: block; object-fit: cover; /* 自定义上传头像可能非正方形，裁切防变形 */ } .shop-comment-item .avatar-img img { width: 40px; height: 40px; } .shop-comment-item .comment-user-name { font-weight: 600; } .shop-comment-item .comment-footer { padding-left: 50px; /* 头像宽度 + 间距，内容与昵称对齐 */ } .shop-comment-item .comment-null { font-style: italic; } /* --- 评价图片：单图限宽，多图方格 --- */ .comment-score-imgs span { display: inline-block; margin: 0 6px 6px 0; border-radius: .375rem; overflow: hidden; vertical-align: top; } .comment-score-imgs img { display: block; cursor: zoom-in; } .comment-score-imgs.count-1 img { max-width: 300px; max-height: 300px; } .comment-score-imgs:not(.count-1) img { width: 100px; height: 100px; object-fit: cover; } /* --- 商家回复 --- */ .comment-author-reply { border-radius: .5rem; font-size: 0.9em; color: var(--muted-color); } /* --- 分页 --- */ .shop-comment-paginate .but { padding: 4px 14px; } /* --- 评价弹窗：评分行 + 图片选择 --- */ .order-comment-from .score-title { min-width: 4em; } .order-comment-from .comment-upload .preview { display: flex; flex-wrap: wrap; gap: 8px; } .order-comment-from .comment-upload .add { width: 80px; height: 80px; border: 1px dashed var(--muted-4-color); border-radius: .5rem; cursor: pointer; position: relative; transition: 0.2s; } .order-comment-from .comment-upload .add:hover { border-color: var(--focus-color-opacity6); } /* 加号：两条交叉短线 */ .order-comment-from .comment-upload .add::before, .order-comment-from .comment-upload .add::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--muted-3-color); transform: translate(-50%, -50%); } .order-comment-from .comment-upload .add::before { width: 24px; height: 2px; } .order-comment-from .comment-upload .add::after { width: 2px; height: 24px; } .order-comment-from .comment-upload .add.hide { display: none; } .order-comment-from :where(.preview-item) { width: 80px; height: 80px; border-radius: .5rem; overflow: hidden; position: relative; } .order-comment-from :where(.preview-item) img { width: 100%; height: 100%; object-fit: cover; display: block; } .order-comment-from :where(.preview-item) .del { position: absolute; right: 0; top: 0; width: 20px; height: 20px; line-height: 20px; text-align: center; color: #fff; background-color: rgb(0 0 0 / 50%); border-radius: 0 0 0 8px; cursor: pointer; font-style: normal; } /* --- 移动端宝贝评价入口条 --- */ .shop-featured-comment-box .avatar-img img { width: 24px; height: 24px; } /* --- 评价弹窗（移动端查看全部）：限高滚动 --- */ .shop-comment-modal .shop-comment-area { max-height: 65vh; overflow-y: auto; -webkit-overflow-scrolling: touch; } /* --- 移动端适配 --- */ @media (max-width: 767px) { .comment-score.flex.jsb { display: block; } .comment-score-detail { margin-top: 12px; } .comment-score-progress { flex: 1; width: auto; } .comment-score-detail .score-item { width: 100%; } .comment-score-imgs:not(.count-1) img { width: 84px; height: 84px; } .shop-comment-item .comment-footer { padding-left: 0; } } /* ============================================================ * 28. 售后（S5：申请弹窗类型/原因单选、退款金额、退货快递输入、售后记录） * ============================================================ */ /* 类型/原因单选组：radio 隐藏，选中时 but-radio 主色高亮 */ .shop-modal-wrap .after-sale-radio-box { display: flex; flex-wrap: wrap; gap: 8px; } .shop-modal-wrap .after-sale-type-item input, .shop-modal-wrap .after-sale-reason-item input { position: absolute; opacity: 0; pointer-events: none; } .shop-modal-wrap .but.but-radio { display: inline-block; padding: 4px 12px; border: 1px solid var(--main-border-color); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; transition: all 0.2s; } .shop-modal-wrap .after-sale-type-item input:checked + .but-radio, .shop-modal-wrap .after-sale-reason-item input:checked + .but-radio { color: var(--focus-color); border-color: color-mix(in srgb, var(--focus-color) 100%, transparent); background: var(--focus-color-opacity1); } /* 售后弹窗内输入：金额/退货快递（无框透明右对齐，对齐确认订单弹窗风格） 注：refresh_modal 传入的 class 挂在 .modal-dialog 上，需用后代选择器 */ .shop-modal-wrap .modal-dialog.after-sale-modal { width: 520px; max-width: calc(100% - 24px); } .shop-modal-wrap .after-sale-modal .after-sale-flow-body { overflow: visible; max-height: none; } @media (max-width: 768px) { .shop-modal-wrap .modal-dialog.after-sale-modal { width: 100%; max-width: 100%; } } .shop-modal-wrap .after-sale-modal input[type='text'], .shop-modal-wrap .after-sale-modal input[type='number'] { border: none; background: transparent; outline: none; padding: 2px 0; color: inherit; min-width: 0; } .shop-modal-wrap .after-sale-modal .after-sale-form textarea.form-control { width: 100%; box-sizing: border-box; } /* 售后弹窗商品盒缩略图（无 .order-item 祖先，单独限定尺寸） */ .shop-modal-wrap .after-sale-modal .order-thumb { width: 60px; height: 60px; border-radius: .5rem; background-color: var(--main-border-color); overflow: hidden; flex-shrink: 0; } .shop-modal-wrap .after-sale-modal .order-thumb img, .shop-modal-wrap .after-sale-modal .order-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; } /* 售后记录条目 */ .shop-modal-wrap .after-sale-record-item { font-size: 0.9em; } /* ============================================================ * 29. 归档页（商城首页/商品分类/优惠活动/标签：头部筛选条+排序+分页） * ============================================================ */ /* product-lists-row 为 flex 布局，头部/分页/空态需占满整行 */ #shop .product-lists-row > .shop-term-header, #shop .product-lists-row > .shop-paginate, #shop .product-lists-row > .shop-null-box { width: 100%; } #shop .shop-term-header { margin: 8px 8px -8px 8px; } #shop .shop-cat-filter { padding: 12px 15px; } #shop .shop-cat-filter-tab { margin-bottom: 10px; } #shop .shop-cat-filter-tab > * > * { font-size: 1.2em; padding: 6px 12px; } #shop .shop-cat-filter-child { padding: 0 5px; } #shop .shop-cat-filter-child a:not(.focus-color) { color: var(--muted-color); } #shop .shop-cat-filter-child a:not(.focus-color):hover { color: var(--focus-color); } #shop .shop-cat-filter-child > * { padding: 6px 12px; display: inline-block; } #shop .shop-cat-filter-child + .shop-cat-filter-child { border-block-start: 1px dashed var(--main-border-color); margin-top: 6px; padding-top: 8px; } #shop .shop-cat-filter-child .title-h-left h1 { padding: 0; margin: 0; font-size: 24px; } /* 归档分页：与卡片列拉开间距（数字分页样式由主题 pagination-container 提供） */ #shop .shop-paginate { margin-top: 12px; } /* ------------------------------------------------------------ * 小卡样式（分类可配置 list_style_style = small） * ------------------------------------------------------------ */ #shop .product-item.card.style-small { display: inline-flex; --body-padding: 0; padding: 6px; } #shop .product-item.card.style-small .item-thumbnail { flex-shrink: 0; flex-basis: 98px; padding-bottom: 98px; margin-right: 10px; border-radius: calc(var(--main-radius) + 0px); } #shop .product-item.card.style-small .item-body { overflow: hidden; flex-direction: column; justify-content: var(--knn-justify, space-between); display: flex; margin-bottom: -2px; } #shop .product-item.card.style-small .item-body > * { margin-top: 0; } #shop .product-item.style-small .img-badge { font-size: 11px; } #shop .product-item.card:not(.style-small) .img-badge { top: 14px; } /* 平板：小卡两列 */ @media (max-width: 991px) { #shop .product-lists-row .product-item.style-small { width: calc(50% - 16px); } } /* 移动端适配 */ @media (max-width: 767px) { /* 移动端头部 .header.mobile 为 position:fixed（高 50px）。商城归档页经自定义路由（template_redirect） 渲染，全局 body padding-top:50px 在此不稳定生效，导致顶部分类筛选条被固定头部遮住。 此处让商城页自行接管让位：先归零本页 body 顶部内边距，再由 #shop 显式预留 66px （固定头部 50px + 16px 间距），结果与全局 padding 是否生效无关。 */ body.shop-archive-page { padding-top: 0; } body.shop-archive-page #shop { padding-top: 66px; } /* 分类切换栏：隐藏横向滚动条（仍可左右滑动） */ #shop .shop-cat-filter-tab { scrollbar-width: none; -ms-overflow-style: none; } #shop .shop-cat-filter-tab::-webkit-scrollbar { display: none; width: 0; height: 0; } /* 移动端隐藏排序条右侧的商品搜索按钮 */ #shop .knn-shop-search-toggle { display: none; } #shop .shop-term-header { margin: 4px 4px -4px 4px; } #shop .shop-cat-filter { padding: 10px 12px; } #shop .shop-cat-filter-tab > * > * { font-size: 1.1em; padding: 5px 10px; } #shop .shop-cat-filter-child > * { padding: 5px 8px; } #shop .shop-cat-filter-child .title-h-left h1 { font-size: 20px; } /* 手机：小卡单列占满 */ #shop .product-lists-row .product-item.style-small { width: calc(100% - 16px); } } /* ========================================================================== 30. 商品收藏 + 推广分享 ========================================================================== */ /* 收藏按钮激活态：星星点亮 */ #shop .btn-favorite.active .icon, .shop-modal-wrap .btn-favorite.active .icon, #shop .btn-favorite.active svg, .footer-tabbar .btn-favorite.active svg { color: #ffb531; fill: #ffb531; } #shop .btn-favorite.active text { color: #ffb531; opacity: 1; } /* 分享弹窗：商品信息行 */ .shop-share-modal-body { min-width: 300px; } .shop-share-modal-body .share-product-thumb { width: 48px; height: 48px; border-radius: var(--main-radius, 8px); object-fit: cover; flex-shrink: 0; } .shop-share-modal-body .share-product-title { font-size: 14px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } /* 平台分享按钮：图标上、文字下竖排 */ .shop-share-modal-body .share-btns-box { padding: 10px 0; } .shop-share-modal-body .share-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 8px 6px; border-radius: var(--main-radius, 8px); color: var(--muted-color, #8a8a8a); } .shop-share-modal-body .share-btn:hover { background: var(--muted-border-color, rgba(0, 0, 0, 0.04)); } .shop-share-modal-body .share-btn icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; font-size: 22px; margin-bottom: 6px; color: #fff; } .shop-share-modal-body .share-btn icon svg { width: 1em; height: 1em; fill: currentColor; } .shop-share-modal-body .share-btn.qzone icon { background: #fec91b; } .shop-share-modal-body .share-btn.weibo icon { background: #e6162d; } .shop-share-modal-body .share-btn.copy icon { background: var(--focus-color, #ff7744); } .shop-share-modal-body .share-btn.poster icon { background: #22c55e; } .shop-share-modal-body .share-btn text { font-size: 12px; line-height: 1; } /* 二维码 */ .shop-share-modal-body .share-qrcode-img { width: 130px; height: 130px; border-radius: var(--main-radius, 8px); border: 1px solid var(--muted-border-color, rgba(0, 0, 0, 0.06)); padding: 6px; background: #fff; } /* 推广返佣提示 */ .shop-share-modal-body .share-rebate-tips { display: block; white-space: normal; line-height: 1.6; padding: 6px 10px; text-align: left; } /* 购物车页收藏夹 tab */ #shop .tab-content > .tab-pane { display: none; } #shop .tab-content > .tab-pane.active { display: block; } #shop #shop_cart_favorite .shop-favorite-lists { min-height: 120px; } #shop .shop-favorite-more-btn { min-width: 140px; }
/* 商品详情页：左侧商品图片缩略图栏 */
#shop .product-cover-gallery.has-thumbs {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}
#shop .product-cover-stage {
    min-width: 0;
}
#shop .product-cover-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    padding: 2px 4px 2px 0;
}
#shop .product-cover-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--main-border-color);
    border-radius: 10px;
    background: var(--main-bg-color);
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
#shop .product-cover-thumb:hover,
#shop .product-cover-thumb.active {
    border-color: var(--focus-color);
    box-shadow: 0 0 0 2px var(--focus-color-opacity1);
}
#shop .product-cover-thumb.active {
    transform: translateX(2px);
}
#shop .product-cover-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}
#shop .product-cover-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0,0,0,.24);
    font-size: 15px;
}
@media (max-width: 767px) {
    #shop .product-cover-gallery.has-thumbs {
        display: block;
    }
    #shop .product-cover-thumbs {
        display: none;
    }
}

/* 商城首页独立放宽：只影响 /shop 首页，不影响商品详情、分类页和全站容器 */
@media (min-width: 1200px) {
    body.shop-home-page #shop > .container {
        max-width: 1480px;
    }
}

@media (min-width: 1600px) {
    body.shop-home-page #shop > .container {
        max-width: 1540px;
    }
}
/* 商品详情页：店铺评分独立条 */
#shop .single-tab-nav { position: relative; }
#shop .shop-tab-nav-wrap { position: relative; min-height: 54px; justify-content: center; }
#shop .shop-tab-nav-wrap .shop-tab-nav { justify-content: center; }
#shop .single-tab-title { line-height: 54px; }
#shop .shop-single-rating-bar {
    width: 100%;
    margin: 18px 0 0;
    padding: 0 0 14px;
}
#shop .shop-store-rating-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding: 12px 18px;
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    background: var(--main-bg-color);
    box-shadow: 0 8px 22px var(--main-shadow);
}
#shop .shop-store-rating-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    background: var(--muted-border-color);
}
#shop .shop-store-rating-avatar img,
#shop .shop-store-rating-avatar .avatar {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 8px;
    object-fit: cover;
}
#shop .shop-store-rating-info {
    flex: 1 1 auto;
    min-width: 0;
}
#shop .shop-store-rating-name-row,
#shop .shop-store-rating-score-row,
#shop .shop-store-rating-metrics,
#shop .shop-store-rating-actions {
    display: flex;
    align-items: center;
}
#shop .shop-store-rating-name-row {
    gap: 8px;
    min-width: 0;
    margin-bottom: 7px;
}
#shop .shop-store-rating-name {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
#shop .shop-store-rating-name:hover {
    color: var(--focus-color);
}
#shop .shop-store-rating-name .fa {
    margin-left: 4px;
    color: var(--muted-3-color);
    font-size: 13px;
}
#shop .shop-store-rating-identity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    line-height: 1;
}
#shop .shop-store-rating-identity .img-icon,
#shop .shop-store-rating-identity .knn-medal-wear-icon,
#shop .shop-store-rating-identity .knn-vip-badge-icon {
    display: block;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    object-fit: contain;
}
#shop .shop-store-rating-identity .knn-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    max-height: 20px;
    overflow: hidden;
    line-height: 1;
}
#shop .shop-store-rating-identity .knn-vip-badge-name {
    font-size: 12px;
    line-height: 1;
}
#shop .shop-store-rating-identity icon.user-auth-icon {
    display: inline-flex;
    align-items: center;
    width: 18px;
    height: 18px;
    margin: 0;
    overflow: hidden;
    line-height: 1;
}
#shop .shop-store-rating-identity icon.user-auth-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}
#shop .shop-store-rating-score-row {
    gap: 10px;
    color: var(--muted-color);
    font-size: 13px;
}
#shop .shop-store-rating-title {
    color: var(--muted-2-color);
    font-weight: 600;
}
#shop .shop-store-rating-stars {
    color: #ff4d4f;
    font-size: 13px;
}
#shop .shop-store-rating-value {
    color: #ff5000;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}
#shop .shop-store-rating-count {
    position: relative;
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 500;
}
#shop .shop-store-rating-count::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -2px;
    background: var(--main-border-color);
}
#shop .shop-store-rating-metrics {
    gap: 10px;
    margin-top: 6px;
}
#shop .shop-store-rating-metrics span {
    color: var(--muted-color);
    font-size: 12px;
}
#shop .shop-store-rating-actions {
    flex: 0 0 auto;
    gap: 10px;
}
#shop .shop-store-rating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 38px;
    gap: 6px;
    border: 1px solid var(--main-border-color);
    border-radius: 999px;
    background: var(--main-bg-color);
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
#shop .shop-store-rating-btn:hover {
    color: var(--focus-color);
    border-color: rgba(0, 122, 255, 0.25);
    background: var(--focus-color-opacity05);
}
@media (max-width: 991px) {
    #shop .shop-single-rating-bar {
        margin-top: 12px;
        padding-bottom: 12px;
    }
    #shop .shop-store-rating-panel {
        align-items: flex-start;
        padding: 12px;
    }
    #shop .shop-store-rating-score-row,
    #shop .shop-store-rating-metrics {
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    #shop .shop-store-rating-actions {
        display: none;
    }
}
/* 商品列表卡片：等高但内容紧凑，避免价格区被顶到底部后中间留白 */
#shop .product-lists-row {
    align-items: stretch;
}
#shop .product-lists-row .product-item.card:not(.style-small) {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-body {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-heading {
    display: -webkit-box;
    height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-excerpt {
    height: 20px;
    overflow: hidden;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-discount-badge {
    height: 24px;
    min-height: 24px;
    margin-top: 0;
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-price {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    min-height: 26px;
    margin-top: 0;
    overflow: hidden;
    line-height: 1.25;
    white-space: nowrap;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-price .show-price-box,
#shop .product-lists-row .product-item.card:not(.style-small) .item-price .crossed-price-box {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    min-width: 0;
}
#shop .product-lists-row .product-item.card:not(.style-small) .item-price .crossed-price-box {
    margin-left: 0;
}
#shop .product-lists-row .product-item .item-seckill-box {
    margin-top: 6px;
    padding: 6px 7px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #ff6238 0%, #ee0a24 100%);
    box-shadow: 0 6px 14px rgba(238, 10, 36, 0.12);
}
#shop .product-lists-row .product-item .item-seckill-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
#shop .product-lists-row .product-item .item-seckill-countdown {
    min-width: 62px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #ee0a24;
    background: #fff;
    font-size: 11px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
#shop .product-lists-row .product-item .item-seckill-progress {
    min-width: 0;
    flex: 1;
    gap: 6px;
}
#shop .product-lists-row .product-item .item-seckill-progress-bar {
    flex: 1;
    overflow: hidden;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
}
#shop .product-lists-row .product-item .item-seckill-progress-bar i {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: #fff;
}
#shop .product-lists-row .product-item .item-seckill-progress-text {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
}
#shop .product-lists-row .product-item .item-seckill-row {
    gap: 8px;
    min-width: 0;
}
#shop .product-lists-row .product-item .item-seckill-img-badge {
    right: 8px;
    left: auto;
    color: #fff;
    background: linear-gradient(135deg, #ff6238 0%, #ee0a24 100%);
}
body.dark-mode #shop .product-lists-row .product-item .item-seckill-box {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* 商品卡片可能出现在个人主页、短代码和瀑布流组件中；这些场景不一定包在 #shop 内。 */
.posts-item.product-item .item-seckill-box,
.knn-block-productbox .product-item .item-seckill-box,
.shop-seckill-widget .product-item .item-seckill-box {
    margin-top: 6px;
    padding: 6px 7px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #ff6238 0%, #ee0a24 100%);
    box-shadow: 0 6px 14px rgba(238, 10, 36, 0.12);
}
.posts-item.product-item .item-seckill-row,
.knn-block-productbox .product-item .item-seckill-row,
.shop-seckill-widget .product-item .item-seckill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.posts-item.product-item .item-seckill-progress,
.knn-block-productbox .product-item .item-seckill-progress,
.shop-seckill-widget .product-item .item-seckill-progress {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 6px;
    min-width: 0;
}
.posts-item.product-item .item-seckill-label,
.knn-block-productbox .product-item .item-seckill-label,
.shop-seckill-widget .product-item .item-seckill-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.posts-item.product-item .item-seckill-progress-bar,
.knn-block-productbox .product-item .item-seckill-progress-bar,
.shop-seckill-widget .product-item .item-seckill-progress-bar {
    flex: 1;
    overflow: hidden;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
}
.posts-item.product-item .item-seckill-progress-bar i,
.knn-block-productbox .product-item .item-seckill-progress-bar i,
.shop-seckill-widget .product-item .item-seckill-progress-bar i {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: #fff;
}
.posts-item.product-item .item-seckill-progress-text,
.knn-block-productbox .product-item .item-seckill-progress-text,
.shop-seckill-widget .product-item .item-seckill-progress-text {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}
.posts-item.product-item .item-seckill-countdown,
.knn-block-productbox .product-item .item-seckill-countdown,
.shop-seckill-widget .product-item .item-seckill-countdown {
    flex-shrink: 0;
    min-width: 62px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #ee0a24;
    background: #fff;
    font-size: 11px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.posts-item.product-item .item-thumbnail,
.knn-block-productbox .product-item .item-thumbnail,
.shop-seckill-widget .product-item .item-thumbnail {
    position: relative;
}
.posts-item.product-item .item-seckill-img-badge,
.knn-block-productbox .product-item .item-seckill-img-badge,
.shop-seckill-widget .product-item .item-seckill-img-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    z-index: 2;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff6238 0%, #ee0a24 100%);
    writing-mode: horizontal-tb;
    white-space: nowrap;
}
body.dark-mode .posts-item.product-item .item-seckill-box,
body.dark-mode .knn-block-productbox .product-item .item-seckill-box,
body.dark-mode .shop-seckill-widget .product-item .item-seckill-box {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.shop-seckill-widget,
.shop-seckill-widget * {
    box-sizing: border-box;
}
.shop-seckill-widget.widget-container {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.dark-mode .shop-seckill-widget.widget-container {
    background: transparent;
    box-shadow: none;
}
.shop-seckill-widget .widget-header {
    padding: 0 0 12px;
    margin-bottom: 12px;
}
.shop-seckill-widget .shop-seckill-widget-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    justify-items: start;
}
.shop-seckill-widget .product-item.card {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 240px !important;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0 !important;
    padding: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}
body.dark-mode .shop-seckill-widget .product-item.card {
    background: transparent;
    box-shadow: none;
}
.shop-seckill-widget .product-item.card .item-thumbnail {
    flex: none;
    width: 100%;
    height: 0;
    padding-bottom: 56%;
    margin-right: 0;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 6px;
    background: transparent;
}
.shop-seckill-widget .product-item.card .item-thumbnail > a,
.shop-seckill-widget .product-item.card .item-thumbnail img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.shop-seckill-widget .product-item.card .item-thumbnail img,
.shop-seckill-widget .product-item.card .fit-cover {
    object-fit: cover;
}
.shop-seckill-widget .product-item.card .item-thumbnail.contain img {
    object-fit: cover;
}
.shop-seckill-widget .product-item.card .item-thumbnail .img-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 6px;
    z-index: 3;
    height: 18px;
    min-height: 18px;
    padding: 1px 5px;
    line-height: 16px;
}
.shop-seckill-widget .product-item.card .item-thumbnail .img-badge:not(.item-seckill-img-badge) {
    right: auto;
    left: 6px;
    color: #fff;
    background: linear-gradient(135deg, #ff6238 0%, #ee0a24 100%);
}
.shop-seckill-widget .product-item.card .item-seckill-img-badge {
    top: 6px;
    right: 6px;
    left: auto;
    height: 18px;
    min-height: 18px;
    line-height: 16px;
}
.shop-seckill-widget .product-item.card .item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
}
.shop-seckill-widget .product-item.card .item-heading {
    display: block;
    height: 20px;
    max-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.45;
}
.shop-seckill-widget .product-item.card .item-heading .badg {
    display: none;
}
.shop-seckill-widget .product-item.card .item-excerpt {
    display: none;
}
.shop-seckill-widget .product-item.card .item-discount-badge {
    display: none;
}
.shop-seckill-widget .product-item.card .item-price {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    min-height: 22px;
    margin-top: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
}
.shop-seckill-widget .product-item.card .item-price .show-price-box::before {
    content: '秒杀价';
    margin-right: 3px;
    font-size: 12px;
    font-weight: 600;
}
.shop-seckill-widget .product-item.card .item-price .show-price-box,
.shop-seckill-widget .product-item.card .item-price .show-price-box .pay-mark,
.shop-seckill-widget .product-item.card .item-price .show-price-box .price {
    color: #fc4545;
}
.shop-seckill-widget .product-item.card .item-price .crossed-price-box::before {
    content: '优惠前';
    margin-right: 3px;
    font-size: 12px;
}
.shop-seckill-widget .product-item.card .item-price .crossed-price-box,
.shop-seckill-widget .product-item.card .item-price .crossed-price-box .pay-mark,
.shop-seckill-widget .product-item.card .item-price .crossed-price-box .price {
    color: #999;
    text-decoration: line-through;
}
.shop-seckill-widget .product-item.card .item-seckill-box {
    margin-top: 6px;
}
@media (max-width: 991px) {
    .shop-seckill-widget .shop-seckill-widget-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .shop-seckill-widget .product-item.card {
        max-width: 220px !important;
    }
}
@media (max-width: 767px) {
    #shop .product-lists-row .product-item .item-seckill-progress-bar,
    #shop .product-lists-row .product-item .item-seckill-progress-text,
    .posts-item.product-item .item-seckill-progress-bar,
    .posts-item.product-item .item-seckill-progress-text,
    .knn-block-productbox .product-item .item-seckill-progress-bar,
    .knn-block-productbox .product-item .item-seckill-progress-text,
    .shop-seckill-widget .product-item .item-seckill-progress-bar,
    .shop-seckill-widget .product-item .item-seckill-progress-text {
        display: none;
    }
    #shop .product-lists-row .product-item .item-seckill-progress,
    .posts-item.product-item .item-seckill-progress,
    .knn-block-productbox .product-item .item-seckill-progress,
    .shop-seckill-widget .product-item .item-seckill-progress {
        flex: 0 1 auto;
    }
    .shop-seckill-widget .shop-seckill-widget-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .shop-seckill-widget .product-item.card {
        max-width: none !important;
        padding: 6px;
    }
    .shop-seckill-widget .product-item.card .item-thumbnail {
        width: 100%;
        padding-bottom: 42%;
        margin-right: 0;
        margin-bottom: 6px;
    }
    .shop-seckill-widget.widget-container {
        margin: 16px 0 20px;
        padding: 0;
    }
    .shop-seckill-widget .widget-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .shop-seckill-widget .product-item.card .item-thumbnail .img-badge {
        top: 4px;
        z-index: 3;
        height: 16px;
        min-height: 16px;
        font-size: 10px;
        line-height: 14px;
    }
    .shop-seckill-widget .product-item.card .item-thumbnail .img-badge:not(.item-seckill-img-badge) {
        right: auto;
        left: 4px;
    }
    .shop-seckill-widget .product-item.card .item-seckill-img-badge {
        top: 4px;
        right: 4px;
        left: auto;
        padding: 1px 4px;
        font-size: 10px;
    }
    .shop-seckill-widget .product-item.card .item-heading {
        height: 18px;
        max-height: 18px;
        font-size: 12px;
        line-height: 1.5;
    }
    .shop-seckill-widget .product-item.card .item-price {
        gap: 4px;
        min-height: 19px;
        font-size: 12px;
    }
    .shop-seckill-widget .product-item.card .item-price .show-price-box::before,
    .shop-seckill-widget .product-item.card .item-price .crossed-price-box::before {
        font-size: 11px;
    }
    .shop-seckill-widget .product-item.card .item-seckill-box {
        margin-top: 4px;
        padding: 4px 5px;
        border-radius: 5px;
    }
    .shop-seckill-widget .product-item .item-seckill-row {
        min-height: 20px;
    }
    .shop-seckill-widget .product-item .item-seckill-label,
    .shop-seckill-widget .product-item .item-seckill-countdown {
        font-size: 11px;
    }
}

body.shop-home-page #shop .product-lists-row {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-content: initial;
    padding-right: 8px;
    padding-left: 8px;
}

body.shop-home-page #shop .product-lists-row > .shop-home-showcase,
body.shop-home-page #shop .product-lists-row > .shop-term-header,
body.shop-home-page #shop .product-lists-row > .shop-paginate,
body.shop-home-page #shop .product-lists-row > .shop-null-box {
    grid-column: 1 / -1;
}

body.shop-home-page #shop .product-lists-row > .shop-home-showcase,
body.shop-home-page #shop .product-lists-row > .shop-term-header {
    margin-right: 0;
    margin-left: 0;
}

body.shop-home-page #shop .product-lists-row .product-item.card:not(.style-small) {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    min-width: 0;
    margin: 0 !important;
}

body.shop-home-page #shop .product-lists-row .product-item.card:not(.style-small) .item-heading {
    height: 40px;
    font-size: 14px;
    line-height: 1.42;
}

body.shop-home-page #shop .product-lists-row .product-item.card:not(.style-small) .item-body {
    padding: 12px;
}

body.shop-home-page #shop .product-lists-row .product-item.card:not(.style-small) .item-price {
    min-height: 24px;
    font-size: 14px;
}

#shop .shop-term-main > .product-lists-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-content: initial;
}
#shop .shop-term-main > .product-lists-row > .shop-term-header,
#shop .shop-term-main > .product-lists-row > .shop-paginate,
#shop .shop-term-main > .product-lists-row > .shop-null-box {
    grid-column: 1 / -1;
}
#shop .shop-term-main > .product-lists-row > .product-item.card:not(.style-small) {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
}
@media (max-width: 991px) {
    #shop .shop-term-main > .product-lists-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 767px) {
    #shop .shop-term-main > .product-lists-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 1199px) {
    body.shop-home-page #shop .product-lists-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.shop-home-page #shop .product-lists-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* 商品详情页：配送地址选择 */
#shop .product-address-inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin-left: 8px;
    vertical-align: middle;
}

#shop .product-address-inline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 10px;
}

#shop .product-address-inline-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 190px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-color);
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

#shop .product-address-prefix {
    flex: 0 0 auto;
    color: var(--muted-color);
}

#shop .product-address-current {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted-color);
}

#shop .product-address-inline-trigger .fa {
    flex: 0 0 auto;
    color: var(--muted-2-color);
    font-size: 12px;
    transition: transform 0.2s;
}

#shop .product-address-inline.active .product-address-inline-trigger .fa {
    transform: rotate(180deg);
}

#shop .product-address-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 120;
    display: block;
    width: 520px;
    max-width: calc(100vw - 48px);
    padding: 14px;
    border: 1px solid var(--main-border-color);
    border-radius: 10px;
    background: var(--main-bg-color);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    color: var(--main-color);
    line-height: 1.5;
    cursor: default;
}

#shop .product-address-panel::before {
    content: '';
    position: absolute;
    left: 26px;
    top: -7px;
    width: 12px;
    height: 12px;
    border-left: 1px solid var(--main-border-color);
    border-top: 1px solid var(--main-border-color);
    background: var(--main-bg-color);
    transform: rotate(45deg);
}

#shop .product-address-panel-title {
    position: relative;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--main-color);
}

#shop .product-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 4px;
}

#shop .product-address-card {
    display: block;
    width: 100%;
    min-height: 86px;
    padding: 11px 12px;
    border: 1px solid var(--main-border-color);
    border-radius: 9px;
    background: var(--main-bg-color);
    color: var(--main-color);
    text-align: left;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#shop .product-address-card:hover,
#shop .product-address-card.active {
    border-color: #ff5c35;
    box-shadow: 0 6px 16px rgba(255, 92, 53, 0.12);
}

#shop .product-address-card strong {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
}

#shop .product-address-card strong span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#shop .product-address-card em {
    flex: 0 0 auto;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--muted-border-color);
    color: var(--muted-2-color);
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
}

#shop .product-address-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted-2-color);
    font-size: 13px;
    line-height: 1.55;
}

#shop .product-address-empty {
    display: block;
    padding: 18px 0;
    text-align: center;
}

#shop .product-address-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 767px) {
    #shop .product-address-inline {
        margin-left: 6px;
    }

    #shop .product-address-inline::after,
    #shop .product-address-panel {
        display: none !important;
    }

    #shop .product-address-inline-trigger {
        max-width: 160px;
    }
}

/* 商城首页三栏运营小工具 */
#shop .product-lists-row > .shop-home-showcase {
    width: 100%;
}

#shop .shop-home-showcase {
    --shop-home-showcase-height: 400px;
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr) 256px;
    gap: 16px;
    align-items: stretch;
    margin: 18px 8px 8px;
}

#shop .shop-home-showcase,
#shop .shop-home-showcase-left {
    overflow: visible;
}

#shop .shop-home-showcase-left {
    position: relative;
    z-index: 20;
}

#shop .shop-home-showcase-center,
#shop .shop-home-showcase-right {
    position: relative;
    z-index: 1;
}

body.knn-search-open #shop .shop-home-showcase-left {
    visibility: visible;
    pointer-events: none;
    z-index: 1;
    filter: blur(10px);
}

body.knn-search-open #shop .shop-home-cat-popover {
    display: none !important;
}

#shop .shop-home-showcase-left:empty,
#shop .shop-home-showcase-center:empty,
#shop .shop-home-showcase-right:empty {
    display: none;
}

#shop .shop-home-showcase:has(.shop-home-showcase-left:empty):has(.shop-home-showcase-right:empty) {
    grid-template-columns: minmax(0, 1fr);
}

#shop .shop-home-showcase.no-cats.no-promo {
    grid-template-columns: minmax(0, 1fr);
}

#shop .shop-home-showcase:has(.shop-home-showcase-left:empty):not(:has(.shop-home-showcase-right:empty)) {
    grid-template-columns: minmax(0, 1fr) 256px;
}

#shop .shop-home-showcase.no-cats:not(.no-promo) {
    grid-template-columns: minmax(0, 1fr) 256px;
}

#shop .shop-home-showcase:not(:has(.shop-home-showcase-left:empty)):has(.shop-home-showcase-right:empty) {
    grid-template-columns: 256px minmax(0, 1fr);
}

#shop .shop-home-showcase:not(.no-cats).no-promo {
    grid-template-columns: 256px minmax(0, 1fr);
}

#shop .shop-home-showcase-center .knn-widget-wrap,
#shop .shop-home-showcase-right .knn-widget-wrap,
#shop .shop-home-showcase-center .widget-container,
#shop .shop-home-showcase-right .widget-container,
#shop .shop-home-showcase-center .widget-content,
#shop .shop-home-showcase-right .widget-content,
#shop .shop-home-showcase-center .shop-home-slider-csf-widget,
#shop .shop-home-showcase-right .shop-home-promo-csf-widget {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#shop .shop-home-panel,
#shop .shop-home-promo-widget {
    height: var(--shop-home-showcase-height);
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

#shop .shop-home-panel {
    background: var(--main-bg-color);
    box-shadow: 0 8px 22px var(--main-shadow);
}

#shop .shop-home-cats-widget {
    position: relative;
    overflow: visible;
    z-index: 20;
}

#shop .shop-home-panel-title {
    padding: 14px 16px 8px;
    color: var(--main-color);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

#shop .shop-home-cat-list {
    padding: 0 12px 12px;
}

#shop .shop-home-cat-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 86px) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 24px;
    color: var(--main-color);
    font-size: 13px;
    line-height: 1;
}

#shop .shop-home-cat-item:has(.shop-home-cat-sub:empty) {
    grid-template-columns: 18px minmax(0, 1fr);
}

#shop .shop-home-cat-item::after {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    width: 28px;
    height: 100%;
    content: '';
    z-index: 29;
}

#shop .shop-home-cat-item:hover,
#shop .shop-home-cat-item:focus-within,
#shop .shop-home-cat-item.is-active {
    color: #ff5000;
}

#shop .shop-home-cat-item:hover::after,
#shop .shop-home-cat-item:focus-within::after,
#shop .shop-home-cat-item.is-active::after {
    display: block;
}

#shop .shop-home-cat-main {
    display: contents;
    color: inherit;
}

#shop .shop-home-cat-item + .shop-home-cat-item {
    margin-top: 8px;
}

#shop .shop-home-cat-item i {
    color: #111827;
    font-size: 14px;
    text-align: center;
}

#shop .shop-home-cat-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    white-space: nowrap;
}

#shop .shop-home-cat-sub {
    min-width: 0;
    overflow: hidden;
    color: var(--muted-2-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

#shop .shop-home-cat-main:hover,
#shop .shop-home-cat-main:hover i,
#shop .shop-home-cat-sub a:hover {
    color: #ff5000;
}

#shop .shop-home-cat-sub a {
    color: inherit;
}

#shop .shop-home-cat-sub a + a::before {
    margin: 0 5px;
    color: var(--muted-3-color);
    content: '/';
}

#shop .shop-home-cat-popover {
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    display: none;
    width: min(760px, calc(100vw - 560px));
    height: var(--shop-home-showcase-height);
    padding: 16px 18px;
    overflow-y: auto;
    border: 1px solid #ff5000;
    border-radius: 12px;
    background: var(--main-bg-color);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .08);
    color: var(--main-color);
    z-index: 30;
}

#shop .shop-home-cat-popover::before {
    position: absolute;
    top: 0;
    left: -28px;
    width: 28px;
    height: 100%;
    content: '';
}

#shop .shop-home-cat-item:hover .shop-home-cat-popover,
#shop .shop-home-cat-item:focus-within .shop-home-cat-popover,
#shop .shop-home-cat-item.is-active .shop-home-cat-popover {
    display: block;
}

#shop .shop-home-cat-popover-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 28px;
    font-size: 13px;
    line-height: 1.8;
}

#shop .shop-home-cat-popover-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--main-color);
    font-weight: 700;
    white-space: nowrap;
}

#shop .shop-home-cat-popover-title:hover {
    color: #ff5000;
}

#shop .shop-home-cat-popover-title i {
    color: var(--muted-3-color);
    font-size: 11px;
}

#shop .shop-home-cat-popover-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    min-width: 0;
}

#shop .shop-home-cat-popover-links a {
    color: var(--main-color);
    white-space: nowrap;
}

#shop .shop-home-cat-popover-links a:hover {
    color: #ff5000;
}

body.dark-mode #shop .shop-home-cat-item i {
    color: var(--main-color);
}

body.dark-mode #shop .shop-home-cat-item:hover i,
body.dark-mode #shop .shop-home-cat-item.is-active i,
body.dark-mode #shop .shop-home-cat-main:hover i {
    color: #ff5000;
}

body.dark-mode #shop .shop-home-cat-popover {
    border-color: #ff6a1a;
    background: var(--main-bg-color);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
    color: var(--main-color);
}

body.dark-mode #shop .shop-home-cat-popover-title,
body.dark-mode #shop .shop-home-cat-popover-links a {
    color: var(--main-color);
}

body.dark-mode #shop .shop-home-cat-popover-title:hover,
body.dark-mode #shop .shop-home-cat-popover-links a:hover {
    color: #ff6a1a;
}

body.dark-mode #shop .shop-home-cat-popover-title i {
    color: var(--muted-color);
}

#shop .shop-home-slider-widget {
    position: relative;
    height: var(--shop-home-showcase-height);
    min-height: 0;
    border-radius: 12px;
    background: #7aa36a;
    box-shadow: none;
    color: #fff;
    overflow: hidden;
    clip-path: inset(0 round 12px);
}

#shop .shop-home-slider-track,
#shop .shop-home-slide {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

#shop .shop-home-slide {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.15fr);
    align-items: center;
    gap: 20px;
    padding: 34px 58px 34px 38px;
    background: var(--shop-home-slide-bg, #7aa36a);
    color: var(--shop-home-slide-color, #fff);
    opacity: 0;
    visibility: hidden;
    transition: opacity .32s ease, visibility .32s ease;
}

#shop .shop-home-slide.is-active {
    opacity: 1;
    visibility: visible;
}

#shop .shop-home-slide-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

#shop .shop-home-slide-kicker {
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 700;
}

#shop .shop-home-slide-copy strong {
    display: -webkit-box;
    max-width: 420px;
    overflow: hidden;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.18;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#shop .shop-home-slide-copy em {
    display: block;
    max-width: 360px;
    margin-top: 10px;
    overflow: hidden;
    opacity: .9;
    font-size: 15px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#shop .shop-home-slide-copy .shop-home-widget-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

#shop .shop-home-slide-copy .shop-home-widget-price b {
    font-size: 22px;
}

#shop .shop-home-slide.has-image {
    display: block;
    padding: 0;
}

#shop .shop-home-slide.has-image .shop-home-slide-copy {
    display: none;
}

#shop .shop-home-slide-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

#shop .shop-home-slide-media::before {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    content: '';
}

#shop .shop-home-slide-media img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 245px;
    border-radius: 16px;
    object-fit: contain;
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .18));
}

#shop .shop-home-slide.has-image .shop-home-slide-media {
    position: absolute;
    inset: 0;
    display: block;
    height: auto;
    border-radius: inherit;
    overflow: hidden;
}

#shop .shop-home-slide.has-image .shop-home-slide-media::before {
    display: none;
}

#shop .shop-home-slide.has-image .shop-home-slide-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: inherit;
    object-fit: cover;
    filter: none;
}

#shop .shop-home-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

#shop .shop-home-slider-arrow.prev {
    left: 12px;
}

#shop .shop-home-slider-arrow.next {
    right: 12px;
}

#shop .shop-home-slider-dots {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

#shop .shop-home-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

#shop .shop-home-slider-dots button.is-active {
    width: 20px;
    background: #fff;
}

#shop .shop-home-promo-widget {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#shop .shop-home-promo-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    align-items: center;
    height: 100%;
    min-height: 0;
    padding: 12px 12px 12px 16px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--shop-home-promo-bg, linear-gradient(135deg, #ff5a2a, #ff8a1d));
    color: #fff;
    box-shadow: 0 8px 22px var(--main-shadow);
}

#shop .shop-home-promo-card.has-image {
    display: block;
    padding: 0;
    background: transparent;
}

#shop .shop-home-promo-card.has-image .shop-home-promo-copy {
    display: none;
}

#shop .shop-home-promo-card.tone-orange {
    --shop-home-promo-bg: linear-gradient(135deg, #ff5a2a, #ff8a1d);
}

#shop .shop-home-promo-card.tone-pink {
    --shop-home-promo-bg: linear-gradient(135deg, #ff4f93, #f973b7);
}

#shop .shop-home-promo-card.tone-amber {
    --shop-home-promo-bg: linear-gradient(135deg, #f97316, #ffb020);
}

#shop .shop-home-promo-card.tone-blue {
    --shop-home-promo-bg: linear-gradient(135deg, #1787e8, #34b3f1);
}

#shop .shop-home-promo-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

#shop .shop-home-promo-copy strong,
#shop .shop-home-promo-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#shop .shop-home-promo-copy strong {
    font-size: 15px;
    font-weight: 900;
}

#shop .shop-home-promo-copy em {
    margin-top: 5px;
    opacity: .92;
    font-size: 12px;
    font-style: normal;
}

#shop .shop-home-promo-img {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

#shop .shop-home-promo-img img {
    width: 82px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .14));
}

#shop .shop-home-promo-card.has-image .shop-home-promo-img {
    position: absolute;
    inset: 0;
    display: block;
}

#shop .shop-home-promo-card.has-image .shop-home-promo-img img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    filter: none;
}

@media (max-width: 991px) {
    #shop .shop-home-showcase {
        --shop-home-showcase-height: 340px;
        grid-template-columns: 220px minmax(0, 1fr);
    }

    #shop .shop-home-showcase-right {
        grid-column: 1 / -1;
    }

    #shop .shop-home-promo-widget {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
    }

    #shop .shop-home-promo-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 86px;
    }

    #shop .shop-home-promo-img {
        display: none;
    }
}

@media (max-width: 767px) {
    #shop .shop-home-showcase {
        --shop-home-showcase-height: 220px;
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 14px 4px 8px;
    }

    #shop .shop-home-panel,
    #shop .shop-home-promo-widget {
        height: auto;
        min-height: 0;
    }

    #shop .shop-home-cat-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #shop .shop-home-cat-item {
        grid-template-columns: 18px minmax(0, 1fr);
        min-height: 34px;
        padding: 8px;
        border-radius: 8px;
        background: var(--muted-border-color);
    }

    #shop .shop-home-cat-item + .shop-home-cat-item {
        margin-top: 0;
    }

    #shop .shop-home-cat-sub {
        display: none;
    }

    #shop .shop-home-cat-popover {
        display: none !important;
    }

    #shop .shop-home-slider-widget {
        height: var(--shop-home-showcase-height);
        min-height: 0;
    }

    #shop .shop-home-slide {
        grid-template-columns: 1fr 42%;
        gap: 10px;
        padding: 26px 18px 38px;
    }

    #shop .shop-home-slide-copy strong {
        font-size: 21px;
    }

    #shop .shop-home-slide-copy em {
        max-width: 190px;
        font-size: 13px;
    }

    #shop .shop-home-slide-kicker {
        font-size: 12px;
    }

    #shop .shop-home-slide-media::before {
        width: 130px;
        height: 130px;
    }

    #shop .shop-home-slide-media img {
        max-height: 150px;
    }

    #shop .shop-home-slider-arrow {
        display: none;
    }

    #shop .shop-home-promo-widget {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #shop .shop-home-promo-card {
        grid-template-columns: minmax(0, 1fr) 54px;
        min-height: 56px;
        height: 56px;
        padding: 8px 8px 8px 10px;
        border-radius: 9px;
    }

    #shop .shop-home-promo-card.has-image {
        height: 56px;
        min-height: 56px;
    }

    #shop .shop-home-promo-copy strong {
        font-size: 12px;
        line-height: 1.15;
    }

    #shop .shop-home-promo-copy em {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.15;
    }

    #shop .shop-home-promo-img {
        display: flex;
    }

    #shop .shop-home-promo-img img {
        width: 54px;
        height: 40px;
        border-radius: 8px;
    }
}

@media (max-width: 767px) {
    body.shop-home-page .header.mobile,
    body.shop-home-page .header.mobile .header-nav {
        border-radius: 10px 10px 0 0;
        overflow: hidden;
    }

    body.shop-home-page #shop {
        padding-top: 0;
    }

    body.shop-home-page #shop > .container {
        margin-top: 0;
    }

    body.shop-home-page #shop .shop-home-showcase {
        margin-top: 50px;
    }
}

/* 商品详情：秒杀价格条 */
#shop .product-seckill-box {
  padding: 12px 14px;
  border-radius: var(--main-radius);
  color: #fff;
  background: linear-gradient(135deg, #ff6434 0%, #ee0a24 100%);
  box-shadow: 0 10px 24px rgba(238, 10, 36, 0.18);
}
#shop .product-seckill-box .price-box,
#shop .product-seckill-box .price-box .price-str,
#shop .product-seckill-box .pay-mark {
  color: #fff;
}
#shop .product-seckill-box .seckill-label {
  color: #ee0a24;
  background: #fff;
  border: 0;
}
#shop .product-seckill-box .original-price-box,
#shop .product-seckill-box .seckill-meta {
  color: rgba(255, 255, 255, 0.82);
}
#shop .product-seckill-box .original-price {
  text-decoration: line-through;
}
#shop .product-seckill-box .seckill-left {
  min-width: 0;
}
#shop .product-seckill-box .seckill-countdown {
  flex-shrink: 0;
  min-width: 92px;
}
#shop .product-seckill-box .seckill-progress {
  overflow: hidden;
  width: min(320px, 100%);
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}
#shop .product-seckill-box .seckill-progress span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: #fff;
  transition: width 0.2s ease;
}
#shop .product-seckill-box .seckill-progress-text {
  color: rgba(255, 255, 255, 0.78);
}
#shop .product-seckill-box .seckill-time {
  margin-top: 4px;
  color: #ee0a24;
  background: #fff;
  border: 0;
}
body.dark-mode #shop .product-seckill-box {
  box-shadow: 0 10px 28px rgba(238, 10, 36, 0.28);
}
#shop .product-seckill-box.is-muted {
  background: linear-gradient(135deg, #8d99ae 0%, #596579 100%);
  box-shadow: 0 10px 24px rgba(89, 101, 121, 0.16);
}
#shop .product-seckill-box.is-muted .seckill-label,
#shop .product-seckill-box.is-muted .seckill-time {
  color: #596579;
}
body.dark-mode #shop .product-seckill-box.is-muted {
  background: linear-gradient(135deg, #3d4656 0%, #202733 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
@media (max-width: 767px) {
  #shop .product-seckill-box {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }
  #shop .product-seckill-box .seckill-meta {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  #shop .product-seckill-box .seckill-meta .ml10 {
    margin-left: 0;
  }
  #shop .product-seckill-box .seckill-countdown {
    min-width: 76px;
  }
  #shop .product-seckill-box .seckill-progress {
    width: 100%;
  }
}

/* 商品详情：秒杀条淘宝式布局 */
#shop .product-seckill-box {
  position: relative;
  overflow: hidden;
  padding: 12px 16px 10px;
}
#shop .product-seckill-box .seckill-main {
  position: relative;
  z-index: 1;
  gap: 16px;
}
#shop .product-seckill-box .seckill-price-zone,
#shop .product-seckill-box .seckill-action-zone {
  min-width: 0;
}
#shop .product-seckill-box .seckill-price-zone {
  flex: 1;
}
#shop .product-seckill-box .seckill-price-line {
  line-height: 1;
}
#shop .product-seckill-box .seckill-label-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
#shop .product-seckill-box .price-box {
  line-height: 1;
}
#shop .product-seckill-box .price-box .price-str {
  font-size: 34px;
  line-height: 1;
}
#shop .product-seckill-box .seckill-price-line .price-str {
  font-size: 32px;
}
#shop .product-seckill-box .pay-mark {
  font-size: 15px;
  font-weight: 700;
}
#shop .product-seckill-box .original-price-box {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
#shop .product-seckill-box .seckill-flash {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 64px;
  height: calc(100% + 20px);
  transform: translateX(-50%) skewX(-16deg);
  background: #ffdf61;
}
#shop .product-seckill-box .seckill-flash::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 13px;
  width: 22px;
  height: 54px;
  transform: skewX(16deg);
  background: #fff081;
  clip-path: polygon(48% 0, 96% 0, 64% 40%, 100% 40%, 24% 100%, 44% 54%, 0 54%);
}
#shop .product-seckill-box .seckill-action-zone {
  position: relative;
  z-index: 2;
  width: 210px;
  flex-shrink: 0;
}
#shop .product-seckill-box .seckill-campaign {
  font-size: 15px;
  font-weight: 800;
}
#shop .product-seckill-box .seckill-subtitle {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}
#shop .product-seckill-box .seckill-low-rush {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}
#shop .product-seckill-box .seckill-low-rush span {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
}
#shop .product-seckill-box .seckill-countdown {
  min-width: 0;
  margin-top: 5px;
}
#shop .product-seckill-box .seckill-time {
  min-width: 76px;
  padding: 2px 6px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 18px;
}
#shop .product-seckill-box .seckill-progress-row {
  position: relative;
  z-index: 1;
  gap: 8px;
  margin-top: 8px;
}
#shop .product-seckill-box .seckill-progress {
  flex: 1;
  width: auto;
  height: 6px;
}
#shop .product-seckill-box .seckill-progress-text,
#shop .product-seckill-box .seckill-stock-left {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
}
#shop .shop-buy-main {
  min-width: 0;
  gap: 14px;
}
#shop .single-buy-seckill-progress {
  min-width: 220px;
  max-width: 300px;
  gap: 8px;
  color: var(--muted-2-color);
}
#shop .single-buy-seckill-progress .seckill-progress {
  flex: 1;
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: rgba(252, 69, 69, 0.14);
}
#shop .single-buy-seckill-progress .seckill-progress span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a45 0%, #ee0a24 100%);
  transition: width 0.2s ease;
}
#shop .single-buy-seckill-progress .seckill-progress-text,
#shop .single-buy-seckill-progress .seckill-stock-left {
  flex-shrink: 0;
  white-space: nowrap;
}
body.dark-mode #shop .single-buy-seckill-progress {
  color: var(--muted-color);
}
body.dark-mode #shop .single-buy-seckill-progress .seckill-progress {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 767px) {
  #shop .product-seckill-box {
    padding: 10px 12px;
  }
  #shop .product-seckill-box .seckill-main {
    gap: 10px;
  }
  #shop .product-seckill-box .seckill-price-zone {
    flex-wrap: wrap;
    row-gap: 2px;
    min-width: 0;
  }
  #shop .product-seckill-box .price-box .price-str {
    font-size: 26px;
  }
  #shop .product-seckill-box .seckill-price-line .price-str {
    font-size: 25px;
  }
  #shop .product-seckill-box .original-price-box {
    font-size: 12px;
  }
  #shop .product-seckill-box .seckill-flash {
    display: none;
  }
  #shop .product-seckill-box .seckill-action-zone {
    width: 128px;
  }
  #shop .product-seckill-box .seckill-campaign {
    font-size: 13px;
  }
  #shop .product-seckill-box .seckill-subtitle {
    font-size: 11px;
    white-space: nowrap;
  }
  #shop .product-seckill-box .seckill-low-rush {
    display: none;
  }
  #shop .product-seckill-box .seckill-countdown {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  #shop .product-seckill-box .seckill-time {
    min-width: 68px;
  }
  #shop .single-buy-seckill-progress {
    display: none;
  }
}
