/* 房产工作台深色主题覆盖。wizard-ext.css 里有大量浅色硬编码样式，本文件必须在其后加载。 */

.property-workbench-grid {
    --property-panel: transparent;
    --property-panel-strong: transparent;
    --property-panel-soft: transparent;
    --property-line: rgba(186, 220, 255, .20);
    --property-line-soft: rgba(186, 220, 255, .12);
    --property-text: rgba(248, 252, 255, .96);
    --property-text-2: rgba(226, 242, 255, .82);
    --property-text-3: rgba(203, 225, 247, .68);
    --property-text-4: rgba(203, 225, 247, .52);
    --property-accent: #8bd3ff;
    --property-warn: #ffd166;
    --text-1: var(--property-text);
    --text-2: var(--property-text-2);
    --text-3: var(--property-text-3);
    --text-4: var(--property-text-4);
    --bg-card: rgba(255, 255, 255, .06);
    --bg-hover: rgba(255, 255, 255, .10);
    --border: var(--property-line);
    color: var(--property-text);
}

.property-workbench-grid,
.property-workbench-grid * {
    color-scheme: dark;
}

.property-workbench-grid .property-selection-summary,
.property-workbench-grid .property-selection-card,
.property-workbench-grid .property-suggestion-list,
.property-workbench-grid .property-suggestion-item,
.property-workbench-grid .property-meta-item,
.property-workbench-grid .property-score-item,
.property-workbench-grid .property-feature-pane,
.property-workbench-grid .property-pane-editable {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .045)),
        var(--property-panel) !important;
    border-color: var(--property-line) !important;
}

.property-workbench-grid .property-suggestion-list {
    background: rgba(15, 30, 55, .96) !important;
    color-scheme: dark;
    box-shadow: 0 20px 46px rgba(2, 12, 28, .30) !important;
}

.property-workbench-grid .property-suggestion-item:hover {
    background: rgba(139, 211, 255, .12) !important;
}

.property-workbench-grid .property-head-badge,
.property-workbench-grid .property-tag-chip,
.property-workbench-grid .school-tag,
.property-workbench-grid .school-tag.tag-public,
.property-workbench-grid .school-tag.tag-private,
.property-workbench-grid .school-tag.tag-level {
    background: rgba(125, 197, 255, .13) !important;
    border: 1px solid rgba(139, 211, 255, .24) !important;
    color: var(--property-text-2) !important;
}

.property-workbench-grid .property-selection-empty,
.property-workbench-grid .property-selection-label,
.property-workbench-grid .property-suggestion-meta,
.property-workbench-grid .property-score-item-desc,
.property-workbench-grid .property-pane-hint,
.property-workbench-grid .match-helper,
.property-workbench-grid .school-distance,
.property-workbench-grid .school-features {
    color: var(--property-text-3) !important;
}

.property-workbench-grid .property-selection-value,
.property-workbench-grid .property-suggestion-name,
.property-workbench-grid .property-score-item-head,
.property-workbench-grid .school-name,
.property-workbench-grid .school-community,
.property-workbench-grid .property-feature-subtitle,
.property-workbench-grid .property-pane-editable,
.property-workbench-grid .property-pane-editable * {
    color: var(--property-text) !important;
}


.property-workbench-grid .wb-tabs,
.property-workbench-grid .property-workbench-tabs,
.property-workbench-grid .property-workbench-card {
    background: rgba(255, 255, 255, .045) !important;
    border-color: var(--property-line-soft) !important;
}

.property-workbench-grid .wb-tab,
.property-workbench-grid .property-feature-btn,
.property-workbench-grid .wb-quick-btn,
.property-workbench-grid .wb-doc-btn,
.property-workbench-grid .wb-action {
    color: var(--property-text-2) !important;
}

