/* CasaCV · 「大西洋」主题
   深海青做品牌与导航，暖沙白做底色，日落陶土橙做主要操作；绿色 = 已核验 / 成功，红色 = 提醒。 */
:root {
  --sea: #0E4D64; --sea-2: #136B85; --sea-3: #E3F0F3; --sun: #E0743B; --sun-d: #C25A22; --sun-l: #FCEBDF;
  --ok: #1F8A5B; --ok-l: #E2F4EA; --red: #C8323C; --red-l: #FBE5E6; --warn: #B7791F; --warn-l: #FDF3DC;
  --bg: #F6F4EF; --card: #FFFFFF; --line: #E2DED5; --line-2: #EEEBE4; --text: #1D2B36; --muted: #5E6B76; --faint: #8F99A2;
  --r-s: 6px; --r: 10px; --r-l: 16px;
  --shadow: 0 1px 2px rgba(29,43,54,.05), 0 6px 20px rgba(29,43,54,.06);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --vvh: 100dvh; --hdr: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1A20; --card: #13252D; --line: #23404B; --line-2: #1B323C; --text: #E4EEF1; --muted: #9DB2BA; --faint: #6F8790;
    --sea-3: #163843; --sun-l: #3C2416; --ok-l: #0F3326; --red-l: #3B1519; --warn-l: #382A0F; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root:lang(zh-CN) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--sea-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 19px; font-weight: 700; } h3 { font-size: 16px; font-weight: 700; } h4 { font-size: 14px; margin-top: 14px; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .center { text-align: center; } .block { display: block; }
.err { color: var(--red); } .ok-t { color: var(--ok); } .nowrap { flex-wrap: nowrap !important; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.grid2, .grid3, .grid4 { display: grid; gap: 12px; } .grid2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 900px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 20px 40px; } .wrap.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- 顶部导航 */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); padding-top: var(--sat); }
.hdr-in { max-width: 1240px; margin: 0 auto; height: var(--hdr); display: flex; align-items: center; gap: 18px; padding: 0 20px; }
body.wide .hdr-in { max-width: none; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--sea); font-size: 21px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; } .brand img { width: 32px; height: 32px; object-fit: contain; } .brand img.wide { width: auto; max-width: 180px; } .brand.light img.wide { background: #fff; padding: 3px 6px; border-radius: 6px; } .brand span { color: var(--sun); } .brand.light { color: #fff; }
.hdr-r { flex-shrink: 0; } .lang-btn { white-space: nowrap; }
.brand { min-width: 0; } .brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* 后台改成较长的网站名称时不换行 */
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; }
.mainnav a:hover { background: var(--sea-3); text-decoration: none; } .mainnav a.on { color: var(--sea); background: var(--sea-3); }
.hdr-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-r > span { display: flex; align-items: center; gap: 8px; }
.lang-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 700; color: var(--sea); cursor: pointer; }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
@media (max-width: 900px) { .mainnav { display: none; } .hide-m { display: none !important; } .hdr-in { gap: 10px; padding: 0 14px; } }
@media (min-width: 901px) { .show-m { display: none !important; } }

.pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 12px 40px rgba(0,0,0,.14); min-width: 240px; padding: 6px; max-height: 70vh; overflow: auto; }
.pop.wide { width: 360px; max-width: 92vw; }
.pop a, .pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.pop a:hover, .pop button:hover { background: var(--sea-3); text-decoration: none; }
.pop a div { display: flex; flex-direction: column; } .pop small { display: block; color: var(--muted); font-size: 12px; }
.pop a.unread { background: var(--sun-l); } .pop-h { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.pop-h div { display: flex; flex-direction: column; } .pop-t { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }

/* ---------------------------------------------------------------- 手机底部标签栏 */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--sab); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 11px; color: var(--muted); position: relative; }
  .tabbar a.on { color: var(--sea); font-weight: 700; } .tabbar a:hover { text-decoration: none; }
  .tabbar .badge { position: absolute; top: 2px; left: 56%; }
  #main { padding-bottom: calc(64px + var(--sab)); }
  body.chat-full .tabbar, body.kb-open .tabbar { display: none; }
}

