


/* 20261011 布局修复：workspace 外壳是"左表单2fr+右聊天3fr"的两栏 grid（其他功能共用，不可动），
   huoke 工作台需要通栏 → 跨全部列。 */
#wsLayout .huoke-workspace { grid-column: 1 / -1; }

.huoke-workspace { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; min-width: 0; max-width: 100%; overflow-x: hidden; }


.huoke-tab-bar {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 4px;
  padding: 8px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--brd);
  overflow-x: auto;
  flex-shrink: 0;
}
.huoke-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--sub);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.huoke-tab:hover { background: rgba(245,158,11,.08); color: var(--gold-l); }
.huoke-tab.active { background: rgba(245,158,11,.15); color: var(--gold); border-color: var(--gold); }
.huoke-tab-icon { font-size: 16px; }

.huoke-tab-body { flex: 1; overflow-y: auto; padding: 16px; min-height: 0; }


.huoke-card { background: var(--card); border-radius: 14px; border: 1px solid var(--brd); margin-bottom: 16px; }
.huoke-card-header { padding: 16px 20px; border-bottom: 1px solid var(--brd); display: flex; align-items: center; justify-content: space-between; }
.huoke-card-header h3 { font-size: 15px; font-weight: 600; color: var(--txt); }
.huoke-card-body { padding: 20px; }

.huoke-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.huoke-stat-value { font-size: 28px; font-weight: 700; color: var(--gold); }
.huoke-stat-label { font-size: 12px; color: var(--sub); margin-top: 4px; }

.huoke-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.huoke-tag-green { background: rgba(34,197,94,.12); color: #34D399; }
.huoke-tag-amber { background: rgba(245,158,11,.12); color: var(--gold); }
.huoke-tag-red { background: rgba(239,68,68,.12); color: #F87171; }
.huoke-tag-blue { background: rgba(96,165,250,.12); color: #60a5fa; }
.huoke-tag-gray { background: rgba(156,163,175,.12); color: var(--sub); }
.huoke-tag-gold { background: rgba(245,158,11,.12); color: var(--gold); }

.huoke-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: all .15s; border: none; cursor: pointer; }
.huoke-btn-primary { background: var(--grad); color: #3d2b15; }
.huoke-btn-outline { background: transparent; border: 1px solid var(--brd); color: var(--sub); }
.huoke-btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.huoke-btn-success { background: #22C55E; color: #fff; }
.huoke-btn-sm { padding: 5px 12px; font-size: 12px; }

/* 20261011 huoke-v3 批1：积分兑换 VIP 金色按钮（深色金主题，金色点缀不大面积渐变） */
.huoke-redeem-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border-radius: 10px; border: 1px solid rgba(245,158,11,.55); background: rgba(245,158,11,.14); color: var(--gold); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.huoke-redeem-btn:hover:not(:disabled) { background: rgba(245,158,11,.26); border-color: var(--gold); box-shadow: 0 0 0 1px rgba(245,158,11,.25); }
.huoke-redeem-btn:disabled { opacity: .45; cursor: not-allowed; }
.huoke-redeem-hint { font-size: 12px; color: var(--sub); margin-top: 8px; }


.huoke-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.huoke-error-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.huoke-error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 8px;
}
.huoke-error-desc {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 320px;
}
.huoke-error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.huoke-error-actions .huoke-btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}


.huoke-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.huoke-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.huoke-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 8px;
}
.huoke-empty-desc {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 320px;
}
.huoke-empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.huoke-empty-actions .huoke-btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}


.huoke-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: huoke-skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes huoke-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.huoke-skeleton-card {
  height: 100px;
  border-radius: 12px;
}
.huoke-skeleton-text {
  height: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.huoke-skeleton-text:last-child {
  margin-bottom: 0;
}
.huoke-skeleton-text.short {
  width: 60%;
}
.huoke-skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.huoke-skeleton-rect {
  height: 200px;
  border-radius: 12px;
}


.huoke-stat-card {
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(245,158,11,.02) 100%);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(245,158,11,.15);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.huoke-stat-card:hover {
  border-color: rgba(245,158,11,.3);
  box-shadow: 0 4px 16px rgba(245,158,11,.15);
  transform: translateY(-2px);
}
.huoke-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.huoke-stat-label {
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
}
.huoke-stat-icon {
  font-size: 24px;
  opacity: 0.6;
}
.huoke-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}
.huoke-stat-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.huoke-stat-trend.up {
  color: #22C55E;
}
.huoke-stat-trend.down {
  color: #EF4444;
}
.huoke-stat-trend.neutral {
  color: var(--sub);
}
.huoke-stat-trend-arrow {
  font-size: 14px;
}
.huoke-stat-trend-value {
  font-weight: 700;
}
.huoke-stat-trend-label {
  font-weight: 400;
  opacity: .7;
}


.huoke-chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 32px;
  text-align: center;
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  border: 1px dashed var(--brd);
}
.huoke-chart-placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.huoke-chart-placeholder-text {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 16px;
}


.huoke-ranking-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.huoke-ranking-placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.huoke-ranking-placeholder-text {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 16px;
}


.huoke-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.huoke-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--brd);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: huoke-spin .6s linear infinite;
  margin-bottom: 16px;
}
.huoke-loading-text {
  font-size: 14px;
  color: var(--sub);
}
@keyframes huoke-spin { to { transform: rotate(360deg); } }