.property-workbench-grid .wb-tab.active,
.property-workbench-grid .wb-tab:hover,
.property-workbench-grid .property-feature-btn.active,
.property-workbench-grid .property-feature-btn:hover,
.property-workbench-grid .wb-quick-btn:hover,
.property-workbench-grid .wb-doc-btn:hover,
.property-workbench-grid .wb-action:hover {
    color: var(--property-text) !important;
}

.property-workbench-grid .wb-input::placeholder,
.property-workbench-grid .wb-textarea::placeholder {
    color: rgba(203, 225, 247, .50) !important;
}

.property-workbench-grid .wb-input,
.property-workbench-grid .wb-textarea,
.property-workbench-grid select.wb-input,
.property-workbench-grid .form-input,
.property-workbench-grid .page-input {
    color: var(--property-text) !important;
    background-color: rgba(6, 21, 45, .30) !important;
    border-color: rgba(186, 220, 255, .18) !important;
}

.property-workbench-grid select.wb-input option {
    color: #f8fbff;
    background: #0f172a;
}

.property-report {
    --property-panel: transparent;
    --property-panel-strong: transparent;
    --property-panel-soft: transparent;
    --property-line: rgba(186, 220, 255, .20);
    --property-line-soft: rgba(186, 220, 255, .12);
    --property-text: rgba(248, 252, 255, .96);
    --property-text-2: rgba(226, 242, 255, .82);
    --property-text-3: rgba(203, 225, 247, .68);
    --property-accent: #8bd3ff;
    --property-warn: #ffd166;
    color: var(--property-text);
}

.property-report,
.property-report-hero,
.property-report-section {
    --text-1: var(--property-text);
    --text-2: var(--property-text-2);
    --text-3: var(--property-text-3);
    --text-4: rgba(203, 225, 247, .46);
    --bg-card: rgba(255, 255, 255, .06);
    --bg-hover: rgba(255, 255, 255, .10);
    --border: var(--property-line);
}

.property-report,
.property-report * {
    color-scheme: dark;
}

.property-report-hero,
.property-report-section,
.property-score-doc-head,
.property-doc-subsection,
.property-score-row,
.property-score-dimension,
.property-score-group,
.property-score-question,
.property-school-item,
.property-tax-item,
.loan-card,
.match-section,
.match-group,
.school-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .045)),
        var(--property-panel) !important;
    border-color: var(--property-line) !important;
    box-shadow: 0 12px 30px rgba(2, 12, 28, .16);
}

.property-report table,
.property-report thead,
.property-report tbody,
.property-report tr {
    background: transparent !important;
}

.property-report-hero {
    padding: 18px;
    border: 1px solid var(--property-line);
    border-radius: 14px;
}

.property-report-section {
    padding: 16px;
    border: 1px solid var(--property-line);
    border-radius: 14px;
}

.property-report-kicker,
.property-mini-title,
.property-doc-subtitle,
.property-score-doc-kicker,
.loan-detail-title {
    color: var(--property-accent) !important;
}

.property-report-title,
.property-report-section-title,
.property-report-grade,
.property-metric-value,
.property-info-value,
.property-score-row-head,
.property-score-doc-title,
.property-score-dimension-pill strong,
.property-score-dimension > summary,
.property-score-group > summary,
.property-score-question > summary,
.property-school-name,
.property-tax-name,
.match-section-title,
.match-group-title,
.loan-card-name,
.loan-metric-value,
.property-cost-rating {
    color: var(--property-text) !important;
}

.property-report-summary,
.property-copy-block,
.property-report-section-desc,
.property-metric-label,
.property-info-label,
.property-score-row-desc,
.property-score-doc-desc,
.property-score-dimension-pill span,
.property-school-meta,
.property-school-note,
.property-tax-note,
.match-helper,
.match-group-subtitle,
.loan-card-bank,
.loan-detail-list,
.loan-metric-label,
.property-doc-subdesc {
    color: var(--property-text-2) !important;
}

