* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC",sans-serif; background:#f5f6f7; color:#1f2329; }
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }
.top { background:linear-gradient(90deg,#a30000,#de0303); color:#fff; padding:0 10%; height:64px; display:flex; align-items:center; }
.logo { font-size:22px; font-weight:700; color:#fff; display:flex; align-items:center; gap:10px; }
.logo img { height:36px; }
.nav { display:flex; gap:24px; margin-left:48px; }
.nav a { color:rgba(255,255,255,.9); font-size:15px; }
.nav a:hover { color:#fff; }
.top .r { margin-left:auto; font-size:13px; display:flex; gap:16px; }
.top .r a { color:#fff; }
.wrap { width:80%; max-width:1600px; margin:0 auto; padding:18px 0 40px; }
.crumb { font-size:13px; color:#8a919f; margin-bottom:14px; }
.crumb a:hover { color:#de0303; }
.panel { background:#fff; border-radius:8px; padding:22px 26px; margin-bottom:16px; }
.panel h3 { font-size:17px; margin-bottom:16px; border-left:4px solid #de0303; padding-left:12px; }
.hd h1 { font-size:26px; }
.hd .meta { font-size:13px; color:#8a919f; margin-top:8px; }
.price { margin:14px 0; }
.price .num { color:#de0303; font-size:30px; font-weight:700; }
.price .num small { font-size:14px; font-weight:400; margin-left:4px; }
.price .tip { font-size:12px; color:#e8730c; margin-top:6px; }
.gallery .big { width:100%; height:460px; border-radius:6px; overflow:hidden; background:#f2f3f5; }
.gallery .big img { width:100%; height:100%; object-fit:cover; }
.gallery .big .empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#c9cdd4; }
.thumbs-wrap { display:flex; align-items:center; gap:8px; margin:12px auto 0; max-width:78%; }
.gal-arrow { width:34px; height:34px; flex-shrink:0; border:1px solid #e5e8eb; background:#fff; border-radius:50%; cursor:pointer; font-size:20px; color:#4e5969; line-height:1; display:flex; align-items:center; justify-content:center; padding:0; }
.gal-arrow:hover { border-color:#de0303; color:#de0303; }
.gallery .thumbs { flex:1; display:grid; grid-template-columns:repeat(4,1fr); gap:8px; overflow:hidden; }
.gallery .thumbs .t { height:70px; border-radius:4px; overflow:hidden; cursor:pointer; border:2px solid transparent; position:relative; }
.gallery .thumbs .t.on { border-color:#de0303; }
.gallery .thumbs img { width:100%; height:100%; object-fit:cover; }
.gallery .thumbs .empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#c9cdd4; font-size:11px; background:#f7f8fa; }
/* 推荐置业顾问 */
.agent-row { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.agent-card { background:#fff5f5; border:1px solid #ffd6d6; border-radius:8px; text-align:center; padding:18px 12px; }
.agent-card .avatar { width:60px; height:60px; border-radius:50%; background:#fff; color:#de0303; font-size:24px; line-height:60px; font-weight:700; margin:0 auto 10px; box-shadow:0 2px 6px rgba(0,0,0,.08); overflow:hidden; }
.agent-card .avatar img { width:100%; height:100%; object-fit:cover; }
.agent-card h4 { font-size:15px; }
.agent-card p { font-size:12px; color:#8a919f; margin-top:4px; line-height:1.6; }
.agent-card .btn { display:block; width:100%; margin-top:10px; padding:8px 0; background:#de0303; color:#fff; border:none; border-radius:5px; font-size:13px; cursor:pointer; text-align:center; }
.agent-card .btn:hover { background:#a30000; }
/* 基本信息 */
.info-grid { display:grid; grid-template-columns:1fr 1fr; border:1px solid #eef0f3; border-radius:8px; overflow:hidden; }
.info-grid .ig { display:flex; justify-content:space-between; padding:12px 18px; border-bottom:1px solid #f3f4f6; font-size:13px; }
.info-grid .ig:nth-child(odd) { background:#fafbfc; }
.info-grid .ig b { color:#8a919f; font-weight:400; }
.info-grid .ig span { color:#1f2329; }
/* 户型 */
.house-type { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.type-card { background:#fff; border:1px solid #eef0f3; border-radius:8px; overflow:hidden; text-align:center; transition:box-shadow .2s; }
.type-card:hover { box-shadow:0 6px 16px rgba(0,0,0,.1); }
.type-card img { width:100%; aspect-ratio:4/3; object-fit:cover; cursor:zoom-in; }
.type-card .t-body { padding:12px; }
.type-card h4 { font-size:15px; }
.type-card p { font-size:12px; color:#8a919f; margin-top:4px; }
.type-card .t-price { color:#de0303; font-weight:700; margin-top:8px; font-size:14px; }
.type-card .t-price i { font-style:normal; font-size:11px; font-weight:400; color:#8a919f; }
/* 地图与周边 */
.map-block { height:300px; background:linear-gradient(160deg,#eaf1f7,#dce7f1); border-radius:8px; position:relative; margin-bottom:14px; overflow:hidden; }
.map-pin { position:absolute; left:50%; top:50%; width:34px; height:34px; background:#de0303; transform:translate(-50%,-50%) rotate(-45deg); box-shadow:0 4px 10px rgba(222,3,3,.35); }
.map-pin::after { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) rotate(45deg); width:10px; height:10px; background:#fff; border-radius:50%; }
.map-label { position:absolute; left:50%; top:68%; transform:translateX(-50%); background:rgba(0,0,0,.72); color:#fff; font-size:13px; padding:6px 18px; border-radius:16px; white-space:nowrap; max-width:92%; overflow:hidden; text-overflow:ellipsis; }
.map-tip { position:absolute; right:12px; top:12px; background:rgba(255,255,255,.92); color:#8a919f; font-size:12px; padding:5px 12px; border-radius:12px; }
.map-link { text-align:center; margin-top:6px; }
.map-link a { color:#de0303; font-size:13px; }
.around-tags { display:flex; flex-wrap:wrap; gap:8px; }
.around-tags span { font-size:12px; background:#fff; border:1px solid #eef0f3; border-radius:14px; padding:6px 14px; color:#8a919f; }
.around-tags span b { color:#de0303; font-weight:500; margin-right:4px; }
/* 点评 */
.review-sum { display:flex; align-items:center; gap:28px; padding:18px 0; border-bottom:1px dashed #eef0f3; margin-bottom:6px; }
.review-score { font-size:44px; color:#de0303; font-weight:700; line-height:1; }
.review-sum .rs-label { font-size:13px; color:#8a919f; }
.review-sum .rs-label b { display:block; font-size:16px; color:#1f2329; margin-top:4px; }
.review-item { display:flex; gap:12px; padding:16px 0; border-bottom:1px dashed #eef0f3; }
.review-item:last-child { border-bottom:none; }
.review-item .r-avatar { width:40px; height:40px; border-radius:50%; background:#fff5f5; color:#de0303; line-height:40px; text-align:center; font-weight:600; flex-shrink:0; }
.review-item .r-main { flex:1; min-width:0; }
.review-item .r-head { display:flex; justify-content:space-between; align-items:center; }
.review-item b { font-size:14px; }
.review-item .stars { color:#f5a623; font-size:12px; margin-left:6px; }
.review-item p { font-size:13px; color:#8a919f; margin-top:5px; line-height:1.8; }
.review-item .r-date { font-size:12px; color:#c9cdd4; flex-shrink:0; }
.review-empty { font-size:13px; color:#8a919f; padding:18px 0; text-align:center; }
.desc { font-size:14px; line-height:2; color:#333; }
.desc img { max-width:100%; }
.desc p { margin-bottom:12px; }
.rel { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.rel .card { border-radius:8px; overflow:hidden; border:1px solid #f0f1f3; }
.rel .pic { height:140px; background:#f2f3f5; }
.rel .pic img { width:100%; height:100%; object-fit:cover; }
.rel .pic .empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#c9cdd4; font-size:11px; }
.rel .bd { padding:12px 14px; }
.rel .t { font-size:14px; font-weight:600; margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rel .t a:hover { color:#de0303; }
.rel .p { color:#de0303; font-size:16px; font-weight:700; }
.rel .p small { font-size:11px; font-weight:400; color:#8a919f; }
.footer { background:#2b2b2b; color:#8a919f; padding:22px 0; font-size:13px; text-align:center; }
.acts { display:flex; gap:10px; margin-top:18px; }
.acts .btn { flex:1; text-align:center; padding:12px 0; border-radius:5px; font-size:15px; cursor:pointer; text-decoration:none; }
.acts .cmp { background:#fff; border:1px solid #de0303; color:#de0303; }
.acts .tel { background:#de0303; color:#fff; }
.acts .call { background:#ffc20e; color:#1f2329; font-weight:600; }
.vr-box { margin-bottom:14px; }
.vr-box iframe { width:100%; height:420px; border-radius:6px; border:1px solid #eef0f3; }
.vr-box .vr-tip { font-size:12px; color:#8a919f; margin-top:6px; }
.chart-tip { font-size:12px; color:#8a919f; margin-top:8px; }
@media (max-width:1024px) { .wrap { width:94%; } .top { padding:0 4%; } }
@media (max-width:900px) {
  .nav { display:none; }
  .agent-row { grid-template-columns:repeat(2,1fr); }
  .house-type { grid-template-columns:1fr; }
  .info-grid { grid-template-columns:1fr; }
  .gallery .big { height:250px; }
  .thumbs-wrap { max-width:100%; }
  .gallery .thumbs .t { height:56px; }
  .rel { grid-template-columns:repeat(2,1fr); }
}
.mask { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:99; align-items:center; justify-content:center; }
.mask.show { display:flex; }
.modal { background:#fff; border-radius:10px; padding:26px 28px; width:380px; max-width:92vw; }
.modal h3 { font-size:17px; margin-bottom:6px; }
.modal .sub { font-size:12px; color:#8a919f; margin-bottom:16px; }
.modal .f { margin-bottom:12px; }
.modal .f input { width:100%; height:40px; border:1px solid #dcdfe6; border-radius:5px; padding:0 12px; font-size:14px; }
.modal .f input:focus { border-color:#de0303; outline:none; }
.modal .ok { width:100%; background:#de0303; color:#fff; border:none; border-radius:5px; padding:12px 0; font-size:15px; cursor:pointer; }
.modal .ok:hover { background:#a30000; }
.modal .close { margin-top:10px; width:100%; background:#f2f3f5; border:none; border-radius:5px; padding:10px 0; font-size:13px; cursor:pointer; color:#4e5969; }
.modal .err { color:#e8321c; font-size:13px; margin-bottom:10px; display:none; }
.modal .done { display:none; text-align:center; padding:14px 0; }
.modal .done b { color:#189c3e; font-size:16px; display:block; margin-bottom:8px; }

/* ===== 详情页两栏 v2 ===== */
.detail-main{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
.detail-right{position:sticky;top:12px;display:flex;flex-direction:column;gap:16px}
.side-card{background:#fff;border-radius:8px;padding:20px 22px;box-shadow:0 1px 6px rgba(0,0,0,.04)}
.side-card h1{font-size:22px}
.main-card .meta{font-size:13px;color:#8a919f;margin-top:8px}
.side-card h3{font-size:16px;margin-bottom:14px;border-left:4px solid #de0303;padding-left:10px}
.side-list{font-size:13px}
.side-list .si{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px dashed #f0f1f3;gap:12px}
.side-list .si b{color:#8a919f;font-weight:400;flex-shrink:0}
.side-list .si span{color:#1f2329;text-align:right}
.agent-line{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px dashed #f0f1f3}
.agent-line:last-child{border-bottom:none}
.agent-line .avatar{width:46px;height:46px;border-radius:50%;background:#fff5f5;color:#de0303;font-weight:700;font-size:18px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.agent-line .avatar img{width:100%;height:100%;object-fit:cover}
.agent-line h4{font-size:14px}
.agent-line p{font-size:12px;color:#8a919f;margin-top:2px}
.agent-line .btn{display:inline-block;margin-top:6px;padding:5px 14px;background:#de0303;color:#fff;border-radius:14px;font-size:12px;cursor:pointer}
.agent-line .btn:hover{background:#a30000}
/* 同区域楼盘：一行 5 个 */
.rel5{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.rel5 .card{border-radius:8px;overflow:hidden;border:1px solid #f0f1f3;background:#fff;transition:box-shadow .2s}
.rel5 .card:hover{box-shadow:0 6px 16px rgba(0,0,0,.1)}
.rel5 .pic{height:130px;background:#f2f3f5}
.rel5 .pic img{width:100%;height:100%;object-fit:cover}
.rel5 .pic .empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#c9cdd4;font-size:11px}
.rel5 .bd{padding:10px 12px}
.rel5 .t{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rel5 .t:hover{color:#de0303}
.rel5 .p{color:#de0303;font-size:16px;font-weight:700;margin-top:4px}
.rel5 .p small{font-size:11px;font-weight:400;color:#8a919f}
@media (max-width:1024px){
  .detail-main{grid-template-columns:1fr}
  .detail-right{position:static}
  .rel5{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .rel5{grid-template-columns:1fr}
}


/* 推荐中介：空态占位 */
.agent-card.empty{background:#fff;border:1px dashed #d9dde3;box-shadow:none}
.agent-card.empty .avatar{background:#f2f3f5;color:#c9cdd4;box-shadow:none}
.agent-card.empty h4{color:#8a919f}
.agent-card.empty .btn{background:#8a919f}
.agent-card.empty .btn:hover{background:#6b7280}


/* 图集多余图片计数提示 */
.gal-tip{font-size:12px;color:#8a919f;margin-top:8px;text-align:right}


/* 户型图放大（lightbox） */
.type-card img{cursor:zoom-in}
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.86);z-index:200;align-items:center;justify-content:center;cursor:zoom-out}
.lightbox.show{display:flex}
.lightbox-box{max-width:94vw;max-height:94vh;text-align:center}
.lightbox-box img{max-width:94vw;max-height:86vh;object-fit:contain;border-radius:6px;background:#000}
.lightbox-cap{color:#fff;font-size:14px;margin-top:10px}

/* VR 占位 */
.vr-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px;background:linear-gradient(160deg,#eaf1f7,#dce7f1);border-radius:8px;color:#8a919f}
.vr-placeholder .ico{width:56px;height:56px;border-radius:12px;background:#fff;color:#de0303;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.vr-placeholder p{font-size:13px}
