/* VENDI 网页版 —— 和小程序同一套黄黑视觉 */
:root {
  --brand: #FFE500; --brand-soft: #FFF6B3; --ink: #16181D; --ink2: #565C64; --ink3: #838A92;
  --line: #EEF0F2; --bg: #F4F5F7; --card: #FFFFFF; --accent: #111111; --price: #E24C3C; --danger: #FF3B30;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; overscroll-behavior-y: contain; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { outline: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
.view { min-height: 100vh; padding-bottom: calc(66px + var(--sab)); }
.view.notab { padding-bottom: 20px; }

/* ===== 顶栏（黄） ===== */
.hdr { background: var(--brand); padding: calc(10px + var(--sat)) 16px 10px; position: sticky; top: 0; z-index: 20; }
.hdr .row { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.brand small { font-size: 10px; letter-spacing: 0; background: var(--accent); color: var(--brand); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.hdr .ic { font-size: 18px; padding: 4px 6px; }
.search { margin-top: 8px; background: #fff; border-radius: 12px; display: flex; align-items: center; padding: 9px 10px; }
.search .loc { font-size: 13px; font-weight: 600; white-space: nowrap; padding-right: 8px; margin-right: 8px; border-right: 1px solid #dcdfe3; }
.search input { flex: 1; border: 0; font-size: 14px; min-width: 0; background: transparent; }
.search .go { font-weight: 700; font-size: 14px; margin-left: 8px; }
/* 普通页顶栏（白） */
.nav { background: #fff; padding: calc(10px + var(--sat)) 12px 10px; display: flex; align-items: center; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.nav .back { width: 36px; font-size: 22px; line-height: 1; }
.nav .ttl { flex: 1; text-align: center; font-weight: 700; font-size: 16px; }
.nav .rt { width: 36px; text-align: right; font-size: 13px; color: var(--ink2); }

/* ===== 首页 ===== */
.banner { padding: 6px 16px 0; }
.banner .sw { border-radius: 14px; overflow: hidden; background: #F4F5F7; aspect-ratio: 2.02; position: relative; }
.banner .sw img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.banner .sw img.on { opacity: 1; }
.banner .dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.banner .dots i.on { background: #111; }
.banner .ph { width: 100%; aspect-ratio: 2.02; border-radius: 14px; background: linear-gradient(120deg,#FFE500,#FFF06A); display: flex; flex-direction: column; justify-content: center; padding: 18px; }
.banner .ph b { font-size: 17px; } .banner .ph span { font-size: 12px; color: #444; margin-top: 4px; }
.cats { display: flex; justify-content: space-between; padding: 12px 20px 8px; }
.cat { display: flex; flex-direction: column; align-items: center; font-size: 13px; font-weight: 700; }
.cat i { font-style: normal; font-size: 27px; line-height: 1; height: 34px; display: flex; align-items: center; margin-bottom: 4px; }
.notice { margin: 2px 16px 10px; background: linear-gradient(90deg,#FFFBE0,#FFFEF5); border: 1px solid #FFF0A6; border-radius: 12px; display: flex; align-items: center; padding: 0 12px; height: 42px; }
.notice .ni { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.notice .nt { flex: 1; margin-left: 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 8px; padding: 6px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .t { flex: none; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink2); border: 1px solid var(--line); }
.tabs .t.on { background: var(--accent); color: var(--brand); font-weight: 700; border-color: var(--accent); }

/* ===== 瀑布流 ===== */
.grid { display: flex; align-items: flex-start; padding: 0 10px 10px; gap: 8px; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gi { background: #fff; border-radius: 12px; overflow: hidden; }
.gi .th { position: relative; background: #eef0f3; max-height: 200px; overflow: hidden; }
.gi .th img { width: 100%; display: block; max-height: 200px; object-fit: cover; }
.gi .th .none { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg,#F7F8FA,#ECEEF2); }
.gi .th .none i { font-style: normal; font-size: 32px; line-height: 1; opacity: .85; } .gi .th .none span { font-size: 11px; color: #AEB3B9; margin-top: 6px; }
.gi .th .cond { position: absolute; left: 7px; bottom: 7px; background: rgba(20,24,31,.55); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; }
.gi .th .vb { position: absolute; left: 6px; top: 6px; background: #111; color: var(--brand); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.gi .bd { padding: 8px 9px 10px; }
.gi .ti { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gi .pr { margin-top: 4px; color: var(--price); font-weight: 800; font-size: 15px; }
.gi .pr s { color: #AEB3B9; font-size: 11px; font-weight: 400; margin-left: 4px; }
.gi .mt { margin-top: 4px; font-size: 11px; color: var(--ink3); display: flex; justify-content: space-between; }
.empty { text-align: center; color: var(--ink3); font-size: 14px; padding: 60px 30px; line-height: 1.8; }
.more { text-align: center; color: var(--ink3); font-size: 13px; padding: 14px; }

/* ===== 底栏 ===== */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; height: calc(58px + var(--sab)); padding-bottom: var(--sab); background: #fff; display: flex; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,.05); z-index: 30; }
.tabbar .tb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #2E3238; position: relative; }
.tabbar .tb i { font-style: normal; font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .9; margin-bottom: 3px; }
.tabbar .tb.on { color: #111; font-weight: 700; } .tabbar .tb.on i { filter: none; opacity: 1; }
.tabbar .plus { width: 48px; height: 48px; margin-top: -26px; border-radius: 15px; background: linear-gradient(135deg,#FFF06A,#FFE500); font-size: 30px; line-height: 48px; text-align: center; box-shadow: 0 6px 14px rgba(255,229,0,.55); }
.tabbar .rd { position: absolute; top: 2px; right: 22%; min-width: 16px; height: 16px; line-height: 16px; text-align: center; background: var(--danger); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 4px; border: 1.5px solid #fff; }

/* ===== 通用 ===== */
.card { background: #fff; border-radius: 14px; margin: 12px 16px 0; padding: 14px; }
.btn { display: block; width: 100%; border-radius: 12px; padding: 13px; text-align: center; font-weight: 800; font-size: 15px; }
.btn.y { background: var(--brand); color: #111; } .btn.k { background: var(--accent); color: #fff; } .btn.g { background: var(--bg); color: var(--ink); } .btn.o { background: #fff; border: 1.5px solid #E5E7EB; }
.btn.sm { padding: 9px; font-size: 13px; border-radius: 10px; } .btn:disabled { opacity: .5; }
.btn.wx { background: #07C160; color: #fff; }
.ipt { display: block; width: 100%; background: var(--bg); border: 0; border-radius: 10px; padding: 12px; font-size: 15px; margin-top: 8px; }
textarea.ipt { min-height: 110px; resize: vertical; }
.lbl { font-size: 13px; color: var(--ink3); font-weight: 600; margin-top: 14px; }
.lbl .req { color: var(--danger); }
.muted { color: var(--ink3); font-size: 12.5px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; }
.chip.on { background: var(--accent); color: var(--brand); font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.sp { flex: 1; min-width: 0; }
.mrow { background: #fff; display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .mi { width: 28px; font-size: 18px; } .mrow .mt { flex: 1; font-size: 15px; } .mrow .ar { color: #C4C8CD; }
.blk { background: #fff; border-radius: 14px; margin: 12px 16px 0; overflow: hidden; }
.link { color: #111; text-decoration: underline; }
.badge { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #F4F5F7; color: #555; margin-left: 6px; vertical-align: middle; }
.badge.ver { background: #111; color: var(--brand); font-weight: 700; } .badge.pend { background: #FFF6B3; color: #7A5B00; } .badge.off { background: #F0F1F3; color: #999; }
.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(20,24,31,.9); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 100; max-width: 80%; text-align: center; }
.loading { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.55); }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #eee; border-top-color: #111; animation: sp 1s linear infinite; }
.loading .lt { margin-top: 10px; font-size: 13px; color: var(--ink2); }
@keyframes sp { to { transform: rotate(360deg); } }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(20,24,31,.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal .box { background: #fff; border-radius: 16px; width: 100%; max-width: 420px; padding: 20px 18px 16px; max-height: 86vh; overflow: auto; }
.modal h3 { margin: 0 0 8px; font-size: 17px; text-align: center; }
.modal .mc { font-size: 14px; color: var(--ink2); line-height: 1.6; white-space: pre-wrap; text-align: center; }
.modal .mb { display: flex; gap: 10px; margin-top: 16px; } .modal .mb .btn { flex: 1; }
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(20,24,31,.5); display: flex; align-items: flex-end; }
.sheet .sb { background: #fff; width: 100%; max-width: 640px; margin: 0 auto; border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + var(--sab)); max-height: 80vh; overflow: auto; }
.sheet h4 { margin: 4px 0 10px; font-size: 16px; }

/* ===== 详情 ===== */
.dsw { position: relative; background: #000; }
.dsw .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dsw .track::-webkit-scrollbar { display: none; }
.dsw .track img { flex: none; width: 100%; height: 100vw; max-height: 480px; object-fit: contain; scroll-snap-align: start; background: #000; }
.dsw .cnt { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.dbody { background: #fff; padding: 14px 16px; }
.dpr { color: var(--price); font-weight: 800; font-size: 24px; } .dpr s { color: #AEB3B9; font-size: 13px; font-weight: 400; margin-left: 6px; }
.dtt { font-size: 18px; font-weight: 700; margin-top: 4px; line-height: 1.4; }
.dtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dtag { font-size: 12px; background: var(--bg); padding: 4px 9px; border-radius: 8px; color: var(--ink2); }
.dtag.hot { background: #FFF0EE; color: var(--price); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.dlbl { font-size: 13px; font-weight: 700; color: var(--ink3); margin-bottom: 6px; }
.ddesc { font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.dcontact { margin-top: 12px; background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.seller { display: flex; align-items: center; gap: 10px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#ffd8b0,#ffb37a); object-fit: cover; flex: none; }
.seller .sn { font-weight: 700; font-size: 15px; } .seller .ss { font-size: 12px; color: var(--ink3); }
.safety { margin: 12px 16px; background: #FFFBE0; border: 1px solid #FFF0A6; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; color: #5A4300; }
.safety b { display: block; color: #111; margin-bottom: 2px; }
.dbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; background: #fff; padding: 10px 12px calc(10px + var(--sab)); display: flex; align-items: center; gap: 8px; box-shadow: 0 -4px 20px rgba(0,0,0,.06); z-index: 30; }
.dbar .fv { width: 46px; text-align: center; font-size: 18px; line-height: 1.1; } .dbar .fv small { display: block; font-size: 10px; color: var(--ink2); }
.dbar .fv.on { color: var(--price); }
.dbar .btn { flex: 1; padding: 12px; }

/* ===== 消息 / 聊天 ===== */
.conv { background: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.conv .cav { width: 46px; height: 46px; border-radius: 12px; background: #EEF0F3; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #666; font-size: 13px; overflow: hidden; flex: none; }
.conv .cav img { width: 100%; height: 100%; object-fit: cover; }
.conv .cti { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; } .conv .cti span { font-weight: 400; font-size: 11px; color: var(--ink3); }
.conv .cms { font-size: 13px; color: var(--ink2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .cwho { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.conv .un { background: var(--danger); color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 6px; margin-left: 6px; }
.chat { display: flex; flex-direction: column; min-height: 100vh; }
.msgs { flex: 1; padding: 12px 12px 90px; display: flex; flex-direction: column; gap: 10px; }
.m { display: flex; gap: 8px; align-items: flex-end; } .m.me { flex-direction: row-reverse; }
.m .bub { max-width: 72%; background: #fff; border-radius: 14px; padding: 9px 12px; font-size: 15px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.m.me .bub { background: var(--brand); }
.m .bub img { max-width: 220px; max-height: 240px; object-fit: contain; display: block; border-radius: 10px; }
.m .tm { font-size: 10px; color: #AEB3B9; text-align: center; width: 100%; }
.cinput { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; background: #fff; padding: 8px 10px calc(8px + var(--sab)); display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); z-index: 30; }
.cinput .cam { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cinput input { flex: 1; background: var(--bg); border: 0; border-radius: 999px; padding: 10px 14px; font-size: 15px; min-width: 0; }
.cinput .send { background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 700; }

/* ===== 我的 ===== */
.prof { background: #fff; display: flex; align-items: center; gap: 12px; padding: 18px 16px; }
.prof .av { width: 56px; height: 56px; }
.prof .pn { font-size: 18px; font-weight: 700; } .prof .ps { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.prof .pe { font-size: 12px; background: var(--bg); padding: 6px 10px; border-radius: 999px; }
.stats { background: #fff; display: flex; padding: 12px 0; border-top: 1px solid var(--line); }
.stat { flex: 1; text-align: center; } .stat .n { font-size: 18px; font-weight: 800; } .stat .l { font-size: 12px; color: var(--ink3); }
.blk-title { font-size: 13px; color: var(--ink3); font-weight: 700; padding: 14px 16px 6px; }

/* ===== 发布 ===== */
.pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pic { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); position: relative; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pic .st { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; text-align: center; padding: 2px; }
.pic.add { border: 1.5px dashed #C9CDD3; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #AEB3B9; }
.pic.add input { position: absolute; inset: 0; opacity: 0; }
.ctip { margin-top: 12px; background: #FFF6B3; border: 1px solid #F2D95C; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; color: #5A4300; }
.chk { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #111; }

/* ===== 登录 ===== */
.login { padding: calc(60px + var(--sat)) 26px 30px; text-align: center; }
.login h1 { font-size: 34px; letter-spacing: 6px; margin: 0; font-weight: 900; }
.login .sub { color: var(--ink3); font-size: 13px; margin: 6px 0 26px; }
.login .or { color: #AEB3B9; font-size: 12px; margin: 18px 0 6px; }
.login .ipt { text-align: left; background: #fff; border: 1px solid #E5E7EB; }
.login .code { display: flex; gap: 8px; margin-top: 8px; } .login .code .ipt { margin: 0; } .login .code .btn { width: 120px; }
.agree { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 14px; font-size: 12px; color: var(--ink3); }
.agree input { width: 16px; height: 16px; accent-color: #111; margin-top: 1px; }
.install { position: fixed; left: 12px; right: 12px; bottom: calc(70px + var(--sab)); margin: 0 auto; max-width: 600px; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.6; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 40; }
.install b { display: block; font-size: 14px; } .install .x { position: absolute; right: 10px; top: 8px; color: #999; font-size: 18px; }
.doc { background: #fff; margin: 12px 16px; border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.8; }
.doc h2 { font-size: 15px; margin: 14px 0 4px; } .doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 6px; white-space: pre-wrap; }
.lang { display: flex; gap: 8px; margin: 12px 16px 0; }
.wxtip { background: #111; color: var(--brand); font-size: 12.5px; padding: 8px 14px; text-align: center; }
@media (min-width: 640px) { .gi .th { max-height: 320px; } }