.property-copy-block[style*="color:#d97706"],
.property-copy-block[style*="color: #d97706"],
.property-copy-block[style*="color:#6b7280"],
.property-copy-block[style*="color: #6b7280"],
tr[style*="color:#d97706"],
tr[style*="color: #d97706"],
tr[style*="color:#6b7280"],
tr[style*="color: #6b7280"] {
    color: var(--property-warn) !important;
}

.property-report-warning {
    color: var(--property-warn) !important;
}

.property-report-muted {
    color: var(--property-text-3) !important;
}

.property-report-meta-item,
.property-tax-pill,
.property-tag-chip,
.property-risk-level,
.property-conclusion-decision,
.match-chip,
.match-chip.soft,
.match-group-limit,
.match-note,
.property-tax-optional,
.property-doc-subtitle,
.school-tag,
.loan-card-score {
    background: rgba(125, 197, 255, .13) !important;
    border-color: rgba(139, 211, 255, .28) !important;
    color: var(--property-text-2) !important;
}

.property-report-scorebox,
.property-score-doc-total,
.property-metric-card,
.property-info-card,
.property-score-dimension-pill,
.loan-metric,
.property-score-loading,
.match-empty {
    background: var(--property-panel-soft) !important;
    border-color: var(--property-line-soft) !important;
    color: var(--property-text-2) !important;
}

.property-report-score,
.property-score-doc-total strong,
.property-cost-index,
.property-tax-amount,
.loan-card-score-value {
    color: #9ee7ff !important;
}

.property-pane-editable table,
.property-data-table,
.property-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    table-layout: fixed;
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: var(--property-text-2) !important;
}

