﻿/* 邻帮商品集市 */
.market-main{background:#f6f7f5;min-height:70vh}
.market-shell{max-width:1180px;margin:0 auto;padding:12px 14px 42px}
.market-topbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:8px;background:rgba(246,247,245,.96);backdrop-filter:blur(8px);padding:8px 0 10px}
.market-loc{position:relative;flex:none;display:flex;align-items:center;height:38px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid #e4ebe6}
.market-loc select{appearance:none;border:0;outline:0;background:transparent;font-size:12px;font-weight:800;color:#173c33;padding:0 14px 0 0;cursor:pointer}
.market-loc:after{content:"";position:absolute;right:9px;top:15px;width:6px;height:6px;border-right:1.5px solid #173c33;border-bottom:1.5px solid #173c33;transform:rotate(45deg);pointer-events:none}
.market-search{flex:1;min-width:0;display:flex;align-items:center;gap:7px;height:38px;padding:0 11px;border-radius:999px;background:#fff;border:1px solid #e4ebe6}
.market-search svg{width:16px;height:16px;color:#8ba096;flex:none}
.market-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:12px;color:#173c33}
.market-search input::placeholder{color:#a5b5ad}
.market-cam{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:#173c33;color:#fff;display:grid;place-items:center;cursor:pointer}
.market-cam svg{width:18px;height:18px}
.market-cats{display:flex;gap:20px;overflow-x:auto;padding:6px 2px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.market-cats::-webkit-scrollbar{display:none}
.market-cats button{flex:none;border:0;background:transparent;padding:3px 0;font-size:14px;font-weight:700;color:#5b6f66;cursor:pointer;position:relative;white-space:nowrap}
.market-cats button.active{color:#102f28}
.market-cats button.active:after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-3px;width:22px;height:3px;border-radius:3px;background:#ffd23f}
.market-summary{display:flex;justify-content:space-between;align-items:center;padding:3px 1px 9px;color:#9aaaa1;font-size:10px}
.market-summary button{border:0;background:transparent;color:#0a8f72;font-size:10px;font-weight:700;cursor:pointer}
.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.market-card{min-width:0;cursor:pointer}
.market-thumb{position:relative;border-radius:13px;overflow:hidden;background:#eaf0ec;aspect-ratio:1/1.08}
.market-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.market-thumb .ph{width:100%;height:100%;display:grid;place-items:center;color:#a1b3aa;background:linear-gradient(135deg,#edf4ef,#dfeae4);font-size:30px}
.market-badge{position:absolute;left:7px;top:7px;display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;background:#ff5a4f;color:#fff;font-size:9px;font-weight:800;letter-spacing:.5px}
.market-loc-tag{position:absolute;left:7px;bottom:7px;display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;background:rgba(8,18,14,.58);color:#fff;font-size:8.5px;backdrop-filter:blur(3px);max-width:calc(100% - 14px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.market-loc-tag svg{width:9px;height:9px;flex:none}
.market-info{padding:8px 1px 0}
.market-title{margin:0;font-size:13px;line-height:1.45;font-weight:600;color:#213a33;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:37px}
.market-price{display:flex;align-items:baseline;gap:6px;margin-top:4px;color:#ff3b30;font-weight:900}
.market-price b{font-size:17px;line-height:1}
.market-price small{font-size:9px;color:#9aa9a1;text-decoration:line-through;font-weight:400}
.market-wants{font-size:9px;color:#9aa9a1;margin-top:4px}
.market-seller{display:flex;align-items:center;gap:5px;margin-top:7px;color:#6f837a;font-size:9px;min-width:0}
.market-avatar{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#dff2ea;color:#087f68;font-size:8px;font-weight:800;flex:none}
.market-seller span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.market-empty{padding:50px 0;text-align:center;color:#9aa9a1;font-size:12px}
.market-loading{padding:40px 0;text-align:center;color:#9aa9a1;font-size:12px}
.market-modal{position:fixed;inset:0;z-index:300;background:rgba(5,18,14,.55);display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(2px)}
.market-modal[hidden]{display:none}
.market-sheet{position:relative;width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom))}
.market-close{position:absolute;right:12px;top:12px;z-index:3;width:30px;height:30px;border:0;border-radius:50%;background:rgba(8,20,16,.6);color:#fff;font-size:18px;cursor:pointer}
.market-gallery{display:flex;gap:6px;overflow-x:auto;border-radius:12px;scrollbar-width:none}
.market-gallery::-webkit-scrollbar{display:none}
.market-gallery img{width:100%;flex:0 0 100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;background:#edf3ef}
.market-detail-price{display:flex;align-items:baseline;gap:8px;margin:12px 0 4px;color:#ff3b30;font-size:28px;font-weight:900}
.market-detail-price small{font-size:11px;color:#9aa9a1;text-decoration:line-through;font-weight:400}
.market-detail-title{font-size:17px;line-height:1.5;margin:4px 0 8px;color:#173c33}
.market-detail-meta{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
.market-detail-meta span{padding:4px 8px;border-radius:5px;background:#f3f7f4;color:#6d8479;font-size:10px}
.market-detail-desc{font-size:12px;line-height:1.85;color:#526a60;white-space:pre-wrap;margin:12px 0}
.market-detail-seller{display:flex;align-items:center;gap:8px;padding:10px;border-radius:10px;background:#f7faf8;margin-top:10px}
.market-detail-seller .market-avatar{width:32px;height:32px;font-size:12px}
.market-detail-seller b{display:block;font-size:12px;color:#173c33}
.market-detail-seller small{display:block;font-size:9px;color:#93a49b;margin-top:2px}
.market-detail-actions{display:flex;gap:8px;margin-top:14px}
.market-detail-actions .btn{flex:1;height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;text-decoration:none;border:0;cursor:pointer}
.market-want{background:#fff1d4;color:#8a5a00}
.market-want.done{background:#e8f8f2;color:#078b6f}
.market-contact{background:linear-gradient(135deg,#16c4b9,#078b87);color:#fff}
.market-cam input{display:none}
@media(min-width:700px){
 .market-shell{padding:18px 24px 54px}
 .market-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px}
 .market-sheet{border-radius:18px;align-self:center}
 .market-modal{align-items:center}
 .market-title{font-size:14px}
}
@media(max-width:360px){.market-grid{gap:13px 9px}.market-cats{gap:16px}.market-cats button{font-size:13px}}

.market-backdrop{position:absolute;inset:0}
.market-open{overflow:hidden}
.market-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(12px);z-index:500;max-width:calc(100vw - 40px);padding:9px 14px;border-radius:999px;background:rgba(12,32,26,.9);color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:.22s}
.market-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.market-page .mobile-dock{display:none!important}
@media(max-width:700px){.market-page .site-head{display:none}.market-page .site-foot{margin-top:0}}

.market-page .mobile-bar{display:none!important}
.market-page .device-mobile-switch{display:none!important}

.market-publish{flex:none;display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 13px;border-radius:999px;background:#173c33;color:#fff;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
.market-publish:hover{background:#0a9f99;color:#fff}
@media(max-width:360px){.market-publish{padding:0 10px;font-size:11px}}

.market-badge{background:#0a8f72}
.market-safety{margin:12px 0;padding:9px 10px;border-radius:8px;background:#fff8e8;border:1px solid #f2dfb4;color:#886300;font-size:10px;line-height:1.9}
.market-safety b{color:#6f4e00}
.publish-notice{margin:0 0 12px;padding:10px 12px;border-radius:9px;background:#fff8e8;border:1px solid #f2dfb4;color:#886300;font-size:10.5px;line-height:1.85}
.publish-notice b{color:#6f4e00}

.market-contact small{font-size:8px;font-weight:600;opacity:.85;margin-left:3px}

.market-home{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e4ebe6;color:#173c33;text-decoration:none;font-size:17px}
.market-home:hover{color:#0a9f97}

.market-order{background:linear-gradient(135deg,#ffb020,#ff8a00)!important;color:#3b2500!important}
.market-detail-actions .btn{min-width:0;font-size:10.5px;padding:0 5px}
