/* 鱿鱼软件 - 淘宝风格主题
   让鱿鱼行业更加简单！
   视觉：淘宝橙 #ff5000 + 白色卡片，电商列表式
*/
:root {
  --tb: #ff5000;          /* 淘宝橙主色 */
  --tb-deep: #ff4400;
  --tb-light: #ff7a3d;
  --tb-bg: #f5f5f5;       /* 页面浅灰底 */
  --card: #ffffff;
  --ink: #333333;
  --ink-2: #555555;
  --gray: #999999;
  --line: #e6e6e6;
  --red: #e02020;
  --red-2: #ff0036;
  --green: #00a65a;
  --yellow: #ffb800;
  --radius: 8px;
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { font-size:16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--tb-bg);
  color: var(--ink);
  min-height:100vh;
  line-height:1.5;
}
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
input, select, textarea { font-family:inherit; font-size:1rem; outline:none; }

/* ---------- 顶部橙色搜索栏（淘宝风格） ---------- */
.topbar {
  position: sticky; top:0; z-index:50;
  background: linear-gradient(90deg, var(--tb), var(--tb-deep));
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(255,80,0,.25);
}
.topbar .bar {
  display:flex; align-items:center; gap:8px;
  background:#fff; border-radius:24px; padding:2px 4px 2px 12px;
  height:36px;
}
.topbar .bar .s-icon { color:var(--tb); display:flex; align-items:center; flex:none; }
.topbar .bar .s-icon svg { width:18px; height:18px; }
.topbar .bar input {
  flex:1; border:none; font-size:.9rem; color:var(--ink); min-width:0; background:transparent;
}
.topbar .bar input::placeholder { color:#b8b8b8; }
.topbar .bar .s-btn {
  flex:none; background:var(--tb); color:#fff; font-size:.82rem; font-weight:700;
  border-radius:20px; padding:0 14px; height:30px; display:flex; align-items:center;
}
.topbar .bar .s-btn.active { background:var(--tb-deep); }
.topbar .user-ico { color:#fff; flex:none; display:flex; flex-direction:column; align-items:center; font-size:.6rem; }
.topbar .user-ico svg { width:22px; height:22px; }

/* ---------- 底部导航（淘宝标签） ---------- */
.tabbar {
  position: fixed; bottom:0; left:0; right:0; z-index:50;
  background:#fff; border-top:1px solid var(--line);
  display:flex; padding:4px 0 calc(4px + env(safe-area-inset-bottom));
}
.tabbar .tab {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:4px 0; color:#666; font-size:.68rem;
}
.tabbar .tab svg { width:24px; height:24px; }
.tabbar .tab.active { color:var(--tb); font-weight:700; }
.tabbar .tab .tb-dot { color:var(--red); }

/* ---------- 页面容器 ---------- */
.page { display:none; padding-bottom:70px; }
.page.active { display:block; }
.page-inner { max-width:720px; margin:0 auto; }

/* ---------- 首页横幅轮播 ---------- */
.banner {
  height:93px; background:linear-gradient(135deg,#ff7a3d,#ff5000);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  color:#fff; text-align:center; position:relative;
}
.banner .b-title { font-size:1.1rem; font-weight:900; letter-spacing:2px; }
.banner .b-sub { font-size:.72rem; opacity:.9; margin-top:3px; }
.banner .b-bg { position:absolute; font-size:4rem; opacity:.15; right:10px; bottom:-16px; }
.banner-dots { display:flex; justify-content:center; gap:6px; padding:6px 0 2px; }
.banner-dots span { width:6px; height:6px; border-radius:6px; background:#ccc; }
.banner-dots span.on { background:var(--tb); width:16px; }

/* ---------- 分类宫格（淘宝金刚区） ---------- */
.cat-grid {
  background:#fff; margin:10px 10px 0; border-radius:var(--radius);
  padding:10px 8px; display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
/* 四个分类按钮：去图标、纯文字、彩色 3D 质感（高度减少约 1/3） */
.cat-grid .c {
  display:flex; align-items:center; justify-content:center;
  font-size:.9rem; font-weight:800; color:#fff; text-align:center; letter-spacing:1px;
  border-radius:12px; padding:10px 4px; min-height:56px; border:none;
  text-shadow:0 1px 2px rgba(0,0,0,.28);
  box-shadow:0 4px 0 rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.45);
  transition:transform .08s ease, box-shadow .08s ease;
}
.cat-grid .c:active { transform:translateY(3px); box-shadow:0 1px 0 rgba(0,0,0,.18), 0 2px 5px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.45); }
.cat-grid .c.on { box-shadow:0 2px 0 rgba(0,0,0,.3), 0 3px 8px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.5); transform:translateY(2px); }

/* ---------- 商品管理 tab（提报/已发布） ---------- */
.goods-tabs { display:flex; gap:8px; margin:10px 10px 0; }
.goods-tab {
  flex:1; padding:12px; border-radius:10px; font-size:.95rem; font-weight:700; text-align:center;
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
}
.goods-tab.active { background:var(--tb); color:#fff; border-color:var(--tb); }

/* ---------- 子分类横滑 ---------- */
.sub-tabs { display:flex; gap:8px; overflow-x:auto; padding:10px 12px 2px; scrollbar-width:none; }
.sub-tabs::-webkit-scrollbar { display:none; }
.sub-chip {
  flex:none; padding:7px 16px; border-radius:18px; font-size:.8rem; color:var(--ink-2);
  background:#fff; border:1px solid var(--line);
}
.sub-chip.active { background:var(--tb); color:#fff; border-color:var(--tb); }

/* ---------- 区块标题（淘宝：热卖/猜你喜欢） ---------- */
.section-head { display:flex; align-items:center; gap:8px; padding:16px 14px 8px; }
.section-head .tag { flex:none; }
.section-head .tag svg { width:20px; height:20px; display:block; }
.section-head h2 { font-size:1.05rem; font-weight:800; color:var(--ink); flex:1; }
.section-head .more { color:var(--gray); font-size:.78rem; }

/* ---------- 产品列表（淘宝两列瀑布卡片） ---------- */
.product-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:0 10px; }
.product-card {
  background:#fff; border-radius:var(--radius); overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.product-card .ph {
  height:120px; background:linear-gradient(135deg,#f7f7f7,#eee);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.product-card .ph img { width:100%; height:100%; object-fit:cover; }
.product-card .ph .placeholder { font-size:2.4rem; opacity:.4; }
.product-card .ph .cat-tag {
  position:absolute; top:6px; left:6px; background:rgba(0,0,0,.55); color:#fff;
  font-size:.6rem; padding:2px 7px; border-radius:10px;
}
.product-card .bd { padding:9px 11px 11px; }
.product-card .bd .sub {
  font-size:.88rem; font-weight:600; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
}
.product-card .bd .spec { font-size:.72rem; color:var(--gray); margin:2px 0; }
.product-card .bd .price-row { display:flex; align-items:baseline; gap:3px; margin-top:4px; }
.product-card .bd .price { font-size:1.18rem; font-weight:900; color:var(--red-2); }
.product-card .bd .price .unit { font-size:.7rem; color:var(--gray); font-weight:500; }
.product-card .bd .meta { display:flex; justify-content:space-between; align-items:center; margin-top:6px; font-size:.66rem; color:var(--gray); }
.product-card .bd .meta .who { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:58%; }
.product-card .bd .meta .sold { color:var(--gray); }

/* ---------- 统计条（库存汇总/均价） ---------- */
.stat-strip {
  background:#fff; margin:10px 10px 0; border-radius:var(--radius);
  padding:10px 6px; display:flex; gap:2px; box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.stat-strip .s { flex:1; text-align:center; }
.stat-strip .s .t { font-size:.66rem; color:var(--gray); }
.stat-strip .s .v { font-size:.9rem; font-weight:800; color:var(--ink); margin-top:1px; }
.stat-strip .s .v small { font-size:.6rem; color:var(--gray); font-weight:500; }

/* ---------- 走势图 ---------- */
.chart-card {
  background:#fff; margin:10px 10px 0; border-radius:var(--radius);
  padding:12px 10px 8px; box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.chart-card .ct { display:flex; align-items:center; gap:6px; font-weight:700; font-size:.92rem; margin-bottom:8px; }
.chart-card .ct .flame { color:var(--tb); }
.chart-box { width:100%; height:153px; }
.chart-legend { font-size:.7rem; color:var(--gray); margin-top:6px; }

/* ---------- 广告位 ---------- */
.ad-slot {
  background:#fff; margin:10px 10px 0; border-radius:var(--radius);
  height:76px; overflow:hidden; position:relative; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}
.ad-slot img { width:100%; height:100%; object-fit:cover; }
.ad-slot .ad-empty {
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; background:repeating-linear-gradient(45deg,#fafafa,#fafafa 10px,#f3f3f3 10px,#f3f3f3 20px);
  color:#bbb; font-size:.78rem; border:1px dashed #ddd; border-radius:var(--radius);
}
.ad-slot .ad-empty b { font-size:.85rem; color:#c0c0c0; font-weight:700; }
.ad-slot .ad-tag {
  position:absolute; top:4px; right:4px; background:rgba(0,0,0,.5); color:#fff;
  font-size:.58rem; padding:1px 6px; border-radius:4px;
}

/* ---------- 卡片通用（表单/拍卖/我的） ---------- */
.card {
  background:var(--card); border-radius:var(--radius); box-shadow:0 1px 3px rgba(0,0,0,.05);
  padding:16px; margin:10px 10px 0;
}
.card-title { font-size:1rem; font-weight:800; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.card-title .tb-bar { width:4px; height:16px; border-radius:4px; background:var(--tb); }

/* ---------- 顶部3格（库存/账户） ---------- */
.top-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.top-3-box {
  border-radius:10px; padding:12px 6px; color:#fff; text-align:center;
  display:flex; flex-direction:column; justify-content:center; gap:3px;
}
.top-3-box .t { font-size:.72rem; font-weight:700; }
.top-3-box .v { font-size:1.2rem; font-weight:900; }
.top-3-box .t2 { font-size:.6rem; opacity:.85; }
.top-3-box.c1 { background:linear-gradient(135deg,#ff7a3d,#ff5000); }
.top-3-box.c2 { background:linear-gradient(135deg,#ffb800,#ff8f00); }
.top-3-box.c3 { background:linear-gradient(135deg,#ff5000,#e03a00); }

/* ---------- 表单 ---------- */
.field { margin-bottom:14px; }
.field label { display:block; font-size:.85rem; font-weight:700; margin-bottom:6px; color:var(--ink); }
.field input, .field select, .field textarea {
  width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:8px;
  background:#fff; font-size:.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color:var(--tb); }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:13px; border-radius:8px; font-size:1rem; font-weight:700;
  transition:.15s;
}
.btn:active { transform:scale(.99); }
.btn-tb { background:var(--tb); color:#fff; }
.btn-tb-ghost { background:#fff; color:var(--tb); border:1px solid var(--tb); }
.btn-dark { background:#333; color:#fff; }
.btn-ghost { background:#fff; color:var(--ink-2); border:1px solid var(--line); }
.btn-red { background:var(--red); color:#fff; }
.btn-sm { padding:8px 12px; width:auto; font-size:.8rem; border-radius:6px; }

/* ---------- 上传 ---------- */
.upload-box {
  border:2px dashed #d9d9d9; border-radius:10px; min-height:120px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; color:var(--gray); cursor:pointer; background:#fafafa;
}
.upload-box.active { border-color:var(--tb); }
.upload-box .big { font-size:2rem; }
.thumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.thumbs img { width:74px; height:74px; border-radius:8px; object-fit:cover; border:2px solid var(--line); }

/* ---------- 拍卖卡片 ---------- */
.auction-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.05); margin:0 10px 10px; }
.auction-card .ph { height:130px; background:linear-gradient(135deg,#fff7ee,#ffe9d6); display:flex; align-items:center; justify-content:center; position:relative; }
.auction-card .ph img { width:100%; height:100%; object-fit:cover; }
.auction-card .ph .auction-badge { position:absolute; top:8px; left:8px; padding:2px 9px; border-radius:10px; font-size:.66rem; font-weight:700; }
.auction-card .ph .auction-badge.live { background:#fff1f0; color:#e02020; }
.auction-card .ph .auction-badge.ended { background:#eee; color:#888; }
.auction-card .cnt { padding:13px 14px; }
.auction-card .cnt .a-title { font-weight:800; font-size:1rem; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.auction-card .cnt .a-price { display:flex; justify-content:space-between; align-items:center; }
.auction-card .cnt .a-price .big-price { font-size:1.6rem; font-weight:900; color:var(--red-2); }
.auction-card .cnt .a-price .big-price small { font-size:.7rem; color:var(--gray); font-weight:500; }
.auction-card .cnt .a-price .countdown { font-size:.85rem; font-weight:800; color:var(--tb); }
.auction-card .cnt .a-price .countdown.live-ok { color:var(--green); }
.auction-card .cnt .a-meta { font-size:.74rem; color:var(--gray); margin-top:8px; }
.bid-log { max-height:160px; overflow-y:auto; background:#fafafa; border-radius:8px; padding:10px; margin-top:10px; }
.bid-log .row { display:flex; justify-content:space-between; padding:4px 0; font-size:.78rem; border-bottom:1px dashed var(--line); }

/* ---------- 弹窗 ---------- */
.modal-mask { position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.45); display:none; align-items:flex-end; justify-content:center; }
.modal-mask.show { display:flex; }
.modal { width:100%; max-width:520px; background:#fff; border-radius:14px 14px 0 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom)); animation:slideUp .25s ease; max-height:88vh; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
@keyframes slideUp { from { transform:translateY(40px); opacity:0; } to { transform:none; opacity:1; } }
.modal .m-title { font-size:1.05rem; font-weight:800; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; color:var(--ink); }
.modal .close { font-size:1.5rem; color:var(--gray); }

/* ---------- Toast ---------- */
.toast { position:fixed; top:56px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,.85); color:#fff; padding:9px 20px; border-radius:6px; z-index:200; font-size:.85rem; opacity:0; transition:.3s; pointer-events:none; max-width:90%; }
.toast.show { opacity:1; }
.toast.success { background:var(--green); }
.toast.error { background:var(--red); }

/* ---------- 后台表 ---------- */
.admin-tabs { display:flex; gap:8px; overflow-x:auto; margin-bottom:14px; scrollbar-width:none; }
.admin-tabs::-webkit-scrollbar { display:none; }
.admin-tab { flex:none; padding:8px 16px; border-radius:20px; background:#fff; border:1px solid var(--line); font-size:.85rem; font-weight:600; }
.admin-tab.active { background:var(--tb); color:#fff; border-color:var(--tb); }
.table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; font-size:.78rem; }
.table th, .table td { padding:9px 8px; text-align:left; border-bottom:1px solid var(--line); }
.table th { background:#fafafa; color:var(--ink-2); font-weight:700; }
.badge { padding:2px 8px; border-radius:10px; font-size:.64rem; font-weight:700; }
.badge.vip { background:#fff4e6; color:#ff5000; }
.badge.free { background:#f0f0f0; color:#666; }
.badge.standard { background:#e7f3ff; color:#1677ff; }
.badge.flagship { background:#fff4e6; color:#ff8f00; }
.badge.danger { background:#ffefef; color:#e02020; }
.badge.ok { background:#e8f8ef; color:#00a65a; }
.badge.admin { background:var(--tb); color:#fff; }

/* ---------- 我的页 ---------- */
.me-head {
  background:linear-gradient(135deg,var(--tb),var(--tb-deep)); color:#fff;
  padding:22px 16px; display:flex; align-items:center; gap:14px;
}
.me-head .avatar {
  width:58px; height:58px; border-radius:50%; background:#fff; color:var(--tb);
  display:flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:800;
}
.me-head .m-name { font-size:1.15rem; font-weight:800; }
.me-head .m-sub { font-size:.76rem; opacity:.9; margin-top:2px; }
.me-head .m-level { background:rgba(255,255,255,.25); border-radius:10px; padding:1px 10px; font-size:.68rem; }

/* ---------- 空态 ---------- */
.empty { text-align:center; color:var(--gray); padding:40px 0; font-size:.85rem; }
.empty .emo { font-size:2.6rem; margin-bottom:8px; }

/* 登录/注册弹窗 */
.seg { display:flex; gap:6px; margin-bottom:16px; background:#f5f5f5; border-radius:8px; padding:4px; }
.seg button { flex:1; padding:9px; border-radius:6px; font-weight:700; color:#888; }
.seg button.active { background:var(--tb); color:#fff; }
.auth-tip { text-align:center; font-size:.78rem; color:var(--gray); margin-top:14px; }
.auth-tip a { color:var(--tb); font-weight:600; }

/* 通用小弹窗（后台管理用）—— z-index 必须高于其他弹窗，否则会被小店/装修弹窗盖住点不到 */
#sdModal { z-index: 600; }
.sd-modal { max-height:82vh; overflow-y:auto; }
.sd-body { margin-bottom:16px; }
.sd-body .field { margin-bottom:12px; }
.sd-body .field:last-child { margin-bottom:0; }
.sd-actions { display:flex; gap:10px; }
.sd-actions .btn { flex:1; }

/* ---------- 产品详情 + 商家沟通 ---------- */
.pd { }
.pd-gal { margin-bottom:10px; }
.pd-main { width:100%; max-height:240px; object-fit:cover; border-radius:10px; background:#f5f5f5; display:block; }
.pd-main.pd-ph { height:160px; display:flex; align-items:center; justify-content:center; font-size:3rem; opacity:.5; }
.pd-thumbs { display:flex; gap:6px; margin-top:6px; overflow-x:auto; }
.pd-thumbs img { width:56px; height:56px; object-fit:cover; border-radius:8px; border:1px solid var(--line); flex:none; }
.pd-video { width:100%; margin-top:8px; border-radius:10px; max-height:220px; }
.pd-title { font-size:1.05rem; font-weight:800; color:var(--ink); margin:4px 0 6px; }
.pd-price { font-size:1.5rem; font-weight:900; color:var(--red-2); margin-bottom:10px; }
.pd-price small { font-size:.75rem; color:var(--gray); font-weight:500; }
.pd-row { display:flex; gap:10px; font-size:.85rem; padding:5px 0; border-bottom:1px dashed #f0f0f0; }
.pd-row .k { color:var(--gray); flex:none; width:44px; }
.pd-row .v { color:var(--ink-2); flex:1; word-break:break-all; }
.pd-chat-head { font-weight:800; font-size:.92rem; margin:16px 0 8px; color:var(--ink); }
.pd-chat { max-height:220px; overflow-y:auto; background:#f7f8fa; border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:8px; }
.pd-chat-empty { text-align:center; color:#aaa; font-size:.8rem; padding:16px 0; }
.pd-msg { display:flex; flex-direction:column; max-width:80%; }
.pd-msg.me { align-self:flex-end; align-items:flex-end; }
.pd-msg.them { align-self:flex-start; align-items:flex-start; }
.pd-bubble { padding:8px 12px; border-radius:12px; font-size:.85rem; line-height:1.4; word-break:break-word; }
.pd-msg.me .pd-bubble { background:var(--tb); color:#fff; border-top-right-radius:3px; }
.pd-msg.them .pd-bubble { background:#fff; color:var(--ink); border:1px solid var(--line); border-top-left-radius:3px; }
.pd-mt { font-size:.62rem; color:#b0b0b0; margin-top:3px; }
.pd-chat-input { display:flex; gap:8px; margin-top:8px; }
.pd-chat-input input { flex:1; border:1px solid var(--line); border-radius:20px; padding:9px 14px; font-size:.86rem; }
.pd-chat-input .btn { flex:none; border-radius:20px; }

/* ---------- 拍卖规则公布 ---------- */
.auction-rules { background:#fff8f2; border:1px solid #ffd9bf; margin:4px 10px 10px; border-radius:10px; padding:10px 12px; }
.auction-rules .ar-title { font-weight:800; color:var(--red-2); font-size:.88rem; margin-bottom:6px; }
.auction-rules .ar-line { font-size:.75rem; color:#8a5a3a; line-height:1.65; }

/* ---------- 消息会话列表 ---------- */
.conv { display:flex; align-items:center; gap:12px; background:#fff; border-radius:12px; padding:12px; margin-bottom:10px; box-shadow:0 1px 3px rgba(0,0,0,.05); cursor:pointer; }
.conv-ic { width:44px; height:44px; border-radius:12px; background:linear-gradient(145deg,#ffa451,#ff5000); display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex:none; }
.conv-bd { flex:1; min-width:0; }
.conv-t { font-weight:700; font-size:.92rem; color:var(--ink); }
.conv-last { font-size:.78rem; color:var(--gray); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conv-meta { flex:none; text-align:right; font-size:.66rem; color:#b0b0b0; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.conv-dot { background:var(--tb); color:#fff; border-radius:10px; padding:1px 7px; font-size:.62rem; }

/* ---------- 拍卖多图缩略 + 拍主修改按钮 ---------- */
.a-thumbs { display:flex; gap:6px; padding:6px 8px 0; overflow-x:auto; }
.a-thumbs img { width:52px; height:52px; object-fit:cover; border-radius:8px; border:1px solid var(--line); flex:none; }
.auction-card .cnt .a-title { }
/* 添加图片按钮（label 包 input，手机可靠） */
.addpic { display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:8px 16px; border:1px dashed #ffb380; color:var(--tb); border-radius:10px; font-size:.85rem; font-weight:700; cursor:pointer; }
.addpic:active { background:rgba(255,80,0,.06); }

/* ---------- 消息页会话详情（聊天视图） ---------- */
.chat-view { display:flex; flex-direction:column; min-height:60vh; }
.chat-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 4px 10px; }
.chat-title { font-weight:800; font-size:.95rem; color:var(--ink); text-align:center; flex:1; }
.chat-view .pd-chat { max-height:56vh; }

@media(min-width:640px){
  .modal-mask { align-items:center; }
  .modal { border-radius:14px; }
  .banner { border-radius:0; }
}

/* ---------- 6个底部导航（更密） ---------- */
.tabbar .tab { font-size:.6rem; }
.tabbar .tab svg { width:22px; height:22px; }

/* ---------- 采购页 ---------- */
.purchase-head {
  background:linear-gradient(135deg,#16a34a,#0d9488); color:#fff;
  padding:16px 16px 20px;
}
.purchase-head .ph-t { font-size:1.15rem; font-weight:900; letter-spacing:1px; }
.purchase-head .ph-s { font-size:.72rem; opacity:.9; margin-top:3px; }
.purchase-card {
  background:#fff; border-radius:var(--radius); box-shadow:0 1px 3px rgba(0,0,0,.05);
  padding:13px 14px; margin-bottom:10px;
}
.purchase-card .pc-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.purchase-card .pc-name { font-size:1rem; font-weight:800; color:var(--ink); }
.purchase-card .pc-grid { display:flex; flex-direction:column; gap:4px; }
.purchase-card .pc-row { display:flex; gap:10px; font-size:.83rem; padding:3px 0; }
.purchase-card .pc-row .k { color:var(--gray); flex:none; width:62px; }
.purchase-card .pc-row .v { color:var(--ink-2); flex:1; word-break:break-all; }

/* ---------- 加热（热卖） ---------- */
.hot-tag {
  position:absolute; top:6px; right:6px; background:linear-gradient(135deg,#ff5000,#ff0036);
  color:#fff; font-size:.6rem; font-weight:800; padding:2px 8px; border-radius:10px;
  box-shadow:0 2px 6px rgba(255,0,54,.4);
}
.product-card.is-hot { box-shadow:0 1px 5px rgba(255,80,0,.28); border:1px solid #ffd9c4; }
.btn-hot-on { background:linear-gradient(135deg,#ff5000,#ff0036); color:#fff; }
.heat-dur { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.heat-opt {
  border:1px solid var(--line); border-radius:10px; padding:10px 4px; text-align:center;
  background:#fff; font-size:.9rem; font-weight:700; color:var(--ink-2);
}
.heat-opt span { display:block; font-size:.66rem; color:#999; font-weight:500; margin-top:2px; }
.heat-opt.active { border-color:var(--tb); color:var(--tb); background:#fff7f2; }
.heat-opt.active span { color:var(--tb); }
.bean-pay-tip {  margin-top:14px; background:#fff7ee; border:1px solid #ffd9bf; border-radius:10px;
  padding:12px; color:#8a5a3a;
}
/* 充值弹窗：紧凑方案格（4列）+ 紧凑字段，确保按钮在小屏也能看到 */
#beanRechargeModal .modal { padding:14px 16px calc(14px + env(safe-area-inset-bottom)); }
#beanRechargeModal .m-title { margin-bottom:8px; }
#beanRechargeModal .bean-plans { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
#beanRechargeModal .bean-plans .top-3-box { padding:8px 4px; border-radius:8px; }
#beanRechargeModal .bean-plans .top-3-box .t { font-size:.68rem; }
#beanRechargeModal .bean-plans .top-3-box .v { font-size:.82rem; }
#beanRechargeModal .bean-plans .top-3-box .t2 { font-size:.54rem; }
#beanRechargeModal .field { margin-bottom:10px; }
#beanRechargeModal .field label { font-size:.8rem; margin-bottom:4px; }
#beanRechargeModal .btn { padding:11px; }
#beanRechargeModal .bean-pay-tip { margin-top:10px; padding:8px 10px; font-size:.76rem; line-height:1.55; }

/* ---------- 注册协议勾选 ---------- */
.agree-box { background:#fafafa; border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:14px; }
.agree-title { font-size:.82rem; font-weight:800; color:var(--ink); margin-bottom:8px; }
.agree-row { display:flex; align-items:flex-start; gap:8px; padding:6px 0; font-size:.82rem; color:var(--ink-2); line-height:1.5; cursor:pointer; }
.agree-row input { margin-top:2px; width:16px; height:16px; flex:none; accent-color:var(--tb); }
.agree-row a { color:var(--tb); font-weight:700; }
.agree-all { border-top:1px dashed var(--line); margin-top:6px; padding-top:10px; }

/* ---------- 搜索排名提示条 ---------- */
.rank-tip { margin:8px 10px 0; background:#fff7ee; border:1px solid #ffd9bf; border-radius:8px; padding:8px 12px; font-size:.75rem; color:#8a5a3a; line-height:1.5; }

/* ---------- 特价产品展示区 ---------- */
.deal-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:0 10px; }
/* 特价产品：左右滑动展示 */
.deal-scroll { display:flex; gap:10px; overflow-x:auto; padding:0 10px 6px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.deal-scroll::-webkit-scrollbar { display:none; }
.deal-scroll .deal-card { flex:0 0 46%; max-width:190px; scroll-snap-align:start; }
.deal-scroll .empty { flex:0 0 100%; }
.heat-type { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.heat-type-opt { border:1.5px solid var(--line); background:#fff; border-radius:10px; padding:10px 8px; font-weight:800; font-size:.85rem; color:#333; cursor:pointer; display:flex; flex-direction:column; gap:3px; align-items:center; }
.heat-type-opt span { font-weight:400; font-size:.68rem; color:#999; }
.heat-type-opt.active { border-color:#ff5000; background:#fff5ef; color:#ff5000; }
.heat-type-opt.active span { color:#ff8f5a; }
.deal-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); border:1px solid #ffe0d0; position:relative; cursor:pointer; }
.deal-card .ph { height:104px; background:linear-gradient(135deg,#fff3ec,#ffe6da); display:flex; align-items:center; justify-content:center; position:relative; }
.deal-card .ph img { width:100%; height:100%; object-fit:cover; }
.deal-card .ph .placeholder { font-size:2.2rem; opacity:.4; }
.deal-card .off-badge { position:absolute; top:0; left:0; background:linear-gradient(135deg,#ff0036,#ff5000); color:#fff; font-size:.66rem; font-weight:900; padding:3px 9px; border-radius:0 0 10px 0; }
.deal-card .bd { padding:8px 10px 10px; }
.deal-card .nm { font-size:.85rem; font-weight:700; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.deal-card .pr { display:flex; align-items:baseline; gap:5px; margin-top:3px; }
.deal-card .pr .now { font-size:1.1rem; font-weight:900; color:var(--red-2); }
.deal-card .pr .was { font-size:.7rem; color:#bbb; text-decoration:line-through; }
.deal-card .shop { font-size:.66rem; color:var(--gray); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- 小店 ---------- */
.shop-hero { border-radius:12px; padding:16px; color:#fff; position:relative; overflow:hidden; margin-bottom:12px; }
.shop-hero .sh-name { font-size:1.15rem; font-weight:900; }
.shop-hero .sh-owner { font-size:.72rem; opacity:.9; margin-top:3px; }
.shop-hero .sh-notice { font-size:.78rem; margin-top:8px; background:rgba(255,255,255,.18); border-radius:8px; padding:7px 10px; line-height:1.5; }
.shop-hero .sh-views { position:absolute; top:12px; right:12px; font-size:.68rem; background:rgba(0,0,0,.25); border-radius:10px; padding:2px 9px; }
.shop-prod { display:flex; gap:10px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px; margin-bottom:10px; align-items:center; }
.shop-prod .ph { width:60px; height:60px; border-radius:8px; overflow:hidden; background:#f5f5f5; flex:none; display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.shop-prod .ph img { width:100%; height:100%; object-fit:cover; }
.shop-prod .bd { flex:1; min-width:0; }
.shop-prod .nm { font-weight:700; font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shop-prod .pr { color:var(--red-2); font-weight:800; font-size:1rem; }
/* 店铺尊贵等级徽章 */
.shop-lv-badge { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:10px; font-size:.66rem; font-weight:800; vertical-align:middle; background:rgba(255,255,255,.25); color:#fff; border:1px solid rgba(255,255,255,.5); }
.shop-lv-badge.vip { background:linear-gradient(135deg,#ffb347,#ff7b00); border-color:#ffd9a0; }
.shop-lv-badge.flagship { background:linear-gradient(135deg,#ffd700,#ff8f00); border-color:#fff2b0; color:#5a3a00; }
.shop-lv-badge.standard { background:linear-gradient(135deg,#5aa9ff,#1677ff); border-color:#bcdcff; }
.shop-lv-badge.free { background:rgba(255,255,255,.25); }

/* 未读消息角标（底部导航） */
.tab .tab-badge { position:absolute; top:2px; right:50%; margin-right:-18px; background:#ff0036; color:#fff; font-size:.6rem; line-height:1; padding:2px 5px; border-radius:9px; font-weight:800; min-width:14px; text-align:center; }
.tab { position:relative; }

/* ---------- 装修风格选择 ---------- */
.theme-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.theme-item { border:2px solid var(--line); border-radius:10px; overflow:hidden; cursor:pointer; }
.theme-item.on { border-color:var(--tb); }
.theme-item .tp { height:56px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:.85rem; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.theme-item .ti { padding:7px 9px; }
.theme-item .tn { font-size:.82rem; font-weight:800; color:var(--ink); }
.theme-item .td { font-size:.66rem; color:var(--gray); margin-top:2px; }
.theme-item .tpr { font-size:.76rem; font-weight:900; color:var(--tb); margin-top:3px; }
.theme-item .tpr.free { color:var(--green); }
.theme-item .tpr.owned { color:var(--gray); }