/* ---------------------------------------------------------------- 页脚 */
.ftr { background: #0B3646; color: #BFD3DA; margin-top: auto; }
.ftr-in { max-width: 1240px; margin: 0 auto; padding: 36px 20px 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.ftr h4 { color: #fff; margin: 0 0 10px; } .ftr a { display: block; color: #BFD3DA; padding: 2px 0; } .ftr .muted { color: #8FB0BB; margin-top: 10px; max-width: 360px; }
.ftr-b { text-align: center; padding: 14px; font-size: 12px; border-top: 1px solid #144A5D; color: #8FB0BB; }
body.nofooter .ftr { display: none; }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-in > div:first-child { grid-column: span 2; } }

/* ---------------------------------------------------------------- 组件 */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .card > header h2 { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--sea-2); }
.btn.primary { background: var(--sun); border-color: var(--sun); color: #fff; } .btn.primary:hover { background: var(--sun-d); }
.btn.dark { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; } .btn.lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn.block { width: 100%; margin: 6px 0; } .btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.on { color: var(--red); border-color: var(--red); } .btn.wa { color: #128C4A; border-color: #9fd8b8; }
.btn.wa.solid { background: #25D366; border-color: #25D366; color: #fff; } .btn.wa.solid:hover { background: #1DB954; text-decoration: none; }
.btn.icon-only { width: 44px; padding: 0; flex: none; }
/* 房源页手机底部联系栏（在线咨询 / WhatsApp / 电话），在底部标签栏上面 */
.ls-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h, 55px) + var(--sab)); z-index: 44; display: flex; gap: 8px; padding: 8px 12px;
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.ls-cta .btn { flex: 1; height: 44px; margin: 0; } .ls-cta .btn.icon-only { flex: none; }
@media (max-width: 900px) { #main:has(.ls-cta) { padding-bottom: calc(126px + var(--sab)); } body.kb-open .ls-cta { display: none; } }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn.sm { width: 32px; height: 32px; } .icon-btn:hover { text-decoration: none; border-color: var(--sea-2); }
.icon-btn .dot { position: absolute; top: -5px; right: -5px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.badge.gray { background: var(--line); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--line-2); color: var(--muted); white-space: nowrap; font-weight: 600; }
.tag.xs { font-size: 11px; padding: 1px 6px; }
.tag.ok, .tag.st-published, .tag.st-approved, .tag.st-confirmed, .tag.st-done, .tag.ct-signed, .tag.po-paid { background: var(--ok-l); color: var(--ok); }
.tag.red, .tag.st-rejected, .tag.st-cancelled, .tag.st-no_show, .tag.ct-void, .tag.po-failed { background: var(--red-l); color: var(--red); }
.tag.sun, .tag.st-pending, .tag.st-requested, .tag.st-reserved, .tag.ct-final, .tag.po-pending { background: var(--sun-l); color: var(--sun-d); }
.tag.sea, .tag.st-sold, .tag.st-rented { background: var(--sea-3); color: var(--sea); }
.tag.st-paused, .tag.st-draft, .tag.ct-draft { background: var(--warn-l); color: var(--warn); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sea-2); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; position: relative; overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; } .avatar.lg { width: 56px; height: 56px; font-size: 19px; } .avatar.xl { width: 84px; height: 84px; font-size: 26px; }
.avatar .on, .ok-dot { width: 11px; height: 11px; border-radius: 50%; background: #22C373; border: 2px solid var(--card); display: inline-block; }
.avatar .on { position: absolute; right: 0; bottom: 0; }
.banner { background: var(--sea-3); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.banner.red { background: var(--red-l); color: var(--red); } .banner.ok { background: var(--ok-l); color: var(--ok); } .banner.warn { background: var(--warn-l); color: var(--warn); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--sun); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { display: grid; place-items: center; min-height: 50vh; }
.empty { text-align: center; padding: 32px; }
.skeleton { height: 300px; border-radius: var(--r-l); background: linear-gradient(90deg, var(--line-2), var(--card), var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

label.f { display: block; margin-bottom: 10px; } label.f > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input, select, textarea { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); font: inherit; }
textarea { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea-2) 18%, transparent); }
input:disabled, textarea:disabled { background: var(--line-2); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--sea); }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin: 4px 14px 4px 0; }
.checks { display: flex; flex-wrap: wrap; margin-bottom: 10px; } .checks.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); } .checks.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.checks.cols > div { display: flex; flex-direction: column; } @media (max-width: 700px) { .checks.cols4 { grid-template-columns: repeat(2, 1fr); } }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 12px; flex-wrap: wrap; }
.seg button, .seg label { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on, .seg label:has(input:checked) { background: var(--card); color: var(--sea); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg.light { background: rgba(255,255,255,.18); } .seg.light button { color: #fff; } .seg.light button.on { color: var(--sea); }
.seg.big { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .seg.big label { flex-direction: column; align-items: flex-start; padding: 12px; }
.seg.big small { font-weight: 400; font-size: 12px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--sun); }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--sea-3); }
.table-wrap { overflow-x: auto; }
@media (max-width: 700px) { .t.cards thead { display: none; } .t.cards tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .t.cards td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 3px 0; text-align: right; } .t.cards td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; } }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin-bottom: 10px; }
.kv > div { display: flex; flex-direction: column; } .kv span { font-size: 12px; color: var(--muted); }

