* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:-apple-system,'PingFang SC','Microsoft YaHei',sans-serif; background:#faf6ef; color:#2b2118; padding-bottom:90px; }
.topbar { position:sticky; top:0; z-index:20; background:linear-gradient(135deg,#c62828,#8e1414); color:#fff; padding:14px 16px; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.topbar h1 { font-size:19px; letter-spacing:2px; }
.topbar .sub { font-size:12px; opacity:.85; margin-top:2px; }
.search { padding:10px 14px; background:#fff; position:sticky; top:64px; z-index:15; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.search input { width:100%; padding:9px 14px; border:1px solid #e3d9c8; border-radius:20px; font-size:15px; outline:none; background:#faf6ef; }
.cats { display:flex; gap:8px; overflow-x:auto; padding:10px 14px; background:#fff; position:sticky; top:113px; z-index:14; }
.cats button { flex:0 0 auto; border:1px solid #e0d5c0; background:#fff; border-radius:16px; padding:6px 14px; font-size:14px; color:#6b5a44; }
.cats button.on { background:#c62828; color:#fff; border-color:#c62828; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:14px; }
.card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(90,60,20,.08); display:flex; flex-direction:column; }
.card .pic { position:relative; width:100%; height:0; padding-top:133.33%; background:#fff; overflow:hidden; }
.card .pic img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:contain; }
.card .pic .soldout { position:absolute; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.45); color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; letter-spacing:3px; }
.card .ops { display:flex; gap:7px; margin-top:8px; }
.card .info { padding:9px 10px 11px; }
.card .name { font-size:13.5px; line-height:1.35; height:36px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.card .spec { font-size:11px; color:#9b8a70; margin-top:3px; }
.card .row { display:flex; align-items:center; justify-content:space-between; margin-top:7px; }
.price { color:#c62828; font-weight:700; font-size:16px; }
.price small { font-size:11px; font-weight:400; color:#a05858; }
.addbtn { width:30px; height:30px; border-radius:50%; border:none; background:#c62828; color:#fff; font-size:20px; line-height:1; }
.addbtn:active { transform:scale(.9); }
.cartbar { position:fixed; left:0; right:0; bottom:0; z-index:30; background:#2b2118; color:#fff; display:flex; align-items:center; padding:12px 16px; gap:12px; box-shadow:0 -2px 10px rgba(0,0,0,.2); cursor:pointer; }
.cartbar .total { flex:1; }
.cartbar .total b { font-size:18px; color:#ffd54f; }
.go { background:#c62828; color:#fff; border:none; border-radius:22px; padding:10px 22px; font-size:15px; }
.go:disabled { background:#7a6a55; }
.drawer-mask { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:40; display:none; }
.drawer { position:fixed; left:0; right:0; bottom:0; z-index:41; background:#fff; border-radius:16px 16px 0 0; max-height:75vh; display:none; flex-direction:column; }
.drawer.open, .drawer-mask.open { display:flex; }
.drawer-mask.open { display:block; }
.drawer h3 { padding:14px 16px 8px; font-size:16px; }
.drawer .items { flex:1; overflow-y:auto; padding:0 16px; }
.citem { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid #f0e9db; }
.citem .nm { flex:1; font-size:13.5px; }
.citem .nm small { display:block; color:#9b8a70; font-size:11px; }
.stepper { display:flex; align-items:center; gap:10px; }
.stepper button { width:26px; height:26px; border-radius:50%; border:1px solid #c62828; background:#fff; color:#c62828; font-size:16px; }
.stepper b { min-width:26px; text-align:center; }
.drawer .foot { padding:12px 16px 18px; border-top:1px solid #f0e9db; }
.drawer .foot input { width:100%; padding:11px 14px; border:1px solid #e3d9c8; border-radius:10px; font-size:16px; margin-bottom:10px; outline:none; }
.notice { font-size:11.5px; color:#9b8a70; line-height:1.6; margin-top:8px; }
.success { position:fixed; inset:0; z-index:50; background:#faf6ef; display:none; flex-direction:column; align-items:center; padding:60px 24px; text-align:center; }
.success.open { display:flex; }
.success .ono { font-size:44px; font-weight:800; color:#c62828; letter-spacing:2px; margin:14px 0 4px; }
.success .tail { font-size:17px; margin:8px 0 20px; }
.success .tail b { color:#c62828; }
.success .qr { width:180px; height:180px; border:1px solid #e3d9c8; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; color:#9b8a70; font-size:12px; overflow:hidden; }
.success .qr img { width:100%; height:100%; object-fit:contain; }
.toast { position:fixed; top:45%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,.75); color:#fff; padding:12px 22px; border-radius:10px; font-size:14px; z-index:99; display:none; max-width:80%; text-align:center; }
.empty { text-align:center; color:#9b8a70; padding:60px 0; grid-column:1/3; }
/* 视频/详情弹层（完全照推广商城样式） */
.ops { display:flex; gap:7px; margin-top:8px; }
.btn { flex:1; text-align:center; padding:7px 0; border-radius:10px; font-size:12.5px; border:1px solid #EAD9B8; background:#FFFBF2; color:#8A6A3F; }
.btn.vid { background:linear-gradient(135deg,#B71C1C,#D32F2F); color:#FFF3D2; border-color:transparent; font-weight:600; }
.btn.vid.no { visibility:hidden; }
.pmask { position:fixed; inset:0; background:rgba(20,5,5,.72); z-index:60; display:none; align-items:flex-end; justify-content:center; }
.pmask.open { display:flex; }
.psheet { background:#FFF8EE; width:100%; max-width:750px; max-height:92vh; overflow-y:auto; border-radius:20px 20px 0 0; padding:18px 16px 36px; position:relative; animation:up .25s ease; box-shadow:0 -8px 30px rgba(0,0,0,.25); }
@keyframes up { from { transform:translateY(40px); opacity:.4; } to { transform:none; opacity:1; } }
.psheet .px { position:absolute; top:12px; right:14px; width:32px; height:32px; border-radius:50%; background:#F3E7CC; color:#8A6A3F; display:flex; align-items:center; justify-content:center; font-size:17px; border:0; }
.pname { font-size:17px; color:#8E1414; margin-top:6px; font-weight:700; text-align:center; letter-spacing:.04em; }
.pimg { width:78%; margin:0 auto; display:block; border-radius:14px; background:#fff; box-shadow:0 5px 16px rgba(0,0,0,.1); border:1px solid #F3E7CC; }
.pmeta { margin-top:12px; font-size:13px; color:#8A6A3F; line-height:2; background:#fff; border-radius:14px; padding:10px 16px; border:1px solid #F0E2C4; }
.pmeta b { color:#5A4326; }
.vwrap { background:#000; border-radius:14px; overflow:hidden; margin-top:8px; box-shadow:0 4px 14px rgba(0,0,0,.3); }
.vwrap video { width:100%; max-height:66vh; display:block; }
.vtip { margin-top:12px; font-size:13px; line-height:1.9; background:linear-gradient(135deg,#FFF6E0,#FFEFC8); border:1px solid #EAD9B8; border-radius:14px; padding:10px 16px; color:#7A5A33; }
.vtip a { color:#B71C1C; font-weight:600; }
.pnote { margin-top:14px; font-size:12px; color:#A9884F; line-height:1.85; text-align:center; }
.dtel { display:inline-flex; align-items:center; gap:6px; padding:10px 22px; border-radius:999px; font-size:14px; letter-spacing:.12em; background:linear-gradient(135deg,#B71C1C,#D32F2F); color:#FFF3D2; margin:14px auto 0; text-decoration:none; box-shadow:0 3px 10px rgba(183,28,28,.3); }
.psheet .dsold { margin-top:14px; }
.more { display:block; margin:4px auto 16px; padding:10px 38px; border-radius:999px; border:1px solid #c62828; background:#fff; color:#c62828; font-size:14px; letter-spacing:.18em; }

/* 电脑宽屏适配 2026-11-18 */
@media(min-width:900px){
  .grid{grid-template-columns:repeat(5,1fr);max-width:1280px;margin:0 auto}
}
@media(min-width:600px) and (max-width:899px){
  .grid{grid-template-columns:repeat(3,1fr);max-width:900px;margin:0 auto}
}