.property-pane-editable table th,
.property-pane-editable table td,
.property-data-table th,
.property-data-table td,
.property-doc-table th,
.property-doc-table td {
    padding: 9px 10px !important;
    border: 1px solid var(--property-line-soft) !important;
    border-color: var(--property-line-soft) !important;
    color: var(--property-text-2) !important;
    vertical-align: top;
    word-break: break-word;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.property-pane-editable table,
.property-pane-editable table *,
.property-data-table,
.property-data-table *,
.property-doc-table,
.property-doc-table * {
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: var(--property-text-2) !important;
}

.property-pane-editable table th,
.property-data-table th,
.property-doc-table th {
    background: rgba(139, 211, 255, .12) !important;
    color: var(--property-text) !important;
    font-weight: 800;
    text-align: left;
}

.property-pane-editable table th *,
.property-data-table th *,
.property-doc-table th * {
    color: var(--property-text) !important;
}

.property-data-table td strong,
.property-doc-table td strong,
.property-copy-block strong {
    color: var(--property-text) !important;
}

.property-doc-table-wrap {
    background: rgba(255, 255, 255, .035) !important;
    border-color: var(--property-line) !important;
}

.match-warning {
    background: rgba(255, 209, 102, .14) !important;
    border-color: rgba(255, 209, 102, .35) !important;
    color: #ffe7a3 !important;
}

.property-bullet-item,
.property-score-toolbar,
.property-score-doc-total span,
.property-report-grade-text,
.doc-template-note,
.property-pane-hint {
    color: var(--property-text-3) !important;
}

.property-score-dimension > summary,
.property-score-group > summary,
.property-score-question > summary {
    background: rgba(139, 211, 255, .09) !important;
}

.property-feature-btn.active {
    color: var(--property-text) !important;
}

.property-pane-editable table,
.property-report-section .property-data-table {
    background: rgba(255, 255, 255, .025) !important;
    border: 1px solid var(--property-line-soft);
    border-radius: 10px;
    overflow: hidden;
}

.property-report a,
.property-school-note a {
    color: #9bdcff !important;
}

.property-report ::selection {
    background: rgba(139, 211, 255, .28);
    color: #fff;
}


/* 2026-06-18：取消房产报告展示端深色背景块，仅保留边界和可读文字。 */
.property-workbench-grid .property-selection-summary,
.property-workbench-grid .property-selection-card,
.property-workbench-grid .property-meta-item,
.property-workbench-grid .property-score-item,
.property-workbench-grid .property-feature-pane,
.property-workbench-grid .property-pane-editable,
.property-report-hero,
.property-report-section,
.property-score-doc-head,
.property-doc-subsection,
.property-score-row,
.property-score-dimension,
.property-score-group,
.property-score-question,
.property-school-item,
.property-tax-item,
.loan-card,
.match-section,
.match-group,
.school-card,
.property-report-scorebox,
.property-score-doc-total,
.property-metric-card,
.property-info-card,
.property-score-dimension-pill,
.loan-metric,
.property-score-loading,
.match-empty,
.property-doc-table-wrap,
.property-pane-editable table,
.property-report-section .property-data-table {
    background: transparent !important;
    box-shadow: none !important;
    border-color: rgba(186, 220, 255, .18) !important;
}

.property-report-hero,
.property-report-section,
.property-metric-card,
.property-info-card,
.property-score-row,
.property-school-item,
.property-tax-item,
.loan-card,
.match-section,
.match-group,
.school-card {
    backdrop-filter: none !important;
}

.property-report-section + .property-report-section {
    margin-top: 18px;
}

.property-report-meta-item,
.property-tax-pill,
.property-tag-chip,
.property-risk-level,
.property-conclusion-decision,
.match-chip,
.match-chip.soft,
.match-group-limit,
.match-note,
.property-tax-optional,
.property-doc-subtitle,
.school-tag,
.loan-card-score,
.property-score-dimension > summary,
.property-score-group > summary,
.property-score-question > summary,
.property-pane-editable table th,
.property-data-table th,
.property-doc-table th {
    background: rgba(139, 211, 255, .10) !important;
}


/* 补充：同类报告块、信息块、表格块统一不使用深色底。 */
.property-report .property-report-meta-item,
.property-report .property-tax-pill,
.property-report .property-tag-chip,
.property-report .property-risk-level,
.property-report .property-conclusion-decision,
.property-report .match-chip,
.property-report .match-chip.soft,
.property-report .match-group-limit,
.property-report .match-note,
.property-report .property-tax-optional,
.property-report .school-tag,
.property-report .loan-card-score,
.property-report .property-doc-table-wrap,
.property-report .property-data-table,
.property-report .property-doc-table,
.property-report .property-data-table tr,
.property-report .property-doc-table tr,
.property-report .property-data-table td,
.property-report .property-doc-table td {
    background: transparent !important;
    box-shadow: none !important;
}

.property-report .property-data-table th,
.property-report .property-doc-table th,
.property-report .property-pane-editable table th {
    background: rgba(139, 211, 255, .08) !important;
}


/* 户型图弹层（点击图片放大查看原图） */
.property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 8, 20, .86);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.property-lightbox-img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    background: #0f172a;
    cursor: default;
}

.property-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: rgba(248, 252, 255, .82);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 30, 55, .78);
    border: 1px solid rgba(139, 211, 255, .24);
    pointer-events: none;
}

.property-school-item img[onclick] {
    cursor: zoom-in;
}


/* 房产量化评分总分行（替换硬编码 #f0f9ff，避免在深色主题 + contenteditable 容器里显示为白框） */
.property-workbench-grid .property-score-total-row,
.property-report .property-score-total-row {
    background: rgba(139, 211, 255, .10) !important;
    font-weight: 800;
}
.property-workbench-grid .property-score-total-row td,
.property-report .property-score-total-row td {
    background: transparent !important;
    color: var(--property-text) !important;
}

/* === v3 章节图片统一显示 + 点击放大 === */
.property-section-image,
.property-section-media,
.property-report-section img.property-section-image,
.property-report-section img.property-section-media,
.property-pane-editable img.property-section-image {
    max-width: 100%;
    max-height: 360px;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: block;
    margin: 10px auto;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--property-line-soft);
}
.property-section-image:hover,
.property-section-media:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.prop-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 12px auto;
    justify-items: center;
    max-width: 880px;
}
.prop-image-grid .property-section-image,
.prop-image-grid .property-section-media {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto;
    margin: 0;
    object-fit: cover;
}