.toasts { position: fixed; z-index: 130; right: 16px; bottom: calc(80px + var(--sab)); display: flex; flex-direction: column; gap: 8px; max-width: min(380px, 92vw); }
.toast { background: var(--sea); color: #fff; padding: 11px 15px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; animation: tin .2s; }
.toast.err { background: var(--red); } .toast small { display: block; opacity: .85; } @keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(8,22,28,.55); display: grid; place-items: center; padding: 16px; animation: fin .15s; }
@keyframes fin { from { opacity: 0; } }
.modal { background: var(--card); border-radius: var(--r-l); width: min(540px, 100%); max-height: calc(var(--vvh) - 32px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal.wide { width: min(860px, 100%); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); } .modal header h2 { margin: 0; font-size: 17px; }
.modal .body { padding: 16px 18px; overflow-y: auto; } .modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.menu-list .btn { justify-content: flex-start; }
.radio-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

/* ---------------------------------------------------------------- 首页 */
.hero { background: linear-gradient(160deg, rgba(14,77,100,.92), rgba(19,107,133,.82)), radial-gradient(circle at 80% 20%, #E0743B55, transparent 50%), #0E4D64;
  color: #fff; padding: 56px 20px 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40px -10%; height: 120px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-in { max-width: 1040px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; margin-bottom: 10px; } .hero p { font-size: 18px; opacity: .9; margin-bottom: 24px; }
.hsearch { background: var(--card); color: var(--text); border-radius: 18px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hsearch .seg { background: var(--sea-3); } .hsearch .seg button { color: var(--sea); } .hsearch .seg button.on { background: var(--sea); color: #fff; }
.hs-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.hs-f { display: flex; flex-direction: column; min-width: 140px; } .hs-f.grow { flex: 1.3; } .hs-f.q { flex: 1; }
.hs-f span { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.hero-stats { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; opacity: .92; } .hero-stats b { font-size: 22px; }
.sec { margin: 30px 0; } .sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } .sec-h h2 { margin: 0; font-size: 22px; }
.islands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.island { position: relative; height: 104px; border-radius: var(--r-l); padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); overflow: hidden; }
.island::before { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.12); }
.island b { font-size: 17px; } .island span { font-size: 13px; opacity: .85; } .island:hover { text-decoration: none; transform: translateY(-2px); transition: .15s; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .why-i { background: var(--card); border-radius: var(--r-l); padding: 20px; border: 1px solid var(--line-2); }
.why-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sun-l); color: var(--sun-d); margin-bottom: 10px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
.cta { background: linear-gradient(120deg, var(--sea), var(--sea-2)); color: #fff; border-radius: 20px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta p { opacity: .9; margin: 0; } .cta-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 房源卡片 */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--text); transition: transform .15s, box-shadow .15s; }
.lcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(29,43,54,.12); }
.lcard .ph { position: relative; aspect-ratio: 4/3; background: var(--line-2); }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--faint); } .noimg.sm { width: 64px; height: 50px; background: var(--line-2); border-radius: 8px; flex: none; }
.lcard .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; } .lcard .badges .tag { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.lcard .pc { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; display: flex; align-items: center; gap: 3px; }
.lcard .pc:empty { display: none; }
.lcard .fav { position: absolute; right: 10px; top: 10px; border: 0; background: rgba(255,255,255,.9); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.lcard .fav.on { color: var(--red); }
.lcard .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.lcard .price { font-size: 19px; font-weight: 800; color: var(--sea); } .lcard .price small { font-size: 12px; color: var(--faint); font-weight: 500; }
.lcard .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.9em; }
.lcard .loc { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lcard .facts { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 4px; } .lcard .facts span { display: inline-flex; gap: 4px; align-items: center; }
.lcard .agent { display: flex; align-items: center; gap: 6px; font-size: 12px; border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 6px; overflow: hidden; white-space: nowrap; }

/* ---------------------------------------------------------------- 找房 */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 10px; margin-bottom: 16px; box-shadow: var(--shadow); }
.filters .seg { margin: 0; } .filters select { width: auto; min-width: 140px; } .filters .q { flex: 1; min-width: 160px; }
.price-rg { display: flex; align-items: center; gap: 4px; } .price-rg input { width: 120px; }
.filters.float { position: absolute; z-index: 500; left: 12px; right: 12px; top: 12px; margin: 0; }
.res-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .res-h h1 { margin: 0; font-size: 22px; }
.res-h select { width: auto; }
@media (max-width: 760px) { .filters select, .price-rg input { min-width: 0; flex: 1; width: auto; } .price-rg { flex: 1 1 100%; } .filters.float { position: static; border-radius: 0; } }
.mapview { position: relative; display: grid; grid-template-columns: 1fr 380px; height: calc(var(--vvh) - var(--hdr) - var(--sat)); }
.map-full { height: 100%; } .map-list { overflow-y: auto; background: var(--card); border-left: 1px solid var(--line); }
.ml-h { display: flex; justify-content: space-between; align-items: center; padding: 76px 14px 10px; position: sticky; top: 0; background: var(--card); border-bottom: 1px solid var(--line-2); }
.mrow { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--text); }
.mrow:hover { background: var(--sea-3); text-decoration: none; } .mrow img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.mrow div { display: flex; flex-direction: column; min-width: 0; } .mrow b { color: var(--sea); } .mrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mrow small { color: var(--muted); }
@media (max-width: 900px) { .mapview { grid-template-columns: 1fr; grid-template-rows: auto 1fr 40%; height: calc(var(--vvh) - var(--hdr) - var(--sat) - 64px); } .ml-h { padding-top: 10px; } .map-list { border-left: 0; border-top: 1px solid var(--line); } }
.mk { background: var(--sea); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; }
.mk.rent { background: var(--sun); } .mk.v::before { content: "✓ "; } .mk.on { background: var(--red); z-index: 1000; }
.cv-pop .leaflet-popup-content { margin: 0; width: 260px !important; } .mpop { display: flex; flex-direction: column; color: var(--text); }
.mpop img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px 12px 0 0; } .mpop div { padding: 8px 12px 10px; display: flex; flex-direction: column; } .mpop b { color: var(--sea); font-size: 15px; }
.mpop small { color: #5E6B76; } .mpop .mag { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
body.fullmap #main { padding-bottom: 0; }

/* ---------------------------------------------------------------- 房源详情 */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; } .crumbs a { color: var(--muted); }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: min(480px, 56vw); border-radius: var(--r-l); overflow: hidden; margin-bottom: 18px; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; position: relative; background: var(--line-2); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; } .gallery button:hover img { transform: scale(1.03); }
.g-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.g-side .more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.gallery.one { grid-template-columns: 1fr; } .gallery.one .g-side { display: none; }
.g-empty { grid-column: span 2; display: grid; place-items: center; background: var(--line-2); color: var(--faint); }
.g-tabs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.g-tabs button, .g-tabs a { background: rgba(255,255,255,.95); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; height: 62vw; border-radius: 0; margin: 0 -20px 16px; } .g-side { display: none; } }
.ls-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .ls-grid { grid-template-columns: 1fr; } }
.ls-head h1 { font-size: 28px; margin: 8px 0 4px; } .ls-head .loc { color: var(--muted); display: flex; gap: 5px; align-items: center; }
.ls-head .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ls-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0; } .ls-price b { font-size: 30px; color: var(--sea); font-weight: 800; }
.ls-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.facts > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px; } .facts span { color: var(--sea-2); } .facts b { font-size: 17px; } .facts small { color: var(--muted); font-size: 12px; }
.desc p { margin-bottom: 10px; white-space: pre-wrap; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; } .feat-list span { display: flex; gap: 6px; align-items: center; } .feat-list svg { color: var(--ok); }
.fplans { display: flex; gap: 10px; overflow-x: auto; } .fplans button { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: #fff; cursor: zoom-in; width: 220px; flex: none; }
.fplans button img { width: 100%; height: 160px; object-fit: contain; }
.ls-map { height: 320px; border-radius: var(--r); overflow: hidden; z-index: 0; }
.down { color: var(--ok); font-weight: 700; } .up { color: var(--red); font-weight: 700; }
.calc-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
.calc-out > div, .quote > div { background: var(--bg); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; } .calc-out small, .quote small { color: var(--muted); font-size: 12px; }
.calc-out b, .quote b { font-size: 17px; } .calc-out .hl, .quote .hl { background: var(--sun-l); } .calc-out .hl b, .quote .hl b { color: var(--sun-d); font-size: 21px; }
@media (max-width: 700px) { .calc-out { grid-template-columns: 1fr 1fr; } }
.ls-side { position: sticky; top: calc(var(--hdr) + 16px); }
.agent-card .ag-top { display: flex; gap: 12px; align-items: center; color: var(--text); margin-bottom: 10px; } .agent-card .ag-top:hover { text-decoration: none; }
.agent-card .ag-top div { display: flex; flex-direction: column; } .agent-card .ag-top small { color: var(--muted); }
.ag-agency { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--text); margin-bottom: 10px; }
.ag-agency img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; }
.tip { background: var(--sun-l); border-color: transparent; }
.video-box { position: relative; padding-top: 56.25%; } .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.93); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 34px; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; }
.lb-x { top: 16px; right: 16px; font-size: 22px !important; } .lb-p { left: 16px; top: 50%; } .lb-n { right: 16px; top: 50%; }
.lb-c { position: absolute; bottom: 20px; color: #fff; font-size: 14px; }

/* ---------------------------------------------------------------- 机构 / 经纪人 */
.grid-agencies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card.agency { display: flex; gap: 14px; align-items: center; color: var(--text); margin: 0; } .card.agency:hover { text-decoration: none; border-color: var(--sea-2); }
.card.agency div:last-child { display: flex; flex-direction: column; } .card.agency small { font-size: 12px; }
.ag-logo { width: 64px; height: 64px; border-radius: 14px; background: var(--sea-3); display: grid; place-items: center; color: var(--sea); flex: none; overflow: hidden; }
.ag-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; } .ag-logo.lg { width: 96px; height: 96px; }
.pf-cover { height: 200px; background: linear-gradient(120deg, var(--sea), var(--sea-2)) center/cover; } .pf-cover.tall { height: 280px; }
.profile .wrap { margin-top: -60px; position: relative; }
.pf-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .pf-head h1 { margin: 0 0 4px; }
.pf-stats { display: flex; gap: 20px; } .pf-stats div { text-align: center; display: flex; flex-direction: column; } .pf-stats b { font-size: 22px; color: var(--sea); } .pf-stats small { color: var(--muted); }
.agent-head { margin-top: 10px; } .col-actions { display: flex; flex-direction: column; gap: 6px; }
.grid-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.agent-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--text); margin: 0; } .agent-mini:hover { text-decoration: none; border-color: var(--sea-2); }