.huoke-todo-list { display: flex; flex-direction: column; gap: 10px; }
.huoke-todo-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--brd); cursor: pointer; transition: all .15s; }
.huoke-todo-item:hover { border-color: var(--gold); }
.huoke-todo-left { flex: 1; min-width: 0; display: flex; gap: 10px; }
.huoke-todo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.huoke-todo-dot-urgent { background: #F87171; }
.huoke-todo-dot-today { background: #fbbf24; }
.huoke-todo-dot-revisit { background: #60a5fa; }
.huoke-todo-dot-invite { background: #34D399; }
.huoke-todo-info { flex: 1; min-width: 0; }
.huoke-todo-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.huoke-todo-name { font-size: 14px; font-weight: 600; color: var(--txt); }
.huoke-todo-priority-label { font-size: 12px; color: var(--sub); }
.huoke-todo-score { font-size: 11px; font-weight: 600; color: var(--gold); background: rgba(245,158,11,.12); padding: 2px 8px; border-radius: 10px; }
.huoke-todo-summary { font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.huoke-todo-script { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.huoke-script-label { font-size: 11px; color: var(--sub); }
.huoke-script-text { flex: 1; font-size: 12px; color: var(--sub); line-height: 1.5; }
.huoke-copy-btn { padding: 4px 10px; border-radius: 6px; background: rgba(245,158,11,.12); color: var(--gold); font-size: 11px; font-weight: 500; border: none; cursor: pointer; white-space: nowrap; transition: all .15s; }
.huoke-copy-btn:hover { background: rgba(245,158,11,.25); }
.huoke-todo-done-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brd); background: transparent; color: var(--sub); font-size: 14px; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.huoke-todo-done-btn:hover { border-color: #22C55E; color: #22C55E; }


.huoke-modal {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--brd);
  max-width: 560px;
  width: 90%;
  transform: scale(0.95);
  transition: transform .25s ease;
}
.huoke-modal-header { padding: 16px 20px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--brd); color: var(--txt); }
.huoke-modal-body { padding: 16px 20px; font-size: 14px; color: var(--sub); line-height: 1.8; max-height: 60vh; overflow-y: auto; }
.huoke-modal-actions { padding: 12px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--brd); }

.huoke-profile-card { display: flex; flex-direction: column; gap: 16px; }
.huoke-profile-header { display: flex; align-items: center; gap: 12px; }
.huoke-profile-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #3d2b15; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.huoke-profile-info { flex: 1; }
.huoke-profile-name { font-size: 16px; font-weight: 700; color: var(--txt); }
.huoke-profile-meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.huoke-profile-score { font-size: 24px; font-weight: 800; color: var(--gold); }
.huoke-profile-section h4 { font-size: 13px; color: var(--sub); margin-bottom: 8px; font-weight: 600; }
.huoke-profile-timeline { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.huoke-timeline-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); padding: 4px 0; border-bottom: 1px solid var(--brd); }
.huoke-timeline-item:last-child { border-bottom: none; }
.huoke-tl-time { color: var(--sub); opacity: .7; font-size: 11px; min-width: 48px; }
.huoke-tl-icon { font-size: 14px; }
.huoke-tl-desc { flex: 1; }
.huoke-profile-recommendation { font-size: 13px; color: var(--sub); background: rgba(255,255,255,.03); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 8px 8px 0; line-height: 1.6; }


.huoke-scripts-header { margin-bottom: 20px; }
.huoke-scripts-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--txt); }
.huoke-scripts-desc { font-size: 13px; color: var(--sub); }
.huoke-scripts-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.huoke-script-tab { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--brd); font-size: 13px; color: var(--sub); cursor: pointer; transition: all .15s; }
.huoke-script-tab:hover { border-color: var(--gold); color: var(--gold); }
.huoke-script-tab.active { background: var(--grad); color: #3d2b15; border-color: transparent; }
.huoke-scripts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.huoke-script-card { background: rgba(255,255,255,.03); border: 1px solid var(--brd); border-radius: 12px; padding: 16px; transition: all .15s; }
.huoke-script-card:hover { border-color: var(--gold); }
.huoke-script-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.huoke-script-title { font-size: 14px; font-weight: 600; color: var(--txt); }
.huoke-script-content { font-size: 13px; color: var(--sub); line-height: 1.7; margin-bottom: 10px; }
.huoke-script-scene { font-size: 11px; color: var(--sub); opacity: .7; border-top: 1px solid var(--brd); padding-top: 8px; }


.huoke-ranking-list { display: flex; flex-direction: column; gap: 8px; }
.huoke-ranking-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--brd); }
.huoke-ranking-num { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--card); color: var(--sub); border: 1px solid var(--brd); }
.huoke-ranking-num.top { background: var(--grad); color: #3d2b15; border: none; }
.huoke-ranking-title { flex: 1; font-size: 13px; font-weight: 500; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.huoke-ranking-pv { font-size: 12px; color: var(--gold); font-weight: 600; }
.huoke-ranking-leads { font-size: 12px; color: #22C55E; font-weight: 500; }


.huoke-charts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.huoke-chart-card .huoke-card-body { min-height: 200px; position: relative; }


.huoke-table-wrap { overflow-x: auto; }
.huoke-table-wrap table { width: 100%; border-collapse: collapse; }
.huoke-table-wrap th { text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 600; color: var(--sub); border-bottom: 1px solid var(--brd); }
.huoke-table-wrap td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--brd); color: var(--sub); }


.huoke-profile-page { display: flex; flex-direction: column; gap: 16px; }
.huoke-profile-header-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--grad); border-radius: 14px; }
.huoke-profile-avatar-large { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; }
.huoke-profile-name-large { font-size: 18px; font-weight: 700; color: #fff; }
.huoke-profile-phone { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; }
/* 20261011 A方案：KPI 从"三张大卡"改"一行紧凑横条"，兑换入口并入同一行做视觉承接 */
.huoke-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.huoke-profile-stat { text-align: center; padding: 14px 8px; background: var(--card); border-radius: 12px; border: 1px solid var(--brd); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.huoke-profile-stat .huoke-stat-value { font-size: 22px; margin-bottom: 0; }
.huoke-profile-stat .huoke-stat-label { font-size: 12px; margin-top: 0; }
#huoke-my-points-card { cursor: pointer; transition: all .15s; }
#huoke-my-points-card:hover { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.06); }
.huoke-profile-stat-redeem { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.32); gap: 8px; }
.huoke-redeem-inline-label { font-size: 11.5px; color: var(--gold); font-weight: 600; line-height: 1.4; }
.huoke-profile-stat-redeem .huoke-redeem-btn { padding: 7px 16px; font-size: 13px; }
/* 20261011 A方案：下半页真实内容块（我的房源 / 最近访客） */
.huoke-profile-section .huoke-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.huoke-mini-list { display: flex; flex-direction: column; }
.huoke-mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--brd); cursor: pointer; transition: background .15s; }
.huoke-mini-row:last-child { border-bottom: none; }
.huoke-mini-row:hover { background: rgba(255,255,255,.03); }
.huoke-mini-main { flex: 1; min-width: 0; }
.huoke-mini-title { font-size: 13.5px; color: var(--txt); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.huoke-mini-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.huoke-mini-views { font-size: 11.5px; color: var(--sub); }
.huoke-mini-empty { padding: 18px 4px; font-size: 13px; color: var(--sub); text-align: center; }
.huoke-mini-more { padding: 10px 4px 2px; font-size: 12px; color: var(--sub); text-align: center; }
.huoke-profile-menu { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; border: 1px solid var(--brd); overflow: hidden; }
.huoke-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--brd); cursor: pointer; transition: all .15s; }
.huoke-menu-item:last-child { border-bottom: none; }
.huoke-menu-item:hover { background: rgba(255,255,255,.02); }
.huoke-menu-icon { font-size: 20px; }
.huoke-menu-text { flex: 1; font-size: 14px; color: var(--txt); }
.huoke-menu-arrow { font-size: 18px; color: var(--sub); }


