/* 01. 全局基础 */
:root { }
@font-face {
	font-family:'cmdpe2';
	src: url('./font/cmdpe.woff2') format('woff2');
	font-weight:normal;
	font-style:normal;
}
/*滚动条*/
::-webkit-scrollbar {
	height: 6px;   /* 横向轨道高度 */
	width: 6px;    /* 竖向轨道宽度 */
}
::-webkit-scrollbar-thumb:vertical {
	transition: all 0.25s ease 0s;
	background: rgb(255 255 255 / 15%);
	min-height: 295px; /* 竖向滑块最小高度 */
}
::-webkit-scrollbar-thumb:horizontal {
	transition: all 0.25s ease 0s;
	background: rgb(255 255 255 / 15%);
	min-width: 295px; /* 横向滑块最小宽度 */
}
::-webkit-scrollbar-thumb:vertical:hover {
	width: 9px;
	background:#99e640;
}
::-webkit-scrollbar-thumb:horizontal:hover {
	height: 9px;
	background:#99e640;
}
::-webkit-scrollbar-corner {
	background: transparent;
}
::-webkit-scrollbar-track {
	background: transparent;
}
:focus,:focus-visible {
  outline: none !important;
  outline-offset: 0;
}
::selection {
    background: #ff3d00;
    color: #fff;
}
::before {
    font-family: "iconfont";
    display: inline-block;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
    font-style: normal;
}
/* 02. 页面基础与通用元素 */
a { text-decoration: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 24px 24px; height: 100vh; width: 100vw;
background-image: url(img/bg3.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
	color: #bdbdbd; font-size: 16px; font-family: "cmdpe2", -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: .5px;
	}
body:before {
    content: "";
    inset: 0;
    position: absolute;
    background: rgb(0 0 0 / 0%);
}
body.modal-open { overflow: hidden; }
/* 03. 页面框架：header / main */
header { display: flex; justify-content: space-between; align-items: center; min-height: 52px; /* padding: 14px; background: rgb(255 255 255 / 15%);     background: rgba(27, 29, 30, .82); */ position: sticky; top: 10px; z-index: 20; backdrop-filter: blur(6px); max-width: 920px; margin: 0 auto; border-radius: 14px; }
header img { width: 24px; transform: scaleX(-1); margin-right: 6px; }
header nav { margin-left: auto; }
header strong { font-size: 18px; color: #ffffff; }
nav a { color: #a4aaa6; margin-left: 16px; position: relative; }
nav a:hover { color: #fff; }
nav a::before { 
	content: "";
    position: absolute;
    inset: -4px -8px;
    opacity: 0;
    z-index: -1;
    background: #4f1fff;
}
nav a::after { 
	content: "";
    position: absolute;
    inset: -8px -4px;
    opacity: 0;
    z-index: -1;
    background: #4f1fff;
 }
nav a:hover::before, nav a:hover::after {
    opacity: 1;
}
main { max-width: 920px; margin: 0 auto; padding: 20px 0 80px; }
/* 04. 公告、分类和商品列表 */
h1, h2, h3 { position: relative; }
h2::after, h3::after { content: ""; position: absolute; left: -20px; height: 20px; width: 6px; background: #42d66b; }
#announcement {
display: flex;
align-items: flex-start;
flex-direction: column;
gap: 3px;
margin: 0 0 16px;
padding: 12px 18px;
background: rgba(27, 29, 30, .82);
border-radius: 14px;
backdrop-filter: blur(6px);
}
#announcement h2 { font-size: 16px; width: 100%; border-bottom: 1px solid #161616; border-bottom: 1px solid rgba(255, 255, 255, .08);
 padding: 0 0 10px; display: flex; align-items: center; margin-bottom: 8px; }
/* #announcement h2::before { content: "\e653"; margin-right: 3px; } */
#announcement p, .detail-description p { color: #a4aaa6; line-height: 1.6; font-weight: 100; /* left: 22px; */ position: relative; }
/* #announcement p::before, .detail-description p::before { content: "\e719"; position: absolute; left: -22px; } */
#announcement a, .detail-description a { color: #a4aaa6; font-weight: 600;background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%2342d66b' stroke-width='0.3' stroke-linecap='round' d='M0 4 L2.5 1 L5 4 L7.5 1 L10 4 L12.5 1 L15 4 L17.5 1 L20 4'/%3E%3C/svg%3E") repeat-x 0 100%;
    background-size: 20px auto;
    padding-bottom: 4px;
	margin-left: 24px;
	position: relative;}
#announcement a::before, .detail-description a::before { content: "\e676"; position: absolute; left: -20px;}
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; /* overflow-x: auto; */ }
.category-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; color: #a4aaa6; background: rgba(27, 29, 30, .82); backdrop-filter: blur(6px); border-radius: 10px; }
.category-tab img { width: 16px; height: 16px; object-fit: contain; }
.category-tab:hover, .category-tab.active { color: #fff; background: rgb(255 255 255 / 15%); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  appearance: none;
  width: 100%;
  color: inherit;
  text-align: left;
  background: var(--surface);
  background: rgba(27, 29, 30, .82);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 15px;
  min-height: 154px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.product { cursor: pointer; }
.product.active, .product:hover { background: rgb(27 29 30 / 92%); transform: translateY(-2px); }
.product:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 0px solid #42d66b; outline-offset: 3px; }
.product-main { display: flex; align-items: start; gap: 14px; flex-direction: row-reverse; justify-content: space-between; }
.product-main.no-icon { grid-template-columns: minmax(0, 1fr); }
.product-icon { width: 54px; height: 54px; /* padding: 10px; background: rgba(255,255,255,.07); */ border-radius: 14px; object-fit: contain; }
.product-copy { min-width: 0; }
.product h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.product h3::after { left: -18px; opacity: 1; }
.product p {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 0;
  overflow: hidden;
  color: #a4aaa6;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.product h3 img, .product p img { max-width: 100%; max-height: 44px; object-fit: contain; vertical-align: middle; }
.product h3 a, .product p a { color: inherit; }
.price { color: #2f6bfd; }
.stock { color: #FF9800; }
/* 05. 通用表单控件 */
label {  }
input {
  width: 100%;
  min-height: 32px;
  background: #141617;
  border: 0px solid #373a3b;
  color: #f3f5f2;
  border-radius: 10px;
  padding: 0px 8px;
  font: inherit;
  font-size: 14px;
}
input::placeholder {
    font-family: "cmdpe2", -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
    color: rgba(255, 255, 255, 0.30);
    font-size: 14px;
}
button {
  border: 0;
  font-weight: 700;
  cursor: pointer;
  font-family: "cmdpe2", -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; 
  font-size: 14px;
  letter-spacing: .5px;
}
button:hover { background: #bc2d00; }
button:disabled { background: #5b605d; color: #c3c7c4; cursor: not-allowed; }
/* 06. 弹窗基础与详情内容 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.90);
  /* backdrop-filter: blur(6px); */
}
.modal[hidden] { display: none; }
.box {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(680px, 100%);
  max-height: min(88dvh, 760px);
  position: relative;
  padding: 0 24px 24px;
  background-color: #222;
  border: 0;
  border-radius: 0;
  animation: modal-pop .18s ease-out;
}
.product-detail-box { max-height: calc(100dvh - 100px); }
.modal-loader {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='3' r='1' fill='%2342d66b'%3E%3Canimate id='SVGelgoqhuA' attributeName='r' begin='0;SVGSRzJybSJ.end-0.5s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='16.5' cy='4.21' r='1' fill='%2342d66b'%3E%3Canimate id='SVGBcQu6cCi' attributeName='r' begin='SVGelgoqhuA.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='7.5' cy='4.21' r='1' fill='%2342d66b'%3E%3Canimate id='SVGSRzJybSJ' attributeName='r' begin='SVGeZGzNdVZ.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='19.79' cy='7.5' r='1' fill='%2342d66b'%3E%3Canimate id='SVGG5Q0fe0M' attributeName='r' begin='SVGBcQu6cCi.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='4.21' cy='7.5' r='1' fill='%2342d66b'%3E%3Canimate id='SVGeZGzNdVZ' attributeName='r' begin='SVGUTnihcal.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='21' cy='12' r='1' fill='%2342d66b'%3E%3Canimate id='SVG8aQG8dpc' attributeName='r' begin='SVGG5Q0fe0M.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='3' cy='12' r='1' fill='%2342d66b'%3E%3Canimate id='SVGUTnihcal' attributeName='r' begin='SVGHktsvT5Q.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='19.79' cy='16.5' r='1' fill='%2342d66b'%3E%3Canimate id='SVGqCF3Scrd' attributeName='r' begin='SVG8aQG8dpc.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='4.21' cy='16.5' r='1' fill='%2342d66b'%3E%3Canimate id='SVGHktsvT5Q' attributeName='r' begin='SVGSFNCBbxb.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='16.5' cy='19.79' r='1' fill='%2342d66b'%3E%3Canimate id='SVGMFYo1cJN' attributeName='r' begin='SVGqCF3Scrd.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='7.5' cy='19.79' r='1' fill='%2342d66b'%3E%3Canimate id='SVGSFNCBbxb' attributeName='r' begin='SVGLSoLpdOI.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3Ccircle cx='12' cy='21' r='1' fill='%2342d66b'%3E%3Canimate id='SVGLSoLpdOI' attributeName='r' begin='SVGMFYo1cJN.begin+0.1s' calcMode='spline' dur='0.6s' keySplines='.27,.42,.37,.99;.53,0,.61,.73' values='1;2;1'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='6s' repeatCount='indefinite' type='rotate' values='360 12 12;0 12 12'/%3E%3C/g%3E%3C/svg%3E");
}
.modal.is-loading .product-detail-box { visibility: hidden; }
.modal.is-loading .modal-loader { display: block; }
/* 07. 查询表单 */
#query-form {
    display: flex;
    margin-top: 20px;
}
#query-form #query-email {
    border-radius: 10px 0 0 10px;
	min-height: 34px;
	padding: 0px 12px;
}
#query-form button {
    border-radius: 0 10px 10px 0;
    width: 52px;
    background: rgb(173 0 202 / 100%);
    color: #fff;
}
#query-form button:hover {
    background: #bc2d00;
}
.compact-box { width: min(460px, 100%); }
.modal-body { min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding: 0 18px 0 24px; margin: 0 -24px 0 -24px; }
.box::before {
    content: '';
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 6px;
    right: 6px;
    z-index: -1;
    background: #222222;
}
.box::after {
	content: '';
    position: absolute;
    bottom: 0px;
    left: 6px;
    right: 6px;
    height: 9px;
    border-left: 9px solid #050404;
    border-right: 9px solid #050404;
}
@keyframes modal-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.box > h2 { position: relative; padding: 12px 0 18px; font-size: 18px; border-bottom: 1px solid #161616; }
.box > h2::after { left: -27px; height: 24px; }
.box > h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -24px;
    right: -24px;
    height: 3px;
    border-left: 6px solid #050404;
    border-right: 6px solid #050404;
}
.close {
	position: absolute;
	right: -24px;
	top: -30px;
	width: 24px;
	height: 24px;
	padding: 0;
	color: #fff;
	background: rgba(255,0,0,.52);
	font-size: 20px;
	line-height: 1;
	z-index: 5;
	font-family: revert;
	letter-spacing: normal;
	border-radius: 9px;
	font-weight: 100;
}
.close:hover { background: rgba(255,0,0,.79); font-weight: 700; }
.share-product { margin: 15px 0; color: #42d66b; background: transparent; position: absolute; right: 24px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.share-product::before {
	content: "\e659";
    font-size: 16px;
	margin-right: 2px;
}
.share-product:hover { color: #ff3d00; background: transparent; }
.detail-description { margin: 15px 0; color: #b8bbb9; line-height: 1.6; }
.detail-description p { margin: 10px 0; line-height: 1.6; }
.detail-description p strong { font-weight: 600; color: #00dd70; }
.detail-description p span { font-weight: 600; color: #ff3d00; }
.detail-description ul { margin-left: 24px; list-style-type: square; }
.detail-description li { margin: 6px 0; }
.detail-description li::marker { color: transparent; }
.detail-description li:hover::marker { color: #ff3d00; }
.detail-description > :first-child { margin-top: 0; }
.detail-description > :last-child { margin-bottom: 0; }
.detail-description a { text-underline-offset: 3px; }
.detail-description img { display: block; max-width: 100%; height: auto; margin: 10px 0; object-fit: contain; }
.detail-description img { cursor: zoom-in; }
.image-viewer[hidden] { display: none; }
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .88);
  cursor: zoom-out;
}
.image-viewer img { max-width: 96vw; max-height: 92vh; object-fit: contain; box-shadow: 0 18px 70px rgba(0,0,0,.55); }
.detail-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.detail-row { display: flex; align-items: center; }
.detail-label { color: #a7aaa8; font-weight: 700; font-size: 14px; }
#detail-contact-value { min-width: 0; overflow-wrap: anywhere; color: #a4aaa6; }
#detail-contact[hidden] { display: none; }
.delivery-badge, .stock-badge { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.delivery-badge { color: #42d66b; background: rgb(66 214 107 / 20%); }
.stock-badge { color: #FF5722; background: rgb(255 87 34 / 20%); }
.detail-row input { width: min(200px, 100%); background: #161616; }
.quantity-control { display: flex; width: 88px; height: 32px; background: #3e00ad; border-radius: 10px; overflow: hidden; }
.quantity-control input { border-radius: 10px 0 0 10px; }
.quantity-row input::-webkit-inner-spin-button,
.quantity-row input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-steppers { display: grid; width: 32px; grid-template-rows: 1fr 1fr; }
.quantity-steppers button {
  min-height: 0;
  padding: 0;
  color: #a4aaa6;
  background: transparent;
  border-radius: 0;
  font: 700 13px/1 sans-serif;
}
.quantity-steppers button:hover { color: #42d66b; background: rgba(255,255,255,.10); }
.captcha-control { display: flex; align-items: center; gap: 8px; }
.captcha-control input { width: 200px; }
.captcha-code {
  min-height: 32px;
  padding: 0px 8px;
  overflow: hidden;
  position: relative;
  color: #ff62bb;
  background: #f7f7f7;
  letter-spacing: 2px;
  transform: rotate(var(--captcha-tilt, 0deg));
}
.captcha-code:hover { background: #fff; }
.detail-form #buy-summary { color: #f3f5f2; }
#pay-amount { color: #FFC107; font-size: 14px; }
.detail-actions { display: flex; justify-content: flex-start; padding: 12px 0 0; border-top: 1px solid #161616; }
.detail-form #buy-btn { min-height: 42px; width: 94px; color: #03dc6c; background: #161616; border-radius: 15px; display: flex; justify-content: center; align-items: center; }
.detail-form #buy-btn:hover { background: #bc2d00; }
.detail-form #buy-btn::before {
	content: "\e6fc";
    font-size: 26px;
	margin-right: 6px;
}
/* 08. 支付二维码窗口 */
#modal-qrcode .box {  }
#modal-qrcode .modal-body { display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; }
.pay { display: flex;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
	margin-bottom: 10px;
	}
.pay span {
    color: #00d26a;
	margin: 0 3px;
}
#qrcode-img { display: block; width: min(280px, 100%); aspect-ratio: 1; background: #fff; object-fit: contain; }
#qrcode-countdown { color: #f0b849; font-variant-numeric: tabular-nums; }
#qrcode-hint { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 5px; }
.qrcode-product { color: #f3f5f2; }
.qrcode-quantity { color: #008eff; font-weight: 700; }
.qrcode-amount-label { margin-left: 5px; color: #a4aaa6; }
.qrcode-amount { color: #ff5b35; }
#pay-link { font-weight: 600; }
.tip, #qrcode-hint, #buy-summary { color: #a4aaa6; }
.tip::before {
    content: "\e719";
    font-size: 1.1em;
    margin-right: 5px;
    vertical-align: 0px;
}
#query-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.item { 
    background: rgb(0 0 0 / 20%);
    border-radius: 14px;
    padding: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 14px;
 }
.card-entry { overflow-wrap: anywhere; }
.card-note { line-height: 1.6; }
.card-note p { display: inline; }
.purchase-time { color: #a4aaa6; white-space: nowrap; }
#success-content { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.copy-button { width: 30px; height: 30px; line-height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); color: rgb(255 255 255 / 50%); font-weight: 100; margin-left: 6px; }
.copy-button:hover { background: rgb(192 46 0); color: rgb(255 255 255 / 100%); }
.icon-copy { display: block; transform: translate(-1.9px, 1.1px); }
code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; background: rgb(0 0 0 / 60%); padding: 0 8px; height: 30px; line-height: 30px; border-radius: 9px; color: #99e640; font-size: 13px; font-weight: 600; font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.success-title { color: #42d66b; }
/* 09. 成功状态、提示和错误 */
#toast {
  position: fixed; left: 50%; top: 20px; transform: translateX(-50%);
  z-index: 200; width: max-content; max-width: calc(100vw - 32px);
  background: rgb(92 0 255 / 100%); color: white; padding: 12px; border-radius: 12px;
  backdrop-filter: blur(10px);
  animation: toast-in .18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.error { color: #ff6666; }
a { color: #42d66b; }

/* 10. 移动端布局：保持桌面规则不变，仅在窄屏压缩间距和重排内容 */
@media (max-width: 640px) {
  body { min-width: 0; width: 100%; height: auto; min-height: 100svh; }
  header { top: 8px; width: calc(100% - 20px); min-height: 46px; padding: 9px 11px; border-radius: 12px; }
  header img { width: 22px; margin-right: 4px; }
  header strong { font-size: 16px; }
  header nav { display: flex; align-items: center; gap: 10px; }
  nav a { margin-left: 0; font-size: 13px; white-space: nowrap; }
  main { width: 100%; padding: 20px 12px 48px; }
  #announcement { gap: 2px; padding: 12px 14px; border-radius: 12px; }
  #announcement h2 { font-size: 15px; padding-bottom: 8px; margin-bottom: 6px; }
  #announcement p { font-size: 13px; line-height: 1.55; }
  /* .category-tabs { flex-wrap: nowrap; gap: 7px; margin-bottom: 14px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; } */
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .category-tab img { width: 15px; height: 15px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .product { min-height: 138px; gap: 12px; padding: 14px; border-radius: 14px; }
  .product-main { gap: 10px; }
  .product-icon { width: 46px; height: 46px; border-radius: 11px; }
  .product h3 { font-size: 16px; line-height: 1.3; }
  .product p { min-height: 38px; margin-top: 6px; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; }
  .product-meta { padding-top: 10px; font-size: 13px; }

  .modal { padding: 10px; place-items: center; }
  .box { width: 100%; max-width: 100%; max-height: calc(100svh - 100px); padding: 0 16px 18px; }
  /* .product-detail-box { max-height: calc(100svh - 20px); } */
  .compact-box { width: 100%; }
  .box > h2 { padding: 10px 0 14px; font-size: 17px; }
  .box > h2::after { left: -18px; height: 21px; }
  .box > h2::before { left: -16px; right: -16px; }
  .close { top: -36px; right: -4px; }
  .modal-body { padding: 0 12px 0 16px; margin: 0 -16px; }
  .share-product { right: 16px; margin: 12px 0; font-size: 13px; }
  .detail-description { margin: 12px 0; font-size: 14px; }
  .detail-form { gap: 12px; margin-top: 16px; }
  .detail-row { width: 100%; gap: 9px; align-items: flex-start; }
  .detail-label { flex: 0 0 78px; font-size: 13px; line-height: 32px; }
  .detail-row input { width: auto; min-width: 0; flex: 1; }
  .quantity-control { width: 92px; }
  .quantity-control input { flex: 1; width: 60px; }
  .captcha-control { min-width: 0; flex: 1; gap: 6px; }
  .captcha-control input { width: auto; flex: 1; min-width: 0; }
  .captcha-code { flex: 0 0 68px; padding: 0 5px; }
  .detail-actions { padding-top: 14px; }
  .detail-form #buy-btn { width: 100%; min-height: 40px; }
  #modal-qrcode .modal-body { padding-left: 12px; padding-right: 12px; }
  .pay { margin-top: 14px; font-size: 16px; }
  #qrcode-img { width: min(250px, 70vw); }
  #qrcode-hint { font-size: 13px; }
  .image-viewer { padding: 12px; }
  .image-viewer img { max-width: 100%; max-height: 86svh; }
  #toast { max-width: calc(100vw - 24px); padding: 10px 14px; font-size: 13px; text-align: center; }
}