/* ---------------------------------------------------------------- 登录 */
.auth-wrap { display: grid; grid-template-columns: 1fr 440px; max-width: 980px; margin: 30px auto; gap: 30px; padding: 0 20px; align-items: center; width: 100%; }
.auth-side { color: var(--sea); } .auth-side h2 { font-size: 30px; } .auth-side ul { list-style: none; padding: 0; } .auth-side li { display: flex; gap: 8px; margin: 12px 0; font-size: 16px; color: var(--text); }
.auth-side li svg { color: var(--ok); }
.auth-card h1 { font-size: 24px; } .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------------------------------------------------------------- 聊天 */
.chat { display: grid; grid-template-columns: 340px 1fr; height: calc(var(--vvh) - var(--hdr) - var(--sat)); background: var(--card); }
.c-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } .c-list input { margin: 0 12px 8px; width: auto; }
.c-lh { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 8px; } .c-lh h2 { margin: 0; }
.c-items { overflow-y: auto; flex: 1; }
.c-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--text); } .c-item:hover { background: var(--bg); text-decoration: none; }
.c-item.on { background: var(--sea-3); } .c-item small { font-size: 12px; }
.c-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.c-empty { margin: auto; text-align: center; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.c-h { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); } .c-h div.grow { display: flex; flex-direction: column; }
.c-ls { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 4px 4px; color: var(--text); }
.c-ls img { width: 44px; height: 34px; object-fit: cover; border-radius: 6px; } .c-ls span { display: flex; flex-direction: column; font-size: 12px; } .c-ls b { color: var(--sea); }
.c-msgs { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.m { display: flex; flex-direction: column; align-items: flex-start; max-width: 76%; } .m.me { align-self: flex-end; align-items: flex-end; }
.m-b { background: var(--card); border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 4px 14px 14px 14px; white-space: pre-wrap; word-break: break-word; }
.m.me .m-b { background: var(--sea); color: #fff; border-color: var(--sea); border-radius: 14px 4px 14px 14px; } .m.me .m-b a { color: #fff; }
.m.image .m-b, .m.listing .m-b { padding: 4px; background: var(--card) !important; border-color: var(--line-2) !important; }
.m-t { font-size: 11px; color: var(--faint); margin-top: 2px; } .m-t .read { color: var(--sea-2); }
.m-day { align-self: center; font-size: 12px; color: var(--faint); margin: 8px 0; }
.m-sys { align-self: center; font-size: 13px; background: var(--sun-l); color: var(--sun-d); padding: 6px 12px; border-radius: 999px; display: flex; gap: 6px; align-items: center; text-align: center; }
.m-card { display: flex; gap: 10px; color: var(--text); width: 280px; } .m-card:hover { text-decoration: none; }
.m-card img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; } .m-card div { display: flex; flex-direction: column; min-width: 0; padding: 2px 4px 2px 0; }
.m-card b { color: var(--sea); } .m-card span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-card small { color: var(--muted); font-size: 12px; }
.m-file { display: inline-flex; gap: 6px; align-items: center; }
.c-typing { font-size: 12px; color: var(--muted); padding: 2px 16px; background: var(--bg); }
.c-quick { display: flex; gap: 6px; padding: 6px 12px 0; overflow-x: auto; } .c-quick .chip { white-space: nowrap; }
.c-input { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px calc(8px + var(--sab)); border-top: 1px solid var(--line); background: var(--card); flex: none; }
.c-input textarea { min-height: 40px; height: 40px; max-height: 120px; resize: none; padding: 8px 12px; border-radius: 20px; line-height: 1.45; overflow-y: auto; }
.c-input .icon-btn { flex: none; } .c-send { flex: none; width: 44px; height: 40px; padding: 0; border-radius: 20px; justify-content: center; }
.c-h, .c-quick { flex: none; } .c-h .grow { min-width: 0; } #pstatus.typing { color: var(--ok); }
.c-msgs { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.c-main { position: relative; }
.c-drop { position: absolute; inset: 8px; z-index: 5; border: 2px dashed var(--sea-2); border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--sea); pointer-events: none; }
.m-img { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.m-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-prog { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.m-prog::after { content: ""; width: 38px; height: 38px; border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.25) 0); -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); }
.m-retry { width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.pick-list { display: flex; flex-direction: column; gap: 6px; } .pick-list button { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.pick-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; } .pick-list small { display: block; color: var(--muted); }
@media (max-width: 900px) {
  .chat { grid-template-columns: 1fr; height: calc(var(--vvh) - var(--hdr) - var(--sat) - 64px); }
  .chat .c-main { display: none; } .chat.open .c-list { display: none; } .chat.open .c-main { display: flex; }
  /* 打开会话：聊天占满「可见区域」（键盘上方），固定定位，标题栏和输入框都不会被推走；页面本身不滚动 */
  body.chat-full { overflow: hidden; overscroll-behavior: none; }
  html:has(body.chat-full) { overflow: hidden; overscroll-behavior: none; }
  body.chat-full .chat { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh); z-index: 46; padding-top: var(--sat); }
  body.chat-full #main { padding-bottom: 0; }
  body.chat-full.kb-open .c-input { padding-bottom: 8px; }   /* 键盘弹出时不再留底部安全区 */
  .c-input textarea { font-size: 16px; }   /* 小于 16px 时 iOS 点输入框会自动放大页面，看起来像整个界面在移动 */
  .c-quick { padding-top: 4px; } .c-quick .chip { font-size: 12px; padding: 4px 10px; }
  .m { max-width: 82%; }
}
@media (max-width: 420px) { .hide-xs { display: none !important; } }

