* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root {
  --main:#e1251b; --main2:#ff6034; --bg:#f4f4f4; --card:#fff;
  --tx:#222; --tx2:#888; --line:#eee; --gold:#ff9500; --green:#07c160;
}
html,body { height:100%; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--tx); max-width:680px; margin:0 auto; position:relative; }

/* ===== 京东风头部 ===== */
.jd-hd { position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid #f2f2f2; }
.jd-top { display:flex; align-items:center; gap:9px; padding:10px 12px 8px; }
.jd-top .logo { font-size:19px; font-weight:800; color:#e1251b; letter-spacing:.5px; white-space:nowrap; }
.jd-search { flex:1; display:flex; align-items:center; height:34px; background:#f6f6f6; border:1px solid #eee; border-radius:18px; padding:0 4px 0 10px; }
.jd-search .s-ic { font-size:13px; opacity:.5; }
.jd-search input { flex:1; min-width:0; border:none; background:transparent; outline:none; font-size:13px; padding:0 6px; }
.jd-search button { border:none; background:#e1251b; color:#fff; font-size:12px; border-radius:14px; padding:6px 13px; }
.jd-msg { font-size:19px; opacity:.8; }
.jd-cats { display:grid; grid-template-columns:repeat(4,1fr); gap:9px 2px; padding:8px 6px 12px; }
.jd-cat { text-align:center; font-size:11px; color:#555; cursor:pointer; }
.jd-cat .ic { width:42px; height:42px; line-height:42px; margin:0 auto 4px; border-radius:14px; background:#fff4f2; font-size:20px; }
.jd-cat.on { color:#e1251b; font-weight:700; }
.jd-cat.on .ic { background:#ffe6e2; box-shadow:0 0 0 1px #ffc9c1 inset; }

main { padding:10px 10px 80px; }

/* ads */
.banner { border-radius:12px; padding:20px 16px; color:#fff; font-weight:700; font-size:17px; text-align:center; margin-bottom:10px;
  background:linear-gradient(120deg,#e1251b,#ff7a45); position:relative; overflow:hidden; }
.banner.small { padding:13px 16px; font-size:13px; background:linear-gradient(120deg,#7b5bff,#b06bff); text-align:left; }
.banner img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }

.sec-title { display:flex; justify-content:space-between; align-items:baseline; margin:14px 2px 9px; }
.sec-title h3 { font-size:16px; }
.sec-title a, .sec-title span.more { font-size:12px; color:var(--tx2); }

/* 两列竖版信息流(拼多多式) */
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
/* 广告位：图文卡片，图片 2:1，两列 */
.ad-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:12px; }
.adcard { background:var(--card); border-radius:10px; overflow:hidden; }
.adcard .adcover { aspect-ratio:2/1; background:linear-gradient(135deg,#ffd8a8,#ff9a76); overflow:hidden; display:flex; align-items:center; justify-content:center; position:relative; }
.adcard .adcover img { width:100%; height:100%; object-fit:cover; display:block; }
.adcard .ad-mark { position:absolute; top:6px; right:6px; background:rgba(0,0,0,.5); color:#fff; font-size:10px; line-height:1; padding:3px 6px; border-radius:4px; }
.sec-title .more a { cursor:pointer; }
.adcard .adcover .ph { font-size:24px; color:#fff; }
.adcard .adbody { padding:8px 9px 10px; }
.adcard .adct { font-size:13.5px; font-weight:600; line-height:1.35; height:18px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.card { background:var(--card); border-radius:10px; overflow:hidden; }
.card[data-reward] { cursor:pointer; }
.card[data-reward] a, .card[data-reward] [onclick] { cursor:pointer; }
.card .cover { aspect-ratio:3/4; background:linear-gradient(135deg,#ffd8a8,#ff9a76); display:flex; align-items:center; justify-content:center; font-size:40px; position:relative; overflow:hidden; }
.card .cover img { width:100%; height:100%; object-fit:cover; display:block; }
.card .body { padding:8px 9px 10px; }
.card .t { font-size:13.5px; font-weight:600; line-height:1.35; height:37px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.card .val { font-size:17px; font-weight:800; color:var(--main); margin-top:4px; }
.card .val small { font-size:11px; font-weight:400; color:var(--tx2); }
.card .meta { margin-top:5px; font-size:11px; color:var(--tx2); display:flex; justify-content:space-between; gap:4px; }
.card .meta .pool { color:var(--main); font-weight:700; }
.card .row { margin-top:8px; display:flex; align-items:center; gap:6px; }
.card .row .price { color:var(--main); font-weight:800; font-size:15px; }
.card .row .btn { margin-left:auto; }
.tag { display:inline-block; font-size:10px; padding:1px 7px; border-radius:8px; background:#fff1ee; color:var(--main); margin-right:4px; }
.tag.g { background:#e8f9ef; color:var(--green); }
.tag.b { background:#eef3ff; color:#4a6bff; }
.tag.o { background:#fff7e6; color:#ff9500; }
.tag.gray { background:#f1f1f4; color:#888; }

.coupon-strip { display:flex; gap:8px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
.coupon-strip::-webkit-scrollbar { display:none; }

/* 商家行 */
.shop-row { display:flex; align-items:center; gap:10px; background:#fff; border-radius:10px; padding:12px; margin-bottom:8px; }
.shop-row .ava { width:44px; height:44px; border-radius:10px; background:#fff4f2; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }

.btn { display:inline-block; border:none; border-radius:16px; padding:7px 15px; font-size:12.5px; font-weight:600; cursor:pointer; background:var(--main); color:#fff; }
.btn.go { background:linear-gradient(90deg,#e1251b,#ff6a3d); }
.btn.gray { background:#dfdfe4; color:#777; }
.btn.line { background:#fff; color:var(--main); border:1px solid var(--main); }
.btn.block { display:block; width:100%; padding:12px; font-size:15px; border-radius:22px; text-align:center; }
.btn.sm { padding:5px 11px; font-size:11.5px; border-radius:12px; }

/* tabbar */
.tabbar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:680px; background:#fff;
  display:flex; border-top:1px solid var(--line); z-index:50; padding-bottom:env(safe-area-inset-bottom); }
.tabbar .ti { flex:1; text-align:center; padding:7px 0 7px; font-size:11.5px; line-height:1.2; color:#2b2b2b; cursor:pointer; position:relative; }
.tabbar .ti .ic { height:27px; display:flex; align-items:center; justify-content:center; font-size:24px; line-height:1; }
.tabbar .ti .ic img { width:27px; height:27px; display:block; object-fit:contain; }
.tabbar .ti .ic img.ic-on { display:none; }
.tabbar .ti.on .ic img.ic-off { display:none; }
.tabbar .ti.on .ic img.ic-on { display:block; }
.tabbar .ti.on { color:var(--main); font-weight:700; }
.tabbar .badge { position:absolute; top:2px; right:calc(50% - 20px); background:var(--main); color:#fff; font-size:10px; min-width:16px; height:16px; line-height:16px; border-radius:8px; padding:0 4px; }

/* modal */
.mask { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:100; display:flex; align-items:flex-end; justify-content:center; }
.sheet { background:#fff; width:100%; max-width:680px; border-radius:16px 16px 0 0; max-height:86vh; overflow-y:auto; padding:18px 16px 30px; }
.sheet h3 { font-size:17px; margin-bottom:12px; padding-right:26px; }
.close-x { position:absolute; right:14px; top:14px; font-size:22px; color:#999; cursor:pointer; z-index:2; }
.sheet-wrap { position:relative; }

/* 居中弹窗（自适应手机/平板/PC） */
.mask.center { align-items:center; padding:16px; }
.modal-card { position:relative; width:100%; max-width:400px; max-height:88vh; overflow-y:auto; background:#fff;
  border-radius:16px; padding:24px 20px 22px; box-shadow:0 18px 50px rgba(0,0,0,.28); }
.modal-card h3 { font-size:18px; margin-bottom:4px; }
.modal-sub { font-size:12px; color:var(--tx2); margin-bottom:16px; }
.tabs2 { display:flex; gap:24px; border-bottom:1px solid #f2f2f2; margin-bottom:14px; }
.tabs2 div { font-size:14px; color:var(--tx2); padding:8px 2px 10px; cursor:pointer; position:relative; }
.tabs2 div.on { color:var(--main); font-weight:700; }
.tabs2 div.on:after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--main); border-radius:2px; }

.frm label { display:block; font-size:13px; color:var(--tx2); margin:12px 0 6px; }
.frm label b { color:var(--main); }
.frm input, .frm textarea, .frm select { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 12px; font-size:14px; outline:none; background:#fff; }
.frm input:focus, .frm textarea:focus { border-color:var(--main); }
.frm textarea { height:70px; resize:none; }

/* my page */
.me-hd { background:linear-gradient(135deg,#e1251b,#ff6a3d); margin:-10px -10px 0; padding:22px 16px 18px; color:#fff; border-radius:0 0 18px 18px; }
.me-hd .avatar { width:52px; height:52px; border-radius:50%; background:#fff3; display:flex; align-items:center; justify-content:center; font-size:25px; float:left; margin-right:12px; }
.me-hd .nm { font-size:17px; font-weight:700; }
.me-hd .rl { font-size:11px; background:#fff3; padding:2px 9px; border-radius:10px; margin-left:6px; display:inline-block; }
.bal-card { background:#fff; border-radius:12px; margin:10px 0; padding:14px; display:flex; }
.bal-card .b { flex:1; text-align:center; }
.bal-card .b b { font-size:19px; color:var(--main); }
.bal-card .b span { display:block; font-size:11px; color:var(--tx2); margin-top:3px; }
.menu { background:#fff; border-radius:12px; overflow:hidden; }
.menu .mi { display:flex; align-items:center; padding:14px; border-bottom:1px solid #f7f7f7; font-size:14px; cursor:pointer; }
.menu .mi:last-child { border-bottom:none; }
.menu .mi .ic { margin-right:10px; font-size:18px; }
.menu .mi .arr { margin-left:auto; color:#ccc; }
.list-item { background:#fff; border-radius:10px; padding:12px; margin-bottom:8px; font-size:13px; }
.list-item .li-t { font-weight:600; }
.list-item .li-sub { color:var(--tx2); font-size:12px; margin-top:4px; }
.amt-in { color:var(--green); font-weight:700; }
.empty { text-align:center; color:#bbb; padding:46px 0; font-size:13px; }
.empty .ic { font-size:42px; margin-bottom:8px; }

/* poster */
#posterBox { text-align:center; }
#posterBox canvas { max-width:100%; border-radius:12px; box-shadow:0 4px 16px rgba(0,0,0,.15); }
.short-link { font-size:12px; color:var(--tx2); word-break:break-all; margin:10px 0; background:#f7f7f7; padding:8px; border-radius:8px; }
.role-chip { display:inline-block; font-size:11px; padding:2px 10px; border-radius:10px; margin-left:8px; vertical-align:2px; }
.toast { position:fixed; top:40%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,.78); color:#fff; padding:12px 22px; border-radius:10px; font-size:14px; z-index:999; max-width:80%; text-align:center; }

/* 商品分类 tabs */
.cat-tabs { display:flex; gap:8px; overflow-x:auto; padding:2px 0 10px; scrollbar-width:none; }
.cat-tabs::-webkit-scrollbar { display:none; }
.cat-tabs .ct { flex:0 0 auto; font-size:13px; padding:7px 14px; border-radius:16px; background:#fff; color:#555; cursor:pointer; }
.cat-tabs .ct.on { background:var(--main); color:#fff; font-weight:700; }

/* ---------- 楼盘基本信息 / 区域筛选 ---------- */
.region-bar { display:flex; align-items:center; gap:8px; background:#fff; border-radius:10px; padding:8px 11px; margin-bottom:4px; }
.region-bar .rb-ic { font-size:15px; }
.region-bar select { flex:1; min-width:0; border:1px solid #eee; border-radius:8px; background:#fafafa; padding:7px 9px; font-size:13px; color:#333; outline:none; }
.region-bar .rb-cnt { font-size:11.5px; color:var(--tx2); white-space:nowrap; }
.tag-row { margin:-2px 0 10px; display:flex; flex-wrap:wrap; gap:4px 0; }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 8px; background:#fff; border-radius:10px; padding:12px; margin-bottom:8px; }
.info-grid .ig { display:flex; flex-direction:column; gap:3px; min-width:0; }
.info-grid .ig-k { font-size:11px; color:var(--tx2); }
.info-grid .ig-v { font-size:13px; font-weight:700; color:#333; word-break:break-all; }
/* 楼盘详情：电话行下方的一排操作链接（四种醒目底色） */
.act-row { display:flex; gap:8px; margin:0 0 10px; }
.act-row .act { flex:1; text-align:center; font-size:12.5px; font-weight:700; color:#fff; border:none; border-radius:8px; padding:9px 2px; white-space:nowrap; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.act-row .act:active { filter:brightness(.92); }
.act-row .act.a1 { background:#2f6bff; }
.act-row .act.a2 { background:#ff7a1a; }
.act-row .act.a3 { background:#10b981; }
.act-row .act.a4 { background:#8b5cf6; }

/* ---------- 图文详情（前台展示） ---------- */
.gal-view { margin-top:10px; }
.gal-view img { width:100%; display:block; border-radius:10px; margin-bottom:8px; background:#f2f3f7; }

/* ---------- 详情页：该开发商发布的内容列表 ---------- */
.more-sec { margin-top:2px; }
.more-sec .ms-t { font-size:12.5px; font-weight:700; color:#555; margin:12px 2px 7px; }
.mini-row { display:flex; align-items:center; gap:10px; background:#fff; border-radius:10px; padding:9px 11px; margin-bottom:7px; cursor:pointer; }
.mini-row:active { background:#fafafa; }
.mini-row .mr-img { width:46px; height:46px; border-radius:8px; overflow:hidden; background:#fff4f2; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:21px; }
.mini-row .mr-img img { width:100%; height:100%; object-fit:cover; display:block; }
.mini-row .mr-t { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mini-row .mr-s { font-size:11px; color:var(--tx2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mini-row .mr-a { font-size:12px; color:var(--main); font-weight:700; white-space:nowrap; margin-left:auto; }
