/* ═══════════════════════════════════════════════════════════════
   墨子智能体交易中心 — 电商组件层（叠加于 base.css 的墨·纸·朱砂令牌）
   ═══════════════════════════════════════════════════════════════ */

/* ── 顶条（公告/快捷入口） ── */
.topbar { background: var(--ink); color: rgba(255,255,255,.75); font-size: 12.5px; }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 6px 28px; display: flex; gap: 18px; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar a { color: rgba(255,255,255,.75); flex-shrink: 0; }
.topbar a:hover { color: #fff; }
.topbar .sp { flex: 1; }
.svgi { display: block; flex-shrink: 0; }

/* ── 市场导航（logo + 搜索 + 动作区） ── */
.mk-nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.92); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.mk-nav-inner { display: flex; align-items: center; gap: 26px; height: 74px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mk-nav .logo .sub { font-size: 11.5px; font-weight: 600; color: var(--seal); letter-spacing: .08em; display: block; line-height: 1.2; }
.searchwrap { flex: 1; max-width: 560px; min-width: 0; }
.searchbox { display: flex; height: 44px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white); }
.searchbox input { flex: 1; border: 0; outline: 0; padding: 0 16px; font-size: 15px; background: transparent; color: var(--ink); }
.searchbox button { border: 0; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; padding: 0 26px; cursor: pointer; }
.searchbox button:hover { background: #000; }
.hot-words { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-4); }
.hot-words a { color: var(--ink-4); }
.hot-words a:hover { color: var(--seal); }
.mk-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.mk-actions .act { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.mk-actions .act .ico { position: relative; display: grid; place-items: center; height: 22px; color: var(--ink-2); }
.mk-actions .act:hover { color: var(--seal); }
.mk-actions .act:hover .ico { color: var(--seal); }
.cart-badge { position: absolute; top: -6px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--seal); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ── 首页布局：左分类 + 右横幅 ── */
.home-top { display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin-top: 20px; align-items: stretch; }
/* 右栏纵向弹性：banner 撑满剩余高度，与左侧分类栏严格等高 */
.home-top > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.catnav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.catnav h3 { font-size: 14px; padding: 13px 18px; background: var(--ink); color: var(--paper); font-weight: 700; }
.catnav a { display: flex; align-items: center; gap: 10px; padding: 10.5px 18px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.catnav a:last-child { border-bottom: 0; }
.catnav a:hover { background: var(--seal-soft); color: var(--seal); }
.catnav a .ic { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-3); }
.catnav a:hover .ic { color: var(--seal); }
.banner { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; flex: 1; background: var(--paper-2); }
.banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.banner .slide.on { opacity: 1; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
/* 底部渐变承托字幕，保证任意底图上的可读性 */
.banner .slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(180deg, rgba(20,18,15,0) 0%, rgba(20,18,15,.34) 55%, rgba(20,18,15,.55) 100%); pointer-events: none; }
.banner .slide .cap { position: absolute; left: 28px; bottom: 26px; right: 28px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.45); z-index: 2; }
.banner .cap h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.banner .cap p { font-size: 14.5px; opacity: .95; }
.banner .dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 7px; z-index: 3; }
.banner .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner .dots i.on { background: #fff; width: 20px; border-radius: 6px; }

/* 公告条 */
.notice-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 16px; background: var(--seal-soft); border: 1px solid #eed7d0; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.notice-bar b { color: var(--seal); font-size: 12.5px; flex-shrink: 0; }
.notice-bar a { color: var(--ink-2); }
.notice-bar a:hover { color: var(--seal); }

/* ── 区块标题（市场风，比营销页紧凑） ── */
.mk-sec { padding: 34px 0 8px; }
.mk-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.mk-sec-head h2 { font-size: 22px; letter-spacing: -.02em; }
.mk-sec-head .sub { color: var(--ink-4); font-size: 13.5px; }
.mk-sec-head .more { margin-left: auto; font-size: 13.5px; color: var(--ink-3); }
.mk-sec-head .more:hover { color: var(--seal); }

/* ── 商品卡网格 ── */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goods-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .18s; display: flex; flex-direction: column; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink-4); }
.gcard .ph { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; position: relative; }
/* 竖幅人像图在 4:3 框内优先保住头部，避免裁掉头顶 */
.gcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .3s ease; }
.gcard:hover .ph img { transform: scale(1.04); }
.gcard .ph .tag { position: absolute; top: 10px; left: 10px; background: rgba(26,26,24,.82); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.gcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gcard .t { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.gcard .t:hover { color: var(--seal); }
.gcard .priceline { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { color: var(--seal); font-weight: 780; letter-spacing: -.01em; }
.price small { font-size: .62em; font-weight: 700; margin-right: 1px; }
.gcard .priceline .price { font-size: 20px; }
.gcard .priceline .from { color: var(--ink-4); font-size: 12px; }
.gcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-4); }
/* 店铺名弹性省略，星级+销量永不折行 */
.gcard .meta .shop { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); flex: 1; min-width: 0; }
.gcard .meta .shop .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .meta > span:last-child { white-space: nowrap; flex-shrink: 0; }
.gcard .meta .shop img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.stars { color: #e8a33d; font-size: 12px; letter-spacing: 1px; }

/* 榜单条 */
.rank-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rank-item { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; transition: all .16s; }
.rank-item:hover { border-color: var(--ink-4); box-shadow: var(--shadow-sm); }
.rank-item .no { font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--seal); width: 26px; text-align: center; flex-shrink: 0; }
.rank-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; object-position: center 18%; flex-shrink: 0; }
.rank-item .t { font-size: 13.5px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-item .s { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ── 列表页：筛选条 ── */
.list-head { margin: 22px 0 16px; }
/* 两行筛选合并为一张卡片：上行分类、下行排序，中间细分隔线 */
.list-head .filters { border-radius: 10px 10px 0 0; }
.list-head .filters.frow2 { border-radius: 0 0 10px 10px; border-top: 0; box-shadow: inset 0 1px 0 var(--line-2); }
.crumbs { font-size: 13px; color: var(--ink-4); margin: 16px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--seal); }
.filters { display: flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; flex-wrap: wrap; }
.filters .lbl { color: var(--ink-4); padding: 6px 8px; }
.filters a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); }
.filters a:hover { color: var(--seal); }
.filters a.on { background: var(--ink); color: var(--paper); font-weight: 600; }
.filters .sp { flex: 1; }
.filters .cnt { color: var(--ink-4); padding-right: 8px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 34px 0 10px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font-size: 14px; color: var(--ink-2); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.pagination .dis { color: var(--ink-4); background: var(--paper-2); }

/* ── 商品详情 ── */
.pd-layout { display: grid; grid-template-columns: 460px 1fr; gap: 34px; margin-top: 24px; }
.gallery .main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 1 / 1; }
/* 主图用 contain：竖幅人像不裁头，纸底留白反而显质感 */
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; object-position: center 18%; border: 2px solid var(--line); cursor: pointer; }
.gallery .thumbs img.on, .gallery .thumbs img:hover { border-color: var(--seal); }
.buybox h1 { font-size: 24px; line-height: 1.35; letter-spacing: -.01em; }
.buybox .sub { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; }
.buybox .statline { display: flex; gap: 22px; font-size: 13px; color: var(--ink-4); margin: 14px 0; }
.buybox .statline b { color: var(--ink-2); }
.price-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 6px 0 18px; }
.price-panel .price { font-size: 34px; }
.price-panel .orig { color: var(--ink-4); font-size: 13.5px; margin-left: 10px; }
.opt-group { margin: 16px 0; }
.opt-group .lbl { font-size: 13px; color: var(--ink-4); margin-bottom: 9px; }
.sku-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.sku-pill { border: 1.5px solid var(--line); background: var(--white); border-radius: 10px; padding: 9px 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .14s; }
.sku-pill:hover { border-color: var(--ink-4); }
.sku-pill.on { border-color: var(--seal); color: var(--seal); background: var(--seal-soft); font-weight: 600; }
.sku-pill .cs { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.sku-pill.on .cs { color: var(--seal); opacity: .8; }
.qty-stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.qty-stepper button { width: 38px; height: 40px; border: 0; background: var(--paper-2); font-size: 17px; cursor: pointer; color: var(--ink-2); }
.qty-stepper input { width: 56px; text-align: center; border: 0; outline: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.buy-actions { display: flex; gap: 14px; margin-top: 22px; }
.btn-buy { background: var(--seal); color: #fff; border-color: transparent; }
.btn-buy:hover { background: var(--seal-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(194,64,43,.28); }
.btn-cart { background: var(--seal-soft); color: var(--seal); border-color: #eed0c8; }
.btn-cart:hover { border-color: var(--seal); }
.assure { display: flex; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.assure b { color: var(--seal); font-weight: 700; margin-right: 3px; }

.shop-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 26px; }
.shop-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.shop-card .nm { font-weight: 700; color: var(--ink); font-size: 15px; }
.shop-card .by { font-size: 12.5px; color: var(--ink-4); margin-top: 3px; }
.shop-card .btn { margin-left: auto; }

/* 锚点导航：吸附在顶部导航之下，滚动时由 scrollspy 高亮当前区块 */
.pd-tabs { margin-top: 40px; border-bottom: 1.5px solid var(--line); display: flex; gap: 28px; position: sticky; top: 74px; background: var(--paper); z-index: 30; }
.pd-tabs a { padding: 12px 2px; font-size: 15.5px; font-weight: 600; color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.pd-tabs a.on { color: var(--ink); border-color: var(--seal); }
.pd-body { padding: 26px 0; max-width: 860px; scroll-margin-top: 130px; }
.pd-body h3 { font-size: 17px; margin: 22px 0 10px; }
.pd-body p { margin-bottom: 12px; color: var(--ink-2); font-size: 15px; }
.doc-block { background: #16160f; color: #e8e6da; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 12px 0 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.doc-block .cm { color: #8a8875; }
.kv-note { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--ink-3); margin: 10px 0; }

.review-list { display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.review-item { padding: 18px 2px; border-bottom: 1px solid var(--line-2); }
.review-item .rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-item .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.review-item .who { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.review-item .when { font-size: 12px; color: var(--ink-4); margin-left: auto; }
.review-item .txt { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* ── 店铺页 ── */
.shop-hero { display: flex; align-items: center; gap: 20px; padding: 30px 0 24px; border-bottom: 1px solid var(--line); }
.shop-hero img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.shop-hero h1 { font-size: 26px; }
.shop-hero .byline { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.shop-hero .stats { margin-left: auto; display: flex; gap: 30px; text-align: center; }
.shop-hero .stats b { display: block; font-size: 22px; color: var(--ink); }
.shop-hero .stats span { font-size: 12.5px; color: var(--ink-4); }

/* ── 表单 ── */
.form { display: flex; flex-direction: column; gap: 18px; }
.form .fld { display: flex; flex-direction: column; gap: 7px; }
.form label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form label .req { color: var(--seal); margin-left: 2px; }
.input, .form select, .form textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; background: var(--white); color: var(--ink); outline: none; transition: border .15s; font-family: var(--font); width: 100%; }
.input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.form .help { font-size: 12.5px; color: var(--ink-4); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.otp-row { display: flex; gap: 10px; }
.otp-row .input { flex: 1; }
.otp-row button { white-space: nowrap; }

.flash { max-width: var(--maxw); margin: 14px auto 0; padding: 0 28px; }
.flash > div { border-radius: 10px; padding: 11px 16px; font-size: 14px; font-weight: 500; }
.flash .ok { background: #eaf3ee; border: 1px solid #cfe3d8; color: var(--ok); }
.flash .err { background: var(--seal-soft); border: 1px solid #eed0c8; color: var(--seal-2); }

/* ── 认证页 ── */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: min(420px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 38px 36px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-4); font-size: 13.5px; margin-bottom: 26px; }
.auth-card .agree { font-size: 12px; color: var(--ink-4); margin-top: 16px; line-height: 1.7; }
.auth-card .agree a { color: var(--seal); }

/* ── 控制台（买家/卖家/平台三套共用骨架） ── */
.dash { display: grid; grid-template-columns: 210px 1fr; gap: 24px; margin: 26px 0 60px; align-items: start; }
.dash-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 94px; }
.dash-nav .grp { padding: 12px 16px 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-4); letter-spacing: .08em; }
.dash-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 16px; font-size: 14px; color: var(--ink-2); }
.dash-nav a:hover { background: var(--paper-2); color: var(--ink); }
.dash-nav a.on { background: var(--seal-soft); color: var(--seal); font-weight: 600; border-right: 2.5px solid var(--seal); }
.dash-main { min-width: 0; }
/* overflow-x：宽表格在窄屏内部横滚，而不是撑破页面 */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; overflow-x: auto; }
.panel > h2 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.panel > h2 .rt { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-3); display: inline-flex; align-items: baseline; gap: 4px; }
.panel > h2 .rt .price { font-size: 22px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .k { font-size: 12.5px; color: var(--ink-4); }
.stat-card .v { font-size: 26px; font-weight: 760; color: var(--ink); margin-top: 6px; letter-spacing: -.02em; }
.stat-card .v small { font-size: 14px; color: var(--ink-4); font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data thead th { background: var(--paper-2); font-weight: 700; color: var(--ink); font-size: 12.5px; white-space: nowrap; }
table.data tr:hover td { background: #fdfcf9; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data img.mini { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.cell-goods { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-goods .t { font-weight: 600; color: var(--ink); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-goods .s { font-size: 12px; color: var(--ink-4); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3.5px 10px; border-radius: 999px; white-space: nowrap; }
.badge.gray { background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--line); }
.badge.green { background: #eaf3ee; color: var(--ok); border: 1px solid #cfe3d8; }
.badge.red { background: var(--seal-soft); color: var(--seal); border: 1px solid #eed0c8; }
.badge.amber { background: #faf3e3; color: #9a6b15; border: 1px solid #eddfc0; }
.badge.ink { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: transparent; border-color: #eed0c8; color: var(--seal); }
.btn-danger:hover { border-color: var(--seal); background: var(--seal-soft); }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }

/* ── 购物车/结算 ── */
.cart-table .qty-stepper button { height: 34px; width: 32px; }
.cart-table .qty-stepper input { width: 44px; font-size: 14px; }
.cart-foot { display: flex; align-items: center; gap: 20px; padding: 18px 4px 4px; }
.cart-foot .total { margin-left: auto; font-size: 14.5px; }
.cart-foot .total .price { font-size: 26px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 28px 0 30px; }
.steps .st { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-4); }
.steps .st .n { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps .st.on { color: var(--ink); font-weight: 600; }
.steps .st.on .n { background: var(--seal); border-color: var(--seal); color: #fff; }
.steps .ln { width: 72px; height: 1.5px; background: var(--line); margin: 0 14px; }

/* 收银台 */
.pay-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.pay-ch { border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px; display: flex; align-items: center; gap: 13px; cursor: pointer; transition: all .15s; }
.pay-ch:hover { border-color: var(--ink-4); }
.pay-ch.on { border-color: var(--seal); background: var(--seal-soft); }
.pay-ch input { accent-color: var(--seal); width: 17px; height: 17px; }
.pay-ch .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; font-weight: 800; color: #fff; flex-shrink: 0; }
.pay-ch .ic.wx { background: #21ac38; }
.pay-ch .ic.zfb { background: #1677ff; }
.pay-ch .ic.bal { background: var(--ink); }
.pay-ch > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.pay-ch .nm { font-weight: 700; color: var(--ink); font-size: 15px; }
.pay-ch .ds { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.qr-panel { text-align: center; padding: 30px 20px 36px; }
.qr-panel .qrbox { display: inline-block; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.qr-panel .qrbox img { width: 216px; height: 216px; display: block; }
.qr-panel .amount { font-size: 15px; margin: 18px 0 4px; }
.qr-panel .amount .price { font-size: 30px; }
.qr-panel .hint { color: var(--ink-4); font-size: 13px; }
.pay-brand { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.pay-brand .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; color: #fff; }

/* Token 卡 */
.token-box { background: #16160f; color: #e8e6da; border-radius: 10px; padding: 13px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; display: flex; align-items: center; gap: 12px; overflow-x: auto; }
.token-box .val { flex: 1; word-break: break-all; }
.token-box button { flex-shrink: 0; }
.quota-bar { height: 7px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line-2); overflow: hidden; min-width: 120px; }
.quota-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--seal), #9a3a5f); border-radius: 99px; }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-4); }
.empty .big { font-size: 44px; margin-bottom: 12px; font-family: var(--serif); }
.empty p { font-size: 14px; margin-bottom: 18px; }

/* 协议/文档页 */
.legal { max-width: 860px; margin: 40px auto 70px; }
.legal h1 { font-size: 30px; margin-bottom: 8px; }
.legal .meta { color: var(--ink-4); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 19px; margin: 30px 0 12px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin-bottom: 10px; }
.legal ol, .legal ul { padding-left: 24px; margin-bottom: 14px; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin: 40px 0 70px; align-items: start; }
.legal-nav { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.legal-nav a { display: block; padding: 11px 18px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.legal-nav a:last-child { border-bottom: 0; }
.legal-nav a.on { background: var(--seal-soft); color: var(--seal); font-weight: 600; }
.legal-nav a:hover { color: var(--seal); }

/* 页脚主体信息行 */
.foot-biz { font-size: 13px; color: var(--ink-4); line-height: 2; }
.foot-biz b { color: var(--ink-3); font-weight: 600; }

/* 错误页 */
.err-page { text-align: center; padding: 110px 20px 130px; }
.err-page .code { font-family: var(--serif); font-size: 92px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.err-page .code span { color: var(--seal); }
.err-page p { color: var(--ink-3); margin: 14px 0 28px; }

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .goods-grid, .goods-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .rank-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .home-top { grid-template-columns: 1fr; }
  .catnav { display: none; }
  .mk-nav-inner { gap: 12px; height: auto; padding: 10px 16px 0; flex-wrap: wrap; }
  .searchwrap { order: 3; max-width: none; flex-basis: 100%; margin-bottom: 10px; }
  .searchbox { height: 40px; }
  .hot-words { display: none; }
  .pd-layout { grid-template-columns: 1fr; gap: 20px; }
  .pd-tabs { position: static; overflow-x: auto; gap: 20px; }
  .pd-tabs a { white-space: nowrap; }
  .pd-body { scroll-margin-top: 70px; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; }
  .dash-nav .grp { display: none; }
  .dash-nav a { white-space: nowrap; border-right: 0 !important; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; overflow-x: auto; }
  .legal-nav a { white-space: nowrap; border-bottom: 0; }
  .pay-channels { grid-template-columns: 1fr; }
  .form .row2, .form .row3 { grid-template-columns: 1fr; }
  .shop-hero { flex-wrap: wrap; }
  .shop-hero .stats { margin-left: 0; }
}
@media (max-width: 700px) {
  /* 顶条空间有限：只保留登录态与核心入口 */
  .topbar .wel, .topbar .aux { display: none; }
  /* 导航压缩为两行：logo+动作区同行，搜索独占一行 */
  .mk-actions { margin-left: auto; gap: 14px; }
  .mk-nav .logo .sub { display: none; }
  /* 页脚：品牌栏整行，链接栏两列（覆盖 base.css 中 footer.site .cols 的高特异性规则） */
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 24px; }
  footer.site .cols > div:first-child { grid-column: 1 / -1; }
  footer.site .bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .goods-grid, .goods-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .gcard .t { font-size: 13.5px; min-height: 40px; }
  .rank-strip { grid-template-columns: 1fr; }
  .banner { min-height: 200px; }
  .banner .cap h2 { font-size: 19px; }
  .buy-actions { flex-direction: column; }
  .buy-actions .btn { justify-content: center; }
  .topbar-inner { padding: 6px 16px; }
  .container { padding: 0 16px; }
}
