/* ============ 设计令牌 ============ */
:root{
	--bg: #080a10;
	--panel: rgba(255,255,255,.045);
	--panel-2: rgba(255,255,255,.075);
	--line: rgba(255,255,255,.085);
	--line-strong: rgba(255,255,255,.16);
	--txt: #eef1f8;
	--dim: #8b93a7;
	--dim-2: #626a7d;
	--brand: #7c5cff;
	--brand-2: #a855f7;
	--cyan: #22d3ee;
	--gold: #ffc76b;
	--green: #34d399;
	--radius: 20px;
	--safe-b: env(safe-area-inset-bottom, 0px);
}

*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body{ margin: 0; padding: 0; }

body{
	background: var(--bg);
	color: var(--txt);
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
input, button{ font-family: inherit; color: inherit; }
button{ cursor: pointer; border: 0; background: none; }
b, strong{ font-weight: 600; }

/* ============ 背景 ============ */
.orb{ position: fixed; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.orb-a{ width: 340px; height: 340px; background: #5b3df5; top: -150px; left: -120px; animation: floatA 16s ease-in-out infinite; }
.orb-b{ width: 320px; height: 320px; background: #0d8a8a; bottom: -140px; right: -130px; animation: floatB 20s ease-in-out infinite; }
@keyframes floatA{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(40px,50px) scale(1.12); } }
@keyframes floatB{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-40px,-40px) scale(1.08); } }
.grid-bg{
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ============ 顶栏 ============ */
.topbar{
	position: sticky; top: 0; z-index: 40;
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 18px;
	background: rgba(8,10,16,.7);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	border-bottom: 1px solid var(--line);
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-logo{
	width: 36px; height: 36px; border-radius: 11px;
	display: grid; place-items: center;
	font-size: 17px; font-weight: 700; color: #fff;
	background: linear-gradient(140deg, #7c5cff, #a855f7 55%, #22d3ee);
	box-shadow: 0 6px 18px -6px rgba(124,92,255,.9), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong{ font-size: 16px; letter-spacing: .5px; }
.brand-text span{ font-size: 9px; letter-spacing: 1.6px; color: var(--dim-2); font-weight: 600; }
.topbar-actions{ display: flex; gap: 8px; }
.icon-btn{
	width: 38px; height: 38px; border-radius: 12px;
	display: grid; place-items: center;
	background: var(--panel); border: 1px solid var(--line);
	transition: .18s;
}
.icon-btn svg{ width: 19px; height: 19px; }
.icon-btn:active{ transform: scale(.92); background: var(--panel-2); }

/* ============ 容器 ============ */
.wrap{
	position: relative; z-index: 1;
	max-width: 620px; margin: 0 auto;
	padding: 22px 18px calc(118px + var(--safe-b));
}

/* ============ Hero ============ */
.hero{ padding: 4px 0 20px; }
.badge{
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 12px 6px 10px; border-radius: 100px;
	font-size: 11.5px; color: #b8c0d4;
	background: rgba(52,211,153,.08);
	border: 1px solid rgba(52,211,153,.24);
}
.pulse{ width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse{
	0%{ box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
	70%{ box-shadow: 0 0 0 8px rgba(52,211,153,0); }
	100%{ box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero h1{
	margin: 15px 0 10px;
	font-size: 31px; line-height: 1.22; letter-spacing: -.7px; font-weight: 700;
}
.grad{
	background: linear-gradient(100deg, #a78bfa, #e879f9 45%, #22d3ee);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc{ margin: 0; font-size: 12.5px; color: var(--dim); max-width: 400px; line-height: 1.65; }
.stats{
	display: grid; grid-template-columns: repeat(3, 1fr);
	margin-top: 18px; padding: 13px 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div{ display: flex; flex-direction: column; gap: 2px; text-align: center; }
.stats > div + div{ border-left: 1px solid var(--line); }
.stats b{ font-size: 18px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.stats b small{ font-size: 10.5px; color: var(--dim); margin-left: 1px; font-weight: 500; }
.stats span{ font-size: 10.5px; color: var(--dim-2); }

/* ============ 公告 ============ */
.notice{
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; border-radius: 14px;
	background: linear-gradient(90deg, rgba(124,92,255,.14), rgba(34,211,238,.05));
	border: 1px solid rgba(124,92,255,.22);
	margin-bottom: 16px;
}
.notice-tag{
	flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 7px;
	border-radius: 6px; color: #0b0e17;
	background: linear-gradient(135deg, #c4b5fd, #a78bfa);
}
.notice-body{ overflow: hidden; flex: 1; }
.notice-body p{
	margin: 0; font-size: 12px; color: #c2c9db; white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
}

/* ============ 搜索 ============ */
.searchbar{
	display: flex; align-items: center; gap: 9px;
	height: 44px; padding: 0 14px; margin-bottom: 24px;
	border-radius: 14px;
	background: var(--panel);
	border: 1px solid var(--line);
	transition: border-color .2s, background .2s;
}
.searchbar:focus-within{ border-color: rgba(124,92,255,.6); background: rgba(124,92,255,.08); }
.searchbar svg{ width: 17px; height: 17px; color: var(--dim-2); flex: none; }
.searchbar input{
	flex: 1; min-width: 0; height: 100%;
	border: 0; background: none; outline: none; font-size: 13px;
	-webkit-appearance: none; appearance: none;
}
.searchbar input::-webkit-search-cancel-button{ display: none; }
.searchbar input::placeholder{ color: var(--dim-2); }

/* ============ 区块标题 ============ */
.sec-head{
	display: flex; align-items: baseline; justify-content: space-between;
	margin-bottom: 12px;
}
.sec-head h2{
	display: flex; align-items: center; gap: 7px;
	margin: 0; font-size: 15.5px; letter-spacing: .2px;
}
.dot-mark{
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--brand-2); box-shadow: 0 0 8px 1px rgba(168,85,247,.9);
}
.sec-head > span{ font-size: 11px; color: var(--dim-2); }

/* ============ 热门推荐 ============ */
.featured{
	display: flex; gap: 12px; overflow-x: auto;
	padding: 2px 0 8px; margin-bottom: 22px;
	scroll-snap-type: x mandatory; scrollbar-width: none;
}
.featured::-webkit-scrollbar{ display: none; }
.feat{
	position: relative; flex: none; overflow: hidden;
	width: 174px; min-height: 104px;
	scroll-snap-align: start;
	padding: 11px 12px;
	border-radius: 16px;
	text-align: left; color: #fff;
	background: var(--g);
	border: 1px solid rgba(255,255,255,.16);
	box-shadow: 0 12px 28px -20px var(--c);
	display: flex; flex-direction: column; justify-content: space-between;
	transition: transform .18s;
}
.feat:active{ transform: scale(.975); }
.feat::after{
	content: ""; position: absolute; top: -46px; right: -38px;
	width: 112px; height: 112px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.4), transparent 68%);
	pointer-events: none;
}
.feat-tag{
	position: absolute; top: 9px; right: 9px;
	font-size: 8.5px; font-weight: 600;
	padding: 1.5px 6px; border-radius: 100px;
	background: rgba(255,255,255,.22);
	border: 1px solid rgba(255,255,255,.3);
	backdrop-filter: blur(6px);
}
.feat-icon{ font-size: 17px; line-height: 1; }
.feat-title{
	margin-top: 5px; font-size: 12px; font-weight: 600; letter-spacing: .1px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.feat-foot{ display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.feat-price{ font-size: 14.5px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.feat-price small{ font-size: 9px; font-weight: 500; opacity: .8; margin-left: 1px; }
.feat-go{
	font-size: 9.5px; padding: 3px 9px; border-radius: 100px;
	background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28);
	backdrop-filter: blur(6px);
}

/* ============ 分类 ============ */
.cats{
	display: flex; gap: 8px; overflow-x: auto;
	padding-bottom: 4px; margin-bottom: 18px;
	scrollbar-width: none;
}
.cats::-webkit-scrollbar{ display: none; }
.cat{
	flex: none; padding: 7px 15px; border-radius: 100px;
	font-size: 12.5px; color: var(--dim);
	background: var(--panel); border: 1px solid var(--line);
	transition: .2s; white-space: nowrap;
}
.cat.on{
	color: #fff; border-color: transparent;
	background: linear-gradient(135deg, #7c5cff, #a855f7);
	box-shadow: 0 6px 18px -8px rgba(124,92,255,.95);
}
.cat:active{ transform: scale(.95); }

/* ============ 商品列表 ============ */
.list{ display: flex; flex-direction: column; gap: 11px; }
.item{
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center; gap: 13px;
	padding: 14px; border-radius: 18px; text-align: left;
	background: linear-gradient(120deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
	border: 1px solid var(--line);
	transition: transform .18s, border-color .18s, box-shadow .18s;
}
.item::before{
	content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
	width: 3px; border-radius: 0 3px 3px 0;
	background: var(--c, #7c5cff); opacity: .85;
}
.item:active{
	transform: scale(.985);
	border-color: var(--line-strong);
	box-shadow: 0 14px 34px -22px var(--c, #7c5cff);
}
.item-icon{
	width: 50px; height: 50px; border-radius: 15px; flex: none;
	display: grid; place-items: center; font-size: 23px;
	border: 1px solid rgba(255,255,255,.12);
}
.item-body{ min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.item-top{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.item-title{
	font-size: 14px; font-weight: 600; letter-spacing: .1px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-tag{
	flex: none; font-size: 9px; padding: 1.5px 6px; border-radius: 5px;
	color: var(--gold); background: rgba(255,199,107,.14);
	border: 1px solid rgba(255,199,107,.3);
}
.item-desc{
	font-size: 11px; color: var(--dim);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-skus{ display: flex; gap: 5px; overflow: hidden; }
.item-skus i{
	font-style: normal; font-size: 9.5px; padding: 2px 7px; border-radius: 6px;
	color: #b7a9ea; background: rgba(124,92,255,.12);
	border: 1px solid rgba(124,92,255,.2);
	white-space: nowrap;
}
.item-side{ display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.item-price{
	font-size: 16px; font-weight: 700; letter-spacing: -.4px;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(120deg, #fff, #c4b5fd);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.item-price small{ font-size: 10.5px; font-weight: 500; color: #fff; }
.item-price b{ font-size: 9.5px; font-weight: 500; color: var(--dim-2); margin-left: 1px; }
.item-stock{ font-size: 9.5px; color: var(--dim-2); }
.item-stock.low{ color: #f59e0b; }
.item-buy{
	font-size: 11px; padding: 5px 12px; border-radius: 9px; color: #fff;
	background: linear-gradient(135deg, #7c5cff, #a855f7);
	box-shadow: 0 6px 14px -8px rgba(124,92,255,.95);
}
.empty{ text-align: center; padding: 44px 0; color: var(--dim-2); font-size: 12.5px; }

/* ============ 查询入口 ============ */
.query-card{
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin-top: 22px; padding: 16px 18px;
	border-radius: var(--radius);
	background: linear-gradient(140deg, rgba(124,92,255,.13), rgba(255,255,255,.03));
	border: 1px solid rgba(124,92,255,.2);
}
.query-card strong{ font-size: 13.5px; display: block; margin-bottom: 3px; }
.query-card p{ margin: 0; font-size: 11.5px; color: var(--dim); }

.foot{ text-align: center; padding: 26px 0 6px; }
.foot p{ margin: 0; font-size: 11px; color: var(--dim-2); }
.foot-sub{ margin-top: 5px !important; font-size: 10px !important; opacity: .7; }

/* ============ 底部导航 ============ */
.dock{
	position: fixed; left: 50%; bottom: calc(14px + var(--safe-b));
	transform: translateX(-50%); z-index: 45;
	display: flex; gap: 2px; padding: 6px;
	border-radius: 20px;
	background: rgba(16,19,28,.86);
	border: 1px solid var(--line-strong);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	box-shadow: 0 18px 46px -18px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07);
}
.dock-item{
	width: 66px; padding: 7px 0 5px; border-radius: 15px;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	color: var(--dim-2); font-size: 9.5px; transition: .18s;
}
.dock-item svg{ width: 19px; height: 19px; }
.dock-item.on{ color: #fff; background: linear-gradient(140deg, rgba(124,92,255,.34), rgba(124,92,255,.12)); }
.dock-item:active{ transform: scale(.94); }

/* ============ 按钮 ============ */
.btn{
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 48px; padding: 0 20px; width: 100%;
	border-radius: 14px; font-size: 14.5px; font-weight: 600;
	transition: transform .16s, filter .16s, opacity .16s;
}
.btn:active{ transform: scale(.975); }
.btn-main{
	color: #fff;
	background: linear-gradient(135deg, #7c5cff, #a855f7 55%, #22d3ee 170%);
	box-shadow: 0 12px 28px -12px rgba(124,92,255,.95), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-ghost{ color: var(--txt); background: var(--panel); border: 1px solid var(--line-strong); }
.btn-sm{ width: auto; height: 42px; padding: 0 16px; font-size: 13px; flex: none; }
.btn:disabled{ opacity: .45; filter: grayscale(.3); }
.btn + .btn{ margin-top: 10px; }

/* ============ 遮罩 + 弹层 ============ */
.mask{
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50;
	background: rgba(3,5,10,.7);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mask.on{ opacity: 1; visibility: visible; }

.sheet{
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	max-height: 92vh; display: flex; flex-direction: column;
	background: #10131c;
	border-top: 1px solid var(--line-strong);
	border-radius: 26px 26px 0 0;
	box-shadow: 0 -20px 60px -20px rgba(0,0,0,.9);
	transform: translateY(100%);
	transition: transform .34s cubic-bezier(.32,.72,0,1);
	padding-bottom: var(--safe-b);
}
.sheet.on{ transform: translateY(0); }
@media (min-width: 700px){
	.sheet{
		left: 50%; right: auto; width: 460px; bottom: 28px;
		border-radius: 26px; border: 1px solid var(--line-strong);
		transform: translate(-50%, 120%);
	}
	.sheet.on{ transform: translate(-50%, 0); }
}
.sheet-head{
	position: relative;
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px 12px; flex: none;
}
.sheet-head::before{
	content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
	width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16);
}
@media (min-width: 700px){ .sheet-head::before{ display: none; } }
.sheet-head h3{ margin: 0; font-size: 16px; letter-spacing: .2px; }
.close{
	width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--panel); color: var(--dim);
}
.close svg{ width: 16px; height: 16px; }
.close:active{ transform: scale(.9); }
.sheet-body{ padding: 4px 20px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.view{ display: none; }
.view.on{ display: block; animation: fadeUp .28s ease both; }
@keyframes fadeUp{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: translateY(0); } }

/* ============ 购买视图 ============ */
.prod-line{
	display: flex; align-items: center; gap: 12px;
	padding: 13px; border-radius: 16px;
	background: var(--panel); border: 1px solid var(--line);
	margin-bottom: 4px;
}
.prod-icon{
	width: 46px; height: 46px; border-radius: 13px; flex: none;
	display: grid; place-items: center; font-size: 22px;
	background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.28);
}
.prod-meta{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prod-meta strong{ font-size: 13.5px; }
.prod-meta span{
	font-size: 11px; color: var(--dim);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-price{
	font-size: 15px; font-weight: 700; flex: none;
	font-variant-numeric: tabular-nums; color: #c4b5fd;
}

/* 规格选择 */
.skus{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sku{
	position: relative; padding: 11px 12px; border-radius: 13px; text-align: left;
	background: rgba(255,255,255,.035); border: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 3px;
	transition: .18s;
}
.sku-name{ font-size: 12.5px; font-weight: 600; }
.sku-sub{ font-size: 10.5px; color: var(--dim-2); font-variant-numeric: tabular-nums; }
.sku.on{
	border-color: rgba(124,92,255,.8);
	background: rgba(124,92,255,.15);
	box-shadow: 0 0 0 3px rgba(124,92,255,.11);
}
.sku.on .sku-name{ color: #ddd3ff; }
.sku.on::after{
	content: "✓"; position: absolute; top: 7px; right: 9px;
	font-size: 10px; color: #c4b5fd;
}
.sku.soldout{ opacity: .42; }

.row{
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 48px;
}
.row-label{ font-size: 13px; color: var(--dim); flex: none; }
.row-input{
	flex: 1; min-width: 0; height: 40px;
	padding: 0 12px; border-radius: 11px;
	background: rgba(255,255,255,.05);
	border: 1px solid var(--line);
	font-size: 13px; outline: none;
	transition: border-color .2s, background .2s;
}
.row-input::placeholder{ color: var(--dim-2); }
.row-input:focus{ border-color: rgba(124,92,255,.65); background: rgba(124,92,255,.08); }
.stepper{
	display: flex; align-items: center;
	border-radius: 11px; overflow: hidden;
	background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.stepper button{
	width: 38px; height: 36px; font-size: 17px; line-height: 1;
}
.stepper button:active{ background: rgba(255,255,255,.09); }
.stepper input{
	width: 44px; height: 36px; text-align: center; border: 0;
	background: transparent; font-size: 13.5px; font-weight: 600;
	font-variant-numeric: tabular-nums; outline: none;
}

.block-label{ font-size: 13px; color: var(--dim); margin: 16px 0 10px; }
.pays{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay{
	padding: 11px 4px; border-radius: 13px;
	font-size: 12px; color: var(--dim);
	background: rgba(255,255,255,.035);
	border: 1px solid var(--line);
	transition: .2s;
}
.pay i{ display: block; font-size: 19px; font-style: normal; margin-bottom: 5px; }
.pay.on{
	color: #fff; border-color: rgba(124,92,255,.75);
	background: rgba(124,92,255,.16);
	box-shadow: 0 0 0 3px rgba(124,92,255,.12);
}
.pay:active{ transform: scale(.96); }

.summary{
	display: flex; align-items: center; justify-content: space-between;
	margin: 18px 0 14px; padding-top: 14px;
	border-top: 1px dashed var(--line);
}
.summary span{ font-size: 13px; color: var(--dim); }
.summary em{ font-style: normal; font-size: 11px; color: var(--dim-2); }
.summary b{
	font-size: 23px; font-weight: 700; letter-spacing: -.5px;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(120deg, #fff, #c4b5fd);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tip{ margin: 12px 0 0; font-size: 10.5px; color: var(--dim-2); text-align: center; line-height: 1.6; }

/* ============ 支付视图 ============ */
.pay-status{
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 12.5px; color: var(--gold); margin-bottom: 6px;
}
.spinner{
	width: 13px; height: 13px; border-radius: 50%;
	border: 2px solid rgba(255,199,107,.3);
	border-top-color: var(--gold);
	animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.pay-amount{
	text-align: center; font-size: 32px; font-weight: 700; letter-spacing: -1px;
	font-variant-numeric: tabular-nums; margin-bottom: 16px;
}
.qr-wrap{ display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
#qrCanvas{
	width: 188px; height: 188px; padding: 10px;
	background: #fff; border-radius: 16px;
	box-shadow: 0 10px 34px -14px rgba(124,92,255,.8);
}
.qr-tip{ font-size: 11.5px; color: var(--dim); }
.kv{
	display: flex; align-items: center; justify-content: space-between;
	padding: 11px 0; font-size: 12.5px;
	border-bottom: 1px dashed var(--line);
}
.kv span{ color: var(--dim); }
.kv b{ font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.kv + .btn{ margin-top: 16px; }
.countdown{ color: var(--gold); }

/* ============ 成功视图 ============ */
.ok-icon{
	width: 62px; height: 62px; margin: 6px auto 14px;
	border-radius: 50%; display: grid; place-items: center;
	color: #06281c;
	background: linear-gradient(140deg, #6ee7b7, #34d399);
	box-shadow: 0 12px 34px -12px rgba(52,211,153,.95);
	animation: pop .45s cubic-bezier(.2,1.5,.5,1) both;
}
.ok-icon svg{ width: 30px; height: 30px; }
@keyframes pop{ from{ transform: scale(.4); opacity: 0; } to{ transform: scale(1); opacity: 1; } }
.ok-title{ text-align: center; font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }
.ok-sub{ text-align: center; font-size: 11.5px; color: var(--dim); margin-bottom: 18px; }
.cards-box{
	border-radius: 16px; overflow: hidden;
	border: 1px solid rgba(124,92,255,.3);
	background: linear-gradient(150deg, rgba(124,92,255,.14), rgba(255,255,255,.03));
	margin-bottom: 8px;
}
.cards-head{
	display: flex; align-items: center; justify-content: space-between;
	padding: 11px 14px;
	font-size: 11.5px; color: var(--dim);
	border-bottom: 1px solid rgba(255,255,255,.07);
}
.mini-btn{
	font-size: 11px; padding: 4px 10px; border-radius: 8px;
	color: #c4b5fd; background: rgba(124,92,255,.2);
	border: 1px solid rgba(124,92,255,.36);
}
.mini-btn:active{ transform: scale(.94); }
.cards-list{ padding: 6px 14px 12px; }
.card-code{
	display: block; width: 100%; text-align: left;
	padding: 9px 0; font-size: 13px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .6px; color: #e9ddff;
	border-bottom: 1px dashed rgba(255,255,255,.08);
	word-break: break-all;
}
.card-code:last-child{ border-bottom: 0; }

/* ============ 查询视图 ============ */
.view-desc{ margin: 0 0 14px; font-size: 12.5px; color: var(--dim); line-height: 1.65; }
.search-row{ display: flex; gap: 8px; }
.search-row .row-input{ height: 42px; }
.order-history{ margin-top: 22px; }
.hist-item{
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	width: 100%; padding: 12px 0; text-align: left;
	border-bottom: 1px solid var(--line);
}
.hist-item .h-main{ min-width: 0; }
.hist-item strong{ display: block; font-size: 12.5px; margin-bottom: 2px; }
.hist-item span{ font-size: 10.5px; color: var(--dim-2); }
.hist-item .h-right{ font-size: 12px; color: #c4b5fd; flex: none; }

/* ============ 客服 ============ */
.contact-list{ display: flex; flex-direction: column; gap: 8px; }
.contact-item{
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 13px 14px; border-radius: 14px;
	background: var(--panel); border: 1px solid var(--line);
}
.contact-item .c-label{ font-size: 11px; color: var(--dim); }
.contact-item .c-val{ font-size: 13px; font-weight: 600; }
.contact-item .c-copy{
	font-size: 11px; color: #c4b5fd; flex: none;
	padding: 4px 10px; border-radius: 8px;
	background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.3);
}

/* ============ Toast ============ */
.toast{
	position: fixed; left: 50%; bottom: 108px; z-index: 90;
	transform: translate(-50%, 16px);
	padding: 11px 18px; border-radius: 12px;
	font-size: 12.5px; color: #fff;
	background: rgba(24,28,40,.94);
	border: 1px solid var(--line-strong);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 16px 40px -16px rgba(0,0,0,.95);
	opacity: 0; pointer-events: none; transition: .26s;
	max-width: 82vw; text-align: center;
}
.toast.on{ opacity: 1; transform: translate(-50%, 0); }
.toast.ok{ border-color: rgba(52,211,153,.5); }
.toast.err{ border-color: rgba(248,113,113,.5); }

/* ============ 布局切换 ============ */
.head-right{ display: flex; align-items: center; gap: 10px; }
.head-right > span{ font-size: 11px; color: var(--dim-2); }
.view-toggle{
	display: flex; gap: 2px; padding: 3px;
	border-radius: 10px;
	background: var(--panel); border: 1px solid var(--line);
}
.vt{
	width: 30px; height: 26px; border-radius: 8px;
	display: grid; place-items: center; color: var(--dim-2);
	transition: .18s;
}
.vt svg{ width: 15px; height: 15px; }
.vt.on{ color: #fff; background: rgba(124,92,255,.3); }
.vt:active{ transform: scale(.92); }

/* ============ 两列商品卡 ============ */
.list.mode-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gcard{
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 6px;
	padding: 12px; border-radius: 17px; text-align: left;
	background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
	border: 1px solid var(--line);
	transition: transform .18s, border-color .18s, box-shadow .18s;
}
.gcard::before{
	content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
}
.gcard:active{
	transform: scale(.97);
	border-color: var(--line-strong);
	box-shadow: 0 14px 30px -22px var(--c);
}
.gcard.soldout{ opacity: .55; }
.gcard-tag{
	position: absolute; top: 9px; right: 9px;
	font-size: 8.5px; padding: 1.5px 6px; border-radius: 100px;
	color: #1a1205; font-weight: 600;
	background: linear-gradient(135deg, #ffe0a3, var(--gold));
}
.gcard-icon{
	width: 38px; height: 38px; border-radius: 12px; flex: none;
	display: grid; place-items: center; font-size: 19px;
	border: 1px solid rgba(255,255,255,.12);
}
.gcard-title{
	font-size: 12.5px; font-weight: 600; line-height: 1.35; letter-spacing: .1px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard-desc{
	font-size: 10px; color: var(--dim); line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 29px;
}
.gcard-skus{ display: flex; gap: 4px; overflow: hidden; white-space: nowrap; }
.gcard-skus i{
	font-style: normal; font-size: 9px; padding: 1.5px 6px; border-radius: 5px;
	color: #b7a9ea; background: rgba(124,92,255,.12);
	border: 1px solid rgba(124,92,255,.2);
	white-space: nowrap;
}
.gcard-foot{
	display: flex; align-items: center; justify-content: space-between;
	gap: 6px; margin-top: auto; padding-top: 4px;
}
.gcard-price{
	font-size: 15.5px; font-weight: 700; letter-spacing: -.4px;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(120deg, #fff, #c4b5fd);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	white-space: nowrap;
}
.gcard-price small{ font-size: 10px; font-weight: 500; color: #fff; }
.gcard-price b{ font-size: 9px; font-weight: 500; color: var(--dim-2); margin-left: 1px; }
.gcard-go{
	flex: none; font-size: 10px; padding: 4px 10px; border-radius: 8px; color: #fff;
	background: linear-gradient(135deg, #7c5cff, #a855f7);
	box-shadow: 0 6px 14px -9px rgba(124,92,255,.95);
}

/* ============ 商品详情 ============ */
.detail-head{
	display: flex; align-items: center; gap: 12px;
	padding: 13px; border-radius: 16px;
	background: var(--panel); border: 1px solid var(--line);
	margin-bottom: 14px;
}
.detail-icon{
	width: 52px; height: 52px; border-radius: 15px; flex: none;
	display: grid; place-items: center; font-size: 24px;
	border: 1px solid rgba(255,255,255,.12);
}
.detail-info{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.detail-info strong{ font-size: 15px; }
.detail-info span{
	font-size: 11px; color: var(--dim);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-tag{
	flex: none; font-size: 9px; padding: 2px 7px; border-radius: 5px;
	color: var(--gold); background: rgba(255,199,107,.14);
	border: 1px solid rgba(255,199,107,.3);
}
.detail-price-row{
	display: flex; align-items: baseline; justify-content: space-between;
	padding: 0 2px 2px;
}
.detail-price-row b{
	font-size: 26px; font-weight: 700; letter-spacing: -.8px;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(120deg, #fff, #b7a9ea);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.detail-price-row b em{ font-style: normal; font-size: 11px; color: var(--dim-2); margin-left: 3px; }
.detail-price-row span{ font-size: 11px; color: var(--dim-2); }
.detail-text{
	padding: 13px 14px; border-radius: 14px;
	background: rgba(255,255,255,.03); border: 1px solid var(--line);
	font-size: 12.5px; color: #c2c9db; line-height: 1.95;
	white-space: pre-line; word-break: break-word;
}

/* ============ 查询结果列表 ============ */
.result-list{ display: flex; flex-direction: column; }

/* 页脚后台入口 */
.foot-link{
	font-size: 10.5px; color: var(--dim);
	text-decoration: none; padding: 3px 10px; border-radius: 100px;
	border: 1px solid var(--line); background: var(--panel);
	display: inline-block; margin-top: 4px;
}
.foot-link:active{ transform: scale(.95); }

/* ============ 前台小屏适配 ============ */
@media (max-width: 360px){
	.hero h1{ font-size: 26px; }
	.stats b{ font-size: 16px; }
	.gcard{ padding: 10px; }
	.gcard-title{ font-size: 12px; }
	.gcard-price{ font-size: 14px; }
	.skus{ grid-template-columns: 1fr; }
	.dock-item{ width: 60px; }
	.head-right{ gap: 6px; }
	#productCount{ display: none; }
}

/* ============ 页面切换 ============ */
.page{ display: block; }
.page:not(.on){ display: none; }
.page.on{ animation: pageIn .26s ease both; }
@keyframes pageIn{
	from{ opacity: 0; transform: translateY(8px); }
	to{ opacity: 1; transform: translateY(0); }
}
.page-head{ margin-bottom: 16px; }
.page-head h2{ margin: 0 0 4px; font-size: 21px; letter-spacing: -.4px; }
.page-head p{ margin: 0; font-size: 12px; color: var(--dim); }
.page-head b{ color: #c4b5fd; }

.link-more{
	font-size: 11.5px; color: #b7a9ea;
	padding: 3px 10px; border-radius: 100px;
	background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.25);
}
.link-more:active{ transform: scale(.94); }

.search-card{
	padding: 13px; border-radius: 16px;
	background: var(--panel); border: 1px solid var(--line);
	margin-bottom: 6px;
}

.info-card{
	margin-top: 16px; padding: 15px;
	border-radius: 16px;
	background: var(--panel); border: 1px solid var(--line);
}
.info-card h3{ margin: 0 0 10px; font-size: 13.5px; }
.faq{ display: flex; flex-direction: column; gap: 2px; }
.faq details{ border-bottom: 1px solid var(--line); padding: 9px 0; }
.faq details:last-child{ border-bottom: 0; }
.faq summary{
	font-size: 12.5px; color: #c9cfe0; cursor: pointer;
	list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: "+"; color: var(--dim-2); font-size: 15px; line-height: 1; }
.faq details[open] summary::after{ content: "−"; }
.faq p{
	margin: 8px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.75;
}

/* ============ 搜索框清除按钮 ============ */
.searchbar .search-clear{
	display: none; width: 22px; height: 22px; border-radius: 50%;
	place-items: center; flex: none;
	color: #cfd6e6; background: rgba(255,255,255,.13);
	transition: background .18s;
}
.searchbar .search-clear.on{ display: grid; }
.searchbar .search-clear svg{ width: 11px; height: 11px; }
.searchbar .search-clear:active{ background: rgba(255,255,255,.24); }

/* ============ 详情页：封面图 ============ */
.detail-cover{ display: none; margin: 10px 0 2px; }
.detail-cover.on{ display: block; }
.detail-cover img{
	width: 100%; display: block; border-radius: 14px;
	border: 1px solid var(--line); background: #0c0f16;
}

/* ============ 详情页：相关链接 ============ */
.detail-links{ display: none; flex-direction: column; gap: 8px; margin: 12px 0 2px; }
.detail-links.on{ display: flex; }

.detail-link{
	display: flex; align-items: center; gap: 9px;
	padding: 11px 13px; border-radius: 12px;
	font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
	color: #a5b4fc;
	background: rgba(124,92,255,.08);
	border: 1px solid rgba(124,92,255,.24);
	transition: background .18s, border-color .18s;
}
.detail-link svg{ width: 15px; height: 15px; flex: none; color: #8b7cff; }
.detail-link span{
	flex: 1; min-width: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-link i{ font-style: normal; flex: none; opacity: .75; font-size: 12px; }
.detail-link:active{ background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.45); }

/* ============ 图标（图片型） ============ */
.ic-img{
	width: 100%; height: 100%; display: block;
	object-fit: cover; border-radius: inherit;
}
.feat-icon img.ic-img{
	width: 20px; height: 20px; border-radius: 5px;
}

/* ============ 详情页：多图（竖向长方形，横向排列滑动） ============ */
.detail-imgs{
	display: flex; gap: 8px; overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.detail-imgs::-webkit-scrollbar{ display: none; }
.detail-imgs img{
	flex: none;
	width: 44%;          /* 窄 */
	height: 192px;       /* 高 → 竖向长方形 */
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #0c0f16;
	scroll-snap-align: start;
}
.detail-imgs img:only-child{ width: 46%; }

/* ============ 图片全屏查看 ============ */
.img-viewer{
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 95;
	display: none; flex-direction: column;
	background: rgba(4,6,10,.96);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.img-viewer.on{ display: flex; }

.iv-head{
	flex: none; display: flex; align-items: center; justify-content: space-between;
	padding: 14px 16px;
	padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
#ivCount{ font-size: 12px; color: #b8c0d4; font-variant-numeric: tabular-nums; }
.iv-close{
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	color: #fff; background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.18);
}
.iv-close svg{ width: 16px; height: 16px; }
.iv-close:active{ transform: scale(.92); }

.iv-stage{
	flex: 1; position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	padding: 6px 10px calc(18px + env(safe-area-inset-bottom, 0px));
	min-height: 0;
}
#ivImage{
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	background: transparent;
}
.iv-nav{
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	font-size: 22px; line-height: 1; color: #fff;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.18);
}
.iv-prev{ left: 10px; }
.iv-next{ right: 10px; }
.iv-nav:active{ transform: translateY(-50%) scale(.92); }

/* ============ 订单详情弹窗 ============ */
.od-status{
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 13px; border-radius: 100px;
	font-size: 12px; margin-bottom: 14px;
}
.od-status i{ width: 6px; height: 6px; border-radius: 50%; }
.od-status.paid{ color: #6ee7b7; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.od-status.paid i{ background: #34d399; box-shadow: 0 0 8px 1px rgba(52,211,153,.9); }
.od-status.pending{ color: #ffd18a; background: rgba(255,199,107,.12); border: 1px solid rgba(255,199,107,.3); }
.od-status.pending i{ background: #ffc76b; box-shadow: 0 0 8px 1px rgba(255,199,107,.9); }

.od-prod{
	display: flex; align-items: center; gap: 12px;
	padding: 13px; border-radius: 14px;
	background: var(--panel); border: 1px solid var(--line);
	margin-bottom: 6px;
}
.od-icon{
	width: 46px; height: 46px; flex: none; border-radius: 13px;
	display: grid; place-items: center; font-size: 22px;
	background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.26);
	overflow: hidden;
}
.od-icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.od-info{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.od-info strong{ font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-info span{ font-size: 11px; color: var(--dim); }
.od-amount{ flex: none; font-size: 16px; font-weight: 700; color: #c4b5fd; font-variant-numeric: tabular-nums; }

/* ============ 订单详情：手机端收紧 ============ */
#orderDetailBox .od-status{
	padding: 5px 11px; font-size: 11px; margin-bottom: 10px;
}
#orderDetailBox .od-status i{ width: 5px; height: 5px; }

#orderDetailBox .od-prod{ padding: 11px; gap: 10px; border-radius: 13px; }
#orderDetailBox .od-icon{
	width: 40px; height: 40px; font-size: 19px; border-radius: 11px;
}
#orderDetailBox .od-info strong{ font-size: 12.5px; }
#orderDetailBox .od-info span{ font-size: 10.5px; }
#orderDetailBox .od-amount{ font-size: 14.5px; }

#orderDetailBox .kv{
	padding: 9px 0; font-size: 12px; gap: 10px;
	align-items: flex-start;
}
#orderDetailBox .kv span{ flex: none; font-size: 11.5px; }
#orderDetailBox .kv b{
	min-width: 0; max-width: 64%;
	font-size: 11.5px; line-height: 1.55;
	text-align: right; word-break: break-all;
	font-weight: 500;
}

#orderDetailBox .cards-box{ margin-top: 12px; border-radius: 13px; }
#orderDetailBox .cards-head{ padding: 9px 12px; font-size: 11px; }
#orderDetailBox .cards-list{ padding: 4px 12px 8px; }
#orderDetailBox .card-code{ padding: 8px 0; font-size: 12px; }
#orderDetailBox .mini-btn{ font-size: 10.5px; padding: 3px 9px; }
#orderDetailBox .tip{ margin: 10px 0 0; font-size: 10.5px; }
#orderDetailBox .btn{
	height: 44px; font-size: 14px;
	margin-top: 14px !important;
}

/* ============ 订单列表行（小程序式紧凑） ============ */
.hist-item{ gap: 8px; padding: 11px 0; }
.hist-item .h-main{ flex: 1; min-width: 0; }
.hist-item strong{
	font-size: 12px; margin-bottom: 3px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hist-item .h-main span{
	display: block; font-size: 10px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hist-item .h-right{
	flex: none; font-size: 10.5px; white-space: nowrap;
	padding: 3px 8px; border-radius: 100px;
	background: rgba(255,255,255,.06);
	border: 1px solid var(--line);
}

/* ============ 订单详情：客服入口 ============ */
#orderDetailBox .od-service{
	display: flex; align-items: center; gap: 9px;
	width: 100%; margin-top: 12px;
	padding: 11px 13px; border-radius: 12px;
	text-align: left; text-decoration: none;
	font-size: 12px; color: #c4b5fd;
	background: rgba(124,92,255,.1);
	border: 1px solid rgba(124,92,255,.26);
	transition: background .16s, border-color .16s;
}
#orderDetailBox .od-service:active{
	background: rgba(124,92,255,.2);
	border-color: rgba(124,92,255,.45);
}
#orderDetailBox .od-service svg{
	width: 16px; height: 16px; flex: none; color: #8b7cff;
}
#orderDetailBox .od-service span{
	flex: 1; min-width: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#orderDetailBox .od-service i{
	font-style: normal; font-size: 10.5px;
	flex: none; opacity: .8;
}

/* ============ 订单列表图标 ============ */
.hist-item{
	display: flex; align-items: center; gap: 10px;
	width: 100%; padding: 11px 0; text-align: left;
	border-bottom: 1px solid var(--line);
}
.h-icon{
	width: 40px; height: 40px; flex: none; border-radius: 11px;
	display: grid; place-items: center; font-size: 19px;
	background: rgba(255,255,255,.05);
	border: 1px solid var(--line);
	overflow: hidden;
}
.h-icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.hist-item:active{ opacity: .7; }

/* ============ 客服列表整行可点 ============ */
.contact-item{
	cursor: pointer;
	transition: background .16s, border-color .16s;
}
.contact-item:active{
	background: rgba(124,92,255,.12);
	border-color: rgba(124,92,255,.35);
}

/* ============ 卡密单条复制的「已复制」反馈 ============ */
.card-code{
	position: relative;
	border-radius: 8px;
	transition: color .18s, background .18s;
}
.card-code.copied{
	color: #34d399;
	background: rgba(52,211,153,.12);
	padding-left: 8px;
	padding-right: 52px;
	text-decoration: none;
}
.card-code.copied::after{
	content: "已复制";
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 10px;
	font-family: -apple-system, "PingFang SC", sans-serif;
	letter-spacing: 0;
	color: #34d399;
}
.card-code:active{
	background: rgba(255,255,255,.06);
}

/* ============ 反馈：表单 ============ */
.field-col{ display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.field-label{ font-size: 12px; color: var(--dim); }
.field-col textarea,
.field-col input{
	width: 100%; min-width: 0;
	padding: 11px 12px; border-radius: 12px;
	font-size: 12.5px; line-height: 1.7; color: var(--txt);
	background: rgba(255,255,255,.05);
	border: 1px solid var(--line);
	outline: none; resize: vertical;
	-webkit-appearance: none; appearance: none;
}
.field-col textarea:focus,
.field-col input:focus{
	border-color: rgba(124,92,255,.65);
	background: rgba(124,92,255,.08);
}
.field-col textarea::placeholder,
.field-col input::placeholder{ color: var(--dim-2); }

.fb-head .fb-order{
	display: flex; align-items: center; gap: 11px;
	padding: 11px 13px; border-radius: 13px;
	background: var(--panel); border: 1px solid var(--line);
}
.fb-order-icon{
	width: 38px; height: 38px; flex: none; border-radius: 11px;
	display: grid; place-items: center; font-size: 18px;
	background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.26);
	overflow: hidden;
}
.fb-order-icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-order-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-order-main strong{
	font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-order-main span{ font-size: 10.5px; color: var(--dim-2); }

/* 订单详情里的「反馈问题」 */
.od-fb{
	width: 100%; height: 40px; margin-top: 10px;
	border-radius: 11px; font-size: 12.5px; font-weight: 500;
	color: #ffd18a; background: rgba(255,199,107,.1);
	border: 1px solid rgba(255,199,107,.28);
}
.od-fb:active{ background: rgba(255,199,107,.2); }

/* ============ 反馈列表（客服页） ============ */
.fb-list{ display: flex; flex-direction: column; gap: 7px; }
.fb-item{
	border-radius: 11px; overflow: hidden;
	background: rgba(255,255,255,.04);
	border: 1px solid var(--line);
}
.fb-item summary{
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 10px 12px; cursor: pointer; list-style: none;
}
.fb-item summary::-webkit-details-marker{ display: none; }
.fb-sum-title{
	font-size: 12px; min-width: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-state{
	flex: none; font-style: normal; font-size: 10px;
	padding: 2px 8px; border-radius: 100px;
	color: #ffd18a; background: rgba(255,199,107,.14);
	border: 1px solid rgba(255,199,107,.28);
}
.fb-state.ok{
	color: #6ee7b7; background: rgba(52,211,153,.14);
	border-color: rgba(52,211,153,.3);
}
.fb-body{ padding: 0 12px 12px; }
.fb-row{
	display: flex; justify-content: space-between; gap: 10px;
	font-size: 10.5px; color: var(--dim-2); padding: 3px 0;
}
.fb-row b{ color: #c9cfe0; font-weight: 500; word-break: break-all; text-align: right; }
.fb-content{
	margin-top: 8px; padding: 9px 11px; border-radius: 9px;
	font-size: 12px; line-height: 1.7; color: #c9cfe0;
	background: rgba(255,255,255,.04);
	white-space: pre-wrap; word-break: break-word;
}
.fb-reply{
	margin-top: 8px; padding: 9px 11px; border-radius: 9px;
	background: rgba(124,92,255,.1);
	border: 1px solid rgba(124,92,255,.24);
}
.fb-reply b{ display: block; font-size: 11px; color: #c4b5fd; margin-bottom: 5px; }
.fb-reply p{ margin: 0; font-size: 12px; line-height: 1.7; color: #ddd3ff; white-space: pre-wrap; }
.fb-reply span{ display: block; margin-top: 6px; font-size: 10px; color: var(--dim-2); }

/* ============ 在线客服：聊天界面 ============ */
.chat-box{
	height: 46vh; min-height: 260px;
	overflow-y: auto;
	padding: 12px;
	border-radius: 16px;
	background: rgba(255,255,255,.03);
	border: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 12px;
}

.chat-empty{
	margin: auto; text-align: center;
	color: var(--dim-2); font-size: 12px;
}
.chat-empty-icon{
	font-size: 34px; margin-bottom: 10px; opacity: .7;
}
.chat-empty p{ margin: 0 0 4px; font-size: 13px; color: var(--dim); }
.chat-empty span{ font-size: 11px; }

.chat-row{ display: flex; align-items: flex-end; gap: 7px; }
.chat-row.mine{ justify-content: flex-end; }

.chat-avatar{
	width: 28px; height: 28px; flex: none; border-radius: 9px;
	display: grid; place-items: center;
	font-size: 9.5px; color: #c9cfe0;
	background: rgba(255,255,255,.08);
	border: 1px solid var(--line);
}
.chat-avatar.me{
	color: #fff;
	background: linear-gradient(140deg, #7c5cff, #a855f7);
	border-color: transparent;
}

.chat-bubble{
	max-width: 76%;
	padding: 9px 12px 7px;
	border-radius: 14px 14px 14px 4px;
	background: rgba(255,255,255,.06);
	border: 1px solid var(--line);
	font-size: 12.5px; line-height: 1.65; color: #dfe4f0;
	word-break: break-word;
}
.chat-row.mine .chat-bubble{
	border-radius: 14px 14px 4px 14px;
	background: linear-gradient(140deg, rgba(124,92,255,.32), rgba(168,85,247,.24));
	border-color: rgba(124,92,255,.4);
	color: #f2eeff;
}
.chat-time{
	display: block; margin-top: 4px;
	font-size: 9px; opacity: .55; text-align: right;
}

.chat-img{
	max-width: 200px; max-height: 200px;
	border-radius: 10px; display: block;
	object-fit: cover;
}
.chat-text{ white-space: pre-wrap; }

/* 订单卡片 */
.chat-order{
	display: flex; align-items: center; gap: 9px;
	width: 100%; min-width: 200px;
	padding: 9px 10px; border-radius: 10px;
	text-align: left;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
}
.chat-order-icon{
	width: 32px; height: 32px; flex: none; border-radius: 9px;
	display: grid; place-items: center; font-size: 16px;
	background: rgba(124,92,255,.18);
	overflow: hidden;
}
.chat-order-icon img{ width: 100%; height: 100%; object-fit: cover; }
.chat-order-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-order-main strong{
	font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-order-main span{ font-size: 9.5px; opacity: .65; }
.chat-order b{ font-size: 12px; flex: none; }

/* 工具条 */
.chat-actions{ display: flex; gap: 8px; margin: 10px 0; }
.chat-tool{
	flex: 1; height: 38px; border-radius: 11px;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	font-size: 12px; color: #c9cfe0;
	background: var(--panel); border: 1px solid var(--line);
}
.chat-tool svg{ width: 15px; height: 15px; }
.chat-tool:active{ background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.35); }

/* 输入条 */
.chat-inputbar{
	display: flex; align-items: flex-end; gap: 6px;
	padding: 5px 6px;
	border-radius: 12px;
	background: var(--panel);
	border: 1px solid var(--line);
}
.chat-inputbar textarea{
	flex: 1; min-width: 0; min-height: 32px; max-height: 72px;
	padding: 6px 8px; border: 0; outline: none; resize: none;
	background: transparent; color: var(--txt);
	font-size: 12px; line-height: 1.6;
}
.chat-inputbar textarea::placeholder{ color: var(--dim-2); }
.chat-send{
	flex: none; height: 34px; padding: 0 14px; border-radius: 9px;
	font-size: 12px; font-weight: 600; color: #fff;
	background: linear-gradient(135deg, #7c5cff, #a855f7);
	box-shadow: 0 8px 18px -10px rgba(124,92,255,.95);
}
.chat-send:active{ transform: scale(.96); }

/* 订单卡片里的支付方式 */
.chat-pay{
	display: inline-block; margin-top: 2px;
	font-size: 9px; padding: 1px 6px; border-radius: 4px;
	color: #c4b5fd; background: rgba(124,92,255,.16);
	border: 1px solid rgba(124,92,255,.28);
	align-self: flex-start;
}

/* 订单选择列表 */
.chat-order-list{ display: flex; flex-direction: column; gap: 8px; }
.chat-order-pick{
	display: flex; align-items: center; gap: 10px;
	width: 100%; padding: 11px 12px; border-radius: 12px;
	text-align: left;
	background: var(--panel); border: 1px solid var(--line);
}
.chat-order-pick:active{ border-color: rgba(124,92,255,.5); }

/* 底部导航 5 项适配 */
.dock-item{ width: 58px; }

/* ============ 咨询页：身份登录 & 会话切换 ============ */
.chat-login{
	padding: 26px 18px;
	border-radius: 18px;
	text-align: center;
	background: var(--panel); border: 1px solid var(--line);
}
.chat-login-icon{ font-size: 34px; margin-bottom: 10px; }
.chat-login h3{ margin: 0 0 6px; font-size: 15px; }
.chat-login p{ margin: 0; font-size: 11.5px; color: var(--dim); line-height: 1.65; }

.chat-identity{
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-bottom: 10px; padding: 8px 12px;
	border-radius: 11px;
	font-size: 11.5px; color: var(--dim);
	background: rgba(124,92,255,.1);
	border: 1px solid rgba(124,92,255,.24);
}
.chat-identity b{ color: #c4b5fd; font-weight: 600; }
.chat-identity button{
	flex: none; font-size: 10.5px; padding: 3px 9px;
	border-radius: 7px; color: #c4b5fd;
	background: rgba(124,92,255,.16);
	border: 1px solid rgba(124,92,255,.3);
}

/* ============ 订单列表里的支付方式标签 ============ */
.hist-item strong{
	display: flex; align-items: center; gap: 6px;
	min-width: 0;
}
.hist-item strong .pay-tag{
	flex: none; font-style: normal;
	font-size: 9px; font-weight: 500;
	padding: 1px 6px; border-radius: 4px;
	color: #c4b5fd; background: rgba(124,92,255,.16);
	border: 1px solid rgba(124,92,255,.28);
}

/* 订单详情里的支付方式 */
#orderDetailBox .kv b{ font-weight: 500; }

/* ============ 首页「客服回复」提示条 ============ */
.chat-tip{
	display: flex; align-items: center; gap: 8px;
	width: 100%; margin-bottom: 14px;
	padding: 11px 13px; border-radius: 13px;
	text-align: left;
	font-size: 12px; color: #ddd3ff;
	background: linear-gradient(100deg, rgba(124,92,255,.22), rgba(168,85,247,.12));
	border: 1px solid rgba(124,92,255,.4);
	animation: chatTipIn .3s ease both;
}
@keyframes chatTipIn{
	from{ opacity: 0; transform: translateY(-6px); }
	to{ opacity: 1; transform: translateY(0); }
}
.chat-tip:active{ transform: scale(.985); }
.chat-tip-dot{
	width: 7px; height: 7px; flex: none; border-radius: 50%;
	background: #ef4444;
	box-shadow: 0 0 0 0 rgba(239,68,68,.7);
	animation: pulse 2s infinite;
}
.chat-tip-text{ flex: 1; min-width: 0; }
.chat-tip-text b{ color: #fff; }
.chat-tip i{ font-style: normal; flex: none; opacity: .8; font-size: 11px; }

/* ============ 底部导航未读红点 ============ */
.dock-item{ position: relative; }
.dock-item.has-unread::after{
	content: attr(data-unread);
	position: absolute; top: 3px; right: 12px;
	min-width: 15px; height: 15px; padding: 0 4px;
	border-radius: 100px;
	display: grid; place-items: center;
	font-size: 8.5px; font-weight: 700; color: #fff;
	background: #ef4444;
	box-shadow: 0 2px 6px -1px rgba(239,68,68,.9);
}

/* ============ 聊天页固定布局（页面不滚动） ============ */
body.chat-mode{ overflow: hidden; }

.page[data-page="chat"].on{
	display: flex; flex-direction: column;
	overflow: hidden;
}
.page[data-page="chat"] .page-head{ flex: none; margin-bottom: 12px; }

#chatMain{
	flex: 1; min-height: 0;
	display: flex; flex-direction: column;
}
.page[data-page="chat"] .chat-box{
	flex: 1; min-height: 0; height: auto;
	overscroll-behavior: contain;
}
.page[data-page="chat"] .chat-actions,
.page[data-page="chat"] .chat-inputbar{ flex: none; }

.chat-login{ margin: auto 0; }

/* ============ 聊天页：固定在导航上方，不遮挡输入框 ============ */
body.chat-mode .page[data-page="chat"].on{
	position: fixed;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	padding: 10px 18px 6px;
	overflow: hidden;
	background: transparent;
}

/* 顶部标题固定 */
body.chat-mode .page[data-page="chat"] .page-head{
	flex: none;
	margin-bottom: 10px;
}

/* 消息区占满剩余空间，内部滚动 */
body.chat-mode .page[data-page="chat"] .chat-box{
	flex: 1;
	min-height: 0;
	height: auto;
	overscroll-behavior: contain;
}

/* 操作条 + 输入条固定在最底部（导航上方） */
body.chat-mode .page[data-page="chat"] .chat-actions{ flex: none; margin: 8px 0 6px; }
body.chat-mode .page[data-page="chat"] .chat-inputbar{ flex: none; }

/* 登录卡居中 */
body.chat-mode .page[data-page="chat"] .chat-login{ margin: auto 0; }

/* ============ 图片查看器层级 & 点击提示 ============ */
.img-viewer{ z-index: 999 !important; }
.chat-img,
.adm-chat-img{ cursor: zoom-in; }

/* 聊天里的图片：稍微放大一点，方便看清 */
.chat-img{
	max-width: 220px;
	max-height: 220px;
	transition: transform .16s;
}
.chat-img:active{ transform: scale(.97); }

/* ============ 修复：全屏图片底部被裁 ============ */
.img-viewer{
	position: fixed;
	left: 0; top: 0;
	width: 100%;
	max-width: 100%;
	height: 100vh;
	height: 100dvh;      /* 移动端动态视口，避免地址栏导致底部溢出 */
	max-height: 100dvh;
	box-sizing: border-box;
	overflow: hidden;
}

.iv-head{
	padding-top: calc(12px + env(safe-area-inset-top, 0px));
	padding-bottom: 8px;
	flex: none;
}

.iv-stage{
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px calc(14px + env(safe-area-inset-bottom, 0px));
}

#ivImage{
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ============ 顶栏客服按钮未读红点 ============ */
.icon-btn{ position: relative; }
.icon-btn.has-unread::after{
	content: attr(data-unread);
	position: absolute; top: -3px; right: -4px;
	min-width: 15px; height: 15px; padding: 0 4px;
	border-radius: 100px;
	display: grid; place-items: center;
	font-size: 8.5px; font-weight: 700; color: #fff;
	background: #ef4444;
	box-shadow: 0 2px 6px -1px rgba(239,68,68,.9);
}

/* ============================================================
 * 老浏览器 / 各品牌手机兼容层
 * ============================================================ */

/* ① 用四边定位替代 inset（iOS 12 以下、老安卓 WebView 不认 inset） */
.mask,
.img-viewer,
.chat-tip,
.dock,
.toast{
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
.mask,
.img-viewer{
	position: fixed;
}
.dock{
	top: auto;
	left: 50%;
	right: auto;
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
}
.toast{
	top: auto;
	right: auto;
	bottom: 108px;
	left: 50%;
	transform: translate(-50%, 16px);
}
.toast.on{ transform: translate(-50%, 0); }
.chat-tip{ position: relative; }

/* ② dvh 兜底（不支持的浏览器用 vh） */
@supports not (height: 100dvh){
	.img-viewer{ height: 100vh; max-height: 100vh; }
}

/* ③ aspect-ratio 兜底 */
@supports not (aspect-ratio: 1 / 1){
	.gcard-icon,
	.item-icon{ height: 50px; }
}

/* ④ flex gap 兜底（iOS 14.5 以下不支持 gap） */
@supports not (gap: 1px){
	.chat-actions > * + *{ margin-left: 8px; }
	.pays > * + *{ margin-left: 8px; }
	.card-filters > * + *{ margin-left: 6px; }
	.sku-grid > * + *{ margin-top: 8px; }
	.stats > div + div{ margin-left: 0; }
}

/* ⑤ 滚动容器在部分安卓上需要显式声明 */
.chat-box,
.cats,
.detail-imgs,
.fb-list{
	-webkit-overflow-scrolling: touch;
}

/* ⑥ 输入框统一去掉系统默认外观（部分国产浏览器会加圆角/内阴影） */
input,
textarea,
select,
button{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
}

/* ⑦ 100vh 在部分浏览器会被地址栏遮挡，用 min-height 兜底 */
body{
	min-height: 100vh;
	min-height: -webkit-fill-available;
}

/* ============================================================
 * 老 WebView（Via / 系统浏览器 / Android 7-10）兼容补丁
 * 这些浏览器不支持 flex 的 gap，用 margin 兜底
 * ============================================================ */
@supports not (gap: 1px){

	/* 分类胶囊 */
	.cats > .cat + .cat{ margin-left: 8px; }

	/* 聊天工具按钮 */
	.chat-actions > .chat-tool + .chat-tool{ margin-left: 8px; }

	/* 聊天输入条 */
	.chat-inputbar > .chat-send{ margin-left: 6px; }

	/* 底部导航 */
	.dock > .dock-item + .dock-item{ margin-left: 2px; }

	/* 客服卡片内部（纵向） */
	.contact-item + .contact-item{ margin-top: 8px; }

	/* 反馈列表 */
	.fb-item + .fb-item{ margin-top: 7px; }

	/* 订单选择列表 */
	.chat-order-pick + .chat-order-pick{ margin-top: 8px; }

	/* 消息行内头像与气泡 */
	.chat-row > .chat-avatar{ margin-right: 7px; }
	.chat-row.mine > .chat-avatar{ margin-right: 0; margin-left: 7px; }

	/* 订单卡片内部 */
	.chat-order > * + *{ margin-left: 9px; }

	/* 统计三栏 */
	.stats > div + div{ margin-left: 0; }

	/* 图片横向列表 */
	.detail-imgs > img + img{ margin-left: 8px; }
}

/* ============================================================
 * 兜底：不支持 CSS 变量的极老浏览器
 * ============================================================ */
@supports not (--a: 1){
	body{ background: #080a10; color: #eef1f8; }
	.card,
	.gcard,
	.item,
	.sheet,
	.chat-box{
		background: #12151f;
		border-color: rgba(255,255,255,.1);
	}
	.btn-main,
	.cat.on,
	.chat-send,
	.gcard-go,
	.item-buy{
		background: #7c5cff;
		color: #fff;
	}
}

/* ============================================================
 * 视口 / 缩放兜底（Via、UC、系统浏览器偶发"页面只占一半"）
 * ============================================================ */
html{
	width: 100%;
	max-width: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body{
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.wrap{
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Via 等浏览器在某些缩放下会把 fixed 元素宽度算错 */
.dock{
	width: auto;
	max-width: calc(100% - 28px);
}

/* 图片不超过容器 */
img{
	max-width: 100%;
	height: auto;
}

/* ============================================================
 * iOS / Safari / 安卓全平台适配
 * ============================================================ */

/* ① iOS Safari 点击输入框会放大页面（font-size < 16px）
    → 只对聊天/查单等长文本输入框设 16px，避免整体布局被撑开 */
@media screen and (max-width: 820px){
	.chat-inputbar textarea,
	#buyContact,
	#queryInput,
	#chatText,
	#chatLoginInput,
	#fbContent,
	.row-input{
		font-size: 16px !important;
	}
}

/* ② iOS Safari 的 100vh 包含地址栏 → 用 -webkit-fill-available 兜底 */
@supports (-webkit-touch-callout: none){
	body{
		min-height: -webkit-fill-available;
	}
	.img-viewer{
		height: -webkit-fill-available;
	}
}

/* ③ 修复 iOS 上 position: fixed 底部元素在键盘弹出时错位 */
.chat-inputbar,
.chat-actions{
	position: relative;
}

/* ④ 点击高亮（安卓 Chrome 会闪蓝块） */
*{
	-webkit-tap-highlight-color: transparent;
}

/* ⑥ 横向滚动容器在 iOS 上需要惯性滚动 */
.cats,
.detail-imgs,
.chat-box,
.featured,
.fb-list{
	-webkit-overflow-scrolling: touch;
}

/* ⑦ 禁止长按弹菜单（图片/卡密） */
.card-code,
.chat-img,
.detail-imgs img{
	-webkit-touch-callout: default;
}

/* ⑨ 安全区适配（iPhone 刘海/底部横条） */
.dock{
	bottom: calc(14px + constant(safe-area-inset-bottom));
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.wrap{
	padding-bottom: calc(118px + constant(safe-area-inset-bottom));
	padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
 * 待支付页：返回按钮 + 聊天页顶部压缩
 * ============================================================ */
.pay-back{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 30px;
	padding: 0 12px;
	margin-bottom: 8px;
	border-radius: 8px;
	font-size: 12px;
	color: #c9cfe0;
	background: rgba(255,255,255,.06);
	border: 1px solid var(--line);
}
.pay-back:active{
	background: rgba(124,92,255,.16);
	border-color: rgba(124,92,255,.35);
}

/* 聊天页顶部更紧凑，给消息区更多空间 */
.page[data-page="chat"] .page-head{
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
	padding-top: 0;
}
.page[data-page="chat"] .page-head h2{
	font-size: 16px;
	margin: 0;
	flex: none;
	line-height: 1.2;
}
.page[data-page="chat"] .page-head p{
	font-size: 10px;
	line-height: 1.2;
	margin: 0;
	flex: 1;
	min-width: 0;
	color: var(--dim-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.page[data-page="chat"] #chatStatus{
	font-size: 10px !important;
	margin: 0 0 6px !important;
}
.page[data-page="chat"] .chat-identity{
	margin-bottom: 6px;
	padding: 6px 10px;
	font-size: 10.5px;
}

@media (max-width: 560px){
	.page[data-page="chat"] .page-head h2{ font-size: 15px; }
	.page[data-page="chat"] .page-head p{ font-size: 10px; }
	.page[data-page="chat"] .chat-actions{ margin: 6px 0; }
	.page[data-page="chat"] .chat-tool{ height: 34px; font-size: 11.5px; }
}

/* 聊天页标题与说明同一行 */
@media (max-width: 380px){
	.page[data-page="chat"] .page-head{
		gap: 6px;
	}
	.page[data-page="chat"] .page-head h2{
		font-size: 15px;
	}
	.page[data-page="chat"] .page-head p{
		font-size: 9.5px;
	}
}