/* === 2026-07-08：LLM 输出浅色 alert / 内联浅色背景在深色主题下不可读，强制覆盖 === */
/* 覆盖 LLM 经常写的 Bootstrap alert-* 浅黄/浅蓝/浅红 */
.property-workbench-grid .property-pane-editable .alert,
.property-workbench-grid .property-pane-editable .alert-warning,
.property-workbench-grid .property-pane-editable .alert-info,
.property-workbench-grid .property-pane-editable .alert-danger,
.property-workbench-grid .property-pane-editable .alert-success,
.property-workbench-grid .property-pane-editable .alert-primary,
.property-workbench-grid .property-pane-editable .alert-secondary,
.property-workbench-grid .property-pane-editable [class*="alert-"] {
    background: rgba(255, 209, 102, .10) !important;     /* 警示: 半透明琥珀 */
    color: var(--property-text) !important;
    border: 1px solid rgba(255, 209, 102, .32) !important;
    border-left-width: 4px !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    line-height: 1.7 !important;
}
.property-workbench-grid .property-pane-editable .alert-info,
.property-workbench-grid .property-pane-editable [class*="alert-info"] {
    background: rgba(139, 211, 255, .10) !important;
    border-color: rgba(139, 211, 255, .32) !important;
}
.property-workbench-grid .property-pane-editable .alert-danger,
.property-workbench-grid .property-pane-editable [class*="alert-danger"] {
    background: rgba(248, 113, 113, .10) !important;
    border-color: rgba(248, 113, 113, .32) !important;
}
.property-workbench-grid .property-pane-editable .alert-success,
.property-workbench-grid .property-pane-editable [class*="alert-success"] {
    background: rgba(74, 222, 128, .10) !important;
    border-color: rgba(74, 222, 128, .32) !important;
}
.property-workbench-grid .property-pane-editable .alert *,
.property-workbench-grid .property-pane-editable [class*="alert-"] * {
    color: var(--property-text) !important;
}
/* 兜底: 任何 inline 浅色背景(白/米/黄/淡蓝)在深色主题下改为半透明深色块 */
.property-workbench-grid .property-pane-editable [style*="background:#fff"],
.property-workbench-grid .property-pane-editable [style*="background: #fff"],
.property-workbench-grid .property-pane-editable [style*="background:#fef"],
.property-workbench-grid .property-pane-editable [style*="background: #fef"],
.property-workbench-grid .property-pane-editable [style*="background:#ffe"],
.property-workbench-grid .property-pane-editable [style*="background: #ffe"],
.property-workbench-grid .property-pane-editable [style*="background:#ffc"],
.property-workbench-grid .property-pane-editable [style*="background: #ffc"],
.property-workbench-grid .property-pane-editable [style*="background:#faf"],
.property-workbench-grid .property-pane-editable [style*="background: #faf"],
.property-workbench-grid .property-pane-editable [style*="background:#f5f"],
.property-workbench-grid .property-pane-editable [style*="background: #f5f"],
.property-workbench-grid .property-pane-editable [style*="background:#ecf"],
.property-workbench-grid .property-pane-editable [style*="background: #ecf"] {
    background: rgba(139, 211, 255, .10) !important;
    color: var(--property-text) !important;
}
.property-workbench-grid .property-pane-editable [style*="background:#fff"] *,
.property-workbench-grid .property-pane-editable [style*="background:#fef"] *,
.property-workbench-grid .property-pane-editable [style*="background:#ffe"] *,
.property-workbench-grid .property-pane-editable [style*="background:#ffc"] *,
.property-workbench-grid .property-pane-editable [style*="background:#faf"] *,
.property-workbench-grid .property-pane-editable [style*="background:#f5f"] *,
.property-workbench-grid .property-pane-editable [style*="background:#ecf"] * {
    color: var(--property-text) !important;
}