@media (max-width: 768px) {
  .huoke-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .huoke-charts-grid { grid-template-columns: 1fr; }
  .huoke-profile-stats { grid-template-columns: repeat(2, 1fr); }  .huoke-tab-bar { padding: 6px 8px; }
  .huoke-tab { padding: 6px 12px; font-size: 12px; }
}


.huoke-form .huoke-card {
  background: var(--card, #fff);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--brd, #e5e7eb);
}
.huoke-form .huoke-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt, #1a1a2e);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold, #c9a227);
}
.huoke-form-row { display: flex; align-items: center; margin-bottom: 12px; gap: 12px; }
.huoke-form-row label { min-width: 80px; font-size: 14px; color: var(--txt, #333); }
.huoke-form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.huoke-form-group label { font-size: 13px; font-weight: 600; color: var(--txt, #333); }
.huoke-form-group .huoke-input { flex: 0 0 auto; width: 100%; }
.huoke-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--brd, #ddd);
  border-radius: 10px;
  font-size: 14px;
  background: var(--input, #fff);
  color: var(--txt, #333);
}
select.huoke-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type="number"].huoke-input, input[type="date"].huoke-input { min-width: 0; }

/* 统一搜索组件：输入框 flex:1 + 固定宽文字按钮，外层限宽防横向失控 */
.huoke-search-group { display: flex; align-items: stretch; gap: 10px; max-width: 560px; }
.huoke-search-group .huoke-input { flex: 1; min-width: 0; }
.huoke-search-group .huoke-search-btn { flex: 0 0 88px; width: 88px; height: 40px; border: none; border-radius: 10px; background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.huoke-search-group .huoke-search-btn:hover { opacity: .88; }
.huoke-vp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.huoke-vp-chips-label { font-size: 12px; color: var(--sub, #888); }
.huoke-vp-chip { padding: 5px 12px; border: 1px solid var(--brd, #ddd); border-radius: 14px; background: var(--input, #fff); color: var(--txt, #333); font-size: 12px; cursor: pointer; transition: all .15s; }
.huoke-vp-chip:hover { border-color: var(--gold); color: var(--gold); }
.huoke-share-url { background: var(--sub-bg, #f5f5f5) !important; font-size: 13px; color: var(--sub, #666) !important; }

/* 批3：访客空态不闪——150ms淡入 + 空态控件禁用置灰 */
@keyframes huoke-fade-in { from { opacity: 0; } to { opacity: 1; } }
.huoke-fade-in { animation: huoke-fade-in .15s ease-out both; }
.huoke-search-group .huoke-input:disabled, .huoke-search-group .huoke-search-btn:disabled { opacity: .45; cursor: not-allowed; }
.huoke-sort-btn:disabled { opacity: .45; cursor: not-allowed; }
.huoke-empty-row td { padding: 0 12px; }
.huoke-card-desc { margin: 0 0 14px; font-size: 13px; color: var(--sub, #888); line-height: 1.6; }
textarea.huoke-input { height: auto; padding: 8px 12px; resize: vertical; }
@media (max-width: 768px) {
  .huoke-form-row { flex-direction: column; align-items: stretch; }
  .huoke-form-row label { min-width: auto; margin-bottom: 4px; }
  /* BUG-AIXG-20261011-118（2026-10-11 复现修复）：见文件末尾同名段（必须放在 1004/1005
     那两条 flex-basis 之后，否则同优先级下会被后写的覆盖掉——首轮修复就栽在这）。 */
}


.rec-hud { display: flex; align-items: center; justify-content: center; gap: 3px; height: 24px; }
.rec-hud span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #F59E0B, #D97706);
  animation: recbar 1.2s ease-in-out infinite;
}
.rec-hud span:nth-child(1) { animation-delay: 0s; height: 30%; }
.rec-hud span:nth-child(2) { animation-delay: 0.15s; height: 60%; }
.rec-hud span:nth-child(3) { animation-delay: 0.3s; height: 90%; }
.rec-hud span:nth-child(4) { animation-delay: 0.45s; height: 60%; }
.rec-hud span:nth-child(5) { animation-delay: 0.6s; height: 30%; }
@keyframes recbar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}




.huoke-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
  margin-bottom: 24px;
}
.huoke-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--brd);
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.huoke-step.active {
  background: rgba(245,158,11,.15);
  border-color: var(--gold);
  color: var(--gold);
}
.huoke-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.huoke-step.active .huoke-step-num {
  background: var(--gold);
  color: #3d2b15;
  border-color: var(--gold);
}
.huoke-step-line {
  width: 40px;
  height: 2px;
  background: var(--brd);
  margin: 0 4px;
}


.huoke-create-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.huoke-create-page > .huoke-steps-bar {
  grid-column: 1 / -1;
}
.huoke-create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.huoke-create-preview {
  position: sticky;
  top: 20px;
}


.huoke-upload-card .huoke-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.huoke-upload-count {
  font-size: 12px;
  color: var(--sub);
}
.huoke-upload-zone {
  border: 2px dashed var(--brd);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: rgba(255,255,255,.02);
}
.huoke-upload-zone:hover,
.huoke-upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(245,158,11,.05);
}
.huoke-upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.huoke-upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 4px;
}
.huoke-upload-hint {
  font-size: 12px;
  color: var(--sub);
}
.huoke-upload-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.huoke-upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
}
.huoke-upload-thumb.is-cover {
  border-color: var(--gold);
}
.huoke-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.huoke-upload-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.huoke-upload-thumb-remove:hover {
  background: #EF4444;
}
.huoke-upload-thumb-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gold);
  color: #3d2b15;
  font-size: 10px;
  font-weight: 700;
}


.huoke-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.huoke-type-card-item {
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--brd);
  cursor: pointer;
  transition: all .2s;
  background: rgba(255,255,255,.02);
  text-align: center;
}
.huoke-type-card-item:hover {
  border-color: rgba(245,158,11,.3);
  transform: translateY(-2px);
}
.huoke-type-card-item.selected {
  border-color: var(--gold);
  background: rgba(245,158,11,.08);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.huoke-type-card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.huoke-type-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 4px;
}
.huoke-type-card-desc {
  font-size: 11px;
  color: var(--sub);
}


.huoke-form-price {
  flex: 2 !important;
}
.huoke-price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--brd);
  border-radius: 8px;
  overflow: hidden;
  background: var(--input);
  transition: all .15s;
}
.huoke-price-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
}
.huoke-price-prefix {
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,158,11,.08);
  display: flex;
  align-items: center;
  height: 40px;
}
.huoke-price-input-wrap input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #EF4444 !important;
  background: transparent !important;
  padding: 0 8px !important;
}
.huoke-price-suffix {
  padding: 0 12px;
  font-size: 12px;
  color: var(--sub);
  display: flex;
  align-items: center;
  height: 40px;
  background: rgba(255,255,255,.02);
}