/* ---------------------------------------------------------------- 图片浏览（幻灯片） */
body.iv-open { overflow: hidden; }
.iv { position: fixed; inset: 0; z-index: 120; touch-action: none; user-select: none; -webkit-user-select: none; opacity: 0; transition: opacity .18s; }
.iv.on { opacity: 1; } .iv.closing { opacity: 0; }
.iv-bg { position: absolute; inset: 0; background: #000; }
.iv-track { position: absolute; inset: 0; display: flex; will-change: transform; }
/* 图片完整显示在「顶栏和缩略图条之间」的区域里（flex + 明确高度，max-height 百分比才生效） */
.iv-slide { flex: 0 0 100vw; width: 100vw; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  box-sizing: border-box; padding: calc(62px + var(--sat)) 0 calc(10px + var(--sab)); }
.iv.has-strip .iv-slide { padding-bottom: calc(92px + var(--sab)); }
@media (pointer: fine) { .iv-slide { padding-left: 76px; padding-right: 76px; } }
.iv-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; cursor: zoom-in; }
.iv.zoomed .iv-img { cursor: grab; } .iv.zoomed .iv-img:active { cursor: grabbing; }
.iv-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 10px 12px calc(10px + var(--sab)); overflow-x: auto; overflow-y: hidden;
  background: linear-gradient(transparent, rgba(0,0,0,.65) 30%); touch-action: pan-x; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; justify-content: safe center; }
