/* AI 置业助手外部站 · 黑金定版样式
   纪律：①黑金配色，禁用某青绿色（色值见基线清单，全站 grep 自检零命中）；
        ②整页只有文档一个滚动层，不设内部滚动容器；
        ③地址标题全文显示：自动换行，禁止省略号截断。 */
:root {
  --bg: #0c0c0e;
  --panel: #16161a;
  --panel2: #1e1e24;
  --gold: #c9a227;
  --gold-bright: #e8c85a;
  --text: #f2ead2;
  --muted: #a79e86;
  --danger: #e0644f;
  --ok: #9dbb6a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}
header.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #101013; border-bottom: 2px solid var(--gold);
  padding: 8px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
}
.brand {
  color: var(--gold-bright); font-weight: 700; font-size: 16px; letter-spacing: 0.5px;
  white-space: nowrap; flex: 0 1 auto; min-width: 0;
}
.topbar .spacer { flex: 1 1 auto; min-width: 2px; }
.lang-switch { display: flex; gap: 4px; flex-wrap: nowrap; flex: 0 0 auto; }
.lang-switch button, button.btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--gold);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px;
}
.lang-switch button { padding: 4px 8px; font-size: 13px; white-space: nowrap; }
#logoutBtn { padding: 4px 8px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 480px) {
  header.topbar { gap: 4px; padding: 8px; }
  .brand { font-size: 12.5px; letter-spacing: 0; }
  .lang-switch { gap: 3px; }
  .lang-switch button, #logoutBtn { font-size: 12px; padding: 3px 5px; }
}
button.btn.primary { background: var(--gold); color: #171300; font-weight: 700; }
button.btn:disabled { opacity: 0.5; cursor: default; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--panel); border: 1px solid #2c2c33; border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
}
.address-title {
  font-size: 17px; font-weight: 700; color: var(--text);
  white-space: normal; overflow-wrap: break-word; word-break: break-word;
}
.muted { color: var(--muted); font-size: 13px; }
.price { color: var(--gold-bright); font-weight: 700; }
input, textarea, select {
  width: 100%; background: var(--panel2); border: 1px solid #3a3a42; border-radius: 8px;
  color: var(--text); padding: 10px; font-size: 16px; margin: 6px 0 12px;
}
img.thumb { width: 100%; border-radius: 10px; display: block; }
img.report-page { width: 100%; display: block; margin-bottom: 10px; border: 1px solid #2c2c33; }
nav.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
nav.tabs button { flex: 1; min-width: 88px; }
nav.tabs button.active { background: var(--gold); color: #171300; font-weight: 700; }
.error { color: var(--danger); }
.success { color: var(--ok); }
.badge {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold-bright);
  border-radius: 999px; padding: 1px 10px; font-size: 12px; margin-right: 6px;
}
.big-upload {
  display: block; width: 100%; padding: 22px; font-size: 19px; text-align: center;
  background: var(--gold); color: #171300; font-weight: 700; border-radius: var(--radius);
  border: none; cursor: pointer; margin: 14px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid #2c2c33; padding: 7px 6px; text-align: left; vertical-align: top; }
th { color: var(--gold-bright); }

/* ---- 房源列表紧凑横卡（ai-2 定版：左小图、右文字；列表不渲染 video，只露海报/静帧） ---- */
.prop-card { display: flex; gap: 10px; padding: 10px 12px; cursor: pointer; align-items: flex-start; }
.prop-thumb {
  position: relative; flex: 0 0 104px; width: 104px; height: 80px;
  background: var(--panel2); border-radius: 8px; overflow: hidden;
}
.prop-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prop-thumb .play-badge {
  position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, 0.68);
  color: var(--gold-bright); border: 1px solid var(--gold); border-radius: 999px;
  font-size: 11px; line-height: 18px; padding: 0 6px;
}
.prop-main { flex: 1 1 auto; min-width: 0; }
.prop-main .address-title { font-size: 15px; line-height: 1.35; }
.prop-main .muted { margin-top: 2px; }
.prop-price { margin-top: 2px; }

/* ---- 底部六入口导航（ai-3 定版形态：首页/资讯/日程/云智能助手/消息/服务） ---- */
nav.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #101013; border-top: 2px solid var(--gold);
  display: flex; flex-wrap: nowrap; padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
}
nav.bottomnav button {
  flex: 1 1 0; min-width: 0; background: none; border: none; color: var(--muted);
  font-size: 12px; line-height: 1.3; padding: 7px 0; cursor: pointer; white-space: nowrap;
}
nav.bottomnav button.active { color: var(--gold-bright); font-weight: 700; }
@media (max-width: 480px) { nav.bottomnav button { font-size: 11.5px; } }
body.has-bottomnav main { padding-bottom: 84px; }

/* ---- 消息分类标签页 ---- */
nav.tabs.msg-tabs button { min-width: 0; }

/* ---- 反馈整理条目（编号金圈，与 ai-2 编号徽章同式） ---- */
.fb-item { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.fb-item .num {
  flex: 0 0 26px; width: 26px; height: 26px; margin-top: 8px;
  border: 1px solid var(--gold); color: var(--gold-bright); border-radius: 50%;
  text-align: center; line-height: 24px; font-size: 13px; font-weight: 700;
}
.fb-item textarea { flex: 1 1 auto; min-width: 0; margin: 0; }
.fb-item .fb-del { flex: 0 0 auto; margin-top: 6px; }
.fb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fb-actions button { flex: 1; }