.huoke-rooms-picker {
  display: flex;
  gap: 6px;
  flex: 1;
}
.huoke-rooms-picker select {
  flex: 1;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  font-size: 14px;
  background: var(--input);
  color: var(--txt);
  cursor: pointer;
  transition: all .15s;
}
.huoke-rooms-picker select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
}


.huoke-skin-selector-large {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.huoke-skin-selector-large .huoke-skin-option {
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--brd);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  background: rgba(255,255,255,.02);
}
.huoke-skin-selector-large .huoke-skin-option:hover {
  border-color: rgba(245,158,11,.3);
  transform: translateY(-2px);
}
.huoke-skin-selector-large .huoke-skin-option.selected {
  border-color: var(--gold);
  background: rgba(245,158,11,.08);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.huoke-skin-selector-large .huoke-skin-preview {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.huoke-skin-selector-large .huoke-skin-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}


.huoke-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--brd);
  margin-top: 20px;
}
.huoke-form-actions .huoke-btn {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 10px;
}


/* BUG-AIXG-20261011-125：外层 20→14px 内边距，配合重做后的卡片，右列视觉更饱满不空荡 */
.huoke-preview-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--brd);
  padding: 14px;
}
.huoke-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.huoke-preview-body {
  min-height: 120px;
}
.huoke-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--sub);
  font-size: 13px;
  background: rgba(255,255,255,.02);
  border-radius: 8px;
  border: 1px dashed var(--brd);
}
/* ===== BUG-AIXG-20261011-125 预览卡片重做 =====
 * 原结构是「120×90 小图 + 右侧信息」左右并排，右列宽但信息只有 4 行 → 大片留白，
 * 整张卡看起来"空且矮"。改成上下结构：大图通栏 + 信息区三行 + 价格强调，
 * 再补卖点摘要/展示效果两块，把右列一直空到底的问题填掉。 */