.iv-th { flex: 0 0 auto; width: 92px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.iv-th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.iv-th:hover { opacity: .85; } .iv-th.on { opacity: 1; border-color: #fff; }
@media (max-width: 600px) { .iv-th { width: 64px; height: 48px; } .iv.has-strip .iv-slide { padding-bottom: calc(74px + var(--sab)); } }
.iv-slide.thumb .iv-img { filter: blur(1px); }
.iv-spin { position: absolute; display: none; border-color: rgba(255,255,255,.3); border-top-color: #fff; } .iv-slide.loading .iv-spin { display: block; }
.iv-err { position: absolute; color: #ddd; }
.iv-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--sat)) 12px 10px; color: #fff;
  background: linear-gradient(rgba(0,0,0,.45), transparent); }
.iv-count { flex: 1; font-size: 15px; font-weight: 600; padding-left: 6px; }
.iv-btn { background: rgba(255,255,255,.14); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.iv-btn:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.iv-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; width: 50px; height: 50px; } .iv-prev { left: 14px; } .iv-next { right: 14px; }
@media (pointer: coarse) { .iv-nav { display: none; } }

/* ---------------------------------------------------------------- 发图预览 / 编辑（参考微信） */
.ie { position: fixed; inset: 0; z-index: 125; background: #111; color: #fff; display: flex; flex-direction: column; height: var(--vvh, 100dvh); top: var(--vvt, 0px); touch-action: none; user-select: none; -webkit-user-select: none; }
.ie-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + var(--sat)) 12px 8px; flex: none; }
.ie-top > span { font-weight: 600; }
.ie-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; position: relative; }
.ir .ie-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ie-box { position: relative; } .ie-box canvas { width: 100%; height: 100%; display: block; }
.ie.drawing .ie-box { cursor: crosshair; }
.ie-layer { position: absolute; inset: 0; }
.ie-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px calc(10px + var(--sab)); flex: none; background: rgba(0,0,0,.35); }
.ie-tools { justify-content: space-around; }
.ie-tb { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px; cursor: pointer; font: inherit; border-radius: 10px; }
.ie-tb small { font-size: 11px; opacity: .85; } .ie-tb.on { color: #3cc05a; } .ie-tb.txt { flex-direction: row; gap: 6px; font-size: 15px; }
.ie-sub { display: none; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; flex: none; flex-wrap: wrap; } .ie-sub.on { display: flex; }
.ie-c { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.8); padding: 0; cursor: pointer; }
.ie-c.on { transform: scale(1.3); border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.ie-w { display: flex; gap: 6px; margin-left: 8px; } .ie-w button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); display: grid; place-items: center; cursor: pointer; }
.ie-w button.on { background: rgba(255,255,255,.35); } .ie-w i { background: #fff; border-radius: 50%; display: block; }
.ie-text { position: absolute; font-weight: 700; white-space: pre; padding: 8px; border-radius: 8px; line-height: 1.25; cursor: move; text-shadow: 0 1px 4px rgba(0,0,0,.35); outline: 1px dashed rgba(255,255,255,.6); touch-action: none; }
.ie-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); border: 1px solid #fff; cursor: move; touch-action: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.33% 33.33%; background-position: -1px -1px; }
.ie-crop i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.ie-crop i[data-h="nw"] { left: -4px; top: -4px; border-right: 0; border-bottom: 0; cursor: nwse-resize; } .ie-crop i[data-h="ne"] { right: -4px; top: -4px; border-left: 0; border-bottom: 0; cursor: nesw-resize; }
.ie-crop i[data-h="sw"] { left: -4px; bottom: -4px; border-right: 0; border-top: 0; cursor: nesw-resize; } .ie-crop i[data-h="se"] { right: -4px; bottom: -4px; border-left: 0; border-top: 0; cursor: nwse-resize; }
.ie-tdlg { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.82); display: flex; flex-direction: column; }
.ie-tdlg textarea { margin: 20px 16px; width: auto; min-height: 120px; font-size: 22px; font-weight: 700; border: 0; border-radius: 10px; padding: 12px; box-shadow: none; resize: none; }
.ie-bgt { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #fff; background: none; color: #fff; font-weight: 800; cursor: pointer; } .ie-bgt.on { background: #fff; color: #111; }
.ir-strip { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; flex: none; }
.ir-strip button { flex: none; width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.ir-strip button.on { border-color: #3cc05a; opacity: 1; } .ir-strip img { width: 100%; height: 100%; object-fit: cover; }
.ir-orig { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; } .ir-orig input { width: 18px; height: 18px; accent-color: #3cc05a; }

/* ---------------------------------------------------------------- 我的 */
.acc { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--hdr) + 16px); }
.acc-nav a { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 600; } .acc-nav a:hover { background: var(--card); text-decoration: none; }
.acc-nav a.on { background: var(--card); color: var(--sea); box-shadow: var(--shadow); }
@media (max-width: 800px) { .acc { grid-template-columns: 1fr; } .acc-nav { flex-direction: row; overflow-x: auto; position: static; } .acc-nav a { white-space: nowrap; } }
.v-list { display: flex; flex-direction: column; } .v-item { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .v-item img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; }
.v-item .time { font-size: 20px; font-weight: 800; color: var(--sea); min-width: 64px; }
.fav-wrap { position: relative; display: flex; flex-direction: column; } .price-drop { position: absolute; top: 10px; right: 10px; }
.n-row { display: flex; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line-2); color: var(--text); } .n-row.unread { background: var(--sun-l); border-radius: 8px; }
.day-h { margin: 18px 0 8px; color: var(--muted); font-size: 14px; text-transform: capitalize; }

/* ---------------------------------------------------------------- 入驻 / 价格 */
.join-hero { background: linear-gradient(140deg, var(--sea), #0A3443); color: #fff; padding: 56px 0; } .join-hero h1 { font-size: clamp(28px, 4vw, 40px); } .join-hero p { font-size: 18px; opacity: .9; max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } .step { background: var(--card); border-radius: var(--r-l); padding: 20px; border: 1px solid var(--line-2); position: relative; }
.step svg { color: var(--sun); } .step-n { position: absolute; right: 16px; top: 12px; font-size: 32px; font-weight: 800; color: var(--line); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 14px 0; }
.plan { background: var(--card); border: 2px solid var(--line-2); border-radius: 18px; padding: 22px; position: relative; display: block; cursor: default; }
.plans.compact .plan { cursor: pointer; padding: 16px; } .plan.on { border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-l); }
.plan.hot { border-color: var(--sea-2); } .ribbon { position: absolute; top: -12px; left: 20px; background: var(--sun); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pp { margin: 8px 0 2px; } .pp b { font-size: 32px; color: var(--sea); font-weight: 800; } .pp small { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; } .ticks li { padding: 4px 0 4px 22px; position: relative; } .ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.sec.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 800px) { .sec.two { grid-template-columns: 1fr; } }
.apply { max-width: 920px; } .invite { padding: 36px; } .inv-logo { width: 80px; height: 80px; object-fit: contain; }
.prose p { font-size: 15.5px; line-height: 1.7; }

/* ---------------------------------------------------------------- 工作台 */
.ws { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--hdr)); }
.ws-side { background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); overflow-y: auto; }
.ws-ag { display: flex; gap: 10px; align-items: center; padding: 6px 8px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.ws-ag img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; } .ws-ag div { display: flex; flex-direction: column; min-width: 0; } .ws-ag small { color: var(--muted); font-size: 12px; }
.ws-side nav { display: flex; flex-direction: column; gap: 2px; }
.ws-side nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 600; } .ws-side nav a:hover { background: var(--bg); text-decoration: none; }
.ws-side nav a.on { background: var(--sea-3); color: var(--sea); }
.ws-plan { margin-top: auto; background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ws-main { padding: 20px 24px 40px; min-width: 0; max-width: 1280px; }
.ws-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; } .ws-h h1 { margin: 0; font-size: 24px; }
@media (max-width: 900px) {
  .ws { grid-template-columns: 1fr; } .ws-side { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .ws-side nav { flex-direction: row; overflow-x: auto; } .ws-side nav a { white-space: nowrap; padding: 7px 10px; } .ws-plan { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ws-ag { display: none; } .ws-main { padding: 16px; }
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--r-l); padding: 16px; border: 1px solid var(--line-2); display: flex; flex-direction: column; } .kpi b { font-size: 28px; color: var(--sea); } .kpi small { color: var(--muted); font-weight: 600; }
@media (max-width: 800px) { .kpis { grid-template-columns: 1fr 1fr; } }
.list .li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--text); } .list .li:hover { text-decoration: none; }
.list .right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.date-box { width: 46px; text-align: center; background: var(--sun-l); color: var(--sun-d); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; } .date-box b { font-size: 18px; line-height: 1.1; }
.funnel a { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; padding: 6px 0; color: var(--text); } .funnel a:hover { text-decoration: none; }
.funnel i { height: 12px; background: linear-gradient(90deg, var(--sea-2), var(--sea)); border-radius: 6px; display: block; } .funnel b { text-align: right; }
.qs { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--red-l); color: var(--red); }
.qs.qs2 { background: var(--warn-l); color: var(--warn); } .qs.qs3, .qs.qs4 { background: var(--ok-l); color: var(--ok); }
.st-list .st-row { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; padding: 12px; flex-wrap: wrap; }
.st-img { width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--line-2); display: grid; place-items: center; color: var(--faint); flex: none; }
.st-img img { width: 100%; height: 100%; object-fit: cover; }
.st-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; } .st-meta b { color: var(--sea); font-size: 15px; }
.st-meta span { display: inline-flex; gap: 3px; align-items: center; }
.st-act { display: flex; gap: 6px; flex-wrap: wrap; }
.studio .st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .studio .st-grid { grid-template-columns: 1fr; } .st-side { order: -1; } }
.st-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; position: sticky; top: calc(var(--hdr) + 4px); z-index: 5; background: var(--bg); padding: 6px 0; }
.st-steps a { display: inline-flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.st-steps a b { background: var(--sea); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }
.st-form section { scroll-margin-top: calc(var(--hdr) + 60px); }
.st-side .sticky { position: sticky; top: calc(var(--hdr) + 16px); }
.qring { --p: 0; width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; text-align: center;
  background: radial-gradient(closest-side, var(--card) 78%, transparent 80% 100%), conic-gradient(var(--sun) calc(var(--p) * 1%), var(--line-2) 0); }
.qring b { font-size: 34px; color: var(--sea); line-height: 1; display: block; } .qring small { color: var(--muted); font-size: 12px; }
.qlist { list-style: none; padding: 0; margin: 4px 0 10px; font-size: 13px; } .qlist li { display: flex; gap: 6px; align-items: flex-start; padding: 3px 0; } .qlist.err { color: var(--red); }
.preview .lcard { pointer-events: none; box-shadow: none; }
.pick-map { height: 340px; border-radius: var(--r); overflow: hidden; margin: 10px 0; z-index: 0; }
.drop { border: 2px dashed var(--line); border-radius: var(--r-l); padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); background: var(--bg); }
.drop.over { border-color: var(--sun); background: var(--sun-l); }
.up-prog .up-row { display: flex; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; } .up-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-row i { width: 140px; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; } .up-row b { display: block; height: 100%; background: var(--sun); transition: width .2s; } .up-row.err { color: var(--red); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; } .ph-grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--line-2); cursor: grab; border: 2px solid transparent; }
.ph.drag { opacity: .4; } .ph img, .ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .cover { position: absolute; left: 6px; top: 6px; } .ph .geo { position: absolute; right: 6px; top: 6px; } .ph.other > .tag { position: absolute; left: 6px; top: 6px; }
.ph .pdf { display: grid; place-items: center; height: 100%; color: var(--muted); }
.ph-act { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ph-act button { border: 0; background: rgba(255,255,255,.9); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-weight: 700; }
.ph-act select { height: 26px; padding: 0 4px; font-size: 11px; flex: 1; min-width: 0; border-radius: 6px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: var(--line-2); border-radius: var(--r-l); padding: 10px; min-height: 300px; } .kcol.over { outline: 2px dashed var(--sun); }
.kcol-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kcard { background: var(--card); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.kcard small { font-size: 12px; }
.tpl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; } .tpl { display: flex; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.tpl:has(input:checked) { border-color: var(--sun); background: var(--sun-l); } .tpl div { display: flex; flex-direction: column; } .tpl small { font-size: 12px; }
@media (max-width: 600px) { .tpl-list { grid-template-columns: 1fr; } }
.ct-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.ct-form { max-height: calc(100vh - var(--hdr) - 120px); overflow-y: auto; position: sticky; top: calc(var(--hdr) + 12px); }
.ct-form fieldset { border: 0; border-top: 1px solid var(--line-2); margin: 0 0 8px; padding: 10px 0 0; } .ct-form legend { font-weight: 800; color: var(--sea); padding-right: 8px; }
@media (max-width: 1000px) { .ct-grid { grid-template-columns: 1fr; } .ct-form { position: static; max-height: none; } }
.doc { display: grid; gap: 16px; } .doc.two { grid-template-columns: 1fr 1fr; } @media (max-width: 1200px) { .doc.two { grid-template-columns: 1fr; } }
.paper { background: #fff; color: #111; padding: 36px 40px; border: 1px solid var(--line); border-radius: 6px; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 14.5px; line-height: 1.65; }
.paper h1 { font-size: 18px; text-align: center; margin-bottom: 14px; font-family: inherit; } .paper h2 { font-size: 15px; margin-top: 18px; font-family: inherit; }
.paper blockquote { margin: 8px 0; padding: 6px 12px; background: #f6f3ec; border-left: 3px solid #e0743b; font-size: 13px; } .paper .blank { color: #c25a22; }
.paper.zh { font-family: "Songti SC", "SimSun", serif; }
.bank { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 10px; font-family: inherit; }
.usage > div { display: grid; grid-template-columns: 110px 1fr 70px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--sea-2); } .bar i.full { background: var(--red); }
.quote { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.big { font-size: 24px; font-weight: 800; color: var(--sea); margin: 4px 0; }
.up-img { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-right: 16px; } .up-img img { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.up-img.cover img { width: 220px; object-fit: cover; }

@media print { .hdr, .ftr, .tabbar, .ws-side, .noprint, .ws-h, .ct-form, .banner { display: none !important; } .ct-grid { display: block; } .card { box-shadow: none; border: 0; } }

/* ---------------------------------------------------------------- VR 看房（360° 全景 / 第三方 3D） */
.vr-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(14,77,100,.88); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px; }
.gallery .g-vr { position: absolute; z-index: 3; left: 16px; top: 16px; display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(14,77,100,.9); color: #fff; cursor: pointer; font: inherit; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.gallery .g-vr b { font-size: 15px; letter-spacing: .5px; } .gallery .g-vr span { font-size: 13px; opacity: .9; }
.gallery .g-vr:hover { background: var(--sun); }
.vr { position: fixed; inset: 0; z-index: 120; background: #000; color: #fff; display: flex; flex-direction: column; height: var(--vvh, 100dvh); top: var(--vvt, 0px); }
.vr-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--sat)) 12px 14px; background: linear-gradient(rgba(0,0,0,.6), transparent); pointer-events: none; }
.vr-top > * { pointer-events: auto; }
.vr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vr-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .vr-room { font-size: 13px; opacity: .85; }
.vr-btn { background: rgba(255,255,255,.16); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.vr-btn.on { background: var(--sun); }
.vr-view, .vr-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: #000; }
.vr-err { text-align: center; margin-top: 40vh; color: #ccc; }
.vr-strip { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--sab)); overflow-x: auto; background: rgba(0,0,0,.85); flex: none; }
.vr-strip button { flex: none; width: 96px; border: 2px solid transparent; border-radius: 10px; padding: 0; background: #222; color: #fff; cursor: pointer; overflow: hidden; font: inherit; text-align: left; }
.vr-strip button.on { border-color: var(--sun); } .vr-strip img { width: 100%; height: 56px; object-fit: cover; display: block; }
.vr-strip span { display: block; font-size: 12px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-strip .vr-ext b { display: grid; place-items: center; height: 56px; font-size: 20px; background: var(--sea); }
.vr-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #111; flex-wrap: wrap; flex: none; } .vr-hint { flex: 1; font-size: 13px; color: var(--sun); }
.vr-adding .vr-view { cursor: crosshair; }
.vr-pick { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.7); display: grid; place-items: center; }
.vr-pick > div { background: #1b1b1b; border-radius: 14px; padding: 16px; width: min(420px, 92vw); display: flex; flex-direction: column; gap: 8px; max-height: 80vh; overflow: auto; }
.vr-pick [data-id] { display: flex; gap: 10px; align-items: center; background: #2a2a2a; border: 0; color: #fff; border-radius: 10px; padding: 6px; cursor: pointer; font: inherit; }
.vr-pick img { width: 80px; height: 48px; object-fit: cover; border-radius: 6px; }
/* 「门」热点：白色圆点 + 房间名 */
.pnlm-hotspot-base.vr-door { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 0 0 6px rgba(255,255,255,.3), 0 4px 14px rgba(0,0,0,.4); cursor: pointer; }
.pnlm-hotspot-base.vr-door::after { content: "›"; display: grid; place-items: center; height: 100%; color: var(--sea); font-size: 24px; font-weight: 800; transform: rotate(-90deg); }
.pnlm-hotspot-base.vr-door span { visibility: visible !important; opacity: 1; background: rgba(0,0,0,.7) !important; color: #fff !important; border-radius: 999px !important; padding: 3px 10px !important; white-space: nowrap; font-size: 13px; }
.pnlm-hotspot-base.vr-door span::after { display: none; }
.vr .pnlm-load-box { background: rgba(0,0,0,.7); border-radius: 12px; }
.pano-grid .ph img { aspect-ratio: 16/10; object-fit: cover; }
.vr .pnlm-panorama-info, .vr .pnlm-about-msg { display: none !important; }

/* ---------------------------------------------------------------- 应用内拍摄 360° */
.pcam { position: fixed; inset: 0; z-index: 125; background: #000; color: #fff; overflow: hidden; height: var(--vvh, 100dvh); top: var(--vvt, 0px); touch-action: none; user-select: none; }
.pcam-intro { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; position: relative; }
.pcam-intro ol { text-align: left; max-width: 420px; line-height: 1.6; color: #ddd; padding-left: 20px; }
.pcam-x { position: absolute; top: calc(12px + var(--sat)); right: 12px; }
.pcam-err { color: #ff8a80; max-width: 420px; }
.pcam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcam-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--sat)) 12px 12px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.pcam-top b { flex: 1; text-align: center; font-size: 16px; }
.pcam-ring { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); --p: 0;
  background: conic-gradient(rgba(60,192,90,.85) calc(var(--p) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 28px, #000 29px); mask: radial-gradient(circle, transparent 28px, #000 29px); }
.pcam-ring.ok { border-color: #3cc05a; }
.pcam-dot { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.3), 0 2px 10px rgba(0,0,0,.5); will-change: transform; }
.pcam-dot.ok { background: #3cc05a; }
.pcam-arrow { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); will-change: transform; }
.pcam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; } .pcam-flash.on { animation: pflash .35s; }
@keyframes pflash { from { opacity: .7; } to { opacity: 0; } }
.pcam-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px calc(14px + var(--sab)); background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.pcam-hint { margin: 0; font-size: 16px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.pcam-mini { width: 256px; height: 128px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); }
.pcam-bar { width: min(320px, 80vw); height: 8px; border-radius: 4px; background: #333; overflow: hidden; } .pcam-bar b { display: block; height: 100%; width: 0; background: var(--sun); transition: width .2s; }
.pcam-prev { height: 100%; display: flex; flex-direction: column; } .pcam-prev .pcam-top { position: static; background: #000; }
.pcam-pano { flex: 1; min-height: 0; }
.pcam-actions { padding: 12px 14px calc(12px + var(--sab)); background: #111; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pcam-actions .small { color: #aaa; margin: 0; text-align: center; } .pcam-fov { display: flex; align-items: center; gap: 8px; }
.pcam .pnlm-panorama-info, .pcam .pnlm-about-msg { display: none !important; }
