/* 房屋攻略专用布局，不影响现有页面。 */
.housing-article > h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; margin-bottom: 24px; }
.housing-example { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); gap: 36px; align-items: start; }
.housing-costs { margin: 20px 0; padding: 16px 20px; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-surface); }
.housing-costs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.housing-costs > div:last-child { border: 0; }
.housing-costs dd { margin: 0; color: var(--color-brand-green-light); font-weight: 600; white-space: nowrap; }
.housing-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0 12px; border: 1px solid var(--border-subtle); border-radius: 12px; }
.housing-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: .92rem; }
.housing-table caption { padding: 16px; text-align: left; color: #a8b7c8; }
.housing-table th, .housing-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.housing-table thead th { color: #fff; background: var(--bg-surface); }
.housing-table tbody th { font-weight: 500; color: #e5ecf4; }
.housing-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.housing-table small { display: block; font-weight: 400; color: #a8b7c8; }
.housing-table-note { color: #a8b7c8; font-size: .85rem; }
.housing-checklist { display: grid; gap: 14px; }
.housing-checklist > div { padding: 16px 20px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 12px; }
.housing-checklist dt { color: #fff; font-weight: 600; }
.housing-checklist dd { margin: 6px 0 0; }
.housing-status-figure { max-width: 300px; margin-inline: auto; }
.housing-article :is(a, [tabindex]):focus-visible { outline: 2px solid var(--color-brand-green-light); outline-offset: 4px; }
@media (max-width: 768px) { .housing-example { grid-template-columns: minmax(0,1fr); gap: 24px; } .housing-costs { padding: 12px 14px; } }

/* 手机把每套房的费用排成一张小卡，不要求左右拖动查看价格。 */
@media (max-width: 600px) {
 .housing-table-wrap { border: 0; overflow: visible; }
 .housing-table { min-width: 0; display: block; }
 .housing-table caption { display: block; padding: 0 0 14px; }
 .housing-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .housing-table tbody { display: grid; gap: 14px; }
 .housing-table tbody tr { display: block; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); padding: 14px; }
 .housing-table tbody th { display: block; padding: 0 0 10px; margin-bottom: 6px; }
 .housing-table td { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .86rem; border: 0; }
 .housing-table td::before { content: attr(data-label); color: #a8b7c8; white-space: normal; }
}