.huoke-preview-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  border: 1px solid var(--brd);
  overflow: hidden;
}
.huoke-preview-img {
  position: relative;
  width: 100%;
  height: 132px;
  background: linear-gradient(135deg, rgba(245,158,11,.20), rgba(245,158,11,.04));
  border-radius: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--brd);
}
.huoke-preview-img-icon { font-size: 46px; line-height: 1; }
.huoke-preview-img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #1a1408;
  background: var(--gold, #f59e0b);
}
.huoke-preview-info {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 16px;
}
.huoke-preview-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.huoke-preview-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.huoke-preview-card-meta span {
  font-size: 11px;
  color: var(--sub);
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  padding: 2px 7px;
}
.huoke-preview-card-area {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.huoke-preview-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--brd);
}
.huoke-preview-price-num {
  font-size: 26px;
  font-weight: 800;
  color: #EF4444;
  line-height: 1;
}
.huoke-preview-price-unit {
  font-size: 13px;
  color: #EF4444;
}
/* 下方补充块：填掉右列一路空到底的空白 */
.huoke-preview-block {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 12px;
}
.huoke-preview-block-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 10px;
}
.huoke-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.huoke-preview-tag {
  font-size: 11px;
  color: var(--gold, #f59e0b);
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 5px;
  padding: 3px 8px;
}
.huoke-preview-tag-empty { font-size: 11px; color: var(--sub); }
.huoke-preview-hint { font-size: 12px; color: var(--sub); line-height: 1.7; }


.huoke-type-card {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .huoke-create-page {
    grid-template-columns: 1fr;
  }
  .huoke-create-preview {
    position: static;
  }
  .huoke-type-grid {
    grid-template-columns: 1fr;
  }
}




.huoke-table-wrap tr:hover { background: rgba(245,158,11,.06); transition: background .15s; }


.huoke-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
  transition: all .15s;
}


.huoke-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


.huoke-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  /* BUG-AIXG-20261011-120：9999 已在 header(9000) 之上，但须低于 toast(10000)，
     否则弹窗打开时 toast 被遮罩吃掉，用户看不到操作反馈。 */
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.huoke-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.huoke-modal-overlay.show .huoke-modal {
  transform: scale(1);
}


.huoke-stat-card {
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(245,158,11,.02) 100%);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(245,158,11,.15);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: all .2s;
}
.huoke-stat-card:hover {
  border-color: rgba(245,158,11,.3);
  box-shadow: 0 4px 16px rgba(245,158,11,.15);
  transform: translateY(-2px);
}

/* ===== 20261011 七问题修复（依据：修复需求文档-私域获客七问题-20261011-v1.md） ===== */
/* F3 灭重影：表单行允许换行、下拉允许收缩——窄列时朝向自动换行到第二行，绝不叠压 */
.huoke-form-row { flex-wrap: wrap; row-gap: 14px; }
.huoke-form-row > .huoke-form-group { flex: 1 1 200px; }
.huoke-form-row > .huoke-form-price { flex: 2 1 260px !important; }
.huoke-rooms-picker select { min-width: 0; }
.huoke-rooms-picker { min-width: 180px; }
/* rooms-picker 内 select 覆盖 form-group 的 width:100%（否则每个 select 撑满整行互相叠压） */
.huoke-form-group .huoke-rooms-picker select.huoke-input { flex: 1 1 0; width: auto; min-width: 0; }
/* F4 发布页断点重排：≤1150px 预览列下移，表单不再被 320px 固定列挤压 */
@media (max-width: 1150px) {
  .huoke-create-page { grid-template-columns: 1fr; }
  .huoke-create-preview { position: static; order: 2; }
}
/* F6 类型卡片：≥561px 恒 2 列，仅超窄屏才 1 列 */
@media (max-width: 900px) and (min-width: 561px) {
  .huoke-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== BUG-AIXG-20261011-124（2026-10-11 视觉修复）：发布表单分层与呼吸感 =====
 * 实测（1600px）：行内间距只有 12px，并不松；真正的问题有两个，都是"没分层"不是"太松"：
 *   ① .huoke-form-section 这个 class 只在 JS 里用了、CSS 里从没定义 → h4 走浏览器默认样式，
 *      区块标题（基本信息/公共信息…）紧贴上一个字段的输入框，看着像同一片内容；
 *   ② label 高只有 17px、margin-bottom:0，标签和输入框完全黏死，字段内部没有呼吸。
 * 这里补：区块标题上方留白 + 标题下分隔线 + 标签与输入框留 5px。
 */
.huoke-form-section { margin-top: 22px; }
.huoke-form-section:first-of-type { margin-top: 8px; }
.huoke-form-section > h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brd, rgba(255,255,255,.08));
  font-size: 13px;
  font-weight: 700;
  color: var(--gold, #f59e0b);
  letter-spacing: .3px;
}
/* BUG-AIXG-20261011-124：收紧行间距（12→10px），并去掉每段最后一行多余的下边距，
   避免"字段之间 10px、段落结束又多一截"的忽松忽紧。 */
.huoke-form-row { display: flex; align-items: center; margin-bottom: 10px; gap: 12px; }
.huoke-form-section > .huoke-form-row:last-child { margin-bottom: 0; }
.huoke-form-group label { line-height: 18px; margin-bottom: 5px; }
/* 20261011 KPI错误横幅（替代塞进小卡的大错误组件） */
.huoke-dash-error-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid rgba(245,158,11,.35); border-radius: 10px; background: rgba(245,158,11,.08); font-size: 13px; }
.huoke-dash-error-bar span { color: var(--txt, #eee); }
/* 20261011 一键填入示例按钮（金色描边点缀，不大面积渐变） */
.huoke-fill-demo-btn { border: 1px solid rgba(245,158,11,.5); background: rgba(245,158,11,.1); color: var(--gold, #f59e0b); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.huoke-fill-demo-btn:hover { background: rgba(245,158,11,.2); border-color: var(--gold, #f59e0b); }

/* ===== BUG-AIXG-20261011-118（2026-10-11 复现修复）：窄屏表单大间隙 =====
 * 现象：窗口 ≤768px 时，「标题」输入框和下一个字段之间出现 173px 空洞。
 * 真因：F3 修复（1004/1005 行）给 .huoke-form-group 设了 flex:1 1 200px /
 *       .huoke-form-price 设了 flex:2 1 260px，本意是"横向按比例分配宽度"；
 *       但 506 行断点把 .huoke-form-row 切成 flex-direction:column，
 *       flex-basis 在竖排下变成"主轴=高度"→ 每个字段组被强拉成 200px / 260px 高。
 *       实测证据（修复前）：groupFlexBasis:"200px" / groupH:200 / inputH:40。
 * 修法：竖排时宽度本就由 align-items:stretch 自动铺满，basis 必须归零。
 * 注意：本段必须放在 1004/1005 那两条**之后**——同优先级下 CSS 后写者胜，
 *       首轮修复写在 506 行断点内被覆盖，间隙纹丝不动。 */
@media (max-width: 768px) {
  .huoke-form-row > .huoke-form-group { flex: 0 1 auto; }
  /* 价格组必须同样带 !important——736 行 .huoke-form-price{flex:2 !important} 会压过普通规则，
     不加 !important 的话窄屏下价格字段仍被拉成 260px 高（均价与价格单位之间的大空洞）。 */
  .huoke-form-row > .huoke-form-price,
  .huoke-form-price { flex: 0 1 auto !important; }
}

/* ===== BUG-AIXG-20261011-126 批4C：转发轨迹来源标注样式 =====
 * 需求文档验收口径："A转发B，B的档案可见'由客户A分享带来'"——
 * 来源列必须一眼看出是直接来的还是谁带来的，转发数/带来人数并列显示。 */
.huoke-src-direct { color: var(--sub); font-size: 12px; }
.huoke-src-shared {
  color: var(--gold, #f59e0b);
  font-size: 12px;
  font-weight: 600;
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 4px;
  padding: 2px 6px;
}
.huoke-visitor-share-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: #7DD3FC;
  background: rgba(14,165,233,.12);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}
.huoke-visitor-gen-badge {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  color: #C4B5FD;
  background: rgba(139,92,246,.14);
  border-radius: 3px;
  padding: 1px 4px;
  vertical-align: middle;
}

/* ===== BUG-AIXG-20261011-126/127 档案页新增区块样式 =====
 * R4验收要求：评分依据可见、看过的房源可见、停留时长真实、来源可辨。 */
.huoke-profile-source { margin-top: 5px; }
.huoke-profile-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}
.huoke-profile-kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--brd);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.huoke-profile-kpi b {
  display: block;
  font-size: 15px;
  color: var(--txt);
  line-height: 1.3;
}
.huoke-profile-kpi span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--sub);
}
.huoke-score-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.huoke-score-part {
  font-size: 11px;
  color: var(--sub);
  background: rgba(255,255,255,.05);
  border-radius: 5px;
  padding: 3px 8px;
}
.huoke-score-part b { color: var(--gold, #f59e0b); }
.huoke-score-part-none { font-size: 12px; color: var(--sub); }
.huoke-viewed-list { display: flex; flex-direction: column; gap: 6px; }
.huoke-viewed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--brd);
  border-radius: 8px;
  font-size: 12px;
}
.huoke-viewed-title {
  flex: 1;
  min-width: 0;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.huoke-viewed-price { color: #EF4444; font-weight: 700; white-space: nowrap; }
.huoke-viewed-stay { color: var(--sub); white-space: nowrap; }
@media (max-width: 560px) {
  .huoke-profile-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== BUG-AIXG-20261011-128 批5：三步向导样式 =====
 * 原 .huoke-step 是 div（不可点），现改为 button（可点）+ done 态 + hover 反馈。 */
.huoke-steps-bar .huoke-step {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  border-radius: 8px;
  transition: opacity .2s;
}
.huoke-steps-bar .huoke-step:hover { opacity: .85; }
.huoke-steps-bar .huoke-step.done .huoke-step-num {
  background: rgba(34,197,94,.18);
  color: #86EFAC;
  border-color: rgba(34,197,94,.4);
}
.huoke-step-hint {
  display: block;
  font-size: 10px;
  color: var(--sub);
  font-weight: 400;
  margin-top: 2px;
}
.huoke-wizard-step { display: none; }
/* 不写 :first-of-type 默认显示——三步的显隐统一由 JS 的 huoke_setWizardStep 控制，
   CSS 再兜一条默认值会出现"首屏全隐藏直到 JS 跑完"的白屏闪烁。 */
.huoke-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--brd);
}
.huoke-wizard-tip {
  margin-right: auto;
  font-size: 12px;
  color: var(--sub);
}
.huoke-wizard-nav-column { flex-direction: column; align-items: stretch; border-top: 0; margin-top: 10px; }
.huoke-wizard-nav-column .huoke-form-actions { display: flex; flex-direction: column; gap: 8px; }
/* 第3步：预览 + 核对 */
.huoke-wizard-publish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .huoke-wizard-publish { grid-template-columns: 1fr; }
}
.huoke-wizard-publish-preview { min-width: 0; }
.huoke-wizard-publish-side { min-width: 0; }
.huoke-wizard-check {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 14px;
}
.huoke-wizard-check-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 10px;
}
.huoke-wizard-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--brd);
}
.huoke-wizard-check-row:last-of-type { border-bottom: 0; }
.huoke-wizard-check-icon { font-size: 12px; }
.huoke-wizard-check-label { color: var(--sub); width: 66px; flex-shrink: 0; }
.huoke-wizard-check-value {
  color: var(--txt);
  margin-left: auto;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.huoke-wizard-check-row.warn .huoke-wizard-check-value { color: #FCD34D; }
.huoke-wizard-check-ready {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(34,197,94,.10);
  color: #86EFAC;
}
.huoke-wizard-check-ready.warn { background: rgba(245,158,11,.10); color: #FCD34D; }
.huoke-wizard-publish-tip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}

/* ===== BUG-AIXG-20261011-129 批6：未开口需求洞察卡 =====
 * 目的：概览页第一眼给"该跟谁聊、该说什么"，而不是先看一堆数字自己猜。 */
.huoke-insight-card {
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.02));
  border-color: rgba(245,158,11,.28);
}
.huoke-insight-tag {
  font-size: 11px;
  color: var(--gold, #f59e0b);
  background: rgba(245,158,11,.14);
  border-radius: 4px;
  padding: 2px 7px;
}
.huoke-insight-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.6;
  margin-bottom: 8px;
}
.huoke-insight-advice {
  font-size: 13px;
  color: var(--gold-l, #FDE68A);
  line-height: 1.75;
  padding: 10px 12px;
  background: rgba(245,158,11,.08);
  border-radius: 8px;
  margin-bottom: 14px;
}
.huoke-insight-empty { font-size: 13px; color: var(--sub); }
.huoke-insight-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 8px;
}
.huoke-insight-listings { display: flex; flex-direction: column; gap: 6px; }
.huoke-insight-listing {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--brd);
  border-radius: 8px;
}
.huoke-insight-ltitle { font-size: 13px; color: var(--txt); font-weight: 600; }
.huoke-insight-lmeta { font-size: 11px; color: var(--sub); }
.huoke-insight-visitor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--brd);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s;
}
.huoke-insight-visitor:hover { border-color: var(--gold, #f59e0b); }
.huoke-insight-vname { font-size: 13px; color: var(--txt); font-weight: 600; flex-shrink: 0; }
.huoke-insight-vmeta { font-size: 11px; color: var(--sub); }
.huoke-insight-vseen {
  font-size: 11px;
  color: var(--gold, #f59e0b);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .huoke-insight-visitor { flex-wrap: wrap; }
  .huoke-insight-vseen { margin-left: 0; width: 100%; }
}

/* ===== BUG-AIXG-20261012-131 批7：分享弹窗 4 渠道按钮 + 渠道分布展示 =====
 * 必须写在文件末尾：同优先级后写者胜（BUG-118 踩坑）。
 */
.huoke-share-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.huoke-share-channel-grid .huoke-btn {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .huoke-share-channel-grid { grid-template-columns: 1fr; }
}
.huoke-channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.huoke-channel-pill {
  font-size: 12px;
  color: var(--text, #e8ecf4);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.huoke-channel-pill b {
  color: var(--gold, #f59e0b);
  font-weight: 700;
  margin-left: 2px;
}

/* ============================================================
 * BUG-AIXG-20261012-132 批8：分享弹窗视觉修复
 * 上一批（131）引入的三个 P0 视觉问题，全部为实测坐实：
 *  ①链接输入框缩成 194px——根因 .huoke-input{flex:1} 只在 flex 父容器生效，
 *    但 .huoke-modal-body 是 display:block，input 退化成 inline-block 按内容收缩。
 *    这里只给分享场景加 width:100% 覆盖，**不动 .huoke-input 本体**
 *    （它在发布表单、搜索框等多处使用，改它会波及全站）。
 *  ②按钮图标文字重叠——根因 .huoke-modal-body{line-height:1.8} 被按钮继承，
 *    上一批只写了 white-space:nowrap 没管行高。
 *  ③390px 下 .huoke-modal 无 max-height，弹窗撑破把底部表格压成竖排。
 * 必须写在文件末尾：同优先级后写者胜（BUG-118 铁律）。
 * ============================================================ */
.huoke-modal-body > .huoke-share-url {
  display: block;
  width: 100%;
}
.huoke-share-channel-grid .huoke-btn {
  /* 覆盖从 .huoke-modal-body 继承来的 line-height:1.8，否则图标与文字错位重叠 */
  line-height: 1.4;
  justify-content: center;
  /* 上一批四个按钮高度实测 35/33 交替（emoji 字形宽度不同导致折行策略不同） */
  min-height: 40px;
  /* grid 子项默认 min-width:auto 会撑破容器，BUG-118 同源坑，必须显式给 0 */
  min-width: 0;
}

/* 窄屏：弹窗自身限高 + body 可滚，不再把底下内容压成竖排（问题③） */
@media (max-width: 640px) {
  .huoke-modal {
    max-height: 88vh;
    display: flex;
    flex-direction: column;
  }
  .huoke-modal-header,
  .huoke-modal-actions {
    flex-shrink: 0;
  }
  .huoke-modal-body {
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
  }
}

/* BUG-AIXG-20261012-132 批8：分享弹窗版式（问题④）
 * 底部"确定"按钮按范先森拍板去掉——点完渠道按钮自动关闭弹窗，少一次点击。
 * actionsHtml 传空串时会留一条 58px 的空条（含 padding + border-top），
 * 这里用 :empty 彻底收掉，避免标题与内容之间凭空多一块空白。 */
.huoke-modal-actions:empty {
  display: none;
}
.huoke-share-lead {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}
/* 链接框容器：让 .huoke-input 的 flex:1 真正生效（.huoke-modal-body 是 block 不是 flex，
   这是上一批输入框缩成 194px 的根因） */
.huoke-share-url-box {
  display: flex;
  width: 100%;
  margin-bottom: 14px;
}
.huoke-share-url-box .huoke-share-url {
  flex: 1;
  min-width: 0;
}
.huoke-share-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}

/* BUG-AIXG-20261012-133 批8：访客表格行可点 + 房源数据弹窗版式 */
.huoke-row-clickable {
  cursor: pointer;
  transition: background .15s;
}
.huoke-row-clickable:hover {
  background: rgba(245, 158, 11, .06);
}
/* 行内"›"箭头：让用户看得出这行能点（UI 点击必须有可见反馈） */
.huoke-row-arrow {
  margin-left: 6px;
  color: var(--gold, #f59e0b);
  opacity: .55;
  font-weight: 400;
}
.huoke-row-clickable:hover .huoke-row-arrow {
  opacity: 1;
}
.huoke-stat-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brd);
}
.huoke-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
}
.huoke-stat-row + .huoke-stat-row {
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.huoke-stat-row b {
  color: var(--txt);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.huoke-stat-row-sub {
  display: block;
  font-size: 12px;
  color: var(--sub);
  opacity: .72;
  padding-top: 0;
}
.huoke-stat-row-sub + .huoke-stat-row {
  border-top: none;
}
.huoke-stat-close-btn {
  min-width: 88px;
}

/* BUG-AIXG-20261012-133 批8：390px 窄屏房源表格适配（实测发现单元格被压成 49x229 竖排）。
   表格横向滚动是正解，但不能靠压缩列宽——每列给 min-width 让它横向滚而不是挤成竖条。 */
@media (max-width: 768px) {
  .huoke-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .huoke-table-wrap table {
    min-width: 720px;
  }
  .huoke-table-wrap th,
  .huoke-table-wrap td {
    white-space: nowrap;
    padding: 10px 12px;
  }
}

/* BUG-AIXG-20261012-133 批8：分页条样式。
   注意：.huoke-pagination 这个 class 之前在 CSS 里根本不存在——
   房源页第 744/785 行写了空的 <div class="huoke-pagination"> 占位但从没有样式也没有渲染内容，
   等于一个空壳。本批补上真正的样式供访客列表使用。 */
.huoke-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 4px 4px;
}
.huoke-page-info {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}
.huoke-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.huoke-page-actions .huoke-btn {
  min-width: 84px;
  justify-content: center;
  line-height: 1.4;
}
.huoke-page-actions .huoke-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.huoke-page-actions .huoke-btn:disabled:hover {
  border-color: var(--brd);
  color: var(--sub);
}
@media (max-width: 640px) {
  .huoke-pagination {
    justify-content: center;
  }
}
